diff --git a/assets/index.html b/assets/index.html
new file mode 100644
index 0000000..e6edab5
--- /dev/null
+++ b/assets/index.html
@@ -0,0 +1,105 @@
+
+
+
+
+
+
+
+
+
+
+
+ ⇲
+
+
+
diff --git a/assets/js/binary.js b/assets/js/binary.js
index 21d57b2..77a47a4 100644
--- a/assets/js/binary.js
+++ b/assets/js/binary.js
@@ -1,5 +1,5 @@
-// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.0.3/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"4.2.2","target":"arcade","targetVersion":"1.0.3","repo":"microsoft/tileworld"}
-// total=2590247 new=51.72% cached=43.10% other=5.18%
+// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.0.16/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"4.2.3","target":"arcade","targetVersion":"1.0.16","repo":"microsoft/tileworld"}
+// total=2570085 new=51.05% cached=43.70% other=5.25%
(function (ectx) {
'use strict';
const runtime = ectx.runtime;
@@ -653,7 +653,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
const pxsim_numops = pxsim.numops;
-function _main___P35666(s) {
+function _main___P93466(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -663,237 +663,241 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- globals._intervals___3926 = (undefined);
- globals._pollEventQueue___3935 = (undefined);
- globals.minPriority___361 = (1);
+ globals._intervals___63923 = (undefined);
+ globals._pollEventQueue___63932 = (undefined);
+ globals.minPriority___60356 = (1);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, inline__P3938);
- globals.listeners___3939 = (s.tmp_0);
- globals.globalVolume___3992 = (null);
- globals.playToneID___3999 = (0);
- r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1595_VT);
+ r0 = pxsim_Array__push(s.tmp_0, inline__P63935);
+ globals.listeners___63936 = (s.tmp_0);
+ globals.globalVolume___63989 = (null);
+ globals.playToneID___63996 = (0);
+ r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C61590_VT);
s.tmp_0 = r0;
- s.tmp_1 = music_Melody_constructor__P1598_mk(s);
+ s.tmp_1 = music_Melody_constructor__P61593_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___1612 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1595_VT);
+ globals.wawawawaa___61607 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C61590_VT);
s.tmp_0 = r0;
- s.tmp_1 = music_Melody_constructor__P1598_mk(s);
+ s.tmp_1 = music_Melody_constructor__P61593_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___1615 = (s.tmp_0);
- globals.brightness___1721 = (100);
+ globals.powerUp___61610 = (s.tmp_0);
+ globals.brightness___61716 = (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", _hex22110);
- globals.font8___1742 = (s.tmp_0);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex82096);
+ globals.font8___61737 = (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", _hex22112);
- globals.font12___1743 = (s.tmp_0);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex82098);
+ globals.font12___61738 = (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", _hex27801);
- globals.font5___1747 = (s.tmp_0);
- globals.__updated___4036 = (false);
- r0 = pxsim.control.runInParallel(inline__P4039);
- r0 = pxsim_pxtcore.setPalette(_hex4050);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex87787);
+ globals.font5___61742 = (s.tmp_0);
+ globals.__updated___64033 = (false);
+ r0 = pxsim.control.runInParallel(inline__P64036);
+ r0 = pxsim_pxtcore.setPalette(_hex64047);
r0 = pxsim.image.create(160, 120);
- globals.screen___1799 = (r0);
- s.tmp_0 = control___screen_setupUpdate__P1761_mk(s);
- s.tmp_0.arg0 = inline__P4057;
+ globals.screen___61794 = (r0);
+ s.tmp_0 = control___screen_setupUpdate__P61756_mk(s);
+ s.tmp_0.arg0 = inline__P64054;
s.callLocIdx = 4; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- globals.control_EventContext_onStats___384 = (inline__P4062);
- globals.RUN_KEY___4067 = ("#run");
- globals.SCOPE_KEY___4068 = ("#scope");
- s.tmp_0 = settings_initScopes__P4079_mk(s);
+ globals.control_EventContext_onStats___60379 = (inline__P64059);
+ globals.RUN_KEY___64064 = ("#run");
+ globals.SCOPE_KEY___64065 = ("#scope");
+ s.tmp_0 = settings_initScopes__P64076_mk(s);
s.callLocIdx = 5; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 5;
s.tmp_1.arg2 = 4;
s.callLocIdx = 6; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- globals.A___1874 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.A___61869 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 6;
s.tmp_1.arg2 = 5;
s.callLocIdx = 7; s.pc = 6; return s.tmp_1;
case 6:
r0 = s.retval;
- globals.B___1875 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.B___61870 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 1;
s.tmp_1.arg2 = 47;
s.callLocIdx = 8; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
- globals.left___1876 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.left___61871 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 2;
s.tmp_1.arg2 = 49;
s.callLocIdx = 9; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
- globals.up___1877 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.up___61872 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 3;
s.tmp_1.arg2 = 48;
s.callLocIdx = 10; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
- globals.right___1878 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.right___61873 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 4;
s.tmp_1.arg2 = 50;
s.callLocIdx = 11; s.pc = 10; return s.tmp_1;
case 10:
r0 = s.retval;
- globals.down___1879 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ globals.down___61874 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 7;
s.tmp_1.arg2 = 51;
s.callLocIdx = 12; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
- globals.menu___1880 = (s.tmp_0);
- globals._userEventsEnabled___4106 = (true);
- globals.defaultRepeatDelay___4108 = (500);
- globals.defaultRepeatInterval___4110 = (30);
- r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C4116_VT);
+ globals.menu___61875 = (s.tmp_0);
+ globals._userEventsEnabled___64103 = (true);
+ globals.defaultRepeatDelay___64105 = (500);
+ globals.defaultRepeatInterval___64107 = (30);
+ r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C64113_VT);
s.tmp_0 = r0;
- s.tmp_1 = controller_Button_constructor__P1906_mk(s);
+ s.tmp_1 = controller_Button_constructor__P61901_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 0;
s.tmp_1.arg2 = -1;
s.callLocIdx = 13; s.pc = 12; return s.tmp_1;
case 12:
r0 = s.retval;
- globals.anyButton___1954 = (s.tmp_0);
- s.tmp_0 = SpriteKind_create__P2124_mk(s);
+ globals.anyButton___61949 = (s.tmp_0);
+ s.tmp_0 = SpriteKind_create__P62119_mk(s);
s.callLocIdx = 14; s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
- globals.Player___2125 = (r0);
- s.tmp_0 = SpriteKind_create__P2124_mk(s);
+ globals.Player___62120 = (r0);
+ s.tmp_0 = SpriteKind_create__P62119_mk(s);
s.callLocIdx = 15; s.pc = 14; return s.tmp_0;
case 14:
r0 = s.retval;
- globals.Food___2127 = (r0);
- s.tmp_0 = SpriteKind_create__P2124_mk(s);
+ globals.Food___62122 = (r0);
+ s.tmp_0 = SpriteKind_create__P62119_mk(s);
s.callLocIdx = 16; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- globals.Enemy___2128 = (r0);
+ globals.Enemy___62123 = (r0);
r0 = (100 * 256);
s.tmp_0 = r0;
r0 = (s.tmp_0 | 0);
- globals.MAX_TIME_STEP___2165 = (r0);
+ globals.MAX_TIME_STEP___62160 = (r0);
r0 = (0.1 * 256);
s.tmp_0 = r0;
r0 = (s.tmp_0 | 0);
- globals.MIN_MOVE_GAP___2167 = (r0);
- globals.infoState___4159 = (undefined);
- s.tmp_0 = game_addScenePushHandler__P2541_mk(s);
- s.tmp_0.arg0 = inline__P4163;
+ globals.MIN_MOVE_GAP___62162 = (r0);
+ globals.infoState___64156 = (undefined);
+ s.tmp_0 = game_addScenePushHandler__P62538_mk(s);
+ s.tmp_0.arg0 = inline__P64160;
s.callLocIdx = 19; s.pc = 16; return s.tmp_0;
case 16:
r0 = s.retval;
- s.tmp_0 = game_addScenePopHandler__P2543_mk(s);
- s.tmp_0.arg0 = inline__P4178;
+ s.tmp_0 = game_addScenePopHandler__P62540_mk(s);
+ s.tmp_0.arg0 = inline__P64175;
s.callLocIdx = 23; s.pc = 17; return s.tmp_0;
case 17:
r0 = s.retval;
r0 = pxsim_Array__mk();
- globals.scene_Scene_initializers___2431 = (r0);
- globals.debug___2520 = (false);
- globals.stats___2521 = (false);
- globals.winEffect___2522 = (undefined);
- globals.loseEffect___2523 = (undefined);
- globals.loseSound___4271 = (undefined);
- globals.winSound___4273 = (undefined);
- s.tmp_0 = scene_systemMenu_initVolume__P4539_mk(s);
+ globals.scene_Scene_initializers___62428 = (r0);
+ globals.debug___62517 = (false);
+ globals.stats___62518 = (false);
+ globals.winEffect___62519 = (undefined);
+ globals.loseEffect___62520 = (undefined);
+ globals.loseSound___64271 = (undefined);
+ globals.winSound___64273 = (undefined);
+ s.tmp_0 = scene_systemMenu_initVolume__P64540_mk(s);
s.callLocIdx = 24; s.pc = 18; return s.tmp_0;
case 18:
r0 = s.retval;
- r0 = pxsim_Array__push(globals.scene_Scene_initializers___2431, scene_systemMenu_register__P2625);
- r0 = pxsim.image.ofBuffer(_hex4545);
- globals.CARD_NORMAL___2630 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4547);
- globals.CARD_SELECTED___2631 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4549);
- globals.CARD_ACTIVE___2632 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4551);
- globals.VOLUME_UP_ICON___2633 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4553);
- globals.BRIGHTNESS_DOWN_ICON___2634 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4555);
- globals.CLOSE_MENU_ICON___2635 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4557);
- globals.VOLUME_DOWN_ICON___2636 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4559);
- globals.SLEEP_ICON___2637 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4561);
- globals.CONSOLE_ICON___2638 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4563);
- globals.BRIGHTNESS_UP_ICON___2639 = (r0);
- r0 = pxsim.image.ofBuffer(_hex4565);
- globals.STATS_ICON___2640 = (r0);
- globals.consoleColor___4568 = (1);
- globals.tabSize___4571 = (8);
- globals.consoleFont___4577 = (globals.font5___1747);
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ s.tmp_0 = scene_systemMenu_initScreen__P64541_mk(s);
+ s.callLocIdx = 25; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ r0 = pxsim_Array__push(globals.scene_Scene_initializers___62428, scene_systemMenu_register__P62622);
+ r0 = pxsim.image.ofBuffer(_hex64548);
+ globals.CARD_NORMAL___62627 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64550);
+ globals.CARD_SELECTED___62628 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64552);
+ globals.CARD_ACTIVE___62629 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64554);
+ globals.VOLUME_UP_ICON___62630 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64556);
+ globals.BRIGHTNESS_DOWN_ICON___62631 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64558);
+ globals.CLOSE_MENU_ICON___62632 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64560);
+ globals.VOLUME_DOWN_ICON___62633 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64562);
+ globals.SLEEP_ICON___62634 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64564);
+ globals.CONSOLE_ICON___62635 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64566);
+ globals.BRIGHTNESS_UP_ICON___62636 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex64568);
+ globals.STATS_ICON___62637 = (r0);
+ globals.consoleColor___64571 = (1);
+ globals.tabSize___64574 = (8);
+ globals.consoleFont___64580 = (globals.font5___61742);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_2 = r0;
s.tmp_5 = if_charHeight_1_mk(s);
- s.tmp_5.arg0 = globals.consoleFont___4577;
+ s.tmp_5.arg0 = globals.consoleFont___64580;
if (!s.tmp_5.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight");
} else {
s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"];
if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; }
else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 25; s.pc = 19; return s.tmp_5; }
+ else { s.callLocIdx = 26; s.pc = 20; return s.tmp_5; }
}
- case 19:
+ case 20:
r0 = s.retval;
s.tmp_4 = r0;
r0 = (s.tmp_4 + 2);
@@ -903,352 +907,352 @@ switch (step) {
r0 = pxsim.Math_.floor(s.tmp_1);
s.tmp_0 = r0;
r0 = (s.tmp_0 - 1);
- globals.consoleLines___4582 = (r0);
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ globals.consoleLines___64585 = (r0);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
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___4577;
+ s.tmp_4.arg0 = globals.consoleFont___64580;
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 = 26; s.pc = 20; return s.tmp_4; }
+ else { s.callLocIdx = 27; s.pc = 21; return s.tmp_4; }
}
- case 20:
+ case 21:
r0 = s.retval;
s.tmp_3 = r0;
r0 = (s.tmp_1 / s.tmp_3);
s.tmp_0 = r0;
r0 = pxsim.Math_.floor(s.tmp_0);
- globals.consoleColumns___4592 = (r0);
- s.tmp_0 = console_addListener__P369_mk(s);
- s.tmp_0.arg0 = game_consoleOverlay_listener__P4604;
- s.callLocIdx = 27; s.pc = 21; return s.tmp_0;
- case 21:
+ globals.consoleColumns___64595 = (r0);
+ s.tmp_0 = console_addListener__P60364_mk(s);
+ s.tmp_0.arg0 = game_consoleOverlay_listener__P64607;
+ s.callLocIdx = 28; s.pc = 22; return s.tmp_0;
+ case 22:
r0 = s.retval;
s.tmp_0 = lambda_1_mk(s);
- s.tmp_0.argL = inline__P4608;
+ s.tmp_0.argL = inline__P64611;
setupLambda(s.tmp_0, s.tmp_0.argL);
- s.callLocIdx = 29; s.pc = 22; return s.tmp_0;
- case 22:
+ s.callLocIdx = 30; s.pc = 23; return s.tmp_0;
+ case 23:
r0 = s.retval;
- globals.MAX_SOURCES___4606 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C2710_VT);
+ globals.MAX_SOURCES___64609 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C62707_VT);
s.tmp_0 = r0;
- s.tmp_1 = particles_SprayFactory_constructor__P2711_mk(s);
+ s.tmp_1 = particles_SprayFactory_constructor__P62708_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 20;
s.tmp_1.arg2 = 0;
s.tmp_1.arg3 = 60;
- s.callLocIdx = 30; s.pc = 23; return s.tmp_1;
- case 23:
+ s.callLocIdx = 31; s.pc = 24; return s.tmp_1;
+ case 24:
r0 = s.retval;
- globals.defaultFactory___2690 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT);
+ globals.defaultFactory___62687 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C62575_VT);
s.tmp_0 = r0;
- s.tmp_1 = Math_FastRandom_constructor__P2580_mk(s);
+ s.tmp_1 = Math_FastRandom_constructor__P62577_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = undefined;
- s.callLocIdx = 31; s.pc = 24; return s.tmp_1;
- case 24:
+ s.callLocIdx = 32; s.pc = 25; return s.tmp_1;
+ case 25:
r0 = s.retval;
- globals.galois___4641 = (s.tmp_0);
- globals.angleSlice___4649 = (0.06283185307179587);
- r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C2785_VT);
+ globals.galois___64644 = (s.tmp_0);
+ globals.angleSlice___64652 = (0.06283185307179587);
+ r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C62782_VT);
s.tmp_0 = r0;
- s.tmp_1 = effects_ScreenEffect_constructor__P2786_mk(s);
+ s.tmp_1 = effects_ScreenEffect_constructor__P62783_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = 10;
s.tmp_1.arg2 = 40;
s.tmp_1.arg3 = 4000;
- s.tmp_1.arg4 = inline__P22936;
- s.callLocIdx = 37; s.pc = 25; return s.tmp_1;
- case 25:
- r0 = s.retval;
- globals.confetti___2793 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2808_VT);
- s.tmp_0 = r0;
- s.tmp_1 = effects_ImageEffect_constructor__P2809_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = 100;
- s.tmp_1.arg2 = inline__P25807;
- s.callLocIdx = 43; s.pc = 26; return s.tmp_1;
+ s.tmp_1.arg4 = inline__P82922;
+ s.callLocIdx = 38; s.pc = 26; return s.tmp_1;
case 26:
r0 = s.retval;
- globals.dissolve___2813 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2808_VT);
+ globals.confetti___62790 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C62805_VT);
s.tmp_0 = r0;
- s.tmp_1 = effects_ImageEffect_constructor__P2809_mk(s);
+ s.tmp_1 = effects_ImageEffect_constructor__P62806_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = 125;
- s.tmp_1.arg2 = inline__P22828;
- s.callLocIdx = 46; s.pc = 27; return s.tmp_1;
+ s.tmp_1.arg1 = 100;
+ s.tmp_1.arg2 = inline__P85793;
+ s.callLocIdx = 44; s.pc = 27; return s.tmp_1;
case 27:
r0 = s.retval;
- globals.melt___2814 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C2823_VT);
+ globals.dissolve___62810 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C62805_VT);
s.tmp_0 = r0;
- s.tmp_1 = texteffects_TextEffect_constructor__P2825_mk(s);
+ s.tmp_1 = effects_ImageEffect_constructor__P62806_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = inline__P4700;
+ s.tmp_1.arg1 = 125;
+ s.tmp_1.arg2 = inline__P82814;
s.callLocIdx = 47; s.pc = 28; return s.tmp_1;
case 28:
r0 = s.retval;
- globals.shake___2826 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C2823_VT);
+ globals.melt___62811 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C62820_VT);
s.tmp_0 = r0;
- s.tmp_1 = texteffects_TextEffect_constructor__P2825_mk(s);
+ s.tmp_1 = texteffects_TextEffect_constructor__P62822_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = inline__P4713;
- s.callLocIdx = 57; s.pc = 29; return s.tmp_1;
+ s.tmp_1.arg1 = inline__P64703;
+ s.callLocIdx = 48; s.pc = 29; return s.tmp_1;
case 29:
r0 = s.retval;
- globals.wave___2827 = (s.tmp_0);
- s.tmp_0 = game_addScenePushHandler__P2541_mk(s);
- s.tmp_0.arg0 = inline__P4781;
- s.callLocIdx = 58; s.pc = 30; return s.tmp_0;
+ globals.shake___62823 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C62820_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = texteffects_TextEffect_constructor__P62822_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = inline__P64716;
+ s.callLocIdx = 58; s.pc = 30; return s.tmp_1;
case 30:
r0 = s.retval;
- s.tmp_0 = game_addScenePopHandler__P2543_mk(s);
- s.tmp_0.arg0 = inline__P4796;
- s.callLocIdx = 62; s.pc = 31; return s.tmp_0;
+ globals.wave___62824 = (s.tmp_0);
+ s.tmp_0 = game_addScenePushHandler__P62538_mk(s);
+ s.tmp_0.arg0 = inline__P64784;
+ s.callLocIdx = 59; s.pc = 31; return s.tmp_0;
case 31:
r0 = s.retval;
- s.tmp_0 = game_setWaitAnyButton__P2525_mk(s);
- s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P1950;
+ s.tmp_0 = game_addScenePopHandler__P62540_mk(s);
+ s.tmp_0.arg0 = inline__P64799;
s.callLocIdx = 63; s.pc = 32; return s.tmp_0;
case 32:
r0 = s.retval;
- s.tmp_0 = game_eventContext__P2527_mk(s);
+ s.tmp_0 = game_setWaitAnyButton__P62522_mk(s);
+ s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P61945;
s.callLocIdx = 64; s.pc = 33; return s.tmp_0;
case 33:
+ r0 = s.retval;
+ s.tmp_0 = game_eventContext__P62524_mk(s);
+ s.callLocIdx = 65; s.pc = 34; return s.tmp_0;
+ case 34:
r0 = s.retval;
r0 = pxsim_String_.charCodeAt("0", 0);
- globals.zeroCode___5966 = (r0);
- globals.ruleBuf___6715 = (null);
- globals.bitIndex___6717 = (0);
- globals.TileWorldVersion___3665 = ("4.0.0");
- globals.toHex___8549 = ("0123456789abcdef");
- globals.VersionKey___8394 = ("VersionS");
- globals.HelpKey___8342 = ("HelpN");
- globals.BackImgCntKey___8412 = ("BackN");
- globals.SpriteImgCntKey___8421 = ("SpriteN");
- globals.PlayerIndexKey___8430 = ("PlayerN");
- globals.WorldBackgroundsKey___8317 = ("WBackM");
- globals.WorldSpritesKey___8331 = ("WSpriteM");
- globals.BackImageKey___8702 = ("BackI");
- globals.SpriteImageKey___8704 = ("SpriteI");
- globals.RuleKey___8299 = ("RuleB");
- globals.HighScoreKey___8358 = ("HighN");
- r0 = pxsim.image.ofBuffer(_hex9182);
- globals.map___3712 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9184);
- globals.play___3713 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9186);
- globals.debug___3714 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9188);
- globals.code___3715 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9190);
- globals.paint___3716 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9192);
- globals.music___3717 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9194);
- globals.garbageCan___3718 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9196);
- globals.settingsIcon___3719 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9198);
- globals.addRule___3720 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9200);
- globals.emptyTile___3721 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9202);
- globals.emptyDiagTile___3722 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9204);
- globals.cursorIn___3723 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9206);
- globals.cursorOut___3724 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9208);
- globals.collisionSprite___3725 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9210);
- globals.genericSprite___3726 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9212);
- globals.exclude___3727 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9214);
- globals.include___3728 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9216);
- globals.include2___3729 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9218);
- globals.ok___3730 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9220);
- globals.anyOutline___3731 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9222);
- globals.allFourOutline___3732 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9224);
- globals.restingOutline___3733 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9226);
- globals.downArrowOutline___3734 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9228);
- globals.upArrowOutline___3735 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9230);
- globals.rightArrowOutline___3736 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9232);
- globals.leftArrowOutline___3737 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9234);
- globals.leftButton___3738 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9236);
- globals.rightButton___3739 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9238);
- globals.downButton___3740 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9240);
- globals.upButton___3741 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9242);
- globals.AButton___3742 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9244);
- globals.flipHoriz___3743 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9246);
- globals.flipVert___3744 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9248);
- globals.rotate3way___3745 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9250);
- globals.leftRotate___3746 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9252);
- globals.rightRotate___3747 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9254);
- globals.allFour___3748 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9256);
- globals.downArrow___3749 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9258);
- globals.upArrow___3750 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9260);
- globals.rightArrow___3751 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9262);
- globals.leftArrow___3752 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9264);
- globals.eat___3753 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9266);
- globals.stopSign___3754 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9268);
- globals.uTurn___3755 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9270);
- globals.spawn___3756 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9272);
- globals.smallPaint___3757 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9274);
- globals.portal___3758 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9276);
- globals.gameIcon___3759 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9278);
- globals.trophyUp___3760 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9280);
- globals.trophyDown___3761 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9282);
- globals.scoreUp10___3762 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9284);
- globals.diskIcon___3763 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9286);
- globals.reset___3764 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9288);
- globals.negate___3765 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9290);
- globals.twCursor___9291 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9293);
- globals.apple___9294 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9296);
- globals.snakeHead___3766 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9298);
- globals.snakeBody___9299 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9301);
- globals.ship___9302 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9304);
- globals.alien___9305 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9307);
- globals.missile___9308 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9310);
- globals.cat___9311 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9313);
- globals.fish___9314 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9316);
- globals.dog___3767 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9318);
- globals.chimp___9319 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9147);
- globals.player___3768 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9322);
- globals.diamond___9323 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9325);
- globals.boulder___9326 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9328);
- globals.enemy___3769 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9131);
- globals.brick___9130 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9331);
- globals.grass___9332 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9334);
- globals.water___9335 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9337);
- globals.dirt2___9338 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9340);
- globals.wall___9341 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9343);
- globals.wall2___9344 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9346);
- globals.dirt___9347 = (r0);
- r0 = pxsim.image.ofBuffer(_hex9349);
- globals.space___9350 = (r0);
+ globals.zeroCode___65969 = (r0);
+ globals.ruleBuf___66707 = (null);
+ globals.bitIndex___66709 = (0);
+ globals.TileWorldVersion___63662 = ("4.0.0");
+ globals.toHex___68546 = ("0123456789abcdef");
+ globals.VersionKey___68391 = ("VersionS");
+ globals.HelpKey___68339 = ("HelpN");
+ globals.BackImgCntKey___68409 = ("BackN");
+ globals.SpriteImgCntKey___68418 = ("SpriteN");
+ globals.PlayerIndexKey___68427 = ("PlayerN");
+ globals.WorldBackgroundsKey___68314 = ("WBackM");
+ globals.WorldSpritesKey___68328 = ("WSpriteM");
+ globals.BackImageKey___68699 = ("BackI");
+ globals.SpriteImageKey___68701 = ("SpriteI");
+ globals.RuleKey___68296 = ("RuleB");
+ globals.HighScoreKey___68355 = ("HighN");
+ r0 = pxsim.image.ofBuffer(_hex69178);
+ globals.map___63709 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69180);
+ globals.play___63710 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69182);
+ globals.debug___63711 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69184);
+ globals.code___63712 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69186);
+ globals.paint___63713 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69188);
+ globals.music___63714 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69190);
+ globals.garbageCan___63715 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69192);
+ globals.settingsIcon___63716 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69194);
+ globals.addRule___63717 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69196);
+ globals.emptyTile___63718 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69198);
+ globals.emptyDiagTile___63719 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69200);
+ globals.cursorIn___63720 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69202);
+ globals.cursorOut___63721 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69204);
+ globals.collisionSprite___63722 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69206);
+ globals.genericSprite___63723 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69208);
+ globals.exclude___63724 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69210);
+ globals.include___63725 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69212);
+ globals.include2___63726 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69214);
+ globals.ok___63727 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69216);
+ globals.anyOutline___63728 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69218);
+ globals.allFourOutline___63729 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69220);
+ globals.restingOutline___63730 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69222);
+ globals.downArrowOutline___63731 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69224);
+ globals.upArrowOutline___63732 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69226);
+ globals.rightArrowOutline___63733 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69228);
+ globals.leftArrowOutline___63734 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69230);
+ globals.leftButton___63735 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69232);
+ globals.rightButton___63736 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69234);
+ globals.downButton___63737 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69236);
+ globals.upButton___63738 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69238);
+ globals.AButton___63739 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69240);
+ globals.flipHoriz___63740 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69242);
+ globals.flipVert___63741 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69244);
+ globals.rotate3way___63742 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69246);
+ globals.leftRotate___63743 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69248);
+ globals.rightRotate___63744 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69250);
+ globals.allFour___63745 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69252);
+ globals.downArrow___63746 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69254);
+ globals.upArrow___63747 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69256);
+ globals.rightArrow___63748 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69258);
+ globals.leftArrow___63749 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69260);
+ globals.eat___63750 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69262);
+ globals.stopSign___63751 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69264);
+ globals.uTurn___63752 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69266);
+ globals.spawn___63753 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69268);
+ globals.smallPaint___63754 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69270);
+ globals.portal___63755 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69272);
+ globals.gameIcon___63756 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69274);
+ globals.trophyUp___63757 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69276);
+ globals.trophyDown___63758 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69278);
+ globals.scoreUp10___63759 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69280);
+ globals.diskIcon___63760 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69282);
+ globals.reset___63761 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69284);
+ globals.negate___63762 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69286);
+ globals.twCursor___69287 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69289);
+ globals.apple___69290 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69292);
+ globals.snakeHead___63763 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69294);
+ globals.snakeBody___69295 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69297);
+ globals.ship___69298 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69300);
+ globals.alien___69301 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69303);
+ globals.missile___69304 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69306);
+ globals.cat___69307 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69309);
+ globals.fish___69310 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69312);
+ globals.dog___63764 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69314);
+ globals.chimp___69315 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69143);
+ globals.player___63765 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69318);
+ globals.diamond___69319 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69321);
+ globals.boulder___69322 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69324);
+ globals.enemy___63766 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69127);
+ globals.brick___69126 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69327);
+ globals.grass___69328 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69330);
+ globals.water___69331 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69333);
+ globals.dirt2___69334 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69336);
+ globals.wall___69337 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69339);
+ globals.wall2___69340 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69342);
+ globals.dirt___69343 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex69345);
+ globals.space___69346 = (r0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.player___3768);
- r0 = pxsim_Array__push(s.tmp_0, globals.ship___9302);
- r0 = pxsim_Array__push(s.tmp_0, globals.snakeHead___3766);
- r0 = pxsim_Array__push(s.tmp_0, globals.diamond___9323);
- r0 = pxsim_Array__push(s.tmp_0, globals.alien___9305);
- r0 = pxsim_Array__push(s.tmp_0, globals.missile___9308);
- r0 = pxsim_Array__push(s.tmp_0, globals.twCursor___9291);
- r0 = pxsim_Array__push(s.tmp_0, globals.boulder___9326);
- r0 = pxsim_Array__push(s.tmp_0, globals.enemy___3769);
- r0 = pxsim_Array__push(s.tmp_0, globals.apple___9294);
- r0 = pxsim_Array__push(s.tmp_0, globals.snakeBody___9299);
- globals.gallerySprites___3770 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.player___63765);
+ r0 = pxsim_Array__push(s.tmp_0, globals.ship___69298);
+ r0 = pxsim_Array__push(s.tmp_0, globals.snakeHead___63763);
+ r0 = pxsim_Array__push(s.tmp_0, globals.diamond___69319);
+ r0 = pxsim_Array__push(s.tmp_0, globals.alien___69301);
+ r0 = pxsim_Array__push(s.tmp_0, globals.missile___69304);
+ r0 = pxsim_Array__push(s.tmp_0, globals.twCursor___69287);
+ r0 = pxsim_Array__push(s.tmp_0, globals.boulder___69322);
+ r0 = pxsim_Array__push(s.tmp_0, globals.enemy___63766);
+ r0 = pxsim_Array__push(s.tmp_0, globals.apple___69290);
+ r0 = pxsim_Array__push(s.tmp_0, globals.snakeBody___69295);
+ globals.gallerySprites___63767 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.brick___9130);
- r0 = pxsim_Array__push(s.tmp_0, globals.grass___9332);
- r0 = pxsim_Array__push(s.tmp_0, globals.water___9335);
- r0 = pxsim_Array__push(s.tmp_0, globals.dirt___9347);
- r0 = pxsim_Array__push(s.tmp_0, globals.dirt2___9338);
- r0 = pxsim_Array__push(s.tmp_0, globals.space___9350);
- r0 = pxsim_Array__push(s.tmp_0, globals.wall___9341);
- globals.galleryTiles___3771 = (s.tmp_0);
- r0 = pxsim.image.ofBuffer(_hex11893);
- globals.colorOut___11894 = (r0);
- r0 = pxsim.image.ofBuffer(_hex11896);
- globals.colorIn___11897 = (r0);
- r0 = pxsim.image.ofBuffer(_hex11899);
- globals.paintOut___11900 = (r0);
- r0 = pxsim.image.ofBuffer(_hex11902);
- globals.paintIn___11903 = (r0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.brick___69126);
+ r0 = pxsim_Array__push(s.tmp_0, globals.grass___69328);
+ r0 = pxsim_Array__push(s.tmp_0, globals.water___69331);
+ r0 = pxsim_Array__push(s.tmp_0, globals.dirt___69343);
+ r0 = pxsim_Array__push(s.tmp_0, globals.dirt2___69334);
+ r0 = pxsim_Array__push(s.tmp_0, globals.space___69346);
+ r0 = pxsim_Array__push(s.tmp_0, globals.wall___69337);
+ globals.galleryTiles___63768 = (s.tmp_0);
+ r0 = pxsim.image.ofBuffer(_hex71885);
+ globals.colorOut___71886 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex71888);
+ globals.colorIn___71889 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex71891);
+ globals.paintOut___71892 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex71894);
+ globals.paintIn___71895 = (r0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.leftArrow___3752);
- r0 = pxsim_Array__push(s.tmp_0, globals.upArrow___3750);
- r0 = pxsim_Array__push(s.tmp_0, globals.rightArrow___3751);
- r0 = pxsim_Array__push(s.tmp_0, globals.downArrow___3749);
- r0 = pxsim_Array__push(s.tmp_0, globals.stopSign___3754);
- r0 = pxsim_Array__push(s.tmp_0, globals.uTurn___3755);
- globals.moveImages___3788 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.leftArrow___63749);
+ r0 = pxsim_Array__push(s.tmp_0, globals.upArrow___63747);
+ r0 = pxsim_Array__push(s.tmp_0, globals.rightArrow___63748);
+ r0 = pxsim_Array__push(s.tmp_0, globals.downArrow___63746);
+ r0 = pxsim_Array__push(s.tmp_0, globals.stopSign___63751);
+ r0 = pxsim_Array__push(s.tmp_0, globals.uTurn___63752);
+ globals.moveImages___63785 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.leftArrowOutline___3737);
- r0 = pxsim_Array__push(s.tmp_0, globals.upArrowOutline___3735);
- r0 = pxsim_Array__push(s.tmp_0, globals.rightArrowOutline___3736);
- r0 = pxsim_Array__push(s.tmp_0, globals.downArrowOutline___3734);
- r0 = pxsim_Array__push(s.tmp_0, globals.restingOutline___3733);
- r0 = pxsim_Array__push(s.tmp_0, globals.allFourOutline___3732);
- r0 = pxsim_Array__push(s.tmp_0, globals.anyOutline___3731);
- globals.movedImages___3789 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.leftArrowOutline___63734);
+ r0 = pxsim_Array__push(s.tmp_0, globals.upArrowOutline___63732);
+ r0 = pxsim_Array__push(s.tmp_0, globals.rightArrowOutline___63733);
+ r0 = pxsim_Array__push(s.tmp_0, globals.downArrowOutline___63731);
+ r0 = pxsim_Array__push(s.tmp_0, globals.restingOutline___63730);
+ r0 = pxsim_Array__push(s.tmp_0, globals.allFourOutline___63729);
+ r0 = pxsim_Array__push(s.tmp_0, globals.anyOutline___63728);
+ globals.movedImages___63786 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
r0 = pxsim_Array__push(s.tmp_0, "left");
@@ -1257,41 +1261,41 @@ switch (step) {
r0 = pxsim_Array__push(s.tmp_0, "down");
r0 = pxsim_Array__push(s.tmp_0, "stop");
r0 = pxsim_Array__push(s.tmp_0, "u-turn");
- globals.moveText___3790 = (s.tmp_0);
+ globals.moveText___63787 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.leftButton___3738);
- r0 = pxsim_Array__push(s.tmp_0, globals.upButton___3741);
- r0 = pxsim_Array__push(s.tmp_0, globals.rightButton___3739);
- r0 = pxsim_Array__push(s.tmp_0, globals.downButton___3740);
- r0 = pxsim_Array__push(s.tmp_0, globals.AButton___3742);
- globals.buttonImages___3791 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.leftButton___63735);
+ r0 = pxsim_Array__push(s.tmp_0, globals.upButton___63738);
+ r0 = pxsim_Array__push(s.tmp_0, globals.rightButton___63736);
+ r0 = pxsim_Array__push(s.tmp_0, globals.downButton___63737);
+ r0 = pxsim_Array__push(s.tmp_0, globals.AButton___63739);
+ globals.buttonImages___63788 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
r0 = pxsim_Array__push(s.tmp_0, 1);
r0 = pxsim_Array__push(s.tmp_0, 2);
r0 = pxsim_Array__push(s.tmp_0, 3);
r0 = pxsim_Array__push(s.tmp_0, 0);
- globals.attrValues___3792 = (s.tmp_0);
+ globals.attrValues___63789 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.include___3728);
- r0 = pxsim_Array__push(s.tmp_0, globals.include2___3729);
- r0 = pxsim_Array__push(s.tmp_0, globals.exclude___3727);
- r0 = pxsim_Array__push(s.tmp_0, globals.ok___3730);
- globals.attrImages___3793 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.include___63725);
+ r0 = pxsim_Array__push(s.tmp_0, globals.include2___63726);
+ r0 = pxsim_Array__push(s.tmp_0, globals.exclude___63724);
+ r0 = pxsim_Array__push(s.tmp_0, globals.ok___63727);
+ globals.attrImages___63790 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.trophyUp___3760);
- r0 = pxsim_Array__push(s.tmp_0, globals.trophyDown___3761);
- r0 = pxsim_Array__push(s.tmp_0, globals.scoreUp10___3762);
- globals.gameImages___3794 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.trophyUp___63757);
+ r0 = pxsim_Array__push(s.tmp_0, globals.trophyDown___63758);
+ r0 = pxsim_Array__push(s.tmp_0, globals.scoreUp10___63759);
+ globals.gameImages___63791 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
r0 = pxsim_Array__push(s.tmp_0, "win");
r0 = pxsim_Array__push(s.tmp_0, "lose");
r0 = pxsim_Array__push(s.tmp_0, "score+10");
- globals.gameText___3795 = (s.tmp_0);
+ globals.gameText___63792 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
r0 = pxsim_Array__push(s.tmp_0, 0);
@@ -1300,28 +1304,28 @@ switch (step) {
r0 = pxsim_Array__push(s.tmp_0, 3);
r0 = pxsim_Array__push(s.tmp_0, 5);
r0 = pxsim_Array__push(s.tmp_0, 6);
- globals.transformMap___14209 = (s.tmp_0);
+ globals.transformMap___74201 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.include2___3729);
- r0 = pxsim_Array__push(s.tmp_0, globals.flipHoriz___3743);
- r0 = pxsim_Array__push(s.tmp_0, globals.flipVert___3744);
- r0 = pxsim_Array__push(s.tmp_0, globals.leftRotate___3746);
- r0 = pxsim_Array__push(s.tmp_0, globals.rightRotate___3747);
- r0 = pxsim_Array__push(s.tmp_0, globals.rotate3way___3745);
- globals.transformImages___14212 = (s.tmp_0);
- globals.helpStringTop___14381 = ("31any,21moved left,41moved right,30moved up,32moved down,22rested,42moved,61dpad left,81dpad right,70dpad up,72dpad down,71A button,");
- globals.helpStringBot___14383 = ("25collide left,34collide up,36collide down,45collide right,64never,");
+ r0 = pxsim_Array__push(s.tmp_0, globals.include2___63726);
+ r0 = pxsim_Array__push(s.tmp_0, globals.flipHoriz___63740);
+ r0 = pxsim_Array__push(s.tmp_0, globals.flipVert___63741);
+ r0 = pxsim_Array__push(s.tmp_0, globals.leftRotate___63743);
+ r0 = pxsim_Array__push(s.tmp_0, globals.rightRotate___63744);
+ r0 = pxsim_Array__push(s.tmp_0, globals.rotate3way___63742);
+ globals.transformImages___74204 = (s.tmp_0);
+ globals.helpStringTop___74373 = ("41any,31moved left,51moved right,40moved up,42moved down,32rested,52moved,71dpad left,91dpad right,80dpad up,82dpad down,81A button,");
+ globals.helpStringBot___74375 = ("35smash left,44smash up,46smash down,55smash right,74never,");
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.allFour___3748);
- r0 = pxsim_Array__push(s.tmp_0, globals.paint___3716);
- r0 = pxsim_Array__push(s.tmp_0, globals.spawn___3756);
- r0 = pxsim_Array__push(s.tmp_0, globals.eat___3753);
- r0 = pxsim_Array__push(s.tmp_0, globals.gameIcon___3759);
- r0 = pxsim_Array__push(s.tmp_0, globals.portal___3758);
- r0 = pxsim_Array__push(s.tmp_0, globals.exclude___3727);
- globals.categoryImages___15105 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.tmp_0, globals.allFour___63745);
+ r0 = pxsim_Array__push(s.tmp_0, globals.paint___63713);
+ r0 = pxsim_Array__push(s.tmp_0, globals.spawn___63753);
+ r0 = pxsim_Array__push(s.tmp_0, globals.eat___63750);
+ r0 = pxsim_Array__push(s.tmp_0, globals.gameIcon___63756);
+ r0 = pxsim_Array__push(s.tmp_0, globals.portal___63755);
+ r0 = pxsim_Array__push(s.tmp_0, globals.exclude___63724);
+ globals.categoryImages___75097 = (s.tmp_0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
r0 = pxsim_Array__push(s.tmp_0, "move");
@@ -1331,80 +1335,70 @@ switch (step) {
r0 = pxsim_Array__push(s.tmp_0, "game");
r0 = pxsim_Array__push(s.tmp_0, "portal");
r0 = pxsim_Array__push(s.tmp_0, "block");
- globals.categoryText___15113 = (s.tmp_0);
- globals.menuHelpString___15115 = ("10map,20play,30debug,50generalize rule,60delete rule,80add rule,90next rule,70previous rule,");
- globals.attrHelpString___15117 = ("00include,10exclude,90reset,");
- r0 = pxsim.image.ofBuffer(_hex16556);
- globals.paintOut___16557 = (r0);
- r0 = pxsim.image.ofBuffer(_hex16559);
- globals.paintIn___16560 = (r0);
- globals.helpString___17516 = ("00map,10paint,20code,30play,90settings,");
+ globals.categoryText___75105 = (s.tmp_0);
+ globals.menuHelpString___75107 = ("10map,20play,50generalize rule,60delete rule,80add rule,90next rule,70previous rule,");
+ globals.attrHelpString___75109 = ("00include,10exclude,90reset,");
+ r0 = pxsim.image.ofBuffer(_hex76544);
+ globals.paintOut___76545 = (r0);
+ r0 = pxsim.image.ofBuffer(_hex76547);
+ globals.paintIn___76548 = (r0);
+ globals.helpString___77504 = ("00map,10paint,20code,30play,90settings,");
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, globals.map___3712);
- r0 = pxsim_Array__push(s.tmp_0, globals.paint___3716);
- r0 = pxsim_Array__push(s.tmp_0, globals.code___3715);
- r0 = pxsim_Array__push(s.tmp_0, globals.play___3713);
- globals.commandImages___17519 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_LoadScreen__C3832_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_LoadScreen_constructor__P3833_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 1473; s.pc = 34; return s.tmp_1;
- case 34:
- r0 = s.retval;
- globals.TileWorld___3834 = (s.tmp_0);
- s.tmp_0 = createBejeweled__P3837_mk(s);
+ r0 = pxsim_Array__push(s.tmp_0, globals.map___63709);
+ r0 = pxsim_Array__push(s.tmp_0, globals.paint___63713);
+ r0 = pxsim_Array__push(s.tmp_0, globals.code___63712);
+ r0 = pxsim_Array__push(s.tmp_0, globals.play___63710);
+ globals.commandImages___77507 = (s.tmp_0);
+ s.tmp_0 = createHelloWorld__P63840_mk(s);
s.tmp_0.arg0 = "TW1-";
s.callLocIdx = 1474; s.pc = 35; return s.tmp_0;
case 35:
r0 = s.retval;
- s.tmp_0 = createSnake__P3836_mk(s);
- s.tmp_0.arg0 = "TW2-";
+ s.tmp_0 = createBejeweled__P63834_mk(s);
+ s.tmp_0.arg0 = "TW4-";
s.callLocIdx = 1475; s.pc = 36; return s.tmp_0;
case 36:
r0 = s.retval;
- s.tmp_0 = createBoulderDash__P3835_mk(s);
- s.tmp_0.arg0 = "TW3-";
+ s.tmp_0 = createSnake__P63833_mk(s);
+ s.tmp_0.arg0 = "TW5-";
s.callLocIdx = 1476; s.pc = 37; return s.tmp_0;
case 37:
r0 = s.retval;
- s.tmp_0 = createLeftHandRule__P3838_mk(s);
- s.tmp_0.arg0 = "TW4-";
+ s.tmp_0 = createBoulderDash__P63832_mk(s);
+ s.tmp_0.arg0 = "TW6-";
s.callLocIdx = 1477; s.pc = 38; return s.tmp_0;
case 38:
r0 = s.retval;
- s.tmp_0 = createHelloWorld__P3843_mk(s);
- s.tmp_0.arg0 = "TW5-";
+ s.tmp_0 = createSokoban__P63839_mk(s);
+ s.tmp_0.arg0 = "TW7-";
s.callLocIdx = 1478; s.pc = 39; return s.tmp_0;
case 39:
r0 = s.retval;
- s.tmp_0 = createSpaceInvaders__P3841_mk(s);
- s.tmp_0.arg0 = "TW6-";
+ s.tmp_0 = createPacMan__P63837_mk(s);
+ s.tmp_0.arg0 = "TW8-";
s.callLocIdx = 1479; s.pc = 40; return s.tmp_0;
case 40:
r0 = s.retval;
- s.tmp_0 = createSokoban__P3842_mk(s);
- s.tmp_0.arg0 = "TW7-";
- s.callLocIdx = 1480; s.pc = 41; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_LoadScreen__C63829_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_LoadScreen_constructor__P63830_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 1704; s.pc = 41; return s.tmp_1;
case 41:
r0 = s.retval;
- s.tmp_0 = createPacMan__P3840_mk(s);
- s.tmp_0.arg0 = "TW8-";
- s.callLocIdx = 1481; s.pc = 42; return s.tmp_0;
- case 42:
- r0 = s.retval;
+ globals.TileWorld___63831 = (s.tmp_0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-_main___P35666.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"","argumentNames":[]}
-_main___P35666.continuations = [ ]
+_main___P93466.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"","argumentNames":[]}
+_main___P93466.continuations = [ ]
-function _main___P35666_mk(s) {
+function _main___P93466_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: _main___P35666, depth: s.depth + 1,
+ parent: s, fn: _main___P93466, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -1414,109 +1408,109 @@ function _main___P35666_mk(s) {
tmp_5: undefined,
} }
-const _hex22110 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800")
-const _hex22112 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000")
-const _hex27801 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000")
-const _hex4050 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000")
-const _hex4545 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000")
-const _hex4547 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000")
-const _hex4549 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000")
-const _hex4551 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4553 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4555 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4557 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4559 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4561 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4563 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex4565 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9182 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000222202000000002022222202000000221221222202000022111122222200002211112222220000221111222222000022122122220200002022222202000000002222020000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9184 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000070777777770000007077777777000000007777770700000000777777070000000070777700000000007077770000000000007707000000000000770700000000000070000000000000007000000000000000000000000000000000000000000000000000000000")
-const _hex9186 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002002200022000000000220000200000000e0eeee0e000000212e2222e2000010212e2f2f2f000022222e222222000022222e222222000010212e2f2f2f000000212e2222e200000000e0eeee0e000000000220000200000020022000220000000000000000000000000000000000")
-const _hex9188 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000100000000000000001010000000000100010000000000001000001000000000000000000000000000090110000000000901100000000009011000000000090110000000000000000000000000000000100000100000000100010000000000000010100000000000010000000000000000000000000")
-const _hex9190 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000004411d90d000000001111e90e000000004411e9dedddd00001111e9eeeeef00004411e9eeeeef00001111e9eeeeee00004411e90e000000001111e90e0000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9192 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000900900000000000099990000000000009999000000000000999900000000000099990090999999999909000099000000000000009009000000000000009900000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9194 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000b00000000000000bb00000000000000bbbbbbbb0b0000b0bbccccccbc0000bbbbbbbbbbbb00000bbbccccccbc00000bbbbbbbbbbb00000bbbccccccbc0000bbbbbbbbbbbb0000b0bbccccccbc000000bbbbbbbb0b000000bb000000000000000b00000000000000000000000000")
-const _hex9196 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000010010000000000911001190000001011111111010000901191191109000000110990110000001191000019110000119100001911000000110990110000009011911911090000101111111101000000911001190000000000100100000000000000000000000000000000000000")
-const _hex9198 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000007007000000000000700700000000000070070000000000007007000000007077777777070000707777777707000000007007000000000000700700000000000070070000000000007007000000000000000000000000000000000000000000000000000000")
-const _hex9200 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcfcccccccccccccccc")
-const _hex9202 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffcfccfbffffffffffcccffbffffffffcffccffbffffffffccffcffbffffffcffcffcffbffffffccffffcffbffffcffcffffcffbffffccffffffcffbffcffcffffffcffbffccffffffffcffbcffcffffffffcffbccffffffffffcfcbfcffffffffffcfcbffffffffffffcfcccccccccccccccc")
-const _hex9204 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000001111111111110010010000000010011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100100000000100100111111111111000000000000000000")
-const _hex9206 = pxsim.BufferMethods.createBufferFromHex("87041000100000001011111111111101110000000000001101000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001011000000000000111011111111111101")
-const _hex9208 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f022220f000000002f2222f2000000002f2222f2000000002f2222f2000000002f2222f200000000f022220f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9210 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f0bbbb0f00000000bffffffb00000000bffffffb00000000bffffffb00000000bffffffb00000000f0bbbb0f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9212 = pxsim.BufferMethods.createBufferFromHex("8704080008000000f022220f2ff22ff22222ff22f222f22ff22f222f22ff22222ff22ff2f022220f")
-const _hex9214 = pxsim.BufferMethods.createBufferFromHex("8704080008000000007ff70000f0770f00007ff70000f07700f07ff7f07f770f7f77ff0077ff0000")
-const _hex9216 = pxsim.BufferMethods.createBufferFromHex("870408000800000000ffff00f055550f5f5555f55f5555f55f5555f55f5555f5f055550f00ffff00")
-const _hex9218 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9220 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000f000f00000000f0f1f0f100000000001f1fff0f0000001f1111110f000000001f1fff0f000000f0f1f0f100000000000f000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9222 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f90000000000f0f9f900000000f0fff9f9ff0000009f990090990f00f099ff00f09ff900009f990090990f0000f0fff9f9ff00000000f0f9f90000000000f099f90000000000009f0f000000000000f00000000000000000000000000000000000000000")
-const _hex9224 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9226 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000ff0f0000000000009ff90000000000ff9f9f0f000000009f99fff9000000009fffff9f0f0000009fffff9f0f0000009f99fff900000000ff9f9f0f00000000009ff9000000000000ff0f0000000000000000000000000000000000000000000000000000")
-const _hex9228 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f0ff0000000000009ff90000000000f0f9f9ff000000009fff99f9000000f0f9fffff9000000f0f9fffff9000000009fff99f900000000f0f9f9ff00000000009ff9000000000000f0ff00000000000000000000000000000000000000000000000000000000")
-const _hex9230 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0f00000000f099990f000000f0fff99fff0f0000f099f99f990f0000f0f9ffff9f0f0000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000")
-const _hex9232 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000f0f9ffff9f0f0000f099f99f990f0000f0fff99fff0f000000f099990f00000000f0ffff0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9234 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671176666080066167777616608006671777717660800661671176166080066667117666608006666711766660800606611116686000060666666668600000060666686080000000000000000000000000000000000")
-const _hex9236 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066111166860000666671176666080066667117666608006611711711660800667177771766080066167777616608006666711766660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
-const _hex9238 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666616176666080066111177616608006671777717660800667177771766080066111177616608006666161766660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
-const _hex9240 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671616666080066167711116608006671777717660800667177771766080066167711116608006666716166660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
-const _hex9242 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066666666860000666611116166080066167777676608006671666766660800667766676666080066761117616608006666777767660800606666666686000060666666668600000060666686080000000000000000000000000000000000")
-const _hex9244 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000bb0b00000000b0bbbb0b000000bbbb8bbb0b00b0bbbbbb88b80bb0bbbbbb8b88880bb0bbbbbbbb8bbb0b000000000080000000000000008000009099999999899909909999998988880900909999998898090000009999899909000000009099990900000000000099090000000000000000")
-const _hex9246 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000009009b00b000000009009b00b000000009909b0bb000000009909b0bb000000009909b0bb000000909909b0bb0b0000909909b0bb0b0000909909b0bb0b0000998909b0b8bb0000998809b088bb00008988888888b80090998809b088bb0b90998909b0b8bb0b90999909b0bbbb0b0000000000000000")
-const _hex9248 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000900000000000500099060000000050909969000000000000999606000000000090600900000000000000000000000000000000005500000000100100000000000000000090000000000000009909000090600990999900009996060096065090996900006069500099060000009600009000000000000000000000")
-const _hex9250 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000090990000000000009999090060090000006900006009000000690000600900000090666696000000000099990900000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9252 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000909999000000000069666609000000900600009600000090000000960000909999000096000000990900000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9254 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000900000000000000099090000000000909999000000000000990900000000900099099000000099999999990900909999999999990000999999999909000090009909900000000000990900000000009099990000000000009909000000000000900000000000000000000000000000000000000000")
-const _hex9256 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000f00f000000000000f0f900000000ffffff990f0000009f999999f90000009f999999990f00009f999999f9000000ffffff990f0000000000f0f9000000000000f00f00000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9258 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f00f0000000000009f0f0000000000f099ffffff0000009f999999f90000f099999999f90000009f999999f9000000f099ffffff000000009f0f000000000000f00f000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9260 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0000000000f099f90000000000f099f90000000000f099f90000000000f099f900000000f0ff99f9ff000000f0999999f9000000009f99990f00000000f099f90000000000009f0f000000000000f0000000000000000000000000")
-const _hex9262 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f900000000009f99990f000000f0999999f9000000f0ff99f9ff00000000f099f90000000000f099f90000000000f099f90000000000f099f90000000000f0ffff0000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9264 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000f0000f0000000f0f500005f0f00005ff500005ff500f055550ff055550ff055550ff055550ff05555f55f55550ff05555555555550ff05555555555550ff05555555555550f005f55555555f50000f0555555550f0000005f5555f500000000f0ffff0f00000000000000000000")
-const _hex9266 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000010111101000000002122221200000010222222220100002122222222120010221221222122011022211222122201102221122212220110222112221222011022211222122201102212221121220100212222222212000010222222220100000021222212000000001011110100000000000000000000")
-const _hex9268 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0555555550f00005f5555f555f500f0555555f5ff550f5f55f5ffffff5ff55555ffffffff5f5555f5ff55f5ff555555ff5f55f555555555ff55555555555555ff55555555555555ff5f555555555555f5ff55555555555555ffffffff5f555f55f5ffffff5ff5f05555555555550f005f55555555f50000f0555555550f00")
-const _hex9270 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0ff000000000000f0f7000000000000f0f70000000000fffff7ff0f0000007f7777770f000000fffff7ff0f00000000f0f7000000000000f0f7000000000000f0ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9272 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000f0ffff0f00000000f04491ff0f000000f01191ee0f000000f04491ee0f000000f01191ff0f000000f0ffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9274 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ffff0f00000000f05555f5000000005fffff5f0f0000005f5f555f0f0000005f5f5f5f0f0000005f5f555f0f0000005fff5f5f0f000000f05555ff0000000000ffff0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9276 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000007f77770f000000f0777777f70000007077ff7f7700000070f7ffff7700000070f77fff7700000070f77fff77000000f0f77f77f755000000ffff770f0005050000000055555505000000005555550500000000555555050000000055555505000000000500050500000000505500000000000000000000")
-const _hex9278 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000055050000000000040550000000000045050005000000005544444400400000555555550454000055655556455500005555556545550000555555654555000055655556455500005555555501510000551511110010000015050005000000000105500000000000005505000000000000000000000000")
-const _hex9280 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000005055000000000000055010000000005000505100000100111151550000151055555555000055542555255500005554555552550000555455555255000055542555255500004540555555550000040044444455000000005000505400000000000550400000000000505500000000000000000000")
-const _hex9282 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ff0f0000000000009f0f0000000000ff9fff1f111111019f99991f11111101ff9fff1ff111f101009f0f10ffffff0100ff0f101111f1010000001011111101000000101111110100000010f1ff1f01000000101f11f101000000101f11f10100000010f1ff1f01000000101111110100000010111111010000000000000000")
-const _hex9284 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000111111111101000061666666661100001111616666160000616661161111000061666116661600006166611666160000616661166616000061666116661600006166611611110000111161666616000061666666661600001111111111110000000000000000000000000000000000")
-const _hex9286 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000010000000000000019000000000000001901000000001011111100000000919919019001000091001900900100009100010090010000910000009001000091000000900100009100000090010000109999991900000000111111010000000000000000000000000000000000000000000000000000")
-const _hex9288 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002022222200000000222222220200002022111121220000221211112222020022111121222102002211112212210200221121221121020022112212112102002221221111210200222212111122020020221111212200000022222222020000002022222200000000000000000000")
-const _hex9290 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000000000000000000000f0ffffff000000005f5555550f0000f055555555f50000f055f5ff55f50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f055f5ff55f50000f055555555f50000005f5555550f000000f0ffffff000000000000000000000000000000000000")
-const _hex9293 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cccc0c000000c0eceeeeee020000eceeeeeeee2e0000eeee2222e2ee02e0ee2e222222e202e0ee22222222222ee0ee2e222222222ececc2c22222222e47c672c22222222e477ee2222222222e4e0e24422222242e2e02255242222420e002e54242222240e002e22222244e20000e02e2222e20e000000e0eeee0e0000")
-const _hex9296 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000c0ff0000c0fc0f001c610f006c77f7c01711c6c0776c777f1711c16c77f6772c1211c17c7766777c7711c17c7766777c6716c17c77f6677cfc66c17c776cc767cf6cc16c777777c7cc66c6c0777777f66666c6006c77677f6766f600c0fcff7767c60f000000c077c6ff00000000007c0c000000000000c00c0000")
-const _hex9298 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000ccff0000000000c07677cc000000007cc76cc1000000c07667fccc000000c0776766cf000000c0776766cf000000c07767fcc1000000c077c76ccc0000cccc767777c700c06c667c7777c600c07766cc7677cf007c776666ccffc6007cc7cc666666c6007c0cc06666660c006c0c00cc66660c00cc0000c0cccc00")
-const _hex9301 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000cc000000000000c0cc000000000000cccc000000000000cfcc0000000000e0cfcc0000000000ecefcc00000000ee2cecee000000e02e2c2cee00000020442e2e2200000000ee4e2e220000000000ee2f220000000000e04f240000000000002e42000000000000ee22000000000000e0ee00000000000000ee00")
-const _hex9304 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000c0b1000000ffff0f1ffb0000ffddbdfc1fb100f01b11ddbd1ffb00f01111bd1cccf1001f1111f11fbd0f001f1111d111fb00001f1111d111b100001f1111f11ffb0f00f01111bd1ccdb100f01b11ddbd1ffb0000ffddbdfc1fb1000000ffff0f1ffb000000000000cfb1000000000000000000")
-const _hex9307 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500050000000000045054505000000500454045400000040004000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
-const _hex9310 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000e0ccfceeff000000e0bdb3ddbdffff0fe0dd3bfdddb2dd0f00dcdddddfd2fd0000f0ddddbdd2fd0000f0dbddbdd2fd0f00dcdddddfd2dd0fe0dd3bfdddd2fb00e0bdb3dd2ddbfd00e0ccfceeffbbdd0f0000000000bfff0f000000b0ffdf0f00000000f0ddbd0f00000000b0ffff00000000000000000000")
-const _hex9313 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000ff0f0000000000c044f400000000004c44440f000000c04444440f0000004c44f444f40000c0dc444444fd0000cc44111111440f00cc4444c4c4440fc0cd4444c4444f0fc0cd444444ff4f0fc0cd4d444444c4cdc0dd1c4d44d4dccd00cccc1111fdbfcd000000ccf4ffcc0c0000c04444f400000000c0ccffff0000")
-const _hex9316 = pxsim.BufferMethods.createBufferFromHex("87041000100000000040e400000000000054550e00000000405545eeff0000004055445545ffff0f405554f55546550f005e55555556f50000e05555f456f50000e05555f456f50f005e55555556550f405554f55556f400405544556554f500405545eeff44550f0054550e004fff0f0040e400f0550f00000000005ff50000000000f0ff000000")
-const _hex9318 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cc0000000000c0dccd0f00000000dfedcdfd000000f0fdefcdfdf0ff0fefddddcdfdefdefdefdddddcfdfebffdeffddfddfdfefffcefdeddddeeeedefdefeeeeeeeefebffdf0eeeeeeefeefefb00ffbdfbefeefefb00f0ddcdf0eeeefd0000cf0c00effeff000000f0ffff0f00000000efeefe0000000000ffff0f0000")
-const _hex9147 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f00000000f0fffffee0440000ffefefee4f4d00f0ff2effe4feff00f0eff2bfd12e42ffffe2f2fedf2442ff2fe3f24edd24520f2fe2f24edd24520fffe2f2fedf2442fff0eff2bfd12e42fff0ff2effe4feff0000ffeeefee4f4d0000f0fffffee04400000000f00f0000000000000000000000")
-const _hex9322 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000088990900000000808899990000000088889999090000808888999999000080888899999909008098889999999900809989999999990980991919111111018099111911111100801111191111010080111119111100000010111911010000001011191100000000001119010000000000000000000000")
-const _hex9325 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000cccc0000000000cccbcb0c00000000dcbbbccc000000ccdcbdbccc00c0ccbbbcddcccc00bcddbbcbddcbcc00dcddddbbdbcbcc0cdbddddbbdbcbbc0cdbddddbbdbbbbccbdbddddbddbdbbccbb0ddddbddbdbbccb00dbddbdbddbbccb00dbddbbbdbdbb0c00b0bbbbbbcdbb0c000000dbddcccb00000000b0cbbc0b00")
-const _hex9328 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000007777070000000070007077ff0f0000000000771cfd0000ffffffffcb0f00ffddddbdfc11fdf01b1111ddfdcb0ff0111111bdbc1cfd1f111111f1dfff0f1f111111d1b1ff0f1f111111d111ff0f1f111111f1bfff0ff0111111bddcff0ff01b1111ddfdff0000ffddddbdfc00000000ffffffcf000000000000cffb0000")
-const _hex9131 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbddddcddbddddcdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbbbccccccabccccccabdbddddcddbddddbdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbcbccccccabccccccab")
-const _hex9331 = pxsim.BufferMethods.createBufferFromHex("87041000100000007577777777777777777777777777777775776777577777577777557677777777777757657777777777577577777777777777557777777777777777557777777777775765777775777777577677775577777777777757577777777777775576777777757777657777777777777777777777777777777777777777777777777755")
-const _hex9334 = pxsim.BufferMethods.createBufferFromHex("87041000100000006766666666666666666666666666666667668666766666766666776866666666666676876666666666766766666666666666776666666666666666776666666666667687666667666666766866667766666666666676766666666666667768666666676666876666666666666666666666666666666666666666666666666677")
-const _hex9337 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd")
-const _hex9340 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddddddd8d6d668868868686866d866686868686866d688868868686868d86d888666686868d86dd8d666666868d86d888666666866d688868666666866d866686666666886d868686886886886d868686866886866d868686666886866d868686666886866d868686866886888d886888686666868888888888888888")
-const _hex9343 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccccc8cbcbb88b88b8b8b8bbc8bbb8b8b8b8b8bbcb888b88b8b8b8b8c8b6888bbbb8b8b8c8b6686bbbbbb8b8c8b6888bbbbbb8bbcb888b8bbbbbb8bbc8bbb8bbbbbbb88bc8b8b8b88b88b88bc8b8b8b8bb88b8bbc8b8b8bbbb88b8bbc8b8b8bbbb88b8bbc8b8b8b8bb88b888c88b888b8bbbb8b8888888888888888")
-const _hex9346 = pxsim.BufferMethods.createBufferFromHex("8704100010000000efeeeefefffeeffeee44e4feeeeefeee4e4444eeee44e4ef4e4444e44e4444feee4444e4444444e4ee4444e4444444e4ef4e44ee444444e4feeefefe4e4444fefeffefeeef44e4effeef4e44eeeefe4eeeef4444e4efef44e4ef4444e4fe4e44e4ef444444fe4e44e4ee444444feee44e4fe4e44eeeeee4eeeeeefeefeefefee")
-const _hex9349 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffccfcffffffffffcfccccffffccfcffcfccccfccfccccffffccccfcccccccfcffccccfcccccccfcffcfccffccccccfcffffffffcfccccffffffffffffccfcffffffcfccffffffcfffffccccfcffffccfcffccccfcffcfccfcffccccccffcfccfcffccccccffffccfcffcfccffffffcfffffffffffffffff")
-const _hex11893 = pxsim.BufferMethods.createBufferFromHex("87040800080000001111111101000010010000100100001001000010010000100100001011111111")
-const _hex11896 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000010111101100000011000000110000001100000011011110100000000")
-const _hex11899 = pxsim.BufferMethods.createBufferFromHex("8704060006000000111111000100100001001000010010000100100011111100")
-const _hex11902 = pxsim.BufferMethods.createBufferFromHex("8704060006000000000000001011010010000100100001001011010000000000")
-const _hex16556 = pxsim.BufferMethods.createBufferFromHex("87040800080000005555555505000050050000500500005005000050050000500500005055555555")
-const _hex16559 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000050555505500000055000000550000005500000055055550500000000")
-
-
-
-
-function inline__P4039(s) {
+const _hex82096 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800")
+const _hex82098 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000")
+const _hex87787 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000")
+const _hex64047 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000")
+const _hex64548 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000")
+const _hex64550 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000")
+const _hex64552 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000")
+const _hex64554 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64556 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64558 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64560 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64562 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64564 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64566 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex64568 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69178 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000222202000000002022222202000000221221222202000022111122222200002211112222220000221111222222000022122122220200002022222202000000002222020000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69180 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000070777777770000007077777777000000007777770700000000777777070000000070777700000000007077770000000000007707000000000000770700000000000070000000000000007000000000000000000000000000000000000000000000000000000000")
+const _hex69182 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002002200022000000000220000200000000e0eeee0e000000212e2222e2000010212e2f2f2f000022222e222222000022222e222222000010212e2f2f2f000000212e2222e200000000e0eeee0e000000000220000200000020022000220000000000000000000000000000000000")
+const _hex69184 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000100000000000000001010000000000100010000000000001000001000000000000000000000000000090110000000000901100000000009011000000000090110000000000000000000000000000000100000100000000100010000000000000010100000000000010000000000000000000000000")
+const _hex69186 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000004411d90d000000001111e90e000000004411e9dedddd00001111e9eeeeef00004411e9eeeeef00001111e9eeeeee00004411e90e000000001111e90e0000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69188 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000900900000000000099990000000000009999000000000000999900000000000099990090999999999909000099000000000000009009000000000000009900000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69190 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000b00000000000000bb00000000000000bbbbbbbb0b0000b0bbccccccbc0000bbbbbbbbbbbb00000bbbccccccbc00000bbbbbbbbbbb00000bbbccccccbc0000bbbbbbbbbbbb0000b0bbccccccbc000000bbbbbbbb0b000000bb000000000000000b00000000000000000000000000")
+const _hex69192 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000010010000000000911001190000001011111111010000901191191109000000110990110000001191000019110000119100001911000000110990110000009011911911090000101111111101000000911001190000000000100100000000000000000000000000000000000000")
+const _hex69194 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000007007000000000000700700000000000070070000000000007007000000007077777777070000707777777707000000007007000000000000700700000000000070070000000000007007000000000000000000000000000000000000000000000000000000")
+const _hex69196 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcfcccccccccccccccc")
+const _hex69198 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffcfccfbffffffffffcccffbffffffffcffccffbffffffffccffcffbffffffcffcffcffbffffffccffffcffbffffcffcffffcffbffffccffffffcffbffcffcffffffcffbffccffffffffcffbcffcffffffffcffbccffffffffffcfcbfcffffffffffcfcbffffffffffffcfcccccccccccccccc")
+const _hex69200 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000001111111111110010010000000010011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100100000000100100111111111111000000000000000000")
+const _hex69202 = pxsim.BufferMethods.createBufferFromHex("87041000100000001011111111111101110000000000001101000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001011000000000000111011111111111101")
+const _hex69204 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f022220f000000002f2222f2000000002f2222f2000000002f2222f2000000002f2222f200000000f022220f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69206 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f0bbbb0f00000000bffffffb00000000bffffffb00000000bffffffb00000000bffffffb00000000f0bbbb0f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69208 = pxsim.BufferMethods.createBufferFromHex("8704080008000000f022220f2ff22ff22222ff22f222f22ff22f222f22ff22222ff22ff2f022220f")
+const _hex69210 = pxsim.BufferMethods.createBufferFromHex("8704080008000000007ff70000f0770f00007ff70000f07700f07ff7f07f770f7f77ff0077ff0000")
+const _hex69212 = pxsim.BufferMethods.createBufferFromHex("870408000800000000ffff00f055550f5f5555f55f5555f55f5555f55f5555f5f055550f00ffff00")
+const _hex69214 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69216 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000f000f00000000f0f1f0f100000000001f1fff0f0000001f1111110f000000001f1fff0f000000f0f1f0f100000000000f000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69218 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f90000000000f0f9f900000000f0fff9f9ff0000009f990090990f00f099ff00f09ff900009f990090990f0000f0fff9f9ff00000000f0f9f90000000000f099f90000000000009f0f000000000000f00000000000000000000000000000000000000000")
+const _hex69220 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69222 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000ff0f0000000000009ff90000000000ff9f9f0f000000009f99fff9000000009fffff9f0f0000009fffff9f0f0000009f99fff900000000ff9f9f0f00000000009ff9000000000000ff0f0000000000000000000000000000000000000000000000000000")
+const _hex69224 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f0ff0000000000009ff90000000000f0f9f9ff000000009fff99f9000000f0f9fffff9000000f0f9fffff9000000009fff99f900000000f0f9f9ff00000000009ff9000000000000f0ff00000000000000000000000000000000000000000000000000000000")
+const _hex69226 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0f00000000f099990f000000f0fff99fff0f0000f099f99f990f0000f0f9ffff9f0f0000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000")
+const _hex69228 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000f0f9ffff9f0f0000f099f99f990f0000f0fff99fff0f000000f099990f00000000f0ffff0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69230 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671176666080066167777616608006671777717660800661671176166080066667117666608006666711766660800606611116686000060666666668600000060666686080000000000000000000000000000000000")
+const _hex69232 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066111166860000666671176666080066667117666608006611711711660800667177771766080066167777616608006666711766660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
+const _hex69234 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666616176666080066111177616608006671777717660800667177771766080066111177616608006666161766660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
+const _hex69236 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671616666080066167711116608006671777717660800667177771766080066167711116608006666716166660800606616616686000060666666668600000060666686080000000000000000000000000000000000")
+const _hex69238 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066666666860000666611116166080066167777676608006671666766660800667766676666080066761117616608006666777767660800606666666686000060666666668600000060666686080000000000000000000000000000000000")
+const _hex69240 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000bb0b00000000b0bbbb0b000000bbbb8bbb0b00b0bbbbbb88b80bb0bbbbbb8b88880bb0bbbbbbbb8bbb0b000000000080000000000000008000009099999999899909909999998988880900909999998898090000009999899909000000009099990900000000000099090000000000000000")
+const _hex69242 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000009009b00b000000009009b00b000000009909b0bb000000009909b0bb000000009909b0bb000000909909b0bb0b0000909909b0bb0b0000909909b0bb0b0000998909b0b8bb0000998809b088bb00008988888888b80090998809b088bb0b90998909b0b8bb0b90999909b0bbbb0b0000000000000000")
+const _hex69244 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000900000000000500099060000000050909969000000000000999606000000000090600900000000000000000000000000000000005500000000100100000000000000000090000000000000009909000090600990999900009996060096065090996900006069500099060000009600009000000000000000000000")
+const _hex69246 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000090990000000000009999090060090000006900006009000000690000600900000090666696000000000099990900000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69248 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000909999000000000069666609000000900600009600000090000000960000909999000096000000990900000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69250 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000900000000000000099090000000000909999000000000000990900000000900099099000000099999999990900909999999999990000999999999909000090009909900000000000990900000000009099990000000000009909000000000000900000000000000000000000000000000000000000")
+const _hex69252 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000f00f000000000000f0f900000000ffffff990f0000009f999999f90000009f999999990f00009f999999f9000000ffffff990f0000000000f0f9000000000000f00f00000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69254 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f00f0000000000009f0f0000000000f099ffffff0000009f999999f90000f099999999f90000009f999999f9000000f099ffffff000000009f0f000000000000f00f000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69256 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0000000000f099f90000000000f099f90000000000f099f90000000000f099f900000000f0ff99f9ff000000f0999999f9000000009f99990f00000000f099f90000000000009f0f000000000000f0000000000000000000000000")
+const _hex69258 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f900000000009f99990f000000f0999999f9000000f0ff99f9ff00000000f099f90000000000f099f90000000000f099f90000000000f099f90000000000f0ffff0000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69260 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000f0000f0000000f0f500005f0f00005ff500005ff500f055550ff055550ff055550ff055550ff05555f55f55550ff05555555555550ff05555555555550ff05555555555550f005f55555555f50000f0555555550f0000005f5555f500000000f0ffff0f00000000000000000000")
+const _hex69262 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000010111101000000002122221200000010222222220100002122222222120010221221222122011022211222122201102221122212220110222112221222011022211222122201102212221121220100212222222212000010222222220100000021222212000000001011110100000000000000000000")
+const _hex69264 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0555555550f00005f5555f555f500f0555555f5ff550f5f55f5ffffff5ff55555ffffffff5f5555f5ff55f5ff555555ff5f55f555555555ff55555555555555ff55555555555555ff5f555555555555f5ff55555555555555ffffffff5f555f55f5ffffff5ff5f05555555555550f005f55555555f50000f0555555550f00")
+const _hex69266 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0ff000000000000f0f7000000000000f0f70000000000fffff7ff0f0000007f7777770f000000fffff7ff0f00000000f0f7000000000000f0f7000000000000f0ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69268 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000f0ffff0f00000000f04491ff0f000000f01191ee0f000000f04491ee0f000000f01191ff0f000000f0ffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69270 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ffff0f00000000f05555f5000000005fffff5f0f0000005f5f555f0f0000005f5f5f5f0f0000005f5f555f0f0000005fff5f5f0f000000f05555ff0000000000ffff0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69272 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000007f77770f000000f0777777f70000007077ff7f7700000070f7ffff7700000070f77fff7700000070f77fff77000000f0f77f77f755000000ffff770f0005050000000055555505000000005555550500000000555555050000000055555505000000000500050500000000505500000000000000000000")
+const _hex69274 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000055050000000000040550000000000045050005000000005544444400400000555555550454000055655556455500005555556545550000555555654555000055655556455500005555555501510000551511110010000015050005000000000105500000000000005505000000000000000000000000")
+const _hex69276 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000005055000000000000055010000000005000505100000100111151550000151055555555000055542555255500005554555552550000555455555255000055542555255500004540555555550000040044444455000000005000505400000000000550400000000000505500000000000000000000")
+const _hex69278 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ff0f0000000000009f0f0000000000ff9fff1f111111019f99991f11111101ff9fff1ff111f101009f0f10ffffff0100ff0f101111f1010000001011111101000000101111110100000010f1ff1f01000000101f11f101000000101f11f10100000010f1ff1f01000000101111110100000010111111010000000000000000")
+const _hex69280 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000111111111101000061666666661100001111616666160000616661161111000061666116661600006166611666160000616661166616000061666116661600006166611611110000111161666616000061666666661600001111111111110000000000000000000000000000000000")
+const _hex69282 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000010000000000000019000000000000001901000000001011111100000000919919019001000091001900900100009100010090010000910000009001000091000000900100009100000090010000109999991900000000111111010000000000000000000000000000000000000000000000000000")
+const _hex69284 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002022222200000000222222220200002022111121220000221211112222020022111121222102002211112212210200221121221121020022112212112102002221221111210200222212111122020020221111212200000022222222020000002022222200000000000000000000")
+const _hex69286 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000000000000000000000f0ffffff000000005f5555550f0000f055555555f50000f055f5ff55f50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f055f5ff55f50000f055555555f50000005f5555550f000000f0ffffff000000000000000000000000000000000000")
+const _hex69289 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cccc0c000000c0eceeeeee020000eceeeeeeee2e0000eeee2222e2ee02e0ee2e222222e202e0ee22222222222ee0ee2e222222222ececc2c22222222e47c672c22222222e477ee2222222222e4e0e24422222242e2e02255242222420e002e54242222240e002e22222244e20000e02e2222e20e000000e0eeee0e0000")
+const _hex69292 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000c0ff0000c0fc0f001c610f006c77f7c01711c6c0776c777f1711c16c77f6772c1211c17c7766777c7711c17c7766777c6716c17c77f6677cfc66c17c776cc767cf6cc16c777777c7cc66c6c0777777f66666c6006c77677f6766f600c0fcff7767c60f000000c077c6ff00000000007c0c000000000000c00c0000")
+const _hex69294 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000ccff0000000000c07677cc000000007cc76cc1000000c07667fccc000000c0776766cf000000c0776766cf000000c07767fcc1000000c077c76ccc0000cccc767777c700c06c667c7777c600c07766cc7677cf007c776666ccffc6007cc7cc666666c6007c0cc06666660c006c0c00cc66660c00cc0000c0cccc00")
+const _hex69297 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000cc000000000000c0cc000000000000cccc000000000000cfcc0000000000e0cfcc0000000000ecefcc00000000ee2cecee000000e02e2c2cee00000020442e2e2200000000ee4e2e220000000000ee2f220000000000e04f240000000000002e42000000000000ee22000000000000e0ee00000000000000ee00")
+const _hex69300 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000c0b1000000ffff0f1ffb0000ffddbdfc1fb100f01b11ddbd1ffb00f01111bd1cccf1001f1111f11fbd0f001f1111d111fb00001f1111d111b100001f1111f11ffb0f00f01111bd1ccdb100f01b11ddbd1ffb0000ffddbdfc1fb1000000ffff0f1ffb000000000000cfb1000000000000000000")
+const _hex69303 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500050000000000045054505000000500454045400000040004000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
+const _hex69306 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000e0ccfceeff000000e0bdb3ddbdffff0fe0dd3bfdddb2dd0f00dcdddddfd2fd0000f0ddddbdd2fd0000f0dbddbdd2fd0f00dcdddddfd2dd0fe0dd3bfdddd2fb00e0bdb3dd2ddbfd00e0ccfceeffbbdd0f0000000000bfff0f000000b0ffdf0f00000000f0ddbd0f00000000b0ffff00000000000000000000")
+const _hex69309 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000ff0f0000000000c044f400000000004c44440f000000c04444440f0000004c44f444f40000c0dc444444fd0000cc44111111440f00cc4444c4c4440fc0cd4444c4444f0fc0cd444444ff4f0fc0cd4d444444c4cdc0dd1c4d44d4dccd00cccc1111fdbfcd000000ccf4ffcc0c0000c04444f400000000c0ccffff0000")
+const _hex69312 = pxsim.BufferMethods.createBufferFromHex("87041000100000000040e400000000000054550e00000000405545eeff0000004055445545ffff0f405554f55546550f005e55555556f50000e05555f456f50000e05555f456f50f005e55555556550f405554f55556f400405544556554f500405545eeff44550f0054550e004fff0f0040e400f0550f00000000005ff50000000000f0ff000000")
+const _hex69314 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cc0000000000c0dccd0f00000000dfedcdfd000000f0fdefcdfdf0ff0fefddddcdfdefdefdefdddddcfdfebffdeffddfddfdfefffcefdeddddeeeedefdefeeeeeeeefebffdf0eeeeeeefeefefb00ffbdfbefeefefb00f0ddcdf0eeeefd0000cf0c00effeff000000f0ffff0f00000000efeefe0000000000ffff0f0000")
+const _hex69143 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f00000000f0fffffee0440000ffefefee4f4d00f0ff2effe4feff00f0eff2bfd12e42ffffe2f2fedf2442ff2fe3f24edd24520f2fe2f24edd24520fffe2f2fedf2442fff0eff2bfd12e42fff0ff2effe4feff0000ffeeefee4f4d0000f0fffffee04400000000f00f0000000000000000000000")
+const _hex69318 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000088990900000000808899990000000088889999090000808888999999000080888899999909008098889999999900809989999999990980991919111111018099111911111100801111191111010080111119111100000010111911010000001011191100000000001119010000000000000000000000")
+const _hex69321 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000cccc0000000000cccbcb0c00000000dcbbbccc000000ccdcbdbccc00c0ccbbbcddcccc00bcddbbcbddcbcc00dcddddbbdbcbcc0cdbddddbbdbcbbc0cdbddddbbdbbbbccbdbddddbddbdbbccbb0ddddbddbdbbccb00dbddbdbddbbccb00dbddbbbdbdbb0c00b0bbbbbbcdbb0c000000dbddcccb00000000b0cbbc0b00")
+const _hex69324 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000007777070000000070007077ff0f0000000000771cfd0000ffffffffcb0f00ffddddbdfc11fdf01b1111ddfdcb0ff0111111bdbc1cfd1f111111f1dfff0f1f111111d1b1ff0f1f111111d111ff0f1f111111f1bfff0ff0111111bddcff0ff01b1111ddfdff0000ffddddbdfc00000000ffffffcf000000000000cffb0000")
+const _hex69127 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbddddcddbddddcdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbbbccccccabccccccabdbddddcddbddddbdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbcbccccccabccccccab")
+const _hex69327 = pxsim.BufferMethods.createBufferFromHex("87041000100000007577777777777777777777777777777775776777577777577777557677777777777757657777777777577577777777777777557777777777777777557777777777775765777775777777577677775577777777777757577777777777775576777777757777657777777777777777777777777777777777777777777777777755")
+const _hex69330 = pxsim.BufferMethods.createBufferFromHex("87041000100000006766666666666666666666666666666667668666766666766666776866666666666676876666666666766766666666666666776666666666666666776666666666667687666667666666766866667766666666666676766666666666667768666666676666876666666666666666666666666666666666666666666666666677")
+const _hex69333 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd")
+const _hex69336 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddddddd8d6d668868868686866d866686868686866d688868868686868d86d888666686868d86dd8d666666868d86d888666666866d688868666666866d866686666666886d868686886886886d868686866886866d868686666886866d868686666886866d868686866886888d886888686666868888888888888888")
+const _hex69339 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccccc8cbcbb88b88b8b8b8bbc8bbb8b8b8b8b8bbcb888b88b8b8b8b8c8b6888bbbb8b8b8c8b6686bbbbbb8b8c8b6888bbbbbb8bbcb888b8bbbbbb8bbc8bbb8bbbbbbb88bc8b8b8b88b88b88bc8b8b8b8bb88b8bbc8b8b8bbbb88b8bbc8b8b8bbbb88b8bbc8b8b8b8bb88b888c88b888b8bbbb8b8888888888888888")
+const _hex69342 = pxsim.BufferMethods.createBufferFromHex("8704100010000000efeeeefefffeeffeee44e4feeeeefeee4e4444eeee44e4ef4e4444e44e4444feee4444e4444444e4ee4444e4444444e4ef4e44ee444444e4feeefefe4e4444fefeffefeeef44e4effeef4e44eeeefe4eeeef4444e4efef44e4ef4444e4fe4e44e4ef444444fe4e44e4ee444444feee44e4fe4e44eeeeee4eeeeeefeefeefefee")
+const _hex69345 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffccfcffffffffffcfccccffffccfcffcfccccfccfccccffffccccfcccccccfcffccccfcccccccfcffcfccffccccccfcffffffffcfccccffffffffffffccfcffffffcfccffffffcfffffccccfcffffccfcffccccfcffcfccfcffccccccffcfccfcffccccccffffccfcffcfccffffffcfffffffffffffffff")
+const _hex71885 = pxsim.BufferMethods.createBufferFromHex("87040800080000001111111101000010010000100100001001000010010000100100001011111111")
+const _hex71888 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000010111101100000011000000110000001100000011011110100000000")
+const _hex71891 = pxsim.BufferMethods.createBufferFromHex("8704060006000000111111000100100001001000010010000100100011111100")
+const _hex71894 = pxsim.BufferMethods.createBufferFromHex("8704060006000000000000001011010010000100100001001011010000000000")
+const _hex76544 = pxsim.BufferMethods.createBufferFromHex("87040800080000005555555505000050050000500500005005000050050000500500005055555555")
+const _hex76547 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000050555505500000055000000550000005500000055055550500000000")
+
+
+
+
+function inline__P64036(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1529,23 +1523,23 @@ switch (step) {
case 1:
r0 = pxsim_numops_toBoolDecr(true);
if (!r0) { step = 4; continue; }
- globals.__updated___4036 = (false);
- s.tmp_0 = pause__P399_mk(s);
+ globals.__updated___64033 = (false);
+ s.tmp_0 = pause__P60394_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___4036);
+ r0 = pxsim_numops_toBoolDecr(globals.__updated___64033);
s.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__P1760_mk(s);
+ s.tmp_2 = control___screen_update__P61755_mk(s);
s.callLocIdx = 3; s.pc = 6; return s.tmp_2;
case 6:
r0 = s.retval;
- globals.__updated___4036 = (true);
+ globals.__updated___64033 = (true);
case 2:
case 3:
{ step = 1; continue; }
@@ -1554,12 +1548,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4039.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]}
+inline__P64036.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]}
-function inline__P4039_mk(s) {
+function inline__P64036_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4039, depth: s.depth + 1,
+ parent: s, fn: inline__P64036, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -1570,7 +1564,7 @@ function inline__P4039_mk(s) {
-function inline__P4057(s) {
+function inline__P64054(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1580,17 +1574,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_pxtcore.updateScreen(globals.screen___1799);
+ r0 = pxsim_pxtcore.updateScreen(globals.screen___61794);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P4057.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]}
+inline__P64054.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]}
-function inline__P4057_mk(s) {
+function inline__P64054_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4057, depth: s.depth + 1,
+ parent: s, fn: inline__P64054, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -1598,7 +1592,7 @@ function inline__P4057_mk(s) {
-function inline__P4062(s) {
+function inline__P64059(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1617,12 +1611,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4062.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]}
+inline__P64059.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]}
-function inline__P4062_mk(s) {
+function inline__P64059_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4062, depth: s.depth + 1,
+ parent: s, fn: inline__P64059, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -1631,7 +1625,7 @@ function inline__P4062_mk(s) {
-function inline__P4163(s) {
+function inline__P64160(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1645,36 +1639,36 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals.infoState___4159);
+ r0 = pxsim_numops_toBoolDecr(globals.infoState___64156);
if (!r0) { step = 3; continue; }
- r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___4161);
+ r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___64158);
s.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___4161 = (r0);
+ globals.infoStateStack___64158 = (r0);
case 1:
case 2:
r0 = pxsim_pxtrt.mkMap();
s.tmp_0 = r0;
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___4159);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___64156);
r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0);
- r0 = pxsim_Array__push(globals.infoStateStack___4161, s.tmp_0);
- globals.infoState___4159 = (undefined);
+ r0 = pxsim_Array__push(globals.infoStateStack___64158, s.tmp_0);
+ globals.infoState___64156 = (undefined);
case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P4163.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]}
+inline__P64160.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]}
-function inline__P4163_mk(s) {
+function inline__P64160_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4163, depth: s.depth + 1,
+ parent: s, fn: inline__P64160, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -1685,7 +1679,7 @@ function inline__P4163_mk(s) {
-function inline__P4178(s) {
+function inline__P64175(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1695,30 +1689,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___4179 = undefined;
- s.nextState___4188 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.scene___64176 = undefined;
+ s.nextState___64185 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 20; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.scene___4179 = (r0);
- globals.infoState___4159 = (undefined);
- s.tmp_0 = r0 = globals.infoStateStack___4161;
+ s.scene___64176 = (r0);
+ globals.infoState___64156 = (undefined);
+ s.tmp_0 = r0 = globals.infoStateStack___64158;
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___4161);
+ r0 = pxsim_Array__length(globals.infoStateStack___64158);
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___4161);
- s.nextState___4188 = (r0);
+ r0 = pxsim_Array_.pop(globals.infoStateStack___64158);
+ s.nextState___64185 = (r0);
s.tmp_2 = if_scene_1_mk(s);
- s.tmp_2.arg0 = s.nextState___4188;
+ s.tmp_2.arg0 = s.nextState___64185;
if (!s.tmp_2.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene");
} else {
@@ -1730,12 +1724,12 @@ switch (step) {
case 8:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.scene___4179);
+ r0 = (s.tmp_1 == s.scene___64176);
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___4188;
+ s.tmp_3.arg0 = s.nextState___64185;
if (!s.tmp_3.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state");
} else {
@@ -1746,10 +1740,10 @@ switch (step) {
}
case 9:
r0 = s.retval;
- globals.infoState___4159 = (r0);
+ globals.infoState___64156 = (r0);
{ step = 4; continue; }
case 3:
- r0 = pxsim_Array__push(globals.infoStateStack___4161, s.nextState___4188);
+ r0 = pxsim_Array__push(globals.infoStateStack___64158, s.nextState___64185);
case 4:
case 5:
case 6:
@@ -1757,26 +1751,26 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4178.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]}
+inline__P64175.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]}
-function inline__P4178_mk(s) {
+function inline__P64175_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4178, depth: s.depth + 1,
+ parent: s, fn: inline__P64175, depth: s.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___4179: undefined,
- nextState___4188: undefined,
+ scene___64176: undefined,
+ nextState___64185: undefined,
} }
-function inline__P4608(s) {
+function inline__P64611(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1786,13 +1780,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.sz___4609 = undefined;
- s.tmp_0 = control_ramSize__P332_mk(s);
- s.callLocIdx = 28; s.pc = 6; return s.tmp_0;
+ s.sz___64612 = undefined;
+ s.tmp_0 = control_ramSize__P60327_mk(s);
+ s.callLocIdx = 29; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.sz___4609 = (r0);
- r0 = (s.sz___4609 <= 102400);
+ s.sz___64612 = (r0);
+ r0 = (s.sz___64612 <= 102400);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
@@ -1800,7 +1794,7 @@ switch (step) {
{ step = 5; continue; }
{ step = 4; continue; }
case 1:
- r0 = (s.sz___4609 <= 204800);
+ r0 = (s.sz___64612 <= 204800);
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 2; continue; }
@@ -1817,23 +1811,23 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4608.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]}
+inline__P64611.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]}
-function inline__P4608_mk(s) {
+function inline__P64611_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4608, depth: s.depth + 1,
+ parent: s, fn: inline__P64611, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- sz___4609: undefined,
+ sz___64612: undefined,
} }
-function inline__P4700(s) {
+function inline__P64703(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1863,12 +1857,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4700.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]}
+inline__P64703.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]}
-function inline__P4700_mk(s) {
+function inline__P64703_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4700, depth: s.depth + 1,
+ parent: s, fn: inline__P64703, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -1883,7 +1877,7 @@ function inline__P4700_mk(s) {
-function inline__P4713(s) {
+function inline__P64716(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -1912,10 +1906,10 @@ switch (step) {
r0 = (s.tmp_4 * 2);
s.tmp_3 = r0;
r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "yOffset", s.tmp_3);
- s.tmp_7 = Math_sign__P121_mk(s);
+ s.tmp_7 = Math_sign__P60116_mk(s);
r0 = pxsim.Math_.sin(s.arg0);
s.tmp_7.arg0 = r0;
- s.callLocIdx = 48; s.pc = 7; return s.tmp_7;
+ s.callLocIdx = 49; s.pc = 7; return s.tmp_7;
case 7:
r0 = s.retval;
s.tmp_6 = r0;
@@ -1933,7 +1927,7 @@ switch (step) {
s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["up"];
if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["up"]; }
else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
- else { s.callLocIdx = 49; s.pc = 8; return s.tmp_1; }
+ else { s.callLocIdx = 50; s.pc = 8; return s.tmp_1; }
}
case 8:
r0 = s.retval;
@@ -1958,7 +1952,7 @@ switch (step) {
s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["yOffset"];
if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["yOffset"]; }
else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); }
- else { s.callLocIdx = 50; s.pc = 10; return s.tmp_6; }
+ else { s.callLocIdx = 51; s.pc = 10; return s.tmp_6; }
}
case 10:
r0 = s.retval;
@@ -1973,11 +1967,11 @@ switch (step) {
s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/yOffset"];
if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["yOffset"] = s.tmp_3.arg1; }
else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) }
- else { s.callLocIdx = 51; s.pc = 9; return s.tmp_3; }
+ else { s.callLocIdx = 52; s.pc = 9; return s.tmp_3; }
}
case 9:
r0 = s.retval;
- s.tmp_2 = Math_abs__P120_mk(s);
+ s.tmp_2 = Math_abs__P60115_mk(s);
s.tmp_3 = if_yOffset_1_mk(s);
s.tmp_3.arg0 = s.arg1;
if (!s.tmp_3.arg0.vtable.iface) {
@@ -1986,12 +1980,12 @@ switch (step) {
s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["yOffset"];
if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["yOffset"]; }
else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 52; s.pc = 12; return s.tmp_3; }
+ else { s.callLocIdx = 53; s.pc = 12; return s.tmp_3; }
}
case 12:
r0 = s.retval;
s.tmp_2.arg0 = r0;
- s.callLocIdx = 53; s.pc = 11; return s.tmp_2;
+ s.callLocIdx = 54; s.pc = 11; return s.tmp_2;
case 11:
r0 = s.retval;
s.tmp_1 = r0;
@@ -2007,7 +2001,7 @@ switch (step) {
s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["up"];
if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["up"]; }
else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); }
- else { s.callLocIdx = 54; s.pc = 13; return s.tmp_6; }
+ else { s.callLocIdx = 55; s.pc = 13; return s.tmp_6; }
}
case 13:
r0 = s.retval;
@@ -2025,7 +2019,7 @@ switch (step) {
s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["up"];
if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["up"]; }
else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); }
- else { s.callLocIdx = 55; s.pc = 14; return s.tmp_7; }
+ else { s.callLocIdx = 56; s.pc = 14; return s.tmp_7; }
}
case 14:
r0 = s.retval;
@@ -2041,7 +2035,7 @@ switch (step) {
s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["set/up"];
if (s.tmp_9.fn === null) { s.tmp_9.arg0.fields["up"] = s.tmp_9.arg1; }
else if (s.tmp_9.fn === undefined) { failedCast(s.tmp_9.arg0) }
- else { s.callLocIdx = 56; s.pc = 15; return s.tmp_9; }
+ else { s.callLocIdx = 57; s.pc = 15; return s.tmp_9; }
}
case 15:
r0 = s.retval;
@@ -2049,12 +2043,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4713.info = {"start":1127,"length":417,"line":42,"column":39,"endLine":55,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["index","state"]}
+inline__P64716.info = {"start":1127,"length":417,"line":42,"column":39,"endLine":55,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["index","state"]}
-function inline__P4713_mk(s) {
+function inline__P64716_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4713, depth: s.depth + 1,
+ parent: s, fn: inline__P64716, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -2074,7 +2068,7 @@ function inline__P4713_mk(s) {
-function inline__P4781(s) {
+function inline__P64784(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2088,36 +2082,36 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals.animations___4778);
+ r0 = pxsim_numops_toBoolDecr(globals.animations___64781);
if (!r0) { step = 3; continue; }
- r0 = pxsim_numops_toBoolDecr(globals.animationStateStack___4779);
+ r0 = pxsim_numops_toBoolDecr(globals.animationStateStack___64782);
s.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.animationStateStack___4779 = (r0);
+ globals.animationStateStack___64782 = (r0);
case 1:
case 2:
r0 = pxsim_pxtrt.mkMap();
s.tmp_0 = r0;
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.animations___4778);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.animations___64781);
r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0);
- r0 = pxsim_Array__push(globals.animationStateStack___4779, s.tmp_0);
- globals.animations___4778 = (undefined);
+ r0 = pxsim_Array__push(globals.animationStateStack___64782, s.tmp_0);
+ globals.animations___64781 = (undefined);
case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P4781.info = {"start":251,"length":277,"line":12,"column":29,"endLine":21,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["oldScene"]}
+inline__P64784.info = {"start":251,"length":277,"line":12,"column":29,"endLine":21,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["oldScene"]}
-function inline__P4781_mk(s) {
+function inline__P64784_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4781, depth: s.depth + 1,
+ parent: s, fn: inline__P64784, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -2128,7 +2122,7 @@ function inline__P4781_mk(s) {
-function inline__P4796(s) {
+function inline__P64799(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2138,61 +2132,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___4797 = undefined;
- s.nextState___4806 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 59; s.pc = 7; return s.tmp_0;
+ s.scene___64800 = undefined;
+ s.nextState___64809 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 60; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.scene___4797 = (r0);
- globals.animations___4778 = (undefined);
- s.tmp_0 = r0 = globals.animationStateStack___4779;
+ s.scene___64800 = (r0);
+ globals.animations___64781 = (undefined);
+ s.tmp_0 = r0 = globals.animationStateStack___64782;
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.animationStateStack___4779);
+ r0 = pxsim_Array__length(globals.animationStateStack___64782);
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.animationStateStack___4779);
- s.nextState___4806 = (r0);
+ r0 = pxsim_Array_.pop(globals.animationStateStack___64782);
+ s.nextState___64809 = (r0);
s.tmp_2 = if_scene_1_mk(s);
- s.tmp_2.arg0 = s.nextState___4806;
+ s.tmp_2.arg0 = s.nextState___64809;
if (!s.tmp_2.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene");
} else {
s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scene"];
if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scene"]; }
else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
- else { s.callLocIdx = 60; s.pc = 8; return s.tmp_2; }
+ else { s.callLocIdx = 61; s.pc = 8; return s.tmp_2; }
}
case 8:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.scene___4797);
+ r0 = (s.tmp_1 == s.scene___64800);
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___4806;
+ s.tmp_3.arg0 = s.nextState___64809;
if (!s.tmp_3.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state");
} else {
s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["state"];
if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["state"]; }
else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 61; s.pc = 9; return s.tmp_3; }
+ else { s.callLocIdx = 62; s.pc = 9; return s.tmp_3; }
}
case 9:
r0 = s.retval;
- globals.animations___4778 = (r0);
+ globals.animations___64781 = (r0);
{ step = 4; continue; }
case 3:
- r0 = pxsim_Array__push(globals.animationStateStack___4779, s.nextState___4806);
+ r0 = pxsim_Array__push(globals.animationStateStack___64782, s.nextState___64809);
case 4:
case 5:
case 6:
@@ -2200,26 +2194,26 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P4796.info = {"start":560,"length":398,"line":23,"column":28,"endLine":34,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]}
+inline__P64799.info = {"start":560,"length":398,"line":23,"column":28,"endLine":34,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]}
-function inline__P4796_mk(s) {
+function inline__P64799_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P4796, depth: s.depth + 1,
+ parent: s, fn: inline__P64799, depth: s.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___4797: undefined,
- nextState___4806: undefined,
+ scene___64800: undefined,
+ nextState___64809: undefined,
} }
-function createPacMan__P3840(s) {
+function tileworld_LoadScreen_constructor__P63830(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2233,536 +2227,664 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
- s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_LoadScreen__C63829_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["lastDir"] = (-1);
+ s.tmp_0 = tileworld_RuleVisualsBase_constructor__P63782_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = null;
+ s.callLocIdx = 1420; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- s.tmp_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1591; s.pc = 5; return s.tmp_3;
- case 5:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19195;
- s.callLocIdx = 1592; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19203;
- s.callLocIdx = 1593; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1594; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19217;
- s.callLocIdx = 1595; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19225;
- s.callLocIdx = 1596; s.pc = 15; return s.tmp_0;
- case 15:
+ s.tmp_0 = controller_setRepeatDefault__P61908_mk(s);
+ s.tmp_0.arg0 = 500;
+ s.tmp_0.arg1 = 80;
+ s.callLocIdx = 1421; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 18);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 18:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77817);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1438; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19233;
- s.callLocIdx = 1597; s.pc = 17; return s.tmp_0;
- case 17:
+ s.tmp_0 = tileworld_LoadScreen__C63829_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C63829_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_LoadScreen_constructor__P63830.info = {"start":163,"length":1211,"line":7,"column":8,"endLine":32,"endColumn":9,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":["this"]}
+
+function tileworld_LoadScreen_constructor__P63830_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_LoadScreen_constructor__P63830, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P77817(s) {
+let r0 = s.r0, 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.first___77818 = undefined;
+ s.second___77830 = undefined;
+ s.slot___77860 = undefined;
+ s.prefix___77870 = undefined;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1422; s.pc = 21; return s.tmp_2;
+ case 21:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19241;
- s.callLocIdx = 1598; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = (s.tmp_1 >= 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_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1423; s.pc = 22; return s.tmp_4;
case 22:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1599; s.pc = 21; return s.tmp_0;
- case 21:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 <= 4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.first___77818 = (s.tmp_5);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1424; s.pc = 23; return s.tmp_2;
+ case 23:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >= 5);
+ 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_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1425; s.pc = 24; return s.tmp_4;
case 24:
r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 <= 6);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.second___77830 = (s.tmp_5);
+ s.tmp_0 = r0 = s.first___77818;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
+ case 5:
+ r0 = s.second___77830;
+ case 6:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19255;
- s.callLocIdx = 1600; s.pc = 23; return s.tmp_0;
- case 23:
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_1;
+ { step = 10; continue; }
+ case 7:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1426; s.pc = 25; return s.tmp_4;
+ case 25:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 8; continue; }
+ r0 = s.tmp_2;
+ { step = 9; continue; }
+ case 8:
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 1427; s.pc = 26; return s.tmp_6;
case 26:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19263;
- s.callLocIdx = 1601; s.pc = 25; return s.tmp_0;
- case 25:
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 <= 5);
+ case 9:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = s.tmp_7;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 15; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.first___77818);
+ if (!r0) { step = 11; continue; }
+ r0 = 0;
+ { step = 12; continue; }
+ case 11:
+ r0 = 4;
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ s.tmp_12 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_12.arg0 = s.caps[0];
+ s.tmp_12.arg1 = true;
+ s.callLocIdx = 1428; s.pc = 27; return s.tmp_12;
+ case 27:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 - 1);
+ s.tmp_10 = r0;
+ r0 = (s.tmp_10 + s.tmp_9);
+ s.slot___77860 = (r0);
+ r0 = pxsim_numops.toString(s.slot___77860);
+ s.tmp_3 = r0;
+ if ((s.tmp_3) && (s.tmp_3).vtable) {
setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
+ pxsim_String__stringConv(s.tmp_3);
checkResumeConsumed();
return;
- } else { s.retval = (s.arg0) + ""; }
+ } else { s.retval = (s.tmp_3) + ""; }
case 28:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat("TW", s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19271;
- s.callLocIdx = 1602; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
+ if ((s.tmp_1) && (s.tmp_1).vtable) {
+ setupResume(s, 29);
+ pxsim_String__stringConv(s.tmp_1);
checkResumeConsumed();
return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19279;
- s.callLocIdx = 1603; s.pc = 29; return s.tmp_0;
+ } else { s.retval = (s.tmp_1) + ""; }
case 29:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "-");
+ s.prefix___77870 = (r0);
+ s.tmp_0 = r0 = s.caps[0];
+ s.tmp_2 = tileworld_loadProject__P63706_mk(s);
+ s.tmp_2.arg0 = s.prefix___77870;
+ s.tmp_2.arg1 = false;
+ s.callLocIdx = 1429; s.pc = 30; return s.tmp_2;
+ case 30:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1604; s.pc = 31; return s.tmp_0;
+ r0 = (s.tmp_0).fields["p"] = (s.tmp_1);
+ s.tmp_0 = tileworld_LoadScreen__C63829_v0_1_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C63829_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 31; return s.tmp_0;
case 31:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ 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.caps[0];
+ s.tmp_5 = tileworld_emptyProject__P63707_mk(s);
+ s.tmp_5.arg0 = s.prefix___77870;
+ s.callLocIdx = 1430; s.pc = 32; return s.tmp_5;
+ case 32:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3).fields["p"] = (s.tmp_4);
+ s.tmp_0 = tileworld_Project_saveProject__P63703_mk(s);
+ r0 = s.caps[0].fields["p"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 1540;
- s.callLocIdx = 1605; s.pc = 33; return s.tmp_0;
+ s.callLocIdx = 1431; s.pc = 33; return s.tmp_0;
case 33:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
+ case 13:
+ case 14:
+ r0 = (s.caps[0]).fields["lastDir"] = (-1);
+ r0 = (s.caps[0]).fields["lastDir"] = (-1);
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1432; s.pc = 34; return s.tmp_0;
+ case 34:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19299;
- s.callLocIdx = 1606; s.pc = 35; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_GameHome__C63826_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_GameHome_constructor__P63827_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1433; s.pc = 35; return s.tmp_1;
case 35:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
+ { step = 20; continue; }
+ case 15:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1434; s.pc = 36; return s.tmp_2;
+ case 36:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19307;
- s.callLocIdx = 1607; s.pc = 37; return s.tmp_0;
+ r0 = (s.tmp_1 == 9);
+ 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_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1435; s.pc = 37; return s.tmp_4;
case 37:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 0);
+ case 17:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 18; continue; }
+ s.tmp_6 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1436; s.pc = 38; return s.tmp_6;
+ case 38:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19315;
- s.callLocIdx = 1608; s.pc = 39; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C63823_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_ProjectSettings_constructor__P63824_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = null;
+ s.callLocIdx = 1437; s.pc = 39; return s.tmp_1;
case 39:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
+ case 18:
+ case 19:
+ case 20:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P77817.info = {"start":321,"length":1012,"line":10,"column":64,"endLine":30,"endColumn":13,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P77817_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P77817, depth: s.depth + 1,
+ pc: 0, retval: undefined, 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,
+ first___77818: undefined,
+ second___77830: undefined,
+ slot___77860: undefined,
+ prefix___77870: undefined,
+} }
+
+
+
+
+
+function tileworld_ProjectSettings_constructor__P63824(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_ProjectSettings__C63823_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["askDeleteRule"] = (false);
+ s.tmp_0 = tileworld_RuleVisualsBase_constructor__P63782_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1315; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19323;
- s.callLocIdx = 1609; s.pc = 41; return s.tmp_0;
- case 41:
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1316; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1317; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19331;
- s.callLocIdx = 1610; s.pc = 43; return s.tmp_0;
- case 43:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77290);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1334; s.pc = 4; return s.tmp_1;
+ case 4:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77361);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1336; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_ProjectSettings_constructor__P63824.info = {"start":176,"length":1688,"line":6,"column":8,"endLine":46,"endColumn":9,"fileName":"settings.ts","functionName":"inline","argumentNames":["this","p"]}
+
+function tileworld_ProjectSettings_constructor__P63824_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_ProjectSettings_constructor__P63824, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function inline__P77290(s) {
+let r0 = s.r0, 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.keys___77295 = undefined;
+ r0 = s.caps[0].fields["askDeleteRule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.caps[0].fields["p"];
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19339;
- s.callLocIdx = 1611; s.pc = 45; return s.tmp_0;
- case 45:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = settings_list__P61827_mk(s);
+ r0 = s.caps[0].fields["p"];
+ r0 = r0.fields["prefix"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1318; s.pc = 24; return s.tmp_2;
+ case 24:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
+ s.keys___77295 = (r0);
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = s.keys___77295;
+ s.tmp_0.arg1 = inline__P77302;
+ s.callLocIdx = 1320; s.pc = 25; return s.tmp_0;
+ case 25:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19347;
- s.callLocIdx = 1612; s.pc = 47; return s.tmp_0;
- case 47:
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1321; s.pc = 26; return s.tmp_0;
+ case 26:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
+ { step = 2; continue; }
+ case 1:
+ s.tmp_0 = settings_clear__P61818_mk(s);
+ s.callLocIdx = 1322; s.pc = 27; return s.tmp_0;
+ case 27:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19355;
- s.callLocIdx = 1613; s.pc = 49; return s.tmp_0;
- case 49:
+ case 2:
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1323; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 52);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 52:
+ { step = 22; continue; }
+ case 3:
+ r0 = s.caps[0].fields["p"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 1324; s.pc = 29; return s.tmp_3;
+ case 29:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == 3);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19363;
- s.callLocIdx = 1614; s.pc = 51; return s.tmp_0;
- case 51:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 54:
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 4; continue; }
+ r0 = s.tmp_1;
+ { step = 5; continue; }
+ case 4:
+ s.tmp_5 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_5.arg0 = s.caps[0];
+ s.tmp_5.arg1 = true;
+ s.callLocIdx = 1325; s.pc = 30; return s.tmp_5;
+ case 30:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 == 1);
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 6; continue; }
+ r0 = s.caps[0].fields["p"];
+ s.tmp_7 = r0;
+ r0 = s.caps[0].fields["p"];
+ r0 = r0.fields["help"];
+ s.tmp_10 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_10);
+ s.tmp_9 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_7).fields["help"] = (s.tmp_8);
+ s.tmp_0 = tileworld_Project_saveHelp__P63701_mk(s);
+ r0 = s.caps[0].fields["p"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19371;
- s.callLocIdx = 1615; s.pc = 53; return s.tmp_0;
- case 53:
+ s.callLocIdx = 1326; s.pc = 31; return s.tmp_0;
+ case 31:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 56:
+ { step = 11; continue; }
+ case 6:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1327; s.pc = 32; return s.tmp_2;
+ case 32:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19379;
- s.callLocIdx = 1616; s.pc = 55; return s.tmp_0;
- case 55:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 58);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 58:
+ r0 = (s.tmp_1 == 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1328; s.pc = 33; return s.tmp_4;
+ case 33:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19387;
- s.callLocIdx = 1617; s.pc = 57; return s.tmp_0;
- case 57:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 5);
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 9; continue; }
+ s.tmp_6 = tileworld_loadProject__P63706_mk(s);
+ r0 = s.caps[0].fields["p"];
+ r0 = r0.fields["prefix"];
+ s.tmp_6.arg0 = r0;
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 1329; s.pc = 34; return s.tmp_6;
+ case 34:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 60);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 60:
+ case 9:
+ case 10:
+ case 11:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1330; s.pc = 35; return s.tmp_2;
+ case 35:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB12");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19395;
- s.callLocIdx = 1618; s.pc = 59; return s.tmp_0;
- case 59:
+ r0 = (s.tmp_1 == 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 12; continue; }
+ r0 = s.tmp_0;
+ { step = 13; continue; }
+ case 12:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1331; s.pc = 36; return s.tmp_4;
+ case 36:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 62);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 62:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 6);
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 14; continue; }
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
+ case 14:
+ case 15:
+ { step = 21; continue; }
+ case 16:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1332; s.pc = 37; return s.tmp_2;
+ case 37:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1619; s.pc = 61; return s.tmp_0;
- case 61:
+ r0 = (s.tmp_1 == 7);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 17; continue; }
+ r0 = s.tmp_0;
+ { step = 18; continue; }
+ case 17:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1333; s.pc = 38; return s.tmp_4;
+ case 38:
r0 = s.retval;
- case 3:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 2);
+ case 18:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 19; continue; }
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
+ { step = 23; continue; }
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ s.tmp_0 = tileworld_ProjectSettings__C63823_v0_1_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ProjectSettings__C63823_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ case 23:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-createPacMan__P3840.info = {"start":20312,"length":4569,"line":478,"column":0,"endLine":578,"endColumn":1,"fileName":"games.ts","functionName":"createPacMan","argumentNames":["prefix"]}
+inline__P77290.info = {"start":335,"length":1249,"line":9,"column":64,"endLine":37,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]}
-function createPacMan__P3840_mk(s) {
+function inline__P77290_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createPacMan__P3840, depth: s.depth + 1,
+ parent: s, fn: inline__P77290, depth: s.depth + 1,
pc: 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,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ keys___77295: undefined,
} }
-const _hex19195 = pxsim.BufferMethods.createBufferFromHex("201880111012b021106110111011101110311031102110112011101110111011101110111031101110211011201110113011301130111011102110f13110111021101120115011301110113011102110112031107110311011102110411031101310111031103110214011301133113011301110211041103110131011103110311021101120311071103110111021101120115011301110113011102110f13110111021101120111011301130113011101110211011201110111011101110111011103110111021106110111011101110311031102180111012101190f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f121")
-const _hex19203 = pxsim.BufferMethods.createBufferFromHex("2018ffaf613f113f311f314f112f111f113f113f111f311f114f112f111f113f113f113f111f114ff1311f114f112f115f113f111f113f114f112f316f211f311f114f411f212f123f311f317f114f121f124f103f114f411f212f123f311f314f112f316f211f311f114f112f115f113f111f113f114ff1311f114f112f111f113f113f113f111f114f112f111f113f113f111f311f114f613f113f311f31ffffffffffffffffffffffffffffffffffffffffffffffffffcf")
-const _hex19217 = pxsim.BufferMethods.createBufferFromHex("1010ff4fa85f18af183f183f683f182f182f186f182f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f182f186f182f182f183f683f183f18af185fa8ff4f")
-const _hex19225 = pxsim.BufferMethods.createBufferFromHex("1010ffffffffffffffffffffffffffffffffff1f")
-const _hex19233 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex19241 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex19255 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e152f142e3f302f1e152f251d1e1512144f121e151f1e251d141512143f12131e151f1e142d14351f101f221e151f1e142d14351f102f121e151f1e251d141512142f102f1e152f251d1e1512142f103f1e152f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
-const _hex19263 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0d025d045c045d025f0f0f0f0f0f0d0")
-const _hex19271 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
-const _hex19279 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex19299 = pxsim.BufferMethods.createBufferFromHex("2016220801160002")
-const _hex19307 = pxsim.BufferMethods.createBufferFromHex("222622000112234100060004")
-const _hex19315 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402")
-const _hex19323 = pxsim.BufferMethods.createBufferFromHex("202022200146210400060300050202000002")
-const _hex19331 = pxsim.BufferMethods.createBufferFromHex("002022200146230400060300050202000000")
-const _hex19339 = pxsim.BufferMethods.createBufferFromHex("002022200116210400060000")
-const _hex19347 = pxsim.BufferMethods.createBufferFromHex("2146220010121201000623040006320100060002")
-const _hex19355 = pxsim.BufferMethods.createBufferFromHex("2146220010122301000612010006320400060003")
-const _hex19363 = pxsim.BufferMethods.createBufferFromHex("212622001014120400060001")
-const _hex19371 = pxsim.BufferMethods.createBufferFromHex("2146220010123201000623010006120400060001")
-const _hex19379 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060002")
-const _hex19387 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060003")
-const _hex19395 = pxsim.BufferMethods.createBufferFromHex("222622001012230001060401")
-function settings_writeNumber__P1826(s) {
+function inline__P77302(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2774,46 +2896,33 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array__mk();
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg1);
- s.tmp_1 = settings_writeBuffer__P1824_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_2 = msgpack_packNumberArray__P174_mk(s);
- s.tmp_2.arg0 = s.tmp_0;
- s.callLocIdx = 133; s.pc = 2; return s.tmp_2;
- case 2:
- r0 = s.retval;
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 134; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = settings_remove__P61828_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1319; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-settings_writeNumber__P1826.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]}
+inline__P77302.info = {"start":525,"length":26,"line":13,"column":37,"endLine":13,"endColumn":63,"fileName":"settings.ts","functionName":"inline","argumentNames":["k"]}
-function settings_writeNumber__P1826_mk(s) {
+function inline__P77302_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_writeNumber__P1826, depth: s.depth + 1,
+ parent: s, fn: inline__P77302, 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 msgpack_packNumberArray__P174(s) {
+function inline__P77361(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2823,108 +2932,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.off___27245 = undefined;
- s.n___27247 = undefined;
- s.unnamed44___U2 = undefined;
- s.unnamed45___U3 = undefined;
- s.buf___27257 = undefined;
- s.n___27263 = undefined;
- s.unnamed46___U6 = undefined;
- s.unnamed47___U7 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.off___27245 = (0);
- s.n___27247 = (undefined);
- s.unnamed44___U2 = (s.arg0);
- s.unnamed45___U3 = (0);
+ r0 = s.caps[0].fields["askDeleteRule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (false);
+ { step = 2; continue; }
case 1:
- s.tmp_0 = r0 = s.unnamed45___U3;
- r0 = pxsim_Array__length(s.unnamed44___U2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed44___U2, s.unnamed45___U3);
- s.n___27247 = (r0);
- s.tmp_2 = r0 = s.off___27245;
- s.tmp_4 = msgpack_packNumberCore__P3902_mk(s);
- s.tmp_4.arg0 = null;
- s.tmp_4.arg1 = s.off___27245;
- s.tmp_4.arg2 = s.n___27247;
- s.callLocIdx = 23; s.pc = 5; return s.tmp_4;
- case 5:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.off___27245 = (r0);
- r0 = (s.unnamed45___U3 + 1);
- s.unnamed45___U3 = (r0);
- { step = 1; continue; }
- case 2:
- s.unnamed44___U2 = (undefined);
- r0 = pxsim.control.createBuffer(s.off___27245);
- s.buf___27257 = (r0);
- s.off___27245 = (0);
- s.n___27263 = (undefined);
- s.unnamed46___U6 = (s.arg0);
- s.unnamed47___U7 = (0);
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1335; s.pc = 3; return s.tmp_0;
case 3:
- s.tmp_0 = r0 = s.unnamed47___U7;
- r0 = pxsim_Array__length(s.unnamed46___U6);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_Array__getAt(s.unnamed46___U6, s.unnamed47___U7);
- s.n___27263 = (r0);
- s.tmp_2 = r0 = s.off___27245;
- s.tmp_4 = msgpack_packNumberCore__P3902_mk(s);
- s.tmp_4.arg0 = s.buf___27257;
- s.tmp_4.arg1 = s.off___27245;
- s.tmp_4.arg2 = s.n___27263;
- s.callLocIdx = 24; s.pc = 6; return s.tmp_4;
- case 6:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.off___27245 = (r0);
- r0 = (s.unnamed47___U7 + 1);
- s.unnamed47___U7 = (r0);
- { step = 3; continue; }
- case 4:
- s.unnamed46___U6 = (undefined);
- r0 = s.buf___27257;
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-msgpack_packNumberArray__P174.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]}
+inline__P77361.info = {"start":1654,"length":197,"line":39,"column":64,"endLine":45,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]}
-function msgpack_packNumberArray__P174_mk(s) {
+function inline__P77361_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: msgpack_packNumberArray__P174, depth: s.depth + 1,
+ parent: s, fn: inline__P77361, depth: s.depth + 1,
pc: 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___27245: undefined,
- n___27247: undefined,
- unnamed44___U2: undefined,
- unnamed45___U3: undefined,
- buf___27257: undefined,
- n___27263: undefined,
- unnamed46___U6: undefined,
- unnamed47___U7: undefined,
- arg0: undefined,
} }
-function msgpack_packNumberCore__P3902(s) {
+function tileworld_ProjectSettings_update__P77279(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -2934,154 +2972,287 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tag___27277 = undefined;
- s.fmt___27320 = undefined;
+ s.worldY___77399 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tag___27277 = (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, tileworld_ProjectSettings__C63823_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = 16;
+ s.tmp_0.arg4 = 16;
+ s.tmp_0.arg5 = 11;
+ s.callLocIdx = 1337; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___61794, globals.settingsIcon___63716, 0, 6);
+ r0 = s.arg0.fields["p"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_1.arg0 = globals.screen___61794;
+ s.tmp_1.arg1 = "Help";
+ s.tmp_1.arg2 = 16;
+ s.tmp_1.arg3 = 28;
+ s.tmp_1.arg4 = undefined;
+ s.tmp_1.arg5 = undefined;
+ s.tmp_1.arg6 = undefined;
+ s.callLocIdx = 1338; s.pc = 10; return s.tmp_1;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 3;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = globals.emptyTile___63718;
+ s.callLocIdx = 1339; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["help"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
+ r0 = globals.collisionSprite___63722;
{ 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);
+ r0 = globals.genericSprite___63723;
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 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 8; continue; }
- s.tag___27277 = (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___27277 = (205);
- { step = 10; continue; }
- case 9:
- s.tag___27277 = (206);
- case 10:
- case 11:
- { step = 17; continue; }
+ s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = 3;
+ s.tmp_2.arg2 = 1;
+ s.tmp_2.arg3 = s.tmp_1;
+ s.callLocIdx = 1340; s.pc = 12; return s.tmp_2;
case 12:
- r0 = (-127 <= s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- s.tag___27277 = (208);
- { step = 16; continue; }
+ r0 = s.retval;
+ s.worldY___77399 = (44);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "World";
+ s.tmp_0.arg2 = 16;
+ s.tmp_0.arg3 = s.worldY___77399;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1341; s.pc = 13; return s.tmp_0;
case 13:
- r0 = (-32767 <= s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- s.tag___27277 = (209);
- { step = 15; continue; }
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgrounds"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.width(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 64;
+ s.tmp_0.arg3 = s.worldY___77399;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1343; s.pc = 14; return s.tmp_0;
case 14:
- s.tag___27277 = (210);
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "by";
+ s.tmp_0.arg2 = 96;
+ s.tmp_0.arg3 = s.worldY___77399;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1344; s.pc = 15; return s.tmp_0;
case 15:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgrounds"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 128;
+ s.tmp_0.arg3 = s.worldY___77399;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1346; s.pc = 16; return s.tmp_0;
case 16:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["version"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 120;
+ s.tmp_0.arg3 = 6;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1347; s.pc = 17; return s.tmp_0;
case 17:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Export";
+ s.tmp_0.arg2 = 16;
+ s.tmp_0.arg3 = 92;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1348; s.pc = 18; return s.tmp_0;
case 18:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 4;
+ s.tmp_0.arg2 = 5;
+ s.tmp_0.arg3 = globals.diskIcon___63760;
+ s.callLocIdx = 1349; s.pc = 19; return s.tmp_0;
case 19:
- case 20:
- s.tmp_0 = msgpack_tagFormat__P3901_mk(s);
- s.tmp_0.arg0 = s.tag___27277;
- s.callLocIdx = 19; s.pc = 24; return s.tmp_0;
- case 24:
r0 = s.retval;
- s.fmt___27320 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- if (!r0) { step = 21; continue; }
- r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___27277);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_1 = r0 = s.fmt___27320;
- r0 = (s.arg1 + 1);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.setNumber(s.tmp_0, s.tmp_1, s.tmp_2, s.arg2);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Delete";
+ s.tmp_0.arg2 = 16;
+ s.tmp_0.arg3 = 108;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1350; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 4;
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = globals.garbageCan___63715;
+ s.callLocIdx = 1351; s.pc = 21; return s.tmp_0;
case 21:
+ r0 = s.retval;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ if ((globals.TileWorldVersion___63662) && (globals.TileWorldVersion___63662).vtable) {
+ setupResume(s, 23);
+ pxsim_String__stringConv(globals.TileWorldVersion___63662);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.TileWorldVersion___63662) + ""; }
+ case 23:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat("App Version ", s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 16;
+ s.tmp_0.arg3 = 28;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1352; s.pc = 22; return s.tmp_0;
case 22:
- s.tmp_1 = pins_sizeOf__P165_mk(s);
- s.tmp_1.arg0 = s.fmt___27320;
- s.callLocIdx = 20; s.pc = 25; return s.tmp_1;
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Delete ALL games";
+ s.tmp_0.arg2 = 16;
+ s.tmp_0.arg3 = 44;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1353; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 7;
+ s.tmp_0.arg2 = 2;
+ s.tmp_0.arg3 = globals.garbageCan___63715;
+ s.callLocIdx = 1354; s.pc = 25; return s.tmp_0;
case 25:
r0 = s.retval;
+ case 4:
+ r0 = s.arg0.fields["askDeleteRule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_1 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 128;
+ s.tmp_1.arg2 = true;
+ s.callLocIdx = 1355; s.pc = 26; return s.tmp_1;
+ case 26:
+ r0 = s.retval;
+ r0 = s.arg0.fields["p"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 + 1);
- case 23:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = "OK to delete game?";
+ { step = 6; continue; }
+ case 5:
+ r0 = "OK to delete ALL games?";
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = game_showDialog__P62527_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = "A = OK, B = CANCEL";
+ s.callLocIdx = 1356; s.pc = 27; return s.tmp_2;
+ case 27:
+ r0 = s.retval;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = false;
+ s.callLocIdx = 1357; s.pc = 28; return s.tmp_0;
+ case 28:
+ r0 = s.retval;
+ case 8:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-msgpack_packNumberCore__P3902.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"]}
+tileworld_ProjectSettings_update__P77279.info = {"start":1876,"length":1553,"line":48,"column":8,"endLine":78,"endColumn":9,"fileName":"settings.ts","functionName":"update","argumentNames":["this"]}
-function msgpack_packNumberCore__P3902_mk(s) {
+function tileworld_ProjectSettings_update__P77279_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: msgpack_packNumberCore__P3902, depth: s.depth + 1,
+ parent: s, fn: tileworld_ProjectSettings_update__P77279, depth: s.depth + 1,
pc: 0, retval: undefined, 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___27277: undefined,
- fmt___27320: undefined,
+ worldY___77399: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function msgpack_tagFormat__P3901(s) {
+function game_showDialog__P62527(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3091,72 +3262,363 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.titleFont___85915 = undefined;
+ s.subFont___85920 = undefined;
+ s.footerFont___85925 = undefined;
+ s.h___85930 = undefined;
+ s.top___85949 = undefined;
+ s.y___85953 = undefined;
+ s.footerTop___85990 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
+ s.tmp_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = undefined;
+ s.callLocIdx = 869; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
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 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 8; continue; }
+ { step = 2; continue; }
case 1:
- r0 = 16;
- { step = 9; continue; }
+ r0 = pxsim_String_.mkEmpty();
case 2:
- r0 = 7;
- { step = 9; continue; }
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = image_getFontForText__P61739_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ s.callLocIdx = 870; s.pc = 22; return s.tmp_2;
+ case 22:
+ r0 = s.retval;
+ s.titleFont___85915 = (r0);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
case 3:
- r0 = 9;
- { step = 9; continue; }
+ r0 = pxsim_String_.mkEmpty();
case 4:
- r0 = 12;
- { step = 9; continue; }
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = image_getFontForText__P61739_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ s.callLocIdx = 871; s.pc = 23; return s.tmp_2;
+ case 23:
+ r0 = s.retval;
+ s.subFont___85920 = (r0);
+ s.tmp_0 = r0 = s.arg2;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
case 5:
- r0 = 6;
- { step = 9; continue; }
+ r0 = pxsim_String_.mkEmpty();
case 6:
- r0 = 8;
- { step = 9; continue; }
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = image_getFontForText__P61739_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ s.callLocIdx = 872; s.pc = 24; return s.tmp_2;
+ case 24:
+ r0 = s.retval;
+ s.footerFont___85925 = (r0);
+ s.h___85930 = (8);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_0 = r0 = s.h___85930;
+ s.tmp_2 = if_charHeight_1_mk(s);
+ s.tmp_2.arg0 = s.titleFont___85915;
+ 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 = 873; s.pc = 25; return s.tmp_2; }
+ }
+ case 25:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.h___85930 = (r0);
case 7:
- r0 = 10;
- { step = 9; continue; }
case 8:
- r0 = null;
- { step = 9; continue; }
- r0 = undefined;
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 9; continue; }
+ s.tmp_0 = r0 = s.h___85930;
+ s.tmp_3 = if_charHeight_1_mk(s);
+ s.tmp_3.arg0 = s.subFont___85920;
+ 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 = 874; s.pc = 26; return s.tmp_3; }
+ }
+ case 26:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (2 + s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.h___85930 = (r0);
case 9:
+ case 10:
+ r0 = (s.h___85930 + 8);
+ s.h___85930 = (r0);
+ s.tmp_0 = game_showDialogBackground__P64283_mk(s);
+ s.tmp_0.arg0 = s.h___85930;
+ s.tmp_0.arg1 = 9;
+ s.callLocIdx = 875; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.top___85949 = (r0);
+ r0 = (s.top___85949 + 8);
+ s.y___85953 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ if (!r0) { step = 13; continue; }
+ r0 = pxsim_ImageMethods.isMono(globals.screen___61794);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ r0 = 1;
+ { step = 12; continue; }
+ case 11:
+ r0 = 7;
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_2.arg0 = globals.screen___61794;
+ s.tmp_2.arg1 = s.arg0;
+ s.tmp_2.arg2 = 8;
+ s.tmp_2.arg3 = s.y___85953;
+ s.tmp_2.arg4 = s.tmp_1;
+ s.tmp_2.arg5 = s.titleFont___85915;
+ s.tmp_2.arg6 = undefined;
+ s.callLocIdx = 876; s.pc = 28; return s.tmp_2;
+ case 28:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.y___85953;
+ s.tmp_3 = if_charHeight_1_mk(s);
+ s.tmp_3.arg0 = s.titleFont___85915;
+ 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 = 877; s.pc = 29; return s.tmp_3; }
+ }
+ case 29:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.y___85953 = (r0);
+ case 13:
+ case 14:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 17; continue; }
+ r0 = pxsim_ImageMethods.isMono(globals.screen___61794);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ r0 = 1;
+ { step = 16; continue; }
+ case 15:
+ r0 = 6;
+ case 16:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_2.arg0 = globals.screen___61794;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = 8;
+ s.tmp_2.arg3 = s.y___85953;
+ s.tmp_2.arg4 = s.tmp_1;
+ s.tmp_2.arg5 = s.subFont___85920;
+ s.tmp_2.arg6 = undefined;
+ s.callLocIdx = 878; s.pc = 30; return s.tmp_2;
+ case 30:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.y___85953;
+ s.tmp_3 = if_charHeight_1_mk(s);
+ s.tmp_3.arg0 = s.subFont___85920;
+ 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 = 879; s.pc = 31; return s.tmp_3; }
+ }
+ case 31:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.y___85953 = (r0);
+ case 17:
+ case 18:
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 19; continue; }
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_1 = r0;
+ s.tmp_3 = if_charHeight_1_mk(s);
+ s.tmp_3.arg0 = s.footerFont___85925;
+ 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 = 880; s.pc = 32; return s.tmp_3; }
+ }
+ case 32:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 - 4);
+ s.footerTop___85990 = (r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.footerTop___85990;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_0.arg3 = r0;
+ s.tmp_2 = if_charHeight_1_mk(s);
+ s.tmp_2.arg0 = s.footerFont___85925;
+ 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 = 881; s.pc = 34; return s.tmp_2; }
+ }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 4);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = 0;
+ s.callLocIdx = 882; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.footerTop___85990;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.footerTop___85990;
+ s.tmp_0.arg5 = 1;
+ s.callLocIdx = 883; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = s.arg2;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_2 = r0;
+ r0 = pxsim_String_.length(s.arg2);
+ s.tmp_4 = r0;
+ s.tmp_6 = if_charWidth_1_mk(s);
+ s.tmp_6.arg0 = s.footerFont___85925;
+ if (!s.tmp_6.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth");
+ } else {
+ s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"];
+ if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; }
+ else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); }
+ else { s.callLocIdx = 884; s.pc = 37; return s.tmp_6; }
+ }
+ case 37:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 * s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 - s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 8);
+ s.tmp_0.arg2 = r0;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_8 = r0;
+ s.tmp_10 = if_charHeight_1_mk(s);
+ s.tmp_10.arg0 = s.footerFont___85925;
+ if (!s.tmp_10.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "charHeight");
+ } else {
+ s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["charHeight"];
+ if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["charHeight"]; }
+ else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); }
+ else { s.callLocIdx = 885; s.pc = 38; return s.tmp_10; }
+ }
+ case 38:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_8 - s.tmp_9);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 2);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = 1;
+ s.tmp_0.arg5 = s.footerFont___85925;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 886; s.pc = 36; return s.tmp_0;
+ case 36:
+ r0 = s.retval;
+ case 19:
+ case 20:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-msgpack_tagFormat__P3901.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]}
+game_showDialog__P62527.info = {"start":2895,"length":1313,"line":104,"column":4,"endLine":137,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialog","argumentNames":["title","subtitle","footer"]}
-function msgpack_tagFormat__P3901_mk(s) {
+function game_showDialog__P62527_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: msgpack_tagFormat__P3901, depth: s.depth + 1,
+ parent: s, fn: game_showDialog__P62527, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ titleFont___85915: undefined,
+ subFont___85920: undefined,
+ footerFont___85925: undefined,
+ h___85930: undefined,
+ top___85949: undefined,
+ y___85953: undefined,
+ footerTop___85990: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function pins_sizeOf__P165(s) {
+function game_showDialogBackground__P64283(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3166,34 +3628,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.top___86034 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = Buffer_sizeOfNumberFormat__P201_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 18; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - s.arg0);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 1);
+ s.top___86034 = (r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.top___86034;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.arg0;
+ s.tmp_0.arg5 = 0;
+ s.callLocIdx = 866; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.top___86034;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.top___86034;
+ s.tmp_0.arg5 = 1;
+ s.callLocIdx = 867; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ r0 = (s.top___86034 + s.arg0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 1);
+ s.tmp_0.arg2 = r0;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.top___86034 + s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = 1;
+ s.callLocIdx = 868; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = s.top___86034;
return leave(s, r0)
default: oops()
} } }
-pins_sizeOf__P165.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]}
+game_showDialogBackground__P64283.info = {"start":2587,"length":302,"line":95,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialogBackground","argumentNames":["h","c"]}
-function pins_sizeOf__P165_mk(s) {
+function game_showDialogBackground__P64283_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: pins_sizeOf__P165, depth: s.depth + 1,
+ parent: s, fn: game_showDialogBackground__P64283, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ top___86034: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function Buffer_sizeOfNumberFormat__P201(s) {
+function game_init__P64282(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3207,79 +3716,95 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0);
- if (r0) { step = 4; continue; }
- r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
- if (r0) { step = 6; continue; }
- r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0);
- if (r0) { step = 8; continue; }
- r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0);
- if (r0) { step = 9; continue; }
- r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0);
- if (r0) { step = 10; continue; }
- r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0);
- if (r0) { step = 11; continue; }
- r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0);
- if (r0) { step = 12; continue; }
- r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0);
- if (r0) { step = 13; continue; }
- r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0);
- if (r0) { step = 14; continue; }
- r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0);
- if (r0) { step = 15; continue; }
- r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0);
- if (r0) { step = 16; continue; }
+ r0 = pxsim_numops_toBoolDecr(globals._scene___64274);
+ 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 = 17; continue; }
+ { step = 2; continue; }
case 1:
+ r0 = s.arg0;
case 2:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C62408_VT);
+ s.tmp_3 = r0;
+ s.tmp_4 = scene_Scene_constructor__P62429_mk(s);
+ s.tmp_4.arg0 = s.tmp_3;
+ s.tmp_5 = control_pushEventContext__P60390_mk(s);
+ s.callLocIdx = 851; s.pc = 14; return s.tmp_5;
+ case 14:
+ r0 = s.retval;
+ s.tmp_4.arg1 = r0;
+ s.tmp_4.arg2 = globals._scene___64274;
+ s.callLocIdx = 852; s.pc = 13; return s.tmp_4;
+ case 13:
+ r0 = s.retval;
+ globals._scene___64274 = (s.tmp_3);
case 3:
case 4:
- r0 = 1;
- { step = 18; continue; }
+ s.tmp_0 = scene_Scene_init__P62430_mk(s);
+ s.tmp_0.arg0 = globals._scene___64274;
+ s.callLocIdx = 853; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(globals.winEffect___62519);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ globals.winEffect___62519 = (globals.confetti___62790);
case 5:
case 6:
+ r0 = pxsim_numops_toBoolDecr(globals.loseEffect___62520);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ globals.loseEffect___62520 = (globals.melt___62811);
case 7:
case 8:
- r0 = 2;
- { step = 18; continue; }
+ r0 = pxsim_numops_toBoolDecr(globals.winSound___64273);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ globals.winSound___64273 = (globals.powerUp___61610);
case 9:
case 10:
+ r0 = pxsim_numops_toBoolDecr(globals.loseSound___64271);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ globals.loseSound___64271 = (globals.wawawawaa___61607);
case 11:
case 12:
- case 13:
- case 14:
- r0 = 4;
- { step = 18; continue; }
- case 15:
- case 16:
- r0 = 8;
- { step = 18; continue; }
- case 17:
- r0 = 0;
- case 18:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Buffer_sizeOfNumberFormat__P201.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]}
+game_init__P64282.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]}
-function Buffer_sizeOfNumberFormat__P201_mk(s) {
+function game_init__P64282_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Buffer_sizeOfNumberFormat__P201, depth: s.depth + 1,
+ parent: s, fn: game_init__P64282, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -3287,7 +3812,7 @@ function Buffer_sizeOfNumberFormat__P201_mk(s) {
-function settings_writeBuffer__P1824(s) {
+function inline__P82814(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3297,31 +3822,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.rounds___82817 = undefined;
+ s.j___82825 = undefined;
+ s.x___82830 = undefined;
+ s.y___82836 = undefined;
+ s.c___82842 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim.settings._set(s.arg0, s.arg1);
+ r0 = pxsim_ImageMethods.width(s.arg0);
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.height(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 * s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim.settings._userClean();
- r0 = pxsim_pxtrt.panic(920);
+ r0 = (s.tmp_0 >> 5);
+ s.rounds___82817 = (r0);
+ s.j___82825 = (0);
case 1:
+ r0 = (s.j___82825 < s.rounds___82817);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = Math_FastRandom_randomRange__P62579_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.tmp_1.arg1 = 0;
+ r0 = pxsim_ImageMethods.width(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1.arg2 = r0;
+ s.callLocIdx = 45; s.pc = 3; return s.tmp_1;
+ case 3:
+ r0 = s.retval;
+ s.x___82830 = (r0);
+ s.tmp_0 = Math_FastRandom_randomRange__P62579_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = 0;
+ r0 = pxsim_ImageMethods.height(s.arg0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 3);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 46; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.y___82836 = (r0);
+ r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___82830, s.y___82836);
+ s.c___82842 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_1 = r0 = s.x___82830;
+ r0 = (s.y___82836 + 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___82842);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_1 = r0 = s.x___82830;
+ r0 = (s.y___82836 + 2);
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___82842);
+ r0 = (s.j___82825 + 1);
+ s.j___82825 = (r0);
+ { step = 1; continue; }
case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-settings_writeBuffer__P1824.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]}
+inline__P82814.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 settings_writeBuffer__P1824_mk(s) {
+function inline__P82814_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_writeBuffer__P1824, depth: s.depth + 1,
+ parent: s, fn: inline__P82814, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ rounds___82817: undefined,
+ j___82825: undefined,
+ x___82830: undefined,
+ y___82836: undefined,
+ c___82842: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -3330,7 +3911,7 @@ function settings_writeBuffer__P1824_mk(s) {
-function settings_writeString__P1825(s) {
+function Math_FastRandom_randomRange__P62579(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3343,36 +3924,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 = settings_writeBuffer__P1824_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = pxsim.control.createBufferFromUTF8(s.arg1);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 132; s.pc = 1; return s.tmp_0;
- case 1:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Math_FastRandom__C62575_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__P62578_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 900; s.pc = 3; return s.tmp_2;
+ case 3:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_1 = r0;
+ r0 = (s.arg2 - s.arg1);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 + 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_1 % s.tmp_3);
+ { step = 2; continue; }
+ case 1:
+ r0 = 0;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = (s.arg1 + s.tmp_5);
return leave(s, r0)
default: oops()
} } }
-settings_writeString__P1825.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]}
+Math_FastRandom_randomRange__P62579.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 settings_writeString__P1825_mk(s) {
+function Math_FastRandom_randomRange__P62579_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_writeString__P1825, depth: s.depth + 1,
+ parent: s, fn: Math_FastRandom_randomRange__P62579, depth: s.depth + 1,
pc: 0, retval: undefined, 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 settings_exists__P1834(s) {
+function Math_FastRandom_next__P62578(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3386,17 +3990,43 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim.settings._exists(s.arg0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Math_FastRandom__C62575_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;
return leave(s, r0)
default: oops()
} } }
-settings_exists__P1834.info = {"start":3828,"length":71,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"exists","argumentNames":["key"]}
+Math_FastRandom_next__P62578.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]}
-function settings_exists__P1834_mk(s) {
+function Math_FastRandom_next__P62578_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_exists__P1834, depth: s.depth + 1,
+ parent: s, fn: Math_FastRandom_next__P62578, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -3404,7 +4034,7 @@ function settings_exists__P1834_mk(s) {
-function createSokoban__P3842(s) {
+function effects_ImageEffect_constructor__P62806(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3416,436 +4046,148 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, effects_ImageEffect__C62805_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["effect"] = (s.arg2);
+ r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C62575_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = Math_FastRandom_constructor__P62577_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = undefined;
+ s.callLocIdx = 1192; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
- s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ 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()
+} } }
+effects_ImageEffect_constructor__P62806.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]}
+
+function effects_ImageEffect_constructor__P62806_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: effects_ImageEffect_constructor__P62806, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function inline__P82922(s) {
+let r0 = s.r0, 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.factory___82925 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C62734_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ s.tmp_2 = if_width_1_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width");
+ } else {
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"];
+ if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; }
+ else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
+ else { s.callLocIdx = 33; s.pc = 3; return s.tmp_2; }
+ }
+ case 3:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ s.tmp_3 = if_width_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!s.tmp_3.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width");
+ } else {
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"];
+ if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; }
+ else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
+ else { s.callLocIdx = 34; s.pc = 4; return s.tmp_3; }
+ }
+ case 4:
+ r0 = s.retval;
+ { step = 2; continue; }
case 1:
+ r0 = 16;
case 2:
- s.tmp_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
+ // jmp value (already in r0)
s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1649; s.pc = 5; return s.tmp_3;
+ s.tmp_5 = particles_ConfettiFactory_constructor__P62735_mk(s);
+ s.tmp_5.arg0 = s.tmp_0;
+ s.tmp_5.arg1 = s.tmp_4;
+ s.tmp_5.arg2 = 16;
+ s.callLocIdx = 35; s.pc = 5; return s.tmp_5;
case 5:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
+ s.factory___82925 = (s.tmp_0);
+ s.tmp_0 = particles_SprayFactory_setSpeed__P62711_mk(s);
+ s.tmp_0.arg0 = s.factory___82925;
+ s.tmp_0.arg1 = 30;
+ s.callLocIdx = 36; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19634;
- s.callLocIdx = 1650; s.pc = 7; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C62667_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = particles_ParticleSource_constructor__P62672_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___82925;
+ s.callLocIdx = 37; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19642;
- s.callLocIdx = 1651; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1652; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19656;
- s.callLocIdx = 1653; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19664;
- s.callLocIdx = 1654; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- 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_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19672;
- s.callLocIdx = 1655; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19680;
- s.callLocIdx = 1656; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1657; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19694;
- s.callLocIdx = 1658; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19702;
- s.callLocIdx = 1659; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19710;
- s.callLocIdx = 1660; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19718;
- s.callLocIdx = 1661; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1662; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = undefined;
- s.callLocIdx = 1663; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19739;
- s.callLocIdx = 1664; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19747;
- s.callLocIdx = 1665; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19755;
- s.callLocIdx = 1666; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19763;
- s.callLocIdx = 1667; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19771;
- s.callLocIdx = 1668; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19779;
- s.callLocIdx = 1669; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19787;
- s.callLocIdx = 1670; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1671; s.pc = 49; return s.tmp_0;
- case 49:
- r0 = s.retval;
- case 3:
- r0 = undefined;
+ r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-createSokoban__P3842.info = {"start":28590,"length":3571,"line":669,"column":0,"endLine":747,"endColumn":1,"fileName":"games.ts","functionName":"createSokoban","argumentNames":["prefix"]}
+inline__P82922.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 createSokoban__P3842_mk(s) {
+function inline__P82922_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createSokoban__P3842, depth: s.depth + 1,
+ parent: s, fn: inline__P82922, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ tmp_5: undefined,
+ factory___82925: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-const _hex19634 = pxsim.BufferMethods.createBufferFromHex("2018118041b011101210123110e13011302110e120311011121110e1204112111210e12021124110e170121110e1105140e110f18110f18110f18110f18120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
-const _hex19642 = pxsim.BufferMethods.createBufferFromHex("2018ffff11ff4f10ff8f113f13ff5f211f11ff8f11ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf")
-const _hex19656 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex19664 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex19672 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f176c4f3c1f375c7f573c8f572c8f2c375f1c4f4c175f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex19680 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex19694 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
-const _hex19702 = pxsim.BufferMethods.createBufferFromHex("1010f020ee20ee202e844e202e745e202e643e142e202e543e242e202e443e342e202e343e442e202e243e542e202e143e642e205e742e205e742e20ee20eef020")
-const _hex19710 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
-const _hex19718 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex19739 = pxsim.BufferMethods.createBufferFromHex("2026220001162314cc060002")
-const _hex19747 = pxsim.BufferMethods.createBufferFromHex("2026220001162300441600020002")
-const _hex19755 = pxsim.BufferMethods.createBufferFromHex("322622004413320144060004")
-const _hex19763 = pxsim.BufferMethods.createBufferFromHex("322622000113320044060004")
-const _hex19771 = pxsim.BufferMethods.createBufferFromHex("61102220042603000203")
-const _hex19779 = pxsim.BufferMethods.createBufferFromHex("61102208402603000201")
-const _hex19787 = pxsim.BufferMethods.createBufferFromHex("6310220004160400")
-function createSpaceInvaders__P3841(s) {
+function particles_ParticleSource_constructor__P62672(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -3855,506 +4197,264 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.sources___82946 = undefined;
+ s.removedSource___82955 = 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;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_0 = sprites_BaseSprite_constructor__P61852_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1068; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
+ s.tmp_0 = particles_init__P64632_mk(s);
+ s.callLocIdx = 1069; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1070; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.sources___82946 = (r0);
+ r0 = pxsim_Array__length(s.sources___82946);
s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ r0 = (s.tmp_1 >= globals.MAX_SOURCES___64609);
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_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1621; s.pc = 5; return s.tmp_3;
- case 5:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ s.tmp_2 = particles_sortSources__P64635_mk(s);
+ s.tmp_2.arg0 = s.sources___82946;
+ s.callLocIdx = 1071; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19422;
- s.callLocIdx = 1622; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19430;
- s.callLocIdx = 1623; s.pc = 9; return s.tmp_0;
+ r0 = pxsim_Array_.removeAt(s.sources___82946, 0);
+ s.removedSource___82955 = (r0);
+ s.tmp_0 = particles_ParticleSource_clear__P62682_mk(s);
+ s.tmp_0.arg0 = s.removedSource___82955;
+ s.callLocIdx = 1073; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
+ s.tmp_0 = particles_ParticleSource_destroy__P62681_mk(s);
+ s.tmp_0.arg0 = s.removedSource___82955;
+ s.callLocIdx = 1074; s.pc = 10; return s.tmp_0;
+ case 10:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1624; s.pc = 11; return s.tmp_0;
+ case 1:
+ case 2:
+ r0 = (s.arg0).fields["pFlags"] = (0);
+ s.tmp_0 = particles_ParticleSource_setRate__P62684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg2;
+ s.callLocIdx = 1075; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19444;
- s.callLocIdx = 1625; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19452;
- s.callLocIdx = 1626; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- 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_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19460;
- s.callLocIdx = 1627; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19468;
- s.callLocIdx = 1628; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1629; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19482;
- s.callLocIdx = 1630; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19490;
- s.callLocIdx = 1631; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19498;
- s.callLocIdx = 1632; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19506;
- s.callLocIdx = 1633; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
+ s.tmp_0 = particles_ParticleSource_setAcceleration__P62676_mk(s);
+ s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.callLocIdx = 1634; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = undefined;
- s.callLocIdx = 1635; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19527;
- s.callLocIdx = 1636; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19535;
- s.callLocIdx = 1637; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19543;
- s.callLocIdx = 1638; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19551;
- s.callLocIdx = 1639; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19559;
- s.callLocIdx = 1640; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19567;
- s.callLocIdx = 1641; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19575;
- s.callLocIdx = 1642; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19583;
- s.callLocIdx = 1643; s.pc = 49; return s.tmp_0;
- case 49:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 52);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 52:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19591;
- s.callLocIdx = 1644; s.pc = 51; return s.tmp_0;
- case 51:
+ s.tmp_0.arg2 = 0;
+ s.callLocIdx = 1076; s.pc = 12; return s.tmp_0;
+ case 12:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 54:
+ s.tmp_0 = particles_ParticleSource_setAnchor__P62683_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1077; s.pc = 13; return s.tmp_0;
+ case 13:
r0 = s.retval;
+ r0 = (s.arg0).fields["lifespan"] = (undefined);
+ r0 = (s.arg0).fields["_dt"] = (0);
+ r0 = (s.arg0).fields["priority"] = (0);
+ s.tmp_0 = r0 = s.arg3;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
+ case 3:
+ r0 = globals.defaultFactory___62687;
+ case 4:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19599;
- s.callLocIdx = 1645; s.pc = 53; return s.tmp_0;
- case 53:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 56:
+ s.tmp_2 = particles_ParticleSource_setFactory__P62686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 1078; s.pc = 14; return s.tmp_2;
+ case 14:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19607;
- s.callLocIdx = 1646; s.pc = 55; return s.tmp_0;
- case 55:
+ r0 = pxsim_Array__push(s.sources___82946, s.arg0);
+ s.tmp_0 = particles_ParticleSource_enabled__P62680_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1079; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 58);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 58:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_ParticleSource_constructor__P62672.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]}
+
+function particles_ParticleSource_constructor__P62672_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_ParticleSource_constructor__P62672, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ sources___82946: undefined,
+ removedSource___82955: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+} }
+
+
+
+
+
+function particles_particleSources__P64638(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.sources___83267 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 1130; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1647; s.pc = 57; return s.tmp_0;
- case 57:
+ r0 = r0.fields["particleSources"];
+ s.sources___83267 = (r0);
+ r0 = s.sources___83267;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_particleSources__P64638.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]}
+
+function particles_particleSources__P64638_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_particleSources__P64638, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ sources___83267: undefined,
+} }
+
+
+
+
+
+function particles_sortSources__P64635(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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 = helpers_arraySort__P60095_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = inline__P83253;
+ s.callLocIdx = 1117; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-createSpaceInvaders__P3841.info = {"start":24904,"length":3682,"line":581,"column":0,"endLine":667,"endColumn":1,"fileName":"games.ts","functionName":"createSpaceInvaders","argumentNames":["prefix"]}
+particles_sortSources__P64635.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]}
+
+function particles_sortSources__P64635_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_sortSources__P64635, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P83253(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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.fields["priority"];
+ s.tmp_1 = r0;
+ r0 = s.arg1.fields["priority"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = s.arg0.fields["id"];
+ s.tmp_3 = r0;
+ r0 = s.arg1.fields["id"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 - s.tmp_4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P83253.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]}
-function createSpaceInvaders__P3841_mk(s) {
+function inline__P83253_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createSpaceInvaders__P3841, depth: s.depth + 1,
+ parent: s, fn: inline__P83253, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
-const _hex19422 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17190f190f120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
-const _hex19430 = pxsim.BufferMethods.createBufferFromHex("2018ffaf12ffffff2f12ffffff2f124f10ffffcf12ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdf")
-const _hex19444 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex19452 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex19460 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex19468 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex19482 = pxsim.BufferMethods.createBufferFromHex("1010c02cd03cc04cc01f3cb01e1f3ca01c1e1f1e2c802e1c121c3e702e121c121c122e7012241e121e32803e141e32a02e1f32b01e1f2412c01e2214c02e22d03ee02e20")
-const _hex19490 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060")
-const _hex19498 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030")
-const _hex19506 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0")
-const _hex19527 = pxsim.BufferMethods.createBufferFromHex("202122000116230300060002")
-const _hex19535 = pxsim.BufferMethods.createBufferFromHex("10102200012602030001")
-const _hex19543 = pxsim.BufferMethods.createBufferFromHex("1110220040110001")
-const _hex19551 = pxsim.BufferMethods.createBufferFromHex("122022004011120100060300")
-const _hex19559 = pxsim.BufferMethods.createBufferFromHex("4110220010140002")
-const _hex19567 = pxsim.BufferMethods.createBufferFromHex("212122001012230100060003")
-const _hex19575 = pxsim.BufferMethods.createBufferFromHex("212122001013230100060000")
-const _hex19583 = pxsim.BufferMethods.createBufferFromHex("312022001010210400060000")
-const _hex19591 = pxsim.BufferMethods.createBufferFromHex("022122001010210001060401")
-const _hex19599 = pxsim.BufferMethods.createBufferFromHex("122022004001120010160300")
-const _hex19607 = pxsim.BufferMethods.createBufferFromHex("6110220090160300")
-function createHelloWorld__P3843(s) {
+function helpers_arraySort__P60095(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -4366,123 +4466,144 @@ 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, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ 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; }
+ 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:
- s.tmp_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1673; s.pc = 5; return s.tmp_3;
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ s.arg1 = (inline__P87109);
+ case 3:
+ case 4:
+ s.tmp_0 = helpers_sortHelper__P63884_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 3; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
- r0 = s.retval;
+ return leave(s, r0)
+ default: oops()
+} } }
+helpers_arraySort__P60095.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]}
+
+function helpers_arraySort__P60095_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: helpers_arraySort__P60095, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function inline__P87109(s) {
+let r0 = s.r0, 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.aIsUndef___87112 = undefined;
+ s.bIsUndef___87116 = undefined;
+ s.aIsNull___87127 = undefined;
+ s.bIsNull___87131 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = (s.arg0 === undefined);
+ s.aIsUndef___87112 = (r0);
+ r0 = (s.arg1 === undefined);
+ s.bIsUndef___87116 = (r0);
+ s.tmp_0 = r0 = s.aIsUndef___87112;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = s.bIsUndef___87116;
+ case 2:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19814;
- s.callLocIdx = 1674; s.pc = 7; return s.tmp_0;
+ 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___87112);
+ if (!r0) { step = 4; continue; }
+ r0 = 1;
+ { step = 17; continue; }
+ { step = 7; continue; }
+ case 4:
+ r0 = pxsim_numops_toBoolDecr(s.bIsUndef___87116);
+ if (!r0) { step = 5; continue; }
+ r0 = -1;
+ { step = 17; continue; }
+ case 5:
+ case 6:
case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19822;
- s.callLocIdx = 1675; s.pc = 9; return s.tmp_0;
+ case 8:
+ r0 = (s.arg0 === null);
+ s.aIsNull___87127 = (r0);
+ r0 = (s.arg1 === null);
+ s.bIsNull___87131 = (r0);
+ s.tmp_0 = r0 = s.aIsNull___87127;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 9; continue; }
+ r0 = s.tmp_0;
+ { step = 10; continue; }
case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
- r0 = s.retval;
+ r0 = s.bIsNull___87131;
+ case 10:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1676; s.pc = 11; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 11; continue; }
+ r0 = 0;
+ { step = 17; continue; }
+ { step = 16; continue; }
case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19836;
- s.callLocIdx = 1677; s.pc = 13; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.aIsNull___87127);
+ if (!r0) { step = 12; continue; }
+ r0 = 1;
+ { step = 17; continue; }
+ { step = 15; continue; }
+ case 12:
+ r0 = pxsim_numops_toBoolDecr(s.bIsNull___87131);
+ if (!r0) { step = 13; continue; }
+ r0 = -1;
+ { step = 17; continue; }
case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19844;
- s.callLocIdx = 1678; s.pc = 15; return s.tmp_0;
+ case 14:
case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
+ case 16:
if ((s.arg0) && (s.arg0).vtable) {
setupResume(s, 18);
pxsim_String__stringConv(s.arg0);
@@ -4491,311 +4612,57 @@ switch (step) {
} else { s.retval = (s.arg0) + ""; }
case 18:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19852;
- s.callLocIdx = 1679; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
+ 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.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19860;
- s.callLocIdx = 1680; s.pc = 19; return s.tmp_0;
+ } else { s.retval = (s.arg1) + ""; }
case 19:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1681; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19874;
- s.callLocIdx = 1682; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19882;
- s.callLocIdx = 1683; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19890;
- s.callLocIdx = 1684; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19898;
- s.callLocIdx = 1685; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 1686; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 10;
- s.callLocIdx = 1687; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19918;
- s.callLocIdx = 1688; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19926;
- s.callLocIdx = 1689; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19934;
- s.callLocIdx = 1690; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19942;
- s.callLocIdx = 1691; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19950;
- s.callLocIdx = 1692; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19958;
- s.callLocIdx = 1693; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19966;
- s.callLocIdx = 1694; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1695; s.pc = 49; return s.tmp_0;
- case 49:
- r0 = s.retval;
- case 3:
- r0 = undefined;
+ 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()
} } }
-createHelloWorld__P3843.info = {"start":32165,"length":3648,"line":749,"column":0,"endLine":825,"endColumn":1,"fileName":"games.ts","functionName":"createHelloWorld","argumentNames":["prefix"]}
+inline__P87109.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 createHelloWorld__P3843_mk(s) {
+function inline__P87109_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createHelloWorld__P3843, depth: s.depth + 1,
+ parent: s, fn: inline__P87109, depth: s.depth + 1,
pc: 0, retval: undefined, 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___87112: undefined,
+ bIsUndef___87116: undefined,
+ aIsNull___87127: undefined,
+ bIsNull___87131: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-const _hex19814 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17150f141202110f1412021102150c1207110e1207110e120f17120f171204110f121204110f1212041103110d12011403110d12011106110d1201110f15120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
-const _hex19822 = pxsim.BufferMethods.createBufferFromHex("2018ffaf10ffdf11ffffffffffff11ff8f123f12ffffffffffffffffffffffffffff4f1112ffffffffffffffffffffffffffffffffffffffffffffffffff3f")
-const _hex19836 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex19844 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex19852 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d")
-const _hex19860 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex19874 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
-const _hex19882 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50")
-const _hex19890 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20")
-const _hex19898 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex19918 = pxsim.BufferMethods.createBufferFromHex("202622000116230400060002")
-const _hex19926 = pxsim.BufferMethods.createBufferFromHex("201022000106")
-const _hex19934 = pxsim.BufferMethods.createBufferFromHex("201022000106")
-const _hex19942 = pxsim.BufferMethods.createBufferFromHex("201022000106")
-const _hex19950 = pxsim.BufferMethods.createBufferFromHex("401022000106")
-const _hex19958 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402")
-const _hex19966 = pxsim.BufferMethods.createBufferFromHex("222022000102230010160401")
-function createLeftHandRule__P3838(s) {
+function helpers_sortHelper__P63884(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -4805,421 +4672,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.len___87166 = undefined;
+ s.i___87169 = undefined;
+ s.j___87175 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
+ r0 = pxsim_Array__length(s.arg0);
s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ r0 = (s.tmp_1 <= 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
case 2:
- s.tmp_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ // 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___87166 = (r0);
+ s.i___87169 = (0);
+ case 5:
+ s.tmp_1 = r0 = s.i___87169;
+ r0 = (s.len___87166 - 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___87169 + 1);
+ s.j___87175 = (r0);
case 6:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ r0 = (s.j___87175 < s.len___87166);
+ 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___87169);
s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1568; s.pc = 5; return s.tmp_3;
- case 5:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18868;
- s.callLocIdx = 1569; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18876;
- s.callLocIdx = 1570; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = pxsim_Array__getAt(s.arg0, s.j___87175);
+ s.tmp_3.arg1 = r0;
+ setupLambda(s.tmp_3, s.tmp_3.argL);
+ s.callLocIdx = 1; s.pc = 12; return s.tmp_3;
case 12:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 > 0);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1571; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18890;
- s.callLocIdx = 1572; s.pc = 13; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 7; continue; }
+ s.tmp_4 = helpers_swap__P63883_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = s.i___87169;
+ s.tmp_4.arg2 = s.j___87175;
+ s.callLocIdx = 2; s.pc = 13; return s.tmp_4;
case 13:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18898;
- s.callLocIdx = 1573; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- 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_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18906;
- s.callLocIdx = 1574; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18914;
- s.callLocIdx = 1575; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1576; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18928;
- s.callLocIdx = 1577; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18936;
- s.callLocIdx = 1578; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18944;
- s.callLocIdx = 1579; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18952;
- s.callLocIdx = 1580; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1581; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 30;
- s.callLocIdx = 1582; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18972;
- s.callLocIdx = 1583; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18980;
- s.callLocIdx = 1584; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18988;
- s.callLocIdx = 1585; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18996;
- s.callLocIdx = 1586; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19004;
- s.callLocIdx = 1587; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex19012;
- s.callLocIdx = 1588; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1589; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- case 3:
- r0 = undefined;
+ case 7:
+ case 8:
+ r0 = (s.j___87175 + 1);
+ s.j___87175 = (r0);
+ { step = 6; continue; }
+ case 9:
+ r0 = (s.i___87169 + 1);
+ s.i___87169 = (r0);
+ { step = 5; continue; }
+ case 10:
+ r0 = s.arg0;
+ case 11:
return leave(s, r0)
default: oops()
} } }
-createLeftHandRule__P3838.info = {"start":12762,"length":3714,"line":293,"column":0,"endLine":370,"endColumn":1,"fileName":"games.ts","functionName":"createLeftHandRule","argumentNames":["prefix"]}
+helpers_sortHelper__P63884.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 createLeftHandRule__P3838_mk(s) {
+function helpers_sortHelper__P63884_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createLeftHandRule__P3838, depth: s.depth + 1,
+ parent: s, fn: helpers_sortHelper__P63884, depth: s.depth + 1,
pc: 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___87166: undefined,
+ i___87169: undefined,
+ j___87175: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-const _hex18868 = pxsim.BufferMethods.createBufferFromHex("2018f0a0e1107120116011707120111041101110511071201110112011101150111071201110211011101110113011107120114011104120111071206110112011201110719011201120111071201110711011201110712011401140112011107120411011104120111071201120111011201140111071201120111021101110112011107120112011401110112011107120112041101110411071201120114011401110712011201110911071201120111011701110712011201110211041101110712011201110112011201110111071201170114011107120e11071f020f1f11120f17120f17120f17120f17120f17120f171f0a0")
-const _hex18876 = pxsim.BufferMethods.createBufferFromHex("2018ffff8f10ffffffffffaf11ffffffffffffcf11ffff8f21ffffffaf11ff8f11ff4f11ffffffffffffffdf115f11ffffbf11ffffffffffffffffffffffffffffff8f")
-const _hex18890 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex18898 = pxsim.BufferMethods.createBufferFromHex("101015f7f71715471637155715472516e72516b725f725f71725d7251647158715165725d7151715c725167715571516f7f7f75725")
-const _hex18906 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex18914 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex18928 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
-const _hex18936 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex18944 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030")
-const _hex18952 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0")
-const _hex18972 = pxsim.BufferMethods.createBufferFromHex("412022000114120400060001")
-const _hex18980 = pxsim.BufferMethods.createBufferFromHex("41362200011121010006120400060001")
-const _hex18988 = pxsim.BufferMethods.createBufferFromHex("11362200011131010006210400060000")
-const _hex18996 = pxsim.BufferMethods.createBufferFromHex("1146220001111201000621010006230400060002")
-const _hex19004 = pxsim.BufferMethods.createBufferFromHex("1146220001112101000612010006230100060003")
-const _hex19012 = pxsim.BufferMethods.createBufferFromHex("3226220001133200041604020300")
-function createBoulderDash__P3835(s) {
+function helpers_swap__P63883(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -5229,574 +4789,358 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.temp___87204 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = pxsim_Array__getAt(s.arg0, s.arg1);
+ s.temp___87204 = (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___87204);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+helpers_swap__P63883.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]}
+
+function helpers_swap__P63883_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: helpers_swap__P63883, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ temp___87204: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function particles_init__P64632(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.scene___83272 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 1107; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "VersionS");
- s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ s.scene___83272 = (r0);
+ r0 = s.scene___83272.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_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1483; s.pc = 5; return s.tmp_3;
+ s.tmp_1 = r0 = s.scene___83272;
+ r0 = pxsim_Array__mk();
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2);
+ r0 = pxsim.control.millis();
+ globals.lastUpdate___64627 = (r0);
+ s.tmp_0 = game_onUpdate__P62532_mk(s);
+ s.tmp_0.arg0 = particles_updateParticles__P64633;
+ s.callLocIdx = 1108; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
+ s.tmp_0 = game_onUpdateInterval__P62533_mk(s);
+ s.tmp_0.arg0 = 250;
+ s.tmp_0.arg1 = particles_pruneParticles__P64634;
+ s.callLocIdx = 1109; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18224;
- s.callLocIdx = 1484; s.pc = 7; return s.tmp_0;
- case 7:
+ case 3:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_init__P64632.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]}
+
+function particles_init__P64632_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_init__P64632, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ scene___83272: undefined,
+} }
+
+
+
+
+
+function particles_pruneParticles__P64634(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.sources___83287 = undefined;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1113; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
+ s.sources___83287 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.sources___83287);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1 = helpers_arraySlice__P60104_mk(s);
+ s.tmp_1.arg0 = s.sources___83287;
+ s.tmp_1.arg1 = 0;
+ r0 = pxsim_Array__length(s.sources___83287);
+ s.tmp_1.arg2 = r0;
+ s.callLocIdx = 1114; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18232;
- s.callLocIdx = 1485; s.pc = 9; return s.tmp_0;
- case 9:
+ s.tmp_0.arg1 = inline__P83296;
+ s.callLocIdx = 1116; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
+ case 1:
+ case 2:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_pruneParticles__P64634.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]}
+
+function particles_pruneParticles__P64634_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_pruneParticles__P64634, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ sources___83287: undefined,
+} }
+
+
+
+
+
+function inline__P83296(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = particles_ParticleSource__prune__P62675_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1115; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P83296.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
+
+function inline__P83296_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P83296, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function particles_ParticleSource__prune__P62675(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.scene___83200 = undefined;
+ s.sources___83208 = undefined;
+ s.current___83222 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_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 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1486; s.pc = 11; return s.tmp_0;
- case 11:
+ r0 = (s.tmp_1 <= 0);
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ r0 = s.arg0.fields["head"];
+ r0 = r0.fields["next"];
+ s.tmp_3 = r0;
+ r0 = (s.arg0).fields["head"] = (s.tmp_3);
+ { step = 1; continue; }
+ case 4:
+ r0 = s.arg0.fields["pFlags"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 & 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
+ case 5:
+ r0 = s.arg0.fields["head"];
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 13; continue; }
+ s.tmp_5 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 1088; s.pc = 21; return s.tmp_5;
+ case 21:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
+ s.scene___83200 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.scene___83200);
+ if (!r0) { step = 7; continue; }
+ r0 = s.scene___83200.fields["allSprites"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
+ case 7:
+ case 8:
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1089; s.pc = 22; return s.tmp_0;
+ case 22:
r0 = s.retval;
+ s.sources___83208 = (r0);
+ s.tmp_0 = r0 = s.sources___83208;
+ 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___83208);
+ case 10:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18246;
- s.callLocIdx = 1487; s.pc = 13; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 11; continue; }
+ r0 = pxsim_Array_.removeElement(s.sources___83208, s.arg0);
+ case 11:
+ case 12:
+ r0 = s.arg0.fields["anchor"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 == undefined);
case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.arg0.fields["head"];
+ s.current___83222 = (r0);
+ case 15:
+ s.tmp_0 = r0 = s.current___83222;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 16; continue; }
+ r0 = s.tmp_0;
+ { step = 17; continue; }
case 16:
- r0 = s.retval;
+ r0 = s.current___83222.fields["next"];
+ case 17:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18254;
- s.callLocIdx = 1488; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 18);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 20; continue; }
+ r0 = s.current___83222.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___83222.fields["next"];
+ r0 = r0.fields["next"];
+ s.tmp_4 = r0;
+ r0 = (s.current___83222).fields["next"] = (s.tmp_4);
+ { step = 19; continue; }
case 18:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18262;
- s.callLocIdx = 1489; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18270;
- s.callLocIdx = 1490; s.pc = 19; return s.tmp_0;
+ r0 = s.current___83222.fields["next"];
+ s.current___83222 = (r0);
case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1491; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18284;
- s.callLocIdx = 1492; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18292;
- s.callLocIdx = 1493; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18300;
- s.callLocIdx = 1494; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18308;
- s.callLocIdx = 1495; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1496; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = NaN;
- s.callLocIdx = 1497; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18329;
- s.callLocIdx = 1498; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18337;
- s.callLocIdx = 1499; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18345;
- s.callLocIdx = 1500; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18353;
- s.callLocIdx = 1501; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18361;
- s.callLocIdx = 1502; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18369;
- s.callLocIdx = 1503; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18377;
- s.callLocIdx = 1504; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18385;
- s.callLocIdx = 1505; s.pc = 49; return s.tmp_0;
- case 49:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 52);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 52:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18393;
- s.callLocIdx = 1506; s.pc = 51; return s.tmp_0;
- case 51:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 54:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18401;
- s.callLocIdx = 1507; s.pc = 53; return s.tmp_0;
- case 53:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 56:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB13");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18409;
- s.callLocIdx = 1508; s.pc = 55; return s.tmp_0;
- case 55:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 58);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 58:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18417;
- s.callLocIdx = 1509; s.pc = 57; return s.tmp_0;
- case 57:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 60);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 60:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB12");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18425;
- s.callLocIdx = 1510; s.pc = 59; return s.tmp_0;
- case 59:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 62);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 62:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18433;
- s.callLocIdx = 1511; s.pc = 61; return s.tmp_0;
- case 61:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 64);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 64:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB14");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18441;
- s.callLocIdx = 1512; s.pc = 63; return s.tmp_0;
- case 63:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 66);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 66:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1513; s.pc = 65; return s.tmp_0;
- case 65:
- r0 = s.retval;
- case 3:
+ { step = 15; continue; }
+ case 20:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-createBoulderDash__P3835.info = {"start":363,"length":4737,"line":15,"column":0,"endLine":119,"endColumn":1,"fileName":"games.ts","functionName":"createBoulderDash","argumentNames":["prefix"]}
+particles_ParticleSource__prune__P62675.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]}
-function createBoulderDash__P3835_mk(s) {
+function particles_ParticleSource__prune__P62675_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createBoulderDash__P3835, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource__prune__P62675, depth: s.depth + 1,
pc: 0, retval: undefined, 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___83200: undefined,
+ sources___83208: undefined,
+ current___83222: undefined,
arg0: undefined,
} }
-const _hex18224 = pxsim.BufferMethods.createBufferFromHex("2018f0a022f1512032f1412032f14120321112f1212032f1412032f14120f171203122f121205132e1201132f13120f171203132f11120f17120f171205132e120322132e1205132e120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
-const _hex18232 = pxsim.BufferMethods.createBufferFromHex("2018ffaf11ff8f11ff8f11ff8f212f10ff4f11ffffffffef21ff9f2112ff2f1221ffffff2f2112ffffffffbf31ff1f21122f111211ff6f31ffffffffffffffffffffffffffffffffffffffffffffff6f")
-const _hex18246 = pxsim.BufferMethods.createBufferFromHex("1010fd181d363826181618161816181d2618361816181618161816181d1618163826181618161816181d1816281d28561816181d1816183d1876181d1816281d2876181d1618163886181d2618361866281d26181618164826381d2618161816181628261816181d2618161816182618261816181d2618161816182618261816181d261816181618162826381d48163866f828")
-const _hex18254 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex18262 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex18270 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d")
-const _hex18284 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
-const _hex18292 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30")
-const _hex18300 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex18308 = pxsim.BufferMethods.createBufferFromHex("10106057a01730373fb0271c111d1f408f1b1c1f302f5d1b1c1f211d1f101f1b513d1f1b1c1f201f611d1b1c1b1c111d2f812f1d3f101f811d111b3f101f811d213f101f812f1b3f201f611d1b1c1d3f201f1b513d3f402f5d1b1c1f807f1cc01f1c1b1f40")
-const _hex18329 = pxsim.BufferMethods.createBufferFromHex("20262200011623030c060002")
-const _hex18337 = pxsim.BufferMethods.createBufferFromHex("4120220014143210ff060003")
-const _hex18345 = pxsim.BufferMethods.createBufferFromHex("41202200141332103c060003")
-const _hex18353 = pxsim.BufferMethods.createBufferFromHex("222622000102230010140300")
-const _hex18361 = pxsim.BufferMethods.createBufferFromHex("414122001416320014042110ff063110ff060000")
-const _hex18369 = pxsim.BufferMethods.createBufferFromHex("322022001403320001160401")
-const _hex18377 = pxsim.BufferMethods.createBufferFromHex("6310220010160400")
-const _hex18385 = pxsim.BufferMethods.createBufferFromHex("21212200141232103c060003")
-const _hex18393 = pxsim.BufferMethods.createBufferFromHex("203122000116230004163305140600020002")
-const _hex18401 = pxsim.BufferMethods.createBufferFromHex("2016220001160102")
-const _hex18409 = pxsim.BufferMethods.createBufferFromHex("222122001412230554060004")
-const _hex18417 = pxsim.BufferMethods.createBufferFromHex("2031220001162300041633103c0600020003")
-const _hex18425 = pxsim.BufferMethods.createBufferFromHex("6110220001160102")
-const _hex18433 = pxsim.BufferMethods.createBufferFromHex("631022000106")
-const _hex18441 = pxsim.BufferMethods.createBufferFromHex("222122000112230004060004")
-function createSnake__P3836(s) {
+function helpers_arraySlice__P60104(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -5806,450 +5150,242 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.res___82568 = undefined;
+ s.len___82570 = undefined;
+ s.i___82604 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 2);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 2:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "VersionS");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = "4.0.0";
- s.callLocIdx = 1514; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_Array__mk();
+ s.res___82568 = (r0);
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___82570 = (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__P60117_mk(s);
+ r0 = (s.len___82570 + s.arg1);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 0;
+ s.callLocIdx = 10; s.pc = 16; return s.tmp_1;
+ case 16:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18462;
- s.callLocIdx = 1515; s.pc = 3; return s.tmp_0;
+ s.arg1 = (r0);
+ case 2:
case 3:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18470;
- s.callLocIdx = 1516; s.pc = 5; return s.tmp_0;
+ case 4:
+ r0 = (s.arg1 > s.len___82570);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.res___82568;
+ { step = 15; continue; }
case 5:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
- r0 = s.retval;
+ case 6:
+ r0 = (s.arg2 === undefined);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1517; s.pc = 7; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 7; continue; }
+ s.arg2 = (s.len___82570);
+ { step = 10; continue; }
case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18484;
- s.callLocIdx = 1518; s.pc = 9; return s.tmp_0;
+ r0 = (s.arg2 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ r0 = (s.len___82570 + s.arg2);
+ s.arg2 = (r0);
+ case 8:
case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 12:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18492;
- s.callLocIdx = 1519; s.pc = 11; return s.tmp_0;
+ case 10:
+ r0 = (s.arg2 > s.len___82570);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.arg2 = (s.len___82570);
case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18500;
- s.callLocIdx = 1520; s.pc = 13; return s.tmp_0;
+ case 12:
+ s.i___82604 = (s.arg1);
case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18508;
- s.callLocIdx = 1521; s.pc = 15; return s.tmp_0;
+ r0 = (s.i___82604 < s.arg2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ s.tmp_1 = r0 = s.res___82568;
+ r0 = pxsim_Array__getAt(s.arg0, s.i___82604);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
+ r0 = (s.i___82604 + 1);
+ s.i___82604 = (r0);
+ { step = 13; continue; }
+ case 14:
+ r0 = s.res___82568;
case 15:
+ return leave(s, r0)
+ default: oops()
+} } }
+helpers_arraySlice__P60104.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]}
+
+function helpers_arraySlice__P60104_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: helpers_arraySlice__P60104, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ res___82568: undefined,
+ len___82570: undefined,
+ i___82604: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function Math_max__P60117(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = (s.arg0 >= s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0;
+ { step = 3; continue; }
+ case 1:
+ case 2:
+ r0 = s.arg1;
+ case 3:
+ return leave(s, r0)
+ default: oops()
+} } }
+Math_max__P60117.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]}
+
+function Math_max__P60117_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Math_max__P60117, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function particles_updateParticles__P64633(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.sources___83767 = undefined;
+ s.time___83774 = undefined;
+ s.dt___83777 = undefined;
+ s.i___83783 = undefined;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1110; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- 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_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1522; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18522;
- s.callLocIdx = 1523; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18530;
- s.callLocIdx = 1524; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18538;
- s.callLocIdx = 1525; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18546;
- s.callLocIdx = 1526; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1527; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 430;
- s.callLocIdx = 1528; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18566;
- s.callLocIdx = 1529; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18574;
- s.callLocIdx = 1530; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18582;
- s.callLocIdx = 1531; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18590;
- s.callLocIdx = 1532; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18598;
- s.callLocIdx = 1533; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18606;
- s.callLocIdx = 1534; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18614;
- s.callLocIdx = 1535; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18622;
- s.callLocIdx = 1536; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
+ s.sources___83767 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.sources___83767);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18630;
- s.callLocIdx = 1537; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 5; continue; }
+ case 1:
+ case 2:
+ s.tmp_2 = particles_sortSources__P64635_mk(s);
+ s.tmp_2.arg0 = s.sources___83767;
+ s.callLocIdx = 1111; s.pc = 7; return s.tmp_2;
+ case 7:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1538; s.pc = 49; return s.tmp_0;
- case 49:
+ r0 = pxsim.control.millis();
+ s.time___83774 = (r0);
+ r0 = (s.time___83774 - globals.lastUpdate___64627);
+ s.dt___83777 = (r0);
+ globals.lastUpdate___64627 = (s.time___83774);
+ s.i___83783 = (0);
+ case 3:
+ s.tmp_1 = r0 = s.i___83783;
+ r0 = pxsim_Array__length(s.sources___83767);
+ 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__P62674_mk(s);
+ r0 = pxsim_Array__getAt(s.sources___83767, s.i___83783);
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.dt___83777;
+ s.callLocIdx = 1112; s.pc = 8; return s.tmp_3;
+ case 8:
r0 = s.retval;
+ r0 = (s.i___83783 + 1);
+ s.i___83783 = (r0);
+ { step = 3; continue; }
+ case 4:
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-createSnake__P3836.info = {"start":5104,"length":3600,"line":121,"column":0,"endLine":200,"endColumn":1,"fileName":"games.ts","functionName":"createSnake","argumentNames":["prefix"]}
+particles_updateParticles__P64633.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]}
-function createSnake__P3836_mk(s) {
+function particles_updateParticles__P64633_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createSnake__P3836, depth: s.depth + 1,
+ parent: s, fn: particles_updateParticles__P64633, 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,
+ sources___83767: undefined,
+ time___83774: undefined,
+ dt___83777: undefined,
+ i___83783: undefined,
} }
-const _hex18462 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17120a122a120914291208152912081529120815291209132a120f17120f17120f17120f17120f171204122f111203142f1203142f1203132f111204122f11120f17120f17120f17120f17120f171f0a0")
-const _hex18470 = pxsim.BufferMethods.createBufferFromHex("2018ffffffffff1f11ff8f11ff8f116f12ff1f11ff8f11ff8f11ff8f10ffbf12ffffffcf12ff2f12ffffffff3f12ffffffffffffaf12ffbf12ffffffffffffffff4f12ffffffff12ffffffff6f")
-const _hex18484 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex18492 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex18500 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex18508 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex18522 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
-const _hex18530 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20")
-const _hex18538 = pxsim.BufferMethods.createBufferFromHex("1010f0502c6e70ae603e523e403e821e402ea21e303e921e303c92142027161c921420172ea21430121e247214123022251462141e401214151452141260622412701e621ef050")
-const _hex18546 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0801e8012602e7012602c12601260161c828072901452f0f0f0f0f0a0")
-const _hex18566 = pxsim.BufferMethods.createBufferFromHex("212622000412230005020002")
-const _hex18574 = pxsim.BufferMethods.createBufferFromHex("212622000412120005010001")
-const _hex18582 = pxsim.BufferMethods.createBufferFromHex("212622000412320005030003")
-const _hex18590 = pxsim.BufferMethods.createBufferFromHex("2016220001160002")
-const _hex18598 = pxsim.BufferMethods.createBufferFromHex("222622000112231104060401")
-const _hex18606 = pxsim.BufferMethods.createBufferFromHex("21262200040221004c36030002010002")
-const _hex18614 = pxsim.BufferMethods.createBufferFromHex("4110220005140002")
-const _hex18622 = pxsim.BufferMethods.createBufferFromHex("4116220001120002")
-const _hex18630 = pxsim.BufferMethods.createBufferFromHex("2226220001322300102605010202040203000203")
-function createBejeweled__P3837(s) {
+function particles_ParticleSource__update__P62674(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -6259,506 +5395,360 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.p___83846 = undefined;
+ s.current___83865 = undefined;
+ s.fixedDt___83873 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 4:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["timer"];
s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "-VersionS");
+ r0 = (s.tmp_2 - s.arg1);
s.tmp_1 = r0;
- r0 = pxsim.settings._exists(s.tmp_1);
+ r0 = (s.tmp_0).fields["timer"] = (s.tmp_1);
+ r0 = s.arg0.fields["lifespan"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 !== undefined);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = r0 = s.arg0;
+ r0 = s.tmp_2.fields["lifespan"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 - s.arg1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3);
+ r0 = s.arg0.fields["lifespan"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 <= 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ r0 = (s.arg0).fields["lifespan"] = (undefined);
+ s.tmp_0 = particles_ParticleSource_destroy__P62681_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1083; s.pc = 28; return s.tmp_0;
+ case 28:
+ r0 = s.retval;
case 1:
case 2:
- s.tmp_3 = settings_writeString__P1825_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 6:
+ { step = 10; continue; }
+ case 3:
+ r0 = s.arg0.fields["anchor"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 4; continue; }
+ r0 = s.tmp_0;
+ { step = 5; continue; }
+ case 4:
+ s.tmp_2 = if_flags_1_mk(s);
+ r0 = s.arg0.fields["anchor"];
+ s.tmp_2.arg0 = r0;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags");
+ } else {
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"];
+ if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; }
+ else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
+ else { s.callLocIdx = 1084; s.pc = 29; return s.tmp_2; }
+ }
+ case 29:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, "VersionS");
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = "4.0.0";
- s.callLocIdx = 1540; s.pc = 5; return s.tmp_3;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 !== undefined);
case 5:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 6; continue; }
+ r0 = s.tmp_3;
+ { step = 7; continue; }
+ case 6:
+ s.tmp_5 = if_flags_1_mk(s);
+ r0 = s.arg0.fields["anchor"];
+ s.tmp_5.arg0 = r0;
+ if (!s.tmp_5.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags");
+ } else {
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"];
+ if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; }
+ else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
+ else { s.callLocIdx = 1085; s.pc = 30; return s.tmp_5; }
+ }
+ case 30:
r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WBackM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18657;
- s.callLocIdx = 1541; s.pc = 7; return s.tmp_0;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 & 2);
case 7:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 8; continue; }
+ r0 = (s.arg0).fields["lifespan"] = (750);
+ case 8:
+ case 9:
case 10:
- r0 = s.retval;
+ case 11:
+ r0 = s.arg0.fields["timer"];
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18665;
- s.callLocIdx = 1542; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = (s.tmp_1 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 12; continue; }
+ r0 = s.tmp_0;
+ { step = 13; continue; }
case 12:
+ s.tmp_2 = particles_ParticleSource_enabled__P62679_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 1086; s.pc = 31; return s.tmp_2;
+ case 31:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 16; continue; }
+ s.tmp_4 = r0 = s.arg0;
+ r0 = s.tmp_4.fields["timer"];
+ s.tmp_6 = r0;
+ r0 = s.arg0.fields["period"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 + s.tmp_7);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["timer"] = (s.tmp_5);
+ s.tmp_0 = particles_ParticleFactory__C62703_v0_2_mk(s);
+ r0 = s.arg0.fields["_factory"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1543; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 14:
+ r0 = s.arg0.fields["anchor"];
+ s.tmp_0.arg1 = r0;
+ if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C62703_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___83846 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.p___83846);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18679;
- s.callLocIdx = 1544; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ { step = 11; continue; }
+ case 14:
+ case 15:
+ r0 = s.arg0.fields["head"];
+ s.tmp_2 = r0;
+ r0 = (s.p___83846).fields["next"] = (s.tmp_2);
+ r0 = (s.arg0).fields["head"] = (s.p___83846);
+ { step = 11; continue; }
case 16:
- r0 = s.retval;
+ r0 = s.arg0.fields["head"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18687;
- s.callLocIdx = 1545; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 18);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 17; continue; }
+ { step = 27; continue; }
+ case 17:
case 18:
- r0 = s.retval;
+ r0 = s.arg0.fields["head"];
+ s.current___83865 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["_dt"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.arg1);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18695;
- s.callLocIdx = 1546; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 20:
- r0 = s.retval;
+ r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1);
+ r0 = s.arg0.fields["_dt"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 * 256);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "BackI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18703;
- s.callLocIdx = 1547; s.pc = 19; return s.tmp_0;
+ r0 = (s.tmp_1 | 0);
+ s.fixedDt___83873 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.fixedDt___83873);
+ if (!r0) { step = 23; continue; }
case 19:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 22:
- r0 = s.retval;
+ r0 = s.current___83865.fields["lifespan"];
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1548; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 24);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 24:
+ 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___83865;
+ 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__C62667_v4_3_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.current___83865;
+ s.tmp_0.arg2 = s.fixedDt___83873;
+ if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C62667_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;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18717;
- s.callLocIdx = 1549; s.pc = 23; return s.tmp_0;
+ case 20:
+ case 21:
+ r0 = s.current___83865.fields["next"];
+ s.tmp_0 = r0;
+ s.current___83865 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 22; continue; }
+ { step = 19; continue; }
+ case 22:
+ r0 = (s.arg0).fields["_dt"] = (0);
+ { step = 26; continue; }
case 23:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 26:
- r0 = s.retval;
+ case 24:
+ s.tmp_0 = r0 = s.current___83865;
+ r0 = s.tmp_0.fields["lifespan"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - s.arg1);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18725;
- s.callLocIdx = 1550; s.pc = 25; return s.tmp_0;
+ r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1);
+ r0 = s.current___83865.fields["next"];
+ s.tmp_0 = r0;
+ s.current___83865 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 25; continue; }
+ { step = 24; continue; }
case 25:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18733;
- s.callLocIdx = 1551; s.pc = 27; return s.tmp_0;
+ case 26:
case 27:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 30);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18741;
- s.callLocIdx = 1552; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 32);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HelpN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1553; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 34);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "HighN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 120;
- s.callLocIdx = 1554; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 36);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 36:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18761;
- s.callLocIdx = 1555; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 38);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18769;
- s.callLocIdx = 1556; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18777;
- s.callLocIdx = 1557; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18785;
- s.callLocIdx = 1558; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18793;
- s.callLocIdx = 1559; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18801;
- s.callLocIdx = 1560; s.pc = 45; return s.tmp_0;
- case 45:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18809;
- s.callLocIdx = 1561; s.pc = 47; return s.tmp_0;
- case 47:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 50);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 50:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18817;
- s.callLocIdx = 1562; s.pc = 49; return s.tmp_0;
- case 49:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 52);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 52:
- r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_ParticleSource__update__P62674.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]}
+
+function particles_ParticleSource__update__P62674_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_ParticleSource__update__P62674, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ p___83846: undefined,
+ current___83865: undefined,
+ fixedDt___83873: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function particles_ParticleSource_updateParticle__P64629(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = (s.arg2 >> 10);
+ s.arg2 = (r0);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = s.arg1.fields["vx"];
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["ax"];
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 8);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18825;
- s.callLocIdx = 1563; s.pc = 51; return s.tmp_0;
- case 51:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 54:
- r0 = s.retval;
+ r0 = (s.tmp_0).fields["vx"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = s.arg1.fields["vy"];
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["ay"];
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 8);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18833;
- s.callLocIdx = 1564; s.pc = 53; return s.tmp_0;
- case 53:
- r0 = s.retval;
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 56:
- r0 = s.retval;
+ r0 = (s.tmp_0).fields["vy"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = s.arg1.fields["_x"];
+ s.tmp_2 = r0;
+ r0 = s.arg1.fields["vx"];
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 8);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = _hex18841;
- s.callLocIdx = 1565; s.pc = 55; return s.tmp_0;
- case 55:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 58);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 58:
- r0 = s.retval;
+ r0 = (s.tmp_0).fields["_x"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = s.arg1.fields["_y"];
+ s.tmp_2 = r0;
+ r0 = s.arg1.fields["vy"];
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 8);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1566; s.pc = 57; return s.tmp_0;
- case 57:
- r0 = s.retval;
- case 3:
+ r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-createBejeweled__P3837.info = {"start":8708,"length":4048,"line":202,"column":0,"endLine":290,"endColumn":1,"fileName":"games.ts","functionName":"createBejeweled","argumentNames":["prefix"]}
+particles_ParticleSource_updateParticle__P64629.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]}
-function createBejeweled__P3837_mk(s) {
+function particles_ParticleSource_updateParticle__P64629_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: createBejeweled__P3837, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_updateParticle__P64629, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
-const _hex18657 = pxsim.BufferMethods.createBufferFromHex("201880f111106110f111106110f111106110f111106110f111106110f111106110f111106110f111106110f11180f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f141")
-const _hex18665 = pxsim.BufferMethods.createBufferFromHex("2018ffaf1311122312ff3f12132123ff3f1211231112ff3f111311121311ff3f1112132113ff3f131211101311ff3f1311121122ff3f22231113ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffef")
-const _hex18679 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
-const _hex18687 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
-const _hex18695 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
-const _hex18703 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
-const _hex18717 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060")
-const _hex18725 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
-const _hex18733 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30")
-const _hex18741 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50")
-const _hex18761 = pxsim.BufferMethods.createBufferFromHex("6143220040242100401423004024120000260300010103000300010106000402")
-const _hex18769 = pxsim.BufferMethods.createBufferFromHex("61432200102421001024230010241200002603000101030001010300010106000402")
-const _hex18777 = pxsim.BufferMethods.createBufferFromHex("6130220054163204fc061200001600030600")
-const _hex18785 = pxsim.BufferMethods.createBufferFromHex("61432200042423000424210004241200002603000101030001010300010106000402")
-const _hex18793 = pxsim.BufferMethods.createBufferFromHex("202622080116231000060002")
-const _hex18801 = pxsim.BufferMethods.createBufferFromHex("205622000116230400061230000621300006323000060002")
-const _hex18809 = pxsim.BufferMethods.createBufferFromHex("412322205424212054240000010300020103")
-const _hex18817 = pxsim.BufferMethods.createBufferFromHex("4010222001160101")
-const _hex18825 = pxsim.BufferMethods.createBufferFromHex("4016220801160102")
-const _hex18833 = pxsim.BufferMethods.createBufferFromHex("612322805424218054240000010100020101")
-const _hex18841 = pxsim.BufferMethods.createBufferFromHex("61502280541621c0000612c0000623c0000632c000060101")
-function tileworld_LoadScreen_constructor__P3833(s) {
+function Fx_rightShift__P60156(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -6770,61 +5760,66 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0);
- r0 = (s.arg0).fields["lastDir"] = (-1);
- s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = null;
- s.callLocIdx = 1419; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = controller_setRepeatDefault__P1913_mk(s);
- s.tmp_0.arg0 = 500;
- s.tmp_0.arg1 = 80;
- s.callLocIdx = 1420; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17829);
+ r0 = (s.arg0 >> s.arg1);
+ return leave(s, r0)
+ default: oops()
+} } }
+Fx_rightShift__P60156.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]}
+
+function Fx_rightShift__P60156_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Fx_rightShift__P60156, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function Fx_mul__P60147(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1437; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- s.tmp_0 = tileworld_LoadScreen__C3832_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C3832_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = undefined;
+ r0 = (s.tmp_0 >> 8);
return leave(s, r0)
default: oops()
} } }
-tileworld_LoadScreen_constructor__P3833.info = {"start":163,"length":1211,"line":7,"column":8,"endLine":32,"endColumn":9,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":["this"]}
+Fx_mul__P60147.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 tileworld_LoadScreen_constructor__P3833_mk(s) {
+function Fx_mul__P60147_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_LoadScreen_constructor__P3833, depth: s.depth + 1,
+ parent: s, fn: Fx_mul__P60147, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P17829(s) {
+function Fx_add__P60144(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -6834,286 +5829,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.first___17830 = undefined;
- s.second___17842 = undefined;
- s.slot___17872 = undefined;
- s.prefix___17882 = undefined;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1421; s.pc = 21; return s.tmp_2;
- case 21:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >= 3);
- 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.lambdaArgs = null;
+ }
+ r0 = (s.arg0 + s.arg1);
+ return leave(s, r0)
+ default: oops()
+} } }
+Fx_add__P60144.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]}
+
+function Fx_add__P60144_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Fx_add__P60144, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function particles_ParticleFactory_createParticle__P62705(s) {
+let r0 = s.r0, 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___83963 = 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__C62703_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C62648_VT);
+ s.p___83963 = (r0);
+ s.tmp_0 = r0 = s.p___83963;
+ s.tmp_3 = if_x_1_mk(s);
+ s.tmp_3.arg0 = s.arg1;
+ if (!s.tmp_3.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x");
+ } else {
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"];
+ if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; }
+ else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
+ else { s.callLocIdx = 1137; s.pc = 1; return s.tmp_3; }
+ }
case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1422; s.pc = 22; return s.tmp_4;
- case 22:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 <= 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 * 256);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_x"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.p___83963;
+ s.tmp_3 = if_y_1_mk(s);
+ s.tmp_3.arg0 = s.arg1;
+ if (!s.tmp_3.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y");
+ } else {
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"];
+ if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; }
+ else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
+ else { s.callLocIdx = 1139; s.pc = 2; return s.tmp_3; }
+ }
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.first___17830 = (s.tmp_5);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1423; s.pc = 23; return s.tmp_2;
- case 23:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >= 5);
- 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_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1424; s.pc = 24; return s.tmp_4;
- case 24:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 <= 6);
- case 4:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.second___17842 = (s.tmp_5);
- s.tmp_0 = r0 = s.first___17830;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
- case 5:
- r0 = s.second___17842;
- case 6:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_1;
- { step = 10; continue; }
- case 7:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1425; s.pc = 25; return s.tmp_4;
- case 25:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 8; continue; }
- r0 = s.tmp_2;
- { step = 9; continue; }
- case 8:
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.tmp_6.arg1 = true;
- s.callLocIdx = 1426; s.pc = 26; return s.tmp_6;
- case 26:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 <= 5);
- case 9:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = s.tmp_7;
- case 10:
- // jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 15; continue; }
- r0 = pxsim_numops_toBoolDecr(s.first___17830);
- if (!r0) { step = 11; continue; }
- r0 = 0;
- { step = 12; continue; }
- case 11:
- r0 = 4;
- case 12:
- // jmp value (already in r0)
- s.tmp_9 = r0;
- s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_12.arg0 = s.caps[0];
- s.tmp_12.arg1 = true;
- s.callLocIdx = 1427; s.pc = 27; return s.tmp_12;
- case 27:
- r0 = s.retval;
- s.tmp_11 = r0;
- r0 = (s.tmp_11 - 1);
- s.tmp_10 = r0;
- r0 = (s.tmp_10 + s.tmp_9);
- s.slot___17872 = (r0);
- r0 = pxsim_numops.toString(s.slot___17872);
- s.tmp_3 = r0;
- if ((s.tmp_3) && (s.tmp_3).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.tmp_3);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_3) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat("TW", s.tmp_2);
- s.tmp_1 = r0;
- if ((s.tmp_1) && (s.tmp_1).vtable) {
- setupResume(s, 29);
- pxsim_String__stringConv(s.tmp_1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_1) + ""; }
- case 29:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "-");
- s.prefix___17882 = (r0);
- s.tmp_0 = r0 = s.caps[0];
- s.tmp_2 = tileworld_loadProject__P3709_mk(s);
- s.tmp_2.arg0 = s.prefix___17882;
- s.tmp_2.arg1 = false;
- s.callLocIdx = 1428; s.pc = 30; return s.tmp_2;
- case 30:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["p"] = (s.tmp_1);
- s.tmp_0 = tileworld_LoadScreen__C3832_v0_1_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C3832_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- r0 = s.caps[0].fields["p"];
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.caps[0];
- s.tmp_5 = tileworld_emptyProject__P3710_mk(s);
- s.tmp_5.arg0 = s.prefix___17882;
- s.callLocIdx = 1429; s.pc = 32; return s.tmp_5;
- case 32:
- r0 = s.retval;
+ r0 = (s.tmp_2 * 256);
s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["p"] = (s.tmp_4);
- s.tmp_0 = tileworld_Project_saveProject__P3706_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 1430; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- case 13:
- case 14:
- r0 = (s.caps[0]).fields["lastDir"] = (-1);
- r0 = (s.caps[0]).fields["lastDir"] = (-1);
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1431; s.pc = 34; return s.tmp_0;
- case 34:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_GameHome__C3829_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_GameHome_constructor__P3830_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1432; s.pc = 35; return s.tmp_1;
- case 35:
- r0 = s.retval;
- { step = 20; continue; }
- case 15:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1433; s.pc = 36; return s.tmp_2;
- case 36:
- r0 = s.retval;
+ r0 = (s.tmp_4 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 9);
- 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_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1434; s.pc = 37; return s.tmp_4;
- case 37:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 0);
- case 17:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 18; continue; }
- s.tmp_6 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1435; s.pc = 38; return s.tmp_6;
- case 38:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C3826_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_ProjectSettings_constructor__P3827_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = null;
- s.callLocIdx = 1436; s.pc = 39; return s.tmp_1;
- case 39:
- r0 = s.retval;
- case 18:
- case 19:
- case 20:
- r0 = undefined;
+ r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
+ r0 = (s.p___83963).fields["vx"] = (0);
+ r0 = (s.p___83963).fields["vy"] = (0);
+ r0 = (s.p___83963).fields["lifespan"] = (500);
+ r0 = s.p___83963;
return leave(s, r0)
default: oops()
} } }
-inline__P17829.info = {"start":321,"length":1012,"line":10,"column":64,"endLine":30,"endColumn":13,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":[]}
+particles_ParticleFactory_createParticle__P62705.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]}
-function inline__P17829_mk(s) {
+function particles_ParticleFactory_createParticle__P62705_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17829, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleFactory_createParticle__P62705, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- first___17830: undefined,
- second___17842: undefined,
- slot___17872: undefined,
- prefix___17882: undefined,
+ p___83963: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_ProjectSettings_constructor__P3827(s) {
+function game_onUpdateInterval__P62533(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7123,65 +5949,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.timer___83309 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ProjectSettings__C3826_VT)) failedCast(r0);
- r0 = (s.arg0).fields["askDeleteRule"] = (false);
- s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1314; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = undefined;
+ s.callLocIdx = 890; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1315; s.pc = 2; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = (s.arg0 < 0);
case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1316; s.pc = 3; return s.tmp_0;
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ { step = 5; continue; }
case 3:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17302);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1333; s.pc = 4; return s.tmp_1;
case 4:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17373);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.timer___83309 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.timer___83309, 0);
+ r0 = pxsim_pxtcore_mkAction(3, inline__P83313);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___83309);
+ 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__P60384_mk(s);
+ s.tmp_2 = game_eventContext__P62524_mk(s);
+ s.callLocIdx = 891; s.pc = 8; return s.tmp_2;
+ case 8:
+ r0 = s.retval;
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 19;
s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1335; s.pc = 5; return s.tmp_1;
- case 5:
+ s.callLocIdx = 895; s.pc = 7; return s.tmp_1;
+ case 7:
r0 = s.retval;
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ProjectSettings_constructor__P3827.info = {"start":176,"length":1688,"line":6,"column":8,"endLine":46,"endColumn":9,"fileName":"settings.ts","functionName":"inline","argumentNames":["this","p"]}
+game_onUpdateInterval__P62533.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]}
-function tileworld_ProjectSettings_constructor__P3827_mk(s) {
+function game_onUpdateInterval__P62533_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ProjectSettings_constructor__P3827, depth: s.depth + 1,
+ parent: s, fn: game_onUpdateInterval__P62533, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ timer___83309: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -7190,7 +6021,7 @@ function tileworld_ProjectSettings_constructor__P3827_mk(s) {
-function inline__P17302(s) {
+function inline__P83313(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7200,236 +6031,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.keys___17307 = undefined;
- r0 = s.caps[0].fields["askDeleteRule"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.caps[0].fields["p"];
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = settings_list__P1832_mk(s);
- r0 = s.caps[0].fields["p"];
- r0 = r0.fields["prefix"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1317; s.pc = 24; return s.tmp_2;
- case 24:
- r0 = s.retval;
- s.keys___17307 = (r0);
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = s.keys___17307;
- s.tmp_0.arg1 = inline__P17314;
- s.callLocIdx = 1319; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1320; s.pc = 26; return s.tmp_0;
- case 26:
- r0 = s.retval;
- { step = 2; continue; }
- case 1:
- s.tmp_0 = settings_clear__P1823_mk(s);
- s.callLocIdx = 1321; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- case 2:
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1322; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- { step = 22; continue; }
+ s.time___83314 = undefined;
+ s.tmp_1 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 892; s.pc = 3; return s.tmp_1;
case 3:
- r0 = s.caps[0].fields["p"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.tmp_3.arg1 = true;
- s.callLocIdx = 1323; s.pc = 29; return s.tmp_3;
- case 29:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == 3);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 4; continue; }
- r0 = s.tmp_1;
- { step = 5; continue; }
- case 4:
- s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_5.arg0 = s.caps[0];
- s.tmp_5.arg1 = true;
- s.callLocIdx = 1324; s.pc = 30; return s.tmp_5;
- case 30:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_4 == 1);
- case 5:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 6; continue; }
- r0 = s.caps[0].fields["p"];
- s.tmp_7 = r0;
- r0 = s.caps[0].fields["p"];
- r0 = r0.fields["help"];
- s.tmp_10 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_10);
- s.tmp_9 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_9);
- s.tmp_8 = r0;
- r0 = (s.tmp_7).fields["help"] = (s.tmp_8);
- s.tmp_0 = tileworld_Project_saveHelp__P3704_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 1325; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- { step = 11; continue; }
- case 6:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1326; s.pc = 32; return s.tmp_2;
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 7:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1327; s.pc = 33; return s.tmp_4;
- case 33:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 5);
- case 8:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 9; continue; }
- s.tmp_6 = tileworld_loadProject__P3709_mk(s);
- r0 = s.caps[0].fields["p"];
- r0 = r0.fields["prefix"];
- s.tmp_6.arg0 = r0;
- s.tmp_6.arg1 = true;
- s.callLocIdx = 1328; s.pc = 34; return s.tmp_6;
- case 34:
- r0 = s.retval;
- case 9:
- case 10:
- case 11:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1329; s.pc = 35; return s.tmp_2;
- case 35:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 4);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 12; continue; }
- r0 = s.tmp_0;
- { step = 13; continue; }
- case 12:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1330; s.pc = 36; return s.tmp_4;
- case 36:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 6);
- case 13:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 14; continue; }
- r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
- case 14:
- case 15:
- { step = 21; continue; }
- case 16:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1331; s.pc = 37; return s.tmp_2;
- case 37:
- r0 = s.retval;
+ r0 = s.tmp_0.fields["_millis"];
+ s.time___83314 = (r0);
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 7);
+ r0 = (s.tmp_1 <= s.time___83314);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 17; continue; }
- r0 = s.tmp_0;
- { step = 18; continue; }
- case 17:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1332; s.pc = 38; return s.tmp_4;
- case 38:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = r0 = s.caps[0];
+ r0 = (s.time___83314 + s.caps[1]);
s.tmp_3 = r0;
- r0 = (s.tmp_3 == 2);
- case 18:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 19; continue; }
- r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
- { step = 23; continue; }
- case 19:
- case 20:
- case 21:
- case 22:
- s.tmp_0 = tileworld_ProjectSettings__C3826_v0_1_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ProjectSettings__C3826_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 39; return s.tmp_0;
- case 39:
+ 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 = 894; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- case 23:
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P17302.info = {"start":335,"length":1249,"line":9,"column":64,"endLine":37,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]}
+inline__P83313.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]}
-function inline__P17302_mk(s) {
+function inline__P83313_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17302, depth: s.depth + 1,
+ parent: s, fn: inline__P83313, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- keys___17307: undefined,
+ time___83314: undefined,
} }
-function inline__P17314(s) {
+function scene_Scene_millis__P62432(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7443,23 +6093,19 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = settings_remove__P1833_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1318; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, scene_Scene__C62408_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_millis"];
return leave(s, r0)
default: oops()
} } }
-inline__P17314.info = {"start":525,"length":26,"line":13,"column":37,"endLine":13,"endColumn":63,"fileName":"settings.ts","functionName":"inline","argumentNames":["k"]}
+scene_Scene_millis__P62432.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]}
-function inline__P17314_mk(s) {
+function scene_Scene_millis__P62432_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17314, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_millis__P62432, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
} }
@@ -7467,7 +6113,7 @@ function inline__P17314_mk(s) {
-function inline__P17373(s) {
+function control_EventContext_registerFrameHandler__P60384(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7477,37 +6123,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["askDeleteRule"];
+ s.fn___83337 = undefined;
+ s.i___83346 = 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__C60376_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 = (s.caps[0]).fields["askDeleteRule"] = (false);
- { step = 2; continue; }
- case 1:
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1334; s.pc = 3; return s.tmp_0;
- case 3:
+ 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__P63956_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 63; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
+ case 1:
case 2:
- r0 = undefined;
+ r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C60373_VT);
+ s.fn___83337 = (r0);
+ r0 = (s.fn___83337).fields["order"] = (s.arg1);
+ r0 = (s.fn___83337).fields["handler"] = (s.arg2);
+ s.i___83346 = (0);
+ case 3:
+ s.tmp_1 = r0 = s.i___83346;
+ 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___83346);
+ 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___83346, s.fn___83337);
+ r0 = s.fn___83337;
+ { step = 7; continue; }
+ case 4:
+ case 5:
+ r0 = (s.i___83346 + 1);
+ s.i___83346 = (r0);
+ { step = 3; continue; }
+ case 6:
+ r0 = s.arg0.fields["frameCallbacks"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.fn___83337);
+ r0 = s.fn___83337;
+ case 7:
return leave(s, r0)
default: oops()
} } }
-inline__P17373.info = {"start":1654,"length":197,"line":39,"column":64,"endLine":45,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]}
+control_EventContext_registerFrameHandler__P60384.info = {"start":4573,"length":643,"line":140,"column":8,"endLine":157,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]}
-function inline__P17373_mk(s) {
+function control_EventContext_registerFrameHandler__P60384_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17373, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_registerFrameHandler__P60384, depth: s.depth + 1,
pc: 0, retval: undefined, 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___83337: undefined,
+ i___83346: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ProjectSettings_update__P17291(s) {
+function control_EventContext_registerFrameCallbacks__P63956(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7517,279 +6231,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.worldY___17411 = undefined;
+ s.worker___83380 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ProjectSettings__C3826_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = 16;
- s.tmp_0.arg4 = 16;
- s.tmp_0.arg5 = 11;
- s.callLocIdx = 1336; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.settingsIcon___3719, 0, 6);
- r0 = s.arg0.fields["p"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = helpers_imagePrint__P1757_mk(s);
- s.tmp_1.arg0 = globals.screen___1799;
- s.tmp_1.arg1 = "Help";
- s.tmp_1.arg2 = 16;
- s.tmp_1.arg3 = 28;
- s.tmp_1.arg4 = undefined;
- s.tmp_1.arg5 = undefined;
- s.tmp_1.arg6 = undefined;
- s.callLocIdx = 1337; s.pc = 10; return s.tmp_1;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 3;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = globals.emptyTile___3721;
- s.callLocIdx = 1338; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["help"];
+ if (!checkSubtype(r0, control_EventContext__C60376_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 = globals.collisionSprite___3725;
- { step = 2; continue; }
+ { step = 3; continue; }
case 1:
- r0 = globals.genericSprite___3726;
case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 3;
- s.tmp_2.arg2 = 1;
- s.tmp_2.arg3 = s.tmp_1;
- s.callLocIdx = 1339; s.pc = 12; return s.tmp_2;
- case 12:
- r0 = s.retval;
- s.worldY___17411 = (44);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "World";
- s.tmp_0.arg2 = 16;
- s.tmp_0.arg3 = s.worldY___17411;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1340; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgrounds"];
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 64;
- s.tmp_0.arg3 = s.worldY___17411;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1342; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "by";
- s.tmp_0.arg2 = 96;
- s.tmp_0.arg3 = s.worldY___17411;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1343; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgrounds"];
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 128;
- s.tmp_0.arg3 = s.worldY___17411;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1345; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["version"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 120;
- s.tmp_0.arg3 = 6;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1346; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Export";
- s.tmp_0.arg2 = 16;
- s.tmp_0.arg3 = 92;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1347; s.pc = 18; return s.tmp_0;
- case 18:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 4;
- s.tmp_0.arg2 = 5;
- s.tmp_0.arg3 = globals.diskIcon___3763;
- s.callLocIdx = 1348; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Delete";
- s.tmp_0.arg2 = 16;
- s.tmp_0.arg3 = 108;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1349; s.pc = 20; return s.tmp_0;
- case 20:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 4;
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = globals.garbageCan___3718;
- s.callLocIdx = 1350; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- { step = 4; continue; }
- case 3:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- if ((globals.TileWorldVersion___3665) && (globals.TileWorldVersion___3665).vtable) {
- setupResume(s, 23);
- pxsim_String__stringConv(globals.TileWorldVersion___3665);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.TileWorldVersion___3665) + ""; }
- case 23:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat("App Version ", s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 16;
- s.tmp_0.arg3 = 28;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1351; s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Delete ALL games";
- s.tmp_0.arg2 = 16;
- s.tmp_0.arg3 = 44;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1352; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 7;
- s.tmp_0.arg2 = 2;
- s.tmp_0.arg3 = globals.garbageCan___3718;
- s.callLocIdx = 1353; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- case 4:
- r0 = s.arg0.fields["askDeleteRule"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_1 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 128;
- s.tmp_1.arg2 = true;
- s.callLocIdx = 1354; s.pc = 26; return s.tmp_1;
- case 26:
- r0 = s.retval;
- r0 = s.arg0.fields["p"];
+ r0 = s.arg0.fields["frameWorker"];
+ s.worker___83380 = (r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P83386);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = "OK to delete game?";
- { step = 6; continue; }
- case 5:
- r0 = "OK to delete ALL games?";
- case 6:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = game_showDialog__P2530_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = "A = OK, B = CANCEL";
- s.callLocIdx = 1355; s.pc = 27; return s.tmp_2;
- case 27:
- r0 = s.retval;
- { step = 8; continue; }
- case 7:
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = false;
- s.callLocIdx = 1356; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- case 8:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___83380);
+ r0 = pxsim.control.runInParallel(s.tmp_0);
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ProjectSettings_update__P17291.info = {"start":1876,"length":1553,"line":48,"column":8,"endLine":78,"endColumn":9,"fileName":"settings.ts","functionName":"update","argumentNames":["this"]}
+control_EventContext_registerFrameCallbacks__P63956.info = {"start":3379,"length":895,"line":102,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]}
-function tileworld_ProjectSettings_update__P17291_mk(s) {
+function control_EventContext_registerFrameCallbacks__P63956_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ProjectSettings_update__P17291, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_registerFrameCallbacks__P63956, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- worldY___17411: undefined,
+ worker___83380: undefined,
arg0: undefined,
} }
@@ -7797,7 +6279,7 @@ function tileworld_ProjectSettings_update__P17291_mk(s) {
-function game_showDialog__P2530(s) {
+function inline__P83386(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -7807,363 +6289,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.titleFont___25929 = undefined;
- s.subFont___25934 = undefined;
- s.footerFont___25939 = undefined;
- s.h___25944 = undefined;
- s.top___25963 = undefined;
- s.y___25967 = undefined;
- s.footerTop___26004 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = undefined;
- s.callLocIdx = 869; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ s.delay___83416 = undefined;
+ r0 = s.caps[0].fields["runningCallbacks"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = pxsim_String_.mkEmpty();
- case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = image_getFontForText__P1744_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- s.callLocIdx = 870; s.pc = 22; return s.tmp_2;
- case 22:
- r0 = s.retval;
- s.titleFont___25929 = (r0);
- s.tmp_0 = r0 = s.arg1;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- r0 = pxsim_String_.mkEmpty();
- case 4:
- // jmp value (already in r0)
+ r0 = pxsim_pxtcore_mkAction(1, inline__P83392);
s.tmp_1 = r0;
- s.tmp_2 = image_getFontForText__P1744_mk(s);
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]);
+ s.tmp_2 = pauseUntil__P60348_mk(s);
s.tmp_2.arg0 = s.tmp_1;
- s.callLocIdx = 871; s.pc = 23; return s.tmp_2;
- case 23:
- r0 = s.retval;
- s.subFont___25934 = (r0);
- s.tmp_0 = r0 = s.arg2;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 57; s.pc = 5; return s.tmp_2;
case 5:
- r0 = pxsim_String_.mkEmpty();
- case 6:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = image_getFontForText__P1744_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- s.callLocIdx = 872; s.pc = 24; return s.tmp_2;
- case 24:
- r0 = s.retval;
- s.footerFont___25939 = (r0);
- s.h___25944 = (8);
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- if (!r0) { step = 7; continue; }
- s.tmp_0 = r0 = s.h___25944;
- s.tmp_2 = if_charHeight_1_mk(s);
- s.tmp_2.arg0 = s.titleFont___25929;
- 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 = 873; s.pc = 25; return s.tmp_2; }
- }
- case 25:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.h___25944 = (r0);
- case 7:
- case 8:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 9; continue; }
- s.tmp_0 = r0 = s.h___25944;
- s.tmp_3 = if_charHeight_1_mk(s);
- s.tmp_3.arg0 = s.subFont___25934;
- 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 = 874; s.pc = 26; return s.tmp_3; }
- }
- case 26:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (2 + s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.h___25944 = (r0);
- case 9:
- case 10:
- r0 = (s.h___25944 + 8);
- s.h___25944 = (r0);
- s.tmp_0 = game_showDialogBackground__P4283_mk(s);
- s.tmp_0.arg0 = s.h___25944;
- s.tmp_0.arg1 = 9;
- s.callLocIdx = 875; s.pc = 27; return s.tmp_0;
- case 27:
r0 = s.retval;
- s.top___25963 = (r0);
- r0 = (s.top___25963 + 8);
- s.y___25967 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- if (!r0) { step = 13; continue; }
- r0 = pxsim_ImageMethods.isMono(globals.screen___1799);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = 1;
- { step = 12; continue; }
- case 11:
- r0 = 7;
- case 12:
- // jmp value (already in r0)
+ 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;
- s.tmp_2 = helpers_imagePrint__P1757_mk(s);
- s.tmp_2.arg0 = globals.screen___1799;
- s.tmp_2.arg1 = s.arg0;
- s.tmp_2.arg2 = 8;
- s.tmp_2.arg3 = s.y___25967;
- s.tmp_2.arg4 = s.tmp_1;
- s.tmp_2.arg5 = s.titleFont___25929;
- s.tmp_2.arg6 = undefined;
- s.callLocIdx = 876; s.pc = 28; return s.tmp_2;
- case 28:
- r0 = s.retval;
- s.tmp_0 = r0 = s.y___25967;
- s.tmp_3 = if_charHeight_1_mk(s);
- s.tmp_3.arg0 = s.titleFont___25929;
- 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 = 877; s.pc = 29; return s.tmp_3; }
- }
- case 29:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 2);
+ r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1);
+ case 3:
+ r0 = s.caps[0].fields["frameWorker"];
s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.y___25967 = (r0);
- case 13:
- case 14:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 17; continue; }
- r0 = pxsim_ImageMethods.isMono(globals.screen___1799);
+ r0 = (s.caps[1] == s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- r0 = 1;
- { step = 16; continue; }
- case 15:
- r0 = 6;
- case 16:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = helpers_imagePrint__P1757_mk(s);
- s.tmp_2.arg0 = globals.screen___1799;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = 8;
- s.tmp_2.arg3 = s.y___25967;
- s.tmp_2.arg4 = s.tmp_1;
- s.tmp_2.arg5 = s.subFont___25934;
- s.tmp_2.arg6 = undefined;
- s.callLocIdx = 878; s.pc = 30; return s.tmp_2;
- case 30:
- r0 = s.retval;
- s.tmp_0 = r0 = s.y___25967;
- s.tmp_3 = if_charHeight_1_mk(s);
- s.tmp_3.arg0 = s.subFont___25934;
- 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 = 879; s.pc = 31; return s.tmp_3; }
- }
- case 31:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.y___25967 = (r0);
- case 17:
- case 18:
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 19; continue; }
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- s.tmp_1 = r0;
- s.tmp_3 = if_charHeight_1_mk(s);
- s.tmp_3.arg0 = s.footerFont___25939;
- 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 = 880; s.pc = 32; return s.tmp_3; }
- }
- case 32:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 - 4);
- s.footerTop___26004 = (r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.footerTop___26004;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_0.arg3 = r0;
- s.tmp_2 = if_charHeight_1_mk(s);
- s.tmp_2.arg0 = s.footerFont___25939;
- 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 = 881; s.pc = 34; return s.tmp_2; }
- }
- case 34:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 4);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = 0;
- s.callLocIdx = 882; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.footerTop___26004;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = s.footerTop___26004;
- s.tmp_0.arg5 = 1;
- s.callLocIdx = 883; s.pc = 35; return s.tmp_0;
- case 35:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = s.arg2;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_2 = r0;
- r0 = pxsim_String_.length(s.arg2);
- s.tmp_4 = r0;
- s.tmp_6 = if_charWidth_1_mk(s);
- s.tmp_6.arg0 = s.footerFont___25939;
- if (!s.tmp_6.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth");
- } else {
- s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"];
- if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; }
- else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); }
- else { s.callLocIdx = 884; s.pc = 37; return s.tmp_6; }
- }
- case 37:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_4 * s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 8);
- s.tmp_0.arg2 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- s.tmp_8 = r0;
- s.tmp_10 = if_charHeight_1_mk(s);
- s.tmp_10.arg0 = s.footerFont___25939;
- if (!s.tmp_10.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "charHeight");
- } else {
- s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["charHeight"];
- if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["charHeight"]; }
- else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); }
- else { s.callLocIdx = 885; s.pc = 38; return s.tmp_10; }
- }
- case 38:
+ if (!r0) { step = 4; continue; }
+ s.tmp_2 = control_EventContext_runCallbacks__P63955_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 58; s.pc = 6; return s.tmp_2;
+ case 6:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_8 - s.tmp_9);
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 2);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = 1;
- s.tmp_0.arg5 = s.footerFont___25939;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 886; s.pc = 36; return s.tmp_0;
- case 36:
+ s.delay___83416 = (r0);
+ s.tmp_0 = pause__P60394_mk(s);
+ s.tmp_0.arg0 = s.delay___83416;
+ s.callLocIdx = 59; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- case 19:
- case 20:
+ { step = 3; continue; }
+ case 4:
+ r0 = (s.caps[0]).fields["runningCallbacks"] = (false);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_showDialog__P2530.info = {"start":2895,"length":1313,"line":104,"column":4,"endLine":137,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialog","argumentNames":["title","subtitle","footer"]}
+inline__P83386.info = {"start":3540,"length":723,"line":106,"column":34,"endLine":125,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
-function game_showDialog__P2530_mk(s) {
+function inline__P83386_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_showDialog__P2530, depth: s.depth + 1,
+ parent: s, fn: inline__P83386, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- titleFont___25929: undefined,
- subFont___25934: undefined,
- footerFont___25939: undefined,
- h___25944: undefined,
- top___25963: undefined,
- y___25967: undefined,
- footerTop___26004: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
+ delay___83416: undefined,
} }
-function game_showDialogBackground__P4283(s) {
+function inline__P83392(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8173,81 +6365,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.top___26048 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = s.caps[0].fields["runningCallbacks"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 - s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 1);
- s.top___26048 = (r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.top___26048;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = s.arg0;
- s.tmp_0.arg5 = 0;
- s.callLocIdx = 866; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.top___26048;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = s.top___26048;
- s.tmp_0.arg5 = 1;
- s.callLocIdx = 867; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- r0 = (s.top___26048 + s.arg0);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 1);
- s.tmp_0.arg2 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_0.arg3 = r0;
- r0 = (s.top___26048 + s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = 1;
- s.callLocIdx = 868; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- r0 = s.top___26048;
+ r0 = pxsim_Boolean__bang(s.tmp_0);
return leave(s, r0)
default: oops()
} } }
-game_showDialogBackground__P4283.info = {"start":2587,"length":302,"line":95,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialogBackground","argumentNames":["h","c"]}
+inline__P83392.info = {"start":3771,"length":28,"line":110,"column":31,"endLine":110,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
-function game_showDialogBackground__P4283_mk(s) {
+function inline__P83392_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_showDialogBackground__P4283, depth: s.depth + 1,
+ parent: s, fn: inline__P83392, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- top___26048: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function game_init__P4282(s) {
+function control_EventContext_runCallbacks__P63955(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8257,92 +6398,234 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.loopStart___83425 = undefined;
+ s.f___83438 = undefined;
+ s.unnamed128___U2 = undefined;
+ s.unnamed129___U3 = undefined;
+ s.runtime___83443 = undefined;
+ s.fps___83463 = undefined;
+ s.delay___83525 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals._scene___4274);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ r0 = pxsim.control.millis();
+ s.loopStart___83425 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["prevTimeMillis"];
+ s.tmp_2 = r0;
+ r0 = (s.loopStart___83425 - 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_0).fields["deltaTimeMillis"] = (s.tmp_1);
+ r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___83425);
+ s.f___83438 = (undefined);
+ r0 = s.arg0.fields["frameCallbacks"];
+ s.unnamed128___U2 = (r0);
+ s.unnamed129___U3 = (0);
case 1:
- r0 = s.arg0;
+ s.tmp_0 = r0 = s.unnamed129___U3;
+ r0 = pxsim_Array__length(s.unnamed128___U2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed128___U2, s.unnamed129___U3);
+ s.f___83438 = (r0);
+ s.tmp_2 = if_handler_1_mk(s);
+ s.tmp_2.arg0 = s.f___83438;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1);
+ s.callLocIdx = 54; s.pc = 13; return s.tmp_2;
+ } else {
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"];
+ if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 54; s.pc = 13; return s.tmp_2; }
+ else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 13; return s.tmp_2;; }
+ else { s.callLocIdx = 54; s.pc = 13; return s.tmp_2; }
+ }
+ case 13:
+ r0 = s.retval;
+ r0 = (s.unnamed129___U3 + 1);
+ s.unnamed129___U3 = (r0);
+ { step = 1; continue; }
case 2:
- // jmp value (already in r0)
+ s.unnamed128___U2 = (undefined);
+ r0 = pxsim.control.millis();
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 - s.loopStart___83425);
+ s.runtime___83443 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["timeInSample"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C2411_VT);
- s.tmp_3 = r0;
- s.tmp_4 = scene_Scene_constructor__P2432_mk(s);
- s.tmp_4.arg0 = s.tmp_3;
- s.tmp_5 = control_pushEventContext__P395_mk(s);
- s.callLocIdx = 851; s.pc = 14; return s.tmp_5;
- case 14:
- r0 = s.retval;
- s.tmp_4.arg1 = r0;
- s.tmp_4.arg2 = globals._scene___4274;
- s.callLocIdx = 852; s.pc = 13; return s.tmp_4;
- case 13:
- r0 = s.retval;
- globals._scene___4274 = (s.tmp_3);
+ r0 = (s.tmp_2 + s.runtime___83443);
+ 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:
- s.tmp_0 = scene_Scene_init__P2433_mk(s);
- s.tmp_0.arg0 = globals._scene___4274;
- s.callLocIdx = 853; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(globals.winEffect___2522);
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 11; continue; }
+ r0 = s.arg0.fields["framesInSample"];
+ s.tmp_4 = r0;
+ r0 = s.arg0.fields["timeInSample"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 / 1000);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 / s.tmp_5);
+ s.fps___83463 = (r0);
+ r0 = pxsim.Math_.round(s.fps___83463);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ if ((s.tmp_1) && (s.tmp_1).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.tmp_1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_1) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat("fps:", s.tmp_0);
+ globals.control_EventContext_lastStats___60378 = (r0);
+ r0 = (s.fps___83463 < 99);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- globals.winEffect___2522 = (globals.confetti___2793);
+ if ((globals.control_EventContext_lastStats___60378) && (globals.control_EventContext_lastStats___60378).vtable) {
+ setupResume(s, 15);
+ pxsim_String__stringConv(globals.control_EventContext_lastStats___60378);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.control_EventContext_lastStats___60378) + ""; }
+ case 15:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.fps___83463 * 10);
+ s.tmp_7 = r0;
+ r0 = pxsim.Math_.round(s.tmp_7);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 % 10);
+ s.tmp_5 = r0;
+ if ((s.tmp_5) && (s.tmp_5).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.tmp_5);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_5) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(".", s.tmp_4);
+ s.tmp_3 = r0;
+ if ((s.tmp_3) && (s.tmp_3).vtable) {
+ setupResume(s, 17);
+ pxsim_String__stringConv(s.tmp_3);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_3) + ""; }
+ case 17:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ globals.control_EventContext_lastStats___60378 = (r0);
case 5:
case 6:
- r0 = pxsim_numops_toBoolDecr(globals.loseEffect___2523);
+ s.tmp_2 = control_ramSize__P60327_mk(s);
+ s.callLocIdx = 55; s.pc = 18; return s.tmp_2;
+ case 18:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 > 2000000);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- globals.loseEffect___2523 = (globals.melt___2814);
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
case 7:
+ r0 = pxsim.control.profilingEnabled();
case 8:
- r0 = pxsim_numops_toBoolDecr(globals.winSound___4273);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 9; continue; }
- globals.winSound___4273 = (globals.powerUp___1615);
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_8 = r0;
+ r0 = (s.fps___83463 * 100);
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 | 0);
+ s.tmp_10 = r0;
+ if ((s.tmp_10) && (s.tmp_10).vtable) {
+ setupResume(s, 19);
+ pxsim_String__stringConv(s.tmp_10);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_10) + ""; }
+ case 19:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = pxsim_String__concat(s.tmp_8, s.tmp_9);
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat(s.tmp_7, "/100 fps - ");
+ s.tmp_6 = r0;
+ r0 = s.arg0.fields["framesInSample"];
+ s.tmp_13 = r0;
+ if ((s.tmp_13) && (s.tmp_13).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.tmp_13);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_13) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_12 = r0;
+ r0 = pxsim_String__concat(s.tmp_6, s.tmp_12);
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, " frames");
+ s.tmp_4 = r0;
+ r0 = pxsim.control.dmesg(s.tmp_4);
+ r0 = pxsim.control.gc();
+ r0 = pxsim_pxtcore.dumpPerfCounters();
case 9:
case 10:
- r0 = pxsim_numops_toBoolDecr(globals.loseSound___4271);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- globals.loseSound___4271 = (globals.wawawawaa___1612);
+ r0 = (s.arg0).fields["timeInSample"] = (0);
+ r0 = (s.arg0).fields["framesInSample"] = (0);
case 11:
case 12:
- r0 = undefined;
+ s.tmp_0 = Math_max__P60117_mk(s);
+ s.tmp_0.arg0 = 1;
+ r0 = (20 - s.runtime___83443);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 56; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.delay___83525 = (r0);
+ r0 = s.delay___83525;
return leave(s, r0)
default: oops()
} } }
-game_init__P4282.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]}
+control_EventContext_runCallbacks__P63955.info = {"start":2080,"length":1246,"line":71,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]}
-function game_init__P4282_mk(s) {
+function control_EventContext_runCallbacks__P63955_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_init__P4282, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_runCallbacks__P63955, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -8350,6 +6633,21 @@ function game_init__P4282_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ tmp_13: undefined,
+ loopStart___83425: undefined,
+ f___83438: undefined,
+ unnamed128___U2: undefined,
+ unnamed129___U3: undefined,
+ runtime___83443: undefined,
+ fps___83463: undefined,
+ delay___83525: undefined,
arg0: undefined,
} }
@@ -8357,7 +6655,7 @@ function game_init__P4282_mk(s) {
-function inline__P22828(s) {
+function pauseUntil__P60348(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8367,87 +6665,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rounds___22831 = undefined;
- s.j___22839 = undefined;
- s.x___22844 = undefined;
- s.y___22850 = undefined;
- s.c___22856 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_ImageMethods.width(s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.height(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 * s.tmp_2);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 5);
- s.rounds___22831 = (r0);
- s.j___22839 = (0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
- r0 = (s.j___22839 < s.rounds___22831);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = Math_FastRandom_randomRange__P2582_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.tmp_1.arg1 = 0;
- r0 = pxsim_ImageMethods.width(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
- s.tmp_1.arg2 = r0;
- s.callLocIdx = 44; s.pc = 3; return s.tmp_1;
- case 3:
+ s.tmp_2 = lambda_1_mk(s);
+ s.tmp_2.argL = s.arg0;
+ setupLambda(s.tmp_2, s.tmp_2.argL);
+ s.callLocIdx = 34; s.pc = 8; return s.tmp_2;
+ case 8:
r0 = s.retval;
- s.x___22844 = (r0);
- s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = 0;
- r0 = pxsim_ImageMethods.height(s.arg0);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 3);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 45; s.pc = 4; return s.tmp_0;
+ case 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__P60347_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = undefined;
+ s.callLocIdx = 35; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
- s.y___22850 = (r0);
- r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___22844, s.y___22850);
- s.c___22856 = (r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_1 = r0 = s.x___22844;
- r0 = (s.y___22850 + 1);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22856);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_1 = r0 = s.x___22844;
- r0 = (s.y___22850 + 2);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22856);
- r0 = (s.j___22839 + 1);
- s.j___22839 = (r0);
- { step = 1; continue; }
- case 2:
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P22828.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]}
+pauseUntil__P60348.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]}
-function inline__P22828_mk(s) {
+function pauseUntil__P60348_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P22828, depth: s.depth + 1,
+ parent: s, fn: pauseUntil__P60348, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- rounds___22831: undefined,
- j___22839: undefined,
- x___22844: undefined,
- y___22850: undefined,
- c___22856: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -8456,7 +6735,7 @@ function inline__P22828_mk(s) {
-function Math_FastRandom_randomRange__P2582(s) {
+function control___queuePollEvent__P60347(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8466,52 +6745,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ev___83547 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0);
- r0 = (s.arg2 > s.arg1);
+ r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C63929_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = Math_FastRandom_next__P2581_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 900; s.pc = 3; return s.tmp_2;
- case 3:
+ s.tmp_1 = control_PollEvent_constructor__P63930_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = pxsim.control.allocateNotifyEvent();
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = 1;
+ r0 = pxsim.control.millis();
+ s.tmp_1.arg3 = r0;
+ s.tmp_1.arg4 = s.arg0;
+ s.tmp_1.arg5 = s.arg1;
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1.arg6 = r0;
+ s.callLocIdx = 32; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
+ s.ev___83547 = (s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___63932);
s.tmp_1 = r0;
- r0 = (s.arg2 - s.arg1);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + 1);
- s.tmp_3 = r0;
- r0 = (s.tmp_1 % s.tmp_3);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__mk();
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_2, s.ev___83547);
+ globals._pollEventQueue___63932 = (s.tmp_2);
+ r0 = pxsim.control.runInParallel(control_pollEvents__P63933);
{ step = 2; continue; }
case 1:
- r0 = 0;
+ r0 = pxsim_Array__push(globals._pollEventQueue___63932, s.ev___83547);
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = (s.arg1 + s.tmp_5);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_0 = control_onEvent__P60372_mk(s);
+ r0 = s.ev___83547.fields["eid"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.ev___83547.fields["vid"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = 16;
+ s.callLocIdx = 33; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ { step = 4; continue; }
+ case 3:
+ r0 = s.ev___83547.fields["eid"];
+ s.tmp_0 = r0;
+ r0 = s.ev___83547.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()
} } }
-Math_FastRandom_randomRange__P2582.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"]}
+control___queuePollEvent__P60347.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]}
-function Math_FastRandom_randomRange__P2582_mk(s) {
+function control___queuePollEvent__P60347_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_FastRandom_randomRange__P2582, depth: s.depth + 1,
+ parent: s, fn: control___queuePollEvent__P60347, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
+ ev___83547: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -8521,7 +6835,7 @@ function Math_FastRandom_randomRange__P2582_mk(s) {
-function Math_FastRandom_next__P2581(s) {
+function control_pollEvents__P63933(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8531,38 +6845,117 @@ 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.now___83673 = undefined;
+ s.i___83676 = undefined;
+ s.ev___83682 = undefined;
+ case 1:
+ r0 = pxsim_Array__length(globals._pollEventQueue___63932);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ r0 = pxsim.control.millis();
+ s.now___83673 = (r0);
+ s.i___83676 = (0);
+ case 2:
+ s.tmp_1 = r0 = s.i___83676;
+ r0 = pxsim_Array__length(globals._pollEventQueue___63932);
+ 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___63932, s.i___83676);
+ s.ev___83682 = (r0);
+ s.tmp_1 = if_condition_1_mk(s);
+ s.tmp_1.arg0 = s.ev___83682;
+ if (!s.tmp_1.arg0.vtable.iface) {
+ setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1);
+ s.callLocIdx = 29; s.pc = 13; return s.tmp_1;
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"];
+ if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 29; s.pc = 13; return s.tmp_1; }
+ else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; }
+ else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["lfsr"];
+ 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___83682.fields["timeOut"];
s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 1);
+ r0 = (s.tmp_3 > 0);
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);
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 4; continue; }
+ r0 = s.tmp_2;
+ { step = 5; continue; }
+ case 4:
+ r0 = s.ev___83682.fields["start"];
s.tmp_5 = r0;
- r0 = (s.tmp_5 & 46080);
+ r0 = (s.now___83673 - s.tmp_5);
s.tmp_4 = r0;
- r0 = (s.tmp_2 ^ s.tmp_4);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1);
- r0 = s.tmp_1;
+ r0 = s.ev___83682.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___83682.fields["eid"];
+ s.tmp_9 = r0;
+ r0 = s.ev___83682.fields["vid"];
+ s.tmp_10 = r0;
+ r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10);
+ r0 = s.ev___83682.fields["once"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_1 = helpers_arraySplice__P60090_mk(s);
+ s.tmp_1.arg0 = globals._pollEventQueue___63932;
+ s.tmp_1.arg1 = s.i___83676;
+ s.tmp_1.arg2 = 1;
+ s.callLocIdx = 30; s.pc = 14; return s.tmp_1;
+ case 14:
+ r0 = s.retval;
+ r0 = (s.i___83676 - 1);
+ s.i___83676 = (r0);
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ r0 = (s.i___83676 + 1);
+ s.i___83676 = (r0);
+ { step = 2; continue; }
+ case 11:
+ s.tmp_0 = pause__P60394_mk(s);
+ s.tmp_0.arg0 = 50;
+ s.callLocIdx = 31; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ { step = 1; continue; }
+ case 12:
+ globals._pollEventQueue___63932 = (undefined);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Math_FastRandom_next__P2581.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]}
+control_pollEvents__P63933.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]}
-function Math_FastRandom_next__P2581_mk(s) {
+function control_pollEvents__P63933_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_FastRandom_next__P2581, depth: s.depth + 1,
+ parent: s, fn: control_pollEvents__P63933, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -8572,14 +6965,19 @@ function Math_FastRandom_next__P2581_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- arg0: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ now___83673: undefined,
+ i___83676: undefined,
+ ev___83682: undefined,
} }
-function effects_ImageEffect_constructor__P2809(s) {
+function helpers_arraySplice__P60090(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8589,39 +6987,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___83730 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, effects_ImageEffect__C2808_VT)) failedCast(r0);
- r0 = (s.arg0).fields["effect"] = (s.arg2);
- r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT);
+ r0 = (s.arg1 < 0);
s.tmp_0 = r0;
- s.tmp_1 = Math_FastRandom_constructor__P2580_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = undefined;
- s.callLocIdx = 1186; s.pc = 1; return s.tmp_1;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 5; continue; }
case 1:
- r0 = s.retval;
- r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0);
- r0 = (s.arg0).fields["preferredDelay"] = (s.arg1);
- r0 = (s.arg0).fields["times"] = (undefined);
+ case 2:
+ s.i___83730 = (0);
+ case 3:
+ r0 = (s.i___83730 < 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___83730 + 1);
+ s.i___83730 = (r0);
+ { step = 3; continue; }
+ case 4:
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-effects_ImageEffect_constructor__P2809.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_arraySplice__P60090.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 effects_ImageEffect_constructor__P2809_mk(s) {
+function helpers_arraySplice__P60090_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ImageEffect_constructor__P2809, depth: s.depth + 1,
+ parent: s, fn: helpers_arraySplice__P60090, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
+ i___83730: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -8631,7 +7035,7 @@ function effects_ImageEffect_constructor__P2809_mk(s) {
-function inline__P22936(s) {
+function control_PollEvent_constructor__P63930(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8641,98 +7045,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.factory___22939 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
+ s.arg6 = (s.lambdaArgs[6]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C2737_VT);
- s.tmp_0 = r0;
- s.tmp_2 = if_width_1_mk(s);
- s.tmp_2.arg0 = s.arg0;
- if (!s.tmp_2.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width");
- } else {
- s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"];
- if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; }
- else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
- else { s.callLocIdx = 32; s.pc = 3; return s.tmp_2; }
- }
- case 3:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 1; continue; }
- s.tmp_3 = if_width_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!s.tmp_3.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width");
- } else {
- s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"];
- if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; }
- else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 33; s.pc = 4; return s.tmp_3; }
- }
- case 4:
- r0 = s.retval;
- { step = 2; continue; }
- case 1:
- r0 = 16;
- case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.tmp_5 = particles_ConfettiFactory_constructor__P2738_mk(s);
- s.tmp_5.arg0 = s.tmp_0;
- s.tmp_5.arg1 = s.tmp_4;
- s.tmp_5.arg2 = 16;
- s.callLocIdx = 34; s.pc = 5; return s.tmp_5;
- case 5:
- r0 = s.retval;
- s.factory___22939 = (s.tmp_0);
- s.tmp_0 = particles_SprayFactory_setSpeed__P2714_mk(s);
- s.tmp_0.arg0 = s.factory___22939;
- s.tmp_0.arg1 = 30;
- s.callLocIdx = 35; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2670_VT);
- s.tmp_0 = r0;
- s.tmp_1 = particles_ParticleSource_constructor__P2675_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___22939;
- s.callLocIdx = 36; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- r0 = s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_PollEvent__C63929_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()
} } }
-inline__P22936.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]}
+control_PollEvent_constructor__P63930.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 inline__P22936_mk(s) {
+function control_PollEvent_constructor__P63930_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P22936, depth: s.depth + 1,
+ parent: s, fn: control_PollEvent_constructor__P63930, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- factory___22939: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+ arg6: undefined,
} }
-function particles_ParticleSource_constructor__P2675(s) {
+function control_onEvent__P60372(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8742,8 +7097,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.sources___22960 = undefined;
- s.removedSource___22969 = undefined;
+ s.ctx___83589 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -8751,110 +7105,44 @@ switch (step) {
s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1062; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = particles_init__P4629_mk(s);
- s.callLocIdx = 1063; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1064; s.pc = 7; return s.tmp_0;
- case 7:
+ s.tmp_0 = control_eventContext__P60389_mk(s);
+ s.callLocIdx = 51; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.sources___22960 = (r0);
- r0 = pxsim_Array__length(s.sources___22960);
+ s.ctx___83589 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.ctx___83589);
s.tmp_1 = r0;
- r0 = (s.tmp_1 >= globals.MAX_SOURCES___4606);
+ 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_sortSources__P4632_mk(s);
- s.tmp_2.arg0 = s.sources___22960;
- s.callLocIdx = 1065; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
- r0 = pxsim_Array_.removeAt(s.sources___22960, 0);
- s.removedSource___22969 = (r0);
- s.tmp_0 = particles_ParticleSource_clear__P2685_mk(s);
- s.tmp_0.arg0 = s.removedSource___22969;
- s.callLocIdx = 1067; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = particles_ParticleSource_destroy__P2684_mk(s);
- s.tmp_0.arg0 = s.removedSource___22969;
- s.callLocIdx = 1068; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
+ r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3);
+ { step = 2; continue; }
case 1:
- case 2:
- r0 = (s.arg0).fields["pFlags"] = (0);
- s.tmp_0 = particles_ParticleSource_setRate__P2687_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg2;
- s.callLocIdx = 1069; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = particles_ParticleSource_setAcceleration__P2679_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 0;
- s.callLocIdx = 1070; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = particles_ParticleSource_setAnchor__P2686_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1071; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- r0 = (s.arg0).fields["lifespan"] = (undefined);
- r0 = (s.arg0).fields["_dt"] = (0);
- r0 = (s.arg0).fields["priority"] = (0);
- s.tmp_0 = r0 = s.arg3;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- r0 = globals.defaultFactory___2690;
- case 4:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_2 = particles_ParticleSource_setFactory__P2689_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 1072; s.pc = 14; return s.tmp_2;
- case 14:
- r0 = s.retval;
- r0 = pxsim_Array__push(s.sources___22960, s.arg0);
- s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1073; s.pc = 15; return s.tmp_0;
- case 15:
+ s.tmp_0 = control_EventContext_registerHandler__P60386_mk(s);
+ s.tmp_0.arg0 = s.ctx___83589;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = s.arg1;
+ s.tmp_0.arg3 = s.arg2;
+ s.tmp_0.arg4 = s.arg3;
+ s.callLocIdx = 52; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_constructor__P2675.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]}
+control_onEvent__P60372.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 particles_ParticleSource_constructor__P2675_mk(s) {
+function control_onEvent__P60372_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_constructor__P2675, depth: s.depth + 1,
+ parent: s, fn: control_onEvent__P60372, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- sources___22960: undefined,
- removedSource___22969: undefined,
+ ctx___83589: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -8865,7 +7153,7 @@ function particles_ParticleSource_constructor__P2675_mk(s) {
-function particles_particleSources__P4635(s) {
+function control_eventContext__P60389(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8875,33 +7163,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.sources___23281 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 1124; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(globals.eventContexts___63958);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = r0 = globals.eventContexts___63958;
+ r0 = pxsim_Array__length(globals.eventContexts___63958);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
+ { step = 2; continue; }
case 1:
- r0 = s.retval;
- r0 = r0.fields["particleSources"];
- s.sources___23281 = (r0);
- r0 = s.sources___23281;
+ r0 = undefined;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-particles_particleSources__P4635.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]}
+control_eventContext__P60389.info = {"start":6805,"length":136,"line":206,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]}
-function particles_particleSources__P4635_mk(s) {
+function control_eventContext__P60389_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_particleSources__P4635, depth: s.depth + 1,
+ parent: s, fn: control_eventContext__P60389, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- sources___23281: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
} }
-function particles_sortSources__P4632(s) {
+function control_EventContext_registerHandler__P60386(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8911,36 +7208,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.h___83612 = undefined;
+ s.unnamed134___U1 = undefined;
+ s.unnamed135___U2 = undefined;
+ s.hn___83635 = 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 = helpers_arraySort__P100_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = inline__P23267;
- s.callLocIdx = 1111; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ s.h___83612 = (undefined);
+ r0 = s.arg0.fields["handlers"];
+ s.unnamed134___U1 = (r0);
+ s.unnamed135___U2 = (0);
case 1:
+ s.tmp_0 = r0 = s.unnamed135___U2;
+ r0 = pxsim_Array__length(s.unnamed134___U1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 6; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed134___U1, s.unnamed135___U2);
+ s.h___83612 = (r0);
+ r0 = s.h___83612.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___83612.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___83612).fields["flags"] = (s.arg4);
+ r0 = (s.h___83612).fields["handler"] = (s.arg3);
+ { step = 7; continue; }
+ case 4:
+ case 5:
+ r0 = (s.unnamed135___U2 + 1);
+ s.unnamed135___U2 = (r0);
+ { step = 1; continue; }
+ case 6:
+ s.unnamed134___U1 = (undefined);
+ r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C63950_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = control_EventHandler_constructor__P63953_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 = 64; s.pc = 8; return s.tmp_1;
+ case 8:
+ r0 = s.retval;
+ s.hn___83635 = (s.tmp_0);
+ r0 = s.arg0.fields["handlers"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.hn___83635);
+ s.tmp_0 = control_EventHandler_register__P63951_mk(s);
+ s.tmp_0.arg0 = s.hn___83635;
+ s.callLocIdx = 65; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_sortSources__P4632.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]}
+control_EventContext_registerHandler__P60386.info = {"start":5471,"length":525,"line":166,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]}
-function particles_sortSources__P4632_mk(s) {
+function control_EventContext_registerHandler__P60386_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_sortSources__P4632, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_registerHandler__P60386, depth: s.depth + 1,
pc: 0, retval: undefined, 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___83612: undefined,
+ unnamed134___U1: undefined,
+ unnamed135___U2: undefined,
+ hn___83635: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function inline__P23267(s) {
+function control_EventHandler_constructor__P63953(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -8953,53 +7327,40 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["priority"];
- s.tmp_1 = r0;
- r0 = s.arg1.fields["priority"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = s.arg0.fields["id"];
- s.tmp_3 = r0;
- r0 = s.arg1.fields["id"];
- s.tmp_4 = r0;
- r0 = (s.tmp_3 - s.tmp_4);
- case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventHandler__C63950_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["src"] = (s.arg1);
+ r0 = (s.arg0).fields["value"] = (s.arg2);
+ r0 = (s.arg0).fields["handler"] = (s.arg3);
+ r0 = (s.arg0).fields["flags"] = (s.arg4);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P23267.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]}
+control_EventHandler_constructor__P63953.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]}
-function inline__P23267_mk(s) {
+function control_EventHandler_constructor__P63953_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P23267, depth: s.depth + 1,
+ parent: s, fn: control_EventHandler_constructor__P63953, depth: s.depth + 1,
pc: 0, retval: undefined, 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 helpers_arraySort__P100(s) {
+function control_EventHandler_register__P63951(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9011,58 +7372,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventHandler__C63950_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P83656);
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 = 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.tmp_2 > 1);
- case 2:
- // jmp value (already in r0)
+ r0 = s.arg0.fields["flags"];
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 3; continue; }
- s.arg1 = (inline__P27123);
- case 3:
- case 4:
- s.tmp_0 = helpers_sortHelper__P3887_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 3; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
+ r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_arraySort__P100.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]}
+control_EventHandler_register__P63951.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]}
-function helpers_arraySort__P100_mk(s) {
+function control_EventHandler_register__P63951_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arraySort__P100, depth: s.depth + 1,
+ parent: s, fn: control_EventHandler_register__P63951, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P27123(s) {
+function inline__P83656(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9072,142 +7418,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.aIsUndef___27126 = undefined;
- s.bIsUndef___27130 = undefined;
- s.aIsNull___27141 = undefined;
- s.bIsNull___27145 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
+ r0 = s.caps[0].fields["handler"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = if_handler_1_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ if (!s.tmp_1.arg0.vtable.iface) {
+ setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1);
+ s.callLocIdx = 53; s.pc = 3; return s.tmp_1;
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"];
+ if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 53; s.pc = 3; return s.tmp_1; }
+ else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; }
+ else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; }
}
- r0 = (s.arg0 === undefined);
- s.aIsUndef___27126 = (r0);
- r0 = (s.arg1 === undefined);
- s.bIsUndef___27130 = (r0);
- s.tmp_0 = r0 = s.aIsUndef___27126;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = s.bIsUndef___27130;
- 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___27126);
- if (!r0) { step = 4; continue; }
- r0 = 1;
- { step = 17; continue; }
- { step = 7; continue; }
- case 4:
- r0 = pxsim_numops_toBoolDecr(s.bIsUndef___27130);
- if (!r0) { step = 5; continue; }
- r0 = -1;
- { step = 17; continue; }
- case 5:
- case 6:
- case 7:
- case 8:
- r0 = (s.arg0 === null);
- s.aIsNull___27141 = (r0);
- r0 = (s.arg1 === null);
- s.bIsNull___27145 = (r0);
- s.tmp_0 = r0 = s.aIsNull___27141;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 9; continue; }
- r0 = s.tmp_0;
- { step = 10; continue; }
- case 9:
- r0 = s.bIsNull___27145;
- 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___27141);
- if (!r0) { step = 12; continue; }
- r0 = 1;
- { step = 17; continue; }
- { step = 15; continue; }
- case 12:
- r0 = pxsim_numops_toBoolDecr(s.bIsNull___27145);
- 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:
+ case 1:
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P27123.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"]}
+inline__P83656.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
-function inline__P27123_mk(s) {
+function inline__P83656_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27123, depth: s.depth + 1,
+ parent: s, fn: inline__P83656, depth: s.depth + 1,
pc: 0, retval: undefined, 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___27126: undefined,
- bIsUndef___27130: undefined,
- aIsNull___27141: undefined,
- bIsNull___27145: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function helpers_sortHelper__P3887(s) {
+function game_onUpdate__P62532(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9217,114 +7466,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___27180 = undefined;
- s.i___27183 = undefined;
- s.j___27189 = 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_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = undefined;
+ s.callLocIdx = 887; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 <= 0);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ { step = 3; 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___27180 = (r0);
- s.i___27183 = (0);
- case 5:
- s.tmp_1 = r0 = s.i___27183;
- r0 = (s.len___27180 - 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___27183 + 1);
- s.j___27189 = (r0);
+ s.tmp_2 = control_EventContext_registerFrameHandler__P60384_mk(s);
+ s.tmp_3 = game_eventContext__P62524_mk(s);
+ s.callLocIdx = 888; s.pc = 6; return s.tmp_3;
case 6:
- r0 = (s.j___27189 < s.len___27180);
- 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___27183);
- s.tmp_3.arg0 = r0;
- r0 = pxsim_Array__getAt(s.arg0, s.j___27189);
- s.tmp_3.arg1 = r0;
- setupLambda(s.tmp_3, s.tmp_3.argL);
- s.callLocIdx = 1; s.pc = 12; return s.tmp_3;
- case 12:
r0 = s.retval;
- s.tmp_2 = 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__P3886_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = s.i___27183;
- s.tmp_4.arg2 = s.j___27189;
- s.callLocIdx = 2; s.pc = 13; return s.tmp_4;
- case 13:
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = 20;
+ s.tmp_2.arg2 = s.arg0;
+ s.callLocIdx = 889; s.pc = 5; return s.tmp_2;
+ case 5:
r0 = s.retval;
- case 7:
- case 8:
- r0 = (s.j___27189 + 1);
- s.j___27189 = (r0);
- { step = 6; continue; }
- case 9:
- r0 = (s.i___27183 + 1);
- s.i___27183 = (r0);
- { step = 5; continue; }
- case 10:
- r0 = s.arg0;
- case 11:
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_sortHelper__P3887.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"]}
+game_onUpdate__P62532.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]}
-function helpers_sortHelper__P3887_mk(s) {
+function game_onUpdate__P62532_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_sortHelper__P3887, depth: s.depth + 1,
+ parent: s, fn: game_onUpdate__P62532, depth: s.depth + 1,
pc: 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___27180: undefined,
- i___27183: undefined,
- j___27189: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function helpers_swap__P3886(s) {
+function particles_SprayFactory_constructor__P62708(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9334,46 +7528,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.temp___27218 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array__getAt(s.arg0, s.arg1);
- s.temp___27218 = (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___27218);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_SprayFactory__C62707_VT)) failedCast(r0);
+ r0 = undefined;
+ s.tmp_0 = particles_initTrig__P64653_mk(s);
+ s.callLocIdx = 1144; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = particles_SprayFactory_setSpeed__P62711_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1145; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = particles_SprayFactory_setDirection__P62712_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg2;
+ s.tmp_0.arg2 = s.arg3;
+ s.callLocIdx = 1146; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_swap__P3886.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"]}
+particles_SprayFactory_constructor__P62708.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 helpers_swap__P3886_mk(s) {
+function particles_SprayFactory_constructor__P62708_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_swap__P3886, depth: s.depth + 1,
+ parent: s, fn: particles_SprayFactory_constructor__P62708, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- temp___27218: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function particles_init__P4629(s) {
+function particles_initTrig__P64653(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9383,59 +7587,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___23286 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 1101; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.scene___23286 = (r0);
- r0 = s.scene___23286.fields["particleSources"];
+ r0 = pxsim_numops_toBoolDecr(globals.cachedSin___64639);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_1 = r0 = s.scene___23286;
- r0 = pxsim_Array__mk();
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2);
- r0 = pxsim.control.millis();
- globals.lastUpdate___4624 = (r0);
- s.tmp_0 = game_onUpdate__P2535_mk(s);
- s.tmp_0.arg0 = particles_updateParticles__P4630;
- s.callLocIdx = 1102; s.pc = 5; return s.tmp_0;
- case 5:
+ s.tmp_2 = particles_cacheSin__P62701_mk(s);
+ s.tmp_2.arg0 = 100;
+ s.callLocIdx = 1132; s.pc = 3; return s.tmp_2;
+ case 3:
r0 = s.retval;
- s.tmp_0 = game_onUpdateInterval__P2536_mk(s);
- s.tmp_0.arg0 = 250;
- s.tmp_0.arg1 = particles_pruneParticles__P4631;
- s.callLocIdx = 1103; s.pc = 6; return s.tmp_0;
- case 6:
+ globals.cachedSin___64639 = (r0);
+ s.tmp_0 = particles_cacheCos__P62702_mk(s);
+ s.tmp_0.arg0 = 100;
+ s.callLocIdx = 1133; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- case 3:
+ globals.cachedCos___64640 = (r0);
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_init__P4629.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]}
+particles_initTrig__P64653.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]}
-function particles_init__P4629_mk(s) {
+function particles_initTrig__P64653_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_init__P4629, depth: s.depth + 1,
+ parent: s, fn: particles_initTrig__P64653, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- scene___23286: undefined,
} }
-function particles_pruneParticles__P4631(s) {
+function particles_cacheCos__P62702(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9445,51 +7637,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.sources___23301 = undefined;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1107; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.sources___23301 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.sources___23301);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1 = helpers_arraySlice__P109_mk(s);
- s.tmp_1.arg0 = s.sources___23301;
- s.tmp_1.arg1 = 0;
- r0 = pxsim_Array__length(s.sources___23301);
- s.tmp_1.arg2 = r0;
- s.callLocIdx = 1108; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P23310;
- s.callLocIdx = 1110; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
+ s.cos___83078 = undefined;
+ s.anglePerSlice___83080 = undefined;
+ s.i___83086 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_Array__mk();
+ s.cos___83078 = (r0);
+ r0 = (6.283185307179586 / s.arg0);
+ s.anglePerSlice___83080 = (r0);
+ s.i___83086 = (0);
case 1:
+ r0 = (s.i___83086 < s.arg0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = r0 = s.cos___83078;
+ r0 = (s.i___83086 * s.anglePerSlice___83080);
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.cos(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 * 256);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 | 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
+ r0 = (s.i___83086 + 1);
+ s.i___83086 = (r0);
+ { step = 1; continue; }
case 2:
- r0 = undefined;
+ r0 = s.cos___83078;
return leave(s, r0)
default: oops()
} } }
-particles_pruneParticles__P4631.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]}
+particles_cacheCos__P62702.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_pruneParticles__P4631_mk(s) {
+function particles_cacheCos__P62702_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_pruneParticles__P4631, depth: s.depth + 1,
+ parent: s, fn: particles_cacheCos__P62702, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- sources___23301: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ cos___83078: undefined,
+ anglePerSlice___83080: undefined,
+ i___83086: undefined,
+ arg0: undefined,
} }
-function inline__P23310(s) {
+function particles_cacheSin__P62701(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9499,27 +7705,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.sin___83104 = undefined;
+ s.anglePerSlice___83106 = undefined;
+ s.i___83112 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = particles_ParticleSource__prune__P2678_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1109; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_Array__mk();
+ s.sin___83104 = (r0);
+ r0 = (6.283185307179586 / s.arg0);
+ s.anglePerSlice___83106 = (r0);
+ s.i___83112 = (0);
case 1:
- r0 = s.retval;
- r0 = undefined;
+ r0 = (s.i___83112 < s.arg0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = r0 = s.sin___83104;
+ r0 = (s.i___83112 * s.anglePerSlice___83106);
+ s.tmp_4 = r0;
+ r0 = pxsim.Math_.sin(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 * 256);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 | 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
+ r0 = (s.i___83112 + 1);
+ s.i___83112 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = s.sin___83104;
return leave(s, r0)
default: oops()
} } }
-inline__P23310.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
+particles_cacheSin__P62701.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]}
-function inline__P23310_mk(s) {
+function particles_cacheSin__P62701_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P23310, depth: s.depth + 1,
+ parent: s, fn: particles_cacheSin__P62701, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ sin___83104: undefined,
+ anglePerSlice___83106: undefined,
+ i___83112: undefined,
arg0: undefined,
} }
@@ -9527,7 +7763,7 @@ function inline__P23310_mk(s) {
-function particles_ParticleSource__prune__P2678(s) {
+function particles_SprayFactory_setDirection__P62712(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9537,137 +7773,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___23214 = undefined;
- s.sources___23222 = undefined;
- s.current___23236 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
+ if (!checkSubtype(r0, particles_SprayFactory__C62707_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_4 = particles_toRadians__P64658_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 = 1154; s.pc = 1; return s.tmp_4;
case 1:
- r0 = s.arg0.fields["head"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_0;
- { step = 3; continue; }
- case 2:
- r0 = s.arg0.fields["head"];
- r0 = r0.fields["lifespan"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 <= 0);
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- r0 = s.arg0.fields["head"];
- r0 = r0.fields["next"];
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.arg0).fields["head"] = (s.tmp_3);
- { step = 1; continue; }
- case 4:
- r0 = s.arg0.fields["pFlags"];
+ r0 = (s.tmp_3 / globals.angleSlice___64652);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 & 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
- case 5:
- r0 = s.arg0.fields["head"];
+ r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_4 = particles_toRadians__P64658_mk(s);
+ s.tmp_4.arg0 = s.arg2;
+ s.callLocIdx = 1155; s.pc = 2; return s.tmp_4;
+ case 2:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = (s.tmp_3 / globals.angleSlice___64652);
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__P2524_mk(s);
- s.callLocIdx = 1082; s.pc = 21; return s.tmp_5;
- case 21:
- r0 = s.retval;
- s.scene___23214 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.scene___23214);
- if (!r0) { step = 7; continue; }
- r0 = s.scene___23214.fields["allSprites"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
- case 7:
- case 8:
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1083; s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- s.sources___23222 = (r0);
- s.tmp_0 = r0 = s.sources___23222;
- 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___23222);
- case 10:
- // jmp value (already in r0)
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 11; continue; }
- r0 = pxsim_Array_.removeElement(s.sources___23222, 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___23236 = (r0);
- case 15:
- s.tmp_0 = r0 = s.current___23236;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 16; continue; }
- r0 = s.tmp_0;
- { step = 17; continue; }
- case 16:
- r0 = s.current___23236.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___23236.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___23236.fields["next"];
- r0 = r0.fields["next"];
- s.tmp_4 = r0;
- r0 = (s.current___23236).fields["next"] = (s.tmp_4);
- { step = 19; continue; }
- case 18:
- r0 = s.current___23236.fields["next"];
- s.current___23236 = (r0);
- case 19:
- { step = 15; continue; }
- case 20:
+ r0 = (s.tmp_0).fields["spread"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource__prune__P2678.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]}
+particles_SprayFactory_setDirection__P62712.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_ParticleSource__prune__P2678_mk(s) {
+function particles_SprayFactory_setDirection__P62712_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource__prune__P2678, depth: s.depth + 1,
+ parent: s, fn: particles_SprayFactory_setDirection__P62712, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -9675,17 +7826,17 @@ function particles_ParticleSource__prune__P2678_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- scene___23214: undefined,
- sources___23222: undefined,
- current___23236: undefined,
+ tmp_6: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function helpers_arraySlice__P109(s) {
+function particles_toRadians__P64658(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9695,114 +7846,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.res___22582 = undefined;
- s.len___22584 = undefined;
- s.i___22618 = 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___22582 = (r0);
- r0 = pxsim_Array__length(s.arg0);
- s.len___22584 = (r0);
- r0 = (s.arg1 === undefined);
+ r0 = (s.arg0 < 0);
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__P122_mk(s);
- r0 = (s.len___22584 + s.arg1);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 0;
- s.callLocIdx = 10; s.pc = 16; return s.tmp_1;
- case 16:
- r0 = s.retval;
- s.arg1 = (r0);
- case 2:
+ s.tmp_3 = Math_abs__P60115_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 1136; s.pc = 3; return s.tmp_3;
case 3:
- case 4:
- r0 = (s.arg1 > s.len___22584);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = s.res___22582;
- { step = 15; continue; }
- case 5:
- case 6:
- r0 = (s.arg2 === undefined);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 7; continue; }
- s.arg2 = (s.len___22584);
- { 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___22584 + s.arg2);
- s.arg2 = (r0);
- case 8:
- case 9:
- case 10:
- r0 = (s.arg2 > s.len___22584);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.arg2 = (s.len___22584);
- case 11:
- case 12:
- s.i___22618 = (s.arg1);
- case 13:
- r0 = (s.i___22618 < s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- s.tmp_1 = r0 = s.res___22582;
- r0 = pxsim_Array__getAt(s.arg0, s.i___22618);
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.i___22618 + 1);
- s.i___22618 = (r0);
- { step = 13; continue; }
- case 14:
- r0 = s.res___22582;
- case 15:
+ r0 = (s.tmp_2 % 360);
+ s.tmp_1 = r0;
+ r0 = (360 - s.tmp_1);
+ s.arg0 = (r0);
+ { step = 2; continue; }
+ case 1:
+ r0 = (s.arg0 % 360);
+ s.arg0 = (r0);
+ case 2:
+ r0 = (s.arg0 * 0.017453292519943295);
return leave(s, r0)
default: oops()
} } }
-helpers_arraySlice__P109.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]}
+particles_toRadians__P64658.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]}
-function helpers_arraySlice__P109_mk(s) {
+function particles_toRadians__P64658_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arraySlice__P109, depth: s.depth + 1,
+ parent: s, fn: particles_toRadians__P64658, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- res___22582: undefined,
- len___22584: undefined,
- i___22618: undefined,
+ tmp_3: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function Math_max__P122(s) {
+function particles_ParticleFactory_constructor__P62704(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9814,123 +7903,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 >= s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
r0 = s.arg0;
- { step = 3; continue; }
- case 1:
- case 2:
- r0 = s.arg1;
- case 3:
- return leave(s, r0)
- default: oops()
-} } }
-Math_max__P122.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]}
-
-function Math_max__P122_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Math_max__P122, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function particles_updateParticles__P4630(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.sources___23781 = undefined;
- s.time___23788 = undefined;
- s.dt___23791 = undefined;
- s.i___23797 = undefined;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1104; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.sources___23781 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.sources___23781);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
- case 1:
- case 2:
- s.tmp_2 = particles_sortSources__P4632_mk(s);
- s.tmp_2.arg0 = s.sources___23781;
- s.callLocIdx = 1105; s.pc = 7; return s.tmp_2;
- case 7:
- r0 = s.retval;
- r0 = pxsim.control.millis();
- s.time___23788 = (r0);
- r0 = (s.time___23788 - globals.lastUpdate___4624);
- s.dt___23791 = (r0);
- globals.lastUpdate___4624 = (s.time___23788);
- s.i___23797 = (0);
- case 3:
- s.tmp_1 = r0 = s.i___23797;
- r0 = pxsim_Array__length(s.sources___23781);
- 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__P2677_mk(s);
- r0 = pxsim_Array__getAt(s.sources___23781, s.i___23797);
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.dt___23791;
- s.callLocIdx = 1106; s.pc = 8; return s.tmp_3;
- case 8:
- r0 = s.retval;
- r0 = (s.i___23797 + 1);
- s.i___23797 = (r0);
- { step = 3; continue; }
- case 4:
- case 5:
+ if (!checkSubtype(r0, particles_ParticleFactory__C62703_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_updateParticles__P4630.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]}
+particles_ParticleFactory_constructor__P62704.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_updateParticles__P4630_mk(s) {
+function particles_ParticleFactory_constructor__P62704_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_updateParticles__P4630, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleFactory_constructor__P62704, depth: s.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___23781: undefined,
- time___23788: undefined,
- dt___23791: undefined,
- i___23797: undefined,
+ arg0: undefined,
} }
-function particles_ParticleSource__update__P2677(s) {
+function particles_ParticleSource_setFactory__P62686(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -9940,257 +7935,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___23860 = undefined;
- s.current___23879 = undefined;
- s.fixedDt___23887 = 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__C2670_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["timer"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.arg1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["timer"] = (s.tmp_1);
- r0 = s.arg0.fields["lifespan"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 !== undefined);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = r0 = s.arg0;
- r0 = s.tmp_2.fields["lifespan"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.arg1);
- s.tmp_3 = r0;
- r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3);
- r0 = s.arg0.fields["lifespan"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 <= 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
if (!r0) { step = 1; continue; }
- r0 = (s.arg0).fields["lifespan"] = (undefined);
- s.tmp_0 = particles_ParticleSource_destroy__P2684_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1077; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
+ r0 = (s.arg0).fields["_factory"] = (s.arg1);
case 1:
case 2:
- { step = 10; continue; }
- case 3:
- r0 = s.arg0.fields["anchor"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 4; continue; }
- r0 = s.tmp_0;
- { step = 5; continue; }
- case 4:
- s.tmp_2 = if_flags_1_mk(s);
- r0 = s.arg0.fields["anchor"];
- s.tmp_2.arg0 = r0;
- if (!s.tmp_2.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags");
- } else {
- s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"];
- if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; }
- else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
- else { s.callLocIdx = 1078; s.pc = 29; return s.tmp_2; }
- }
- case 29:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 !== undefined);
- case 5:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 6; continue; }
- r0 = s.tmp_3;
- { step = 7; continue; }
- case 6:
- s.tmp_5 = if_flags_1_mk(s);
- r0 = s.arg0.fields["anchor"];
- s.tmp_5.arg0 = r0;
- if (!s.tmp_5.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags");
- } else {
- s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"];
- if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; }
- else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 1079; s.pc = 30; return s.tmp_5; }
- }
- case 30:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_4 & 2);
- case 7:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 8; continue; }
- r0 = (s.arg0).fields["lifespan"] = (750);
- case 8:
- case 9:
- case 10:
- case 11:
- r0 = s.arg0.fields["timer"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 12; continue; }
- r0 = s.tmp_0;
- { step = 13; continue; }
- case 12:
- s.tmp_2 = particles_ParticleSource_enabled__P2682_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 1080; s.pc = 31; return s.tmp_2;
- case 31:
- r0 = s.retval;
- case 13:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 16; continue; }
- s.tmp_4 = r0 = s.arg0;
- r0 = s.tmp_4.fields["timer"];
- s.tmp_6 = r0;
- r0 = s.arg0.fields["period"];
- s.tmp_7 = r0;
- r0 = (s.tmp_6 + s.tmp_7);
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["timer"] = (s.tmp_5);
- s.tmp_0 = particles_ParticleFactory__C2706_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__C2706_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___23860 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.p___23860);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- { step = 11; continue; }
- case 14:
- case 15:
- r0 = s.arg0.fields["head"];
- s.tmp_2 = r0;
- r0 = (s.p___23860).fields["next"] = (s.tmp_2);
- r0 = (s.arg0).fields["head"] = (s.p___23860);
- { step = 11; continue; }
- case 16:
- r0 = s.arg0.fields["head"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- { step = 27; continue; }
- case 17:
- case 18:
- r0 = s.arg0.fields["head"];
- s.current___23879 = (r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["_dt"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.arg1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1);
- r0 = s.arg0.fields["_dt"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 * 256);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 | 0);
- s.fixedDt___23887 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.fixedDt___23887);
- if (!r0) { step = 23; continue; }
- case 19:
- r0 = s.current___23879.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___23879;
- 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__C2670_v4_3_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.current___23879;
- s.tmp_0.arg2 = s.fixedDt___23887;
- if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C2670_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___23879.fields["next"];
- s.tmp_0 = r0;
- s.current___23879 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 22; continue; }
- { step = 19; continue; }
- case 22:
- r0 = (s.arg0).fields["_dt"] = (0);
- { step = 26; continue; }
- case 23:
- case 24:
- s.tmp_0 = r0 = s.current___23879;
- 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___23879.fields["next"];
- s.tmp_0 = r0;
- s.current___23879 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 25; continue; }
- { step = 24; continue; }
- case 25:
- case 26:
- case 27:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource__update__P2677.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]}
+particles_ParticleSource_setFactory__P62686.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]}
-function particles_ParticleSource__update__P2677_mk(s) {
+function particles_ParticleSource_setFactory__P62686_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource__update__P2677, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_setFactory__P62686, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- p___23860: undefined,
- current___23879: undefined,
- fixedDt___23887: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -10199,7 +7966,7 @@ function particles_ParticleSource__update__P2677_mk(s) {
-function particles_ParticleSource_updateParticle__P4626(s) {
+function particles_ParticleSource_setRate__P62684(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10212,88 +7979,40 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- r0 = (s.arg2 >> 10);
- s.arg2 = (r0);
- s.tmp_0 = r0 = s.arg1;
- r0 = s.arg1.fields["vx"];
- s.tmp_2 = r0;
- r0 = s.arg0.fields["ax"];
- s.tmp_4 = r0;
- r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 8);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["vx"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg1;
- r0 = s.arg1.fields["vy"];
- s.tmp_2 = r0;
- r0 = s.arg0.fields["ay"];
- s.tmp_4 = r0;
- r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 8);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["vy"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg1;
- r0 = s.arg1.fields["_x"];
- s.tmp_2 = r0;
- r0 = s.arg1.fields["vx"];
- s.tmp_4 = r0;
- r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 8);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_x"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg1;
- r0 = s.arg1.fields["_y"];
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (1000 / s.arg1);
s.tmp_2 = r0;
- r0 = s.arg1.fields["vy"];
- s.tmp_4 = r0;
- r0 = pxsim.Math_.imul(s.tmp_4, s.arg2);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 8);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
+ r0 = pxsim.Math_.ceil(s.tmp_2);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
+ r0 = (s.tmp_0).fields["period"] = (s.tmp_1);
+ r0 = (s.arg0).fields["timer"] = (0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_updateParticle__P4626.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]}
+particles_ParticleSource_setRate__P62684.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]}
-function particles_ParticleSource_updateParticle__P4626_mk(s) {
+function particles_ParticleSource_setRate__P62684_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_updateParticle__P4626, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_setRate__P62684, depth: s.depth + 1,
pc: 0, retval: undefined, 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 Fx_rightShift__P161(s) {
+function particles_ParticleSource_setAnchor__P62683(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10308,16 +8027,19 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 >> s.arg1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["anchor"] = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_rightShift__P161.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]}
+particles_ParticleSource_setAnchor__P62683.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]}
-function Fx_rightShift__P161_mk(s) {
+function particles_ParticleSource_setAnchor__P62683_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_rightShift__P161, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_setAnchor__P62683, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -10327,7 +8049,7 @@ function Fx_rightShift__P161_mk(s) {
-function Fx_mul__P152(s) {
+function particles_ParticleSource_clear__P62682(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10339,32 +8061,30 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim.Math_.imul(s.arg0, s.arg1);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 8);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["head"] = (undefined);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_mul__P152.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]}
+particles_ParticleSource_clear__P62682.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]}
-function Fx_mul__P152_mk(s) {
+function particles_ParticleSource_clear__P62682_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_mul__P152, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_clear__P62682, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function Fx_add__P149(s) {
+function particles_ParticleSource_destroy__P62681(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10376,29 +8096,49 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 + s.arg1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_0 = particles_ParticleSource_enabled__P62680_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = false;
+ s.callLocIdx = 1093; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["pFlags"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
+ s.tmp_0 = particles_ParticleSource__prune__P62675_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1094; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_add__P149.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]}
+particles_ParticleSource_destroy__P62681.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]}
-function Fx_add__P149_mk(s) {
+function particles_ParticleSource_destroy__P62681_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_add__P149, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_destroy__P62681, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function particles_ParticleFactory_createParticle__P2708(s) {
+function particles_ParticleSource_enabled__P62680(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10408,74 +8148,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___23977 = 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__C2706_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C2651_VT);
- s.p___23977 = (r0);
- s.tmp_0 = r0 = s.p___23977;
- s.tmp_3 = if_x_1_mk(s);
- s.tmp_3.arg0 = s.arg1;
- if (!s.tmp_3.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x");
- } else {
- s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"];
- if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; }
- else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 1131; s.pc = 1; return s.tmp_3; }
- }
- case 1:
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_1 = r0 = s.arg1;
+ s.tmp_3 = particles_ParticleSource_enabled__P62679_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 1092; s.pc = 5; return s.tmp_3;
+ case 5:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
+ r0 = (s.tmp_1 !== s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0.fields["pFlags"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_x"] = (s.tmp_1);
- s.tmp_0 = r0 = s.p___23977;
- s.tmp_3 = if_y_1_mk(s);
- s.tmp_3.arg0 = s.arg1;
- if (!s.tmp_3.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y");
- } else {
- s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"];
- if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; }
- else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 1133; s.pc = 2; return s.tmp_3; }
- }
+ r0 = (s.tmp_4 | 1);
+ { step = 2; continue; }
+ case 1:
+ r0 = s.arg0.fields["pFlags"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 ^ 1);
case 2:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
- r0 = (s.p___23977).fields["vx"] = (0);
- r0 = (s.p___23977).fields["vy"] = (0);
- r0 = (s.p___23977).fields["lifespan"] = (500);
- r0 = s.p___23977;
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = (s.arg0).fields["pFlags"] = (s.tmp_6);
+ r0 = (s.arg0).fields["timer"] = (0);
+ case 3:
+ case 4:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleFactory_createParticle__P2708.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_ParticleSource_enabled__P62680.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]}
-function particles_ParticleFactory_createParticle__P2708_mk(s) {
+function particles_ParticleSource_enabled__P62680_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleFactory_createParticle__P2708, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_enabled__P62680, depth: s.depth + 1,
pc: 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___23977: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -10484,7 +8209,7 @@ function particles_ParticleFactory_createParticle__P2708_mk(s) {
-function game_onUpdateInterval__P2536(s) {
+function particles_ParticleSource_enabled__P62679(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10494,79 +8219,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.timer___23323 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = undefined;
- s.callLocIdx = 890; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = (s.arg0 < 0);
- case 2:
- // jmp value (already in r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = s.arg0.fields["pFlags"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 & 1);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- { step = 5; continue; }
- case 3:
- case 4:
- r0 = pxsim_pxtrt.mklocRef();
- s.timer___23323 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.timer___23323, 0);
- r0 = pxsim_pxtcore_mkAction(3, inline__P23327);
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___23323);
- 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__P389_mk(s);
- s.tmp_2 = game_eventContext__P2527_mk(s);
- s.callLocIdx = 891; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 19;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 895; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- case 5:
- r0 = undefined;
- return leave(s, r0)
+ r0 = pxsim_Boolean__bang(s.tmp_0);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-game_onUpdateInterval__P2536.info = {"start":7931,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]}
+particles_ParticleSource_enabled__P62679.info = {"start":6605,"length":76,"line":215,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]}
+particles_ParticleSource_enabled__P62679.isGetter = true;
-function game_onUpdateInterval__P2536_mk(s) {
+function particles_ParticleSource_enabled__P62679_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_onUpdateInterval__P2536, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_enabled__P62679, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- timer___23323: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P23327(s) {
+function particles_ParticleSource_setAcceleration__P62676(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10576,55 +8269,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.time___23328 = undefined;
- s.tmp_1 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 892; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["_millis"];
- s.time___23328 = (r0);
- r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_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.time___23328);
- 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___23328 + 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 = 894; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- case 1:
- case 2:
+ r0 = (s.tmp_0).fields["ax"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg2 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["ay"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P23327.info = {"start":8161,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]}
+particles_ParticleSource_setAcceleration__P62676.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]}
-function inline__P23327_mk(s) {
+function particles_ParticleSource_setAcceleration__P62676_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P23327, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_setAcceleration__P62676, depth: s.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___23328: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function scene_Scene_millis__P2435(s) {
+function sprites_BaseSprite_constructor__P61852(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10636,29 +8324,49 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0);
- r0 = s.arg0.fields["_millis"];
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
+ s.tmp_0 = sprites_BaseSprite_z__P61855_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 138; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = scene_Scene_addSprite__P62433_mk(s);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 139; 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 = 140; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Scene_millis__P2435.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]}
+sprites_BaseSprite_constructor__P61852.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_Scene_millis__P2435_mk(s) {
+function sprites_BaseSprite_constructor__P61852_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_millis__P2435, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite_constructor__P61852, 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 control_EventContext_registerFrameHandler__P389(s) {
+function scene_Scene_addSprite__P62433(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10668,105 +8376,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.fn___23351 = undefined;
- s.i___23360 = 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__C381_VT)) failedCast(r0);
- r0 = s.arg0.fields["frameCallbacks"];
+ if (!checkSubtype(r0, scene_Scene__C62408_VT)) failedCast(r0);
+ r0 = s.arg0.fields["allSprites"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["spriteNextId"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = (s.tmp_2 + 1);
s.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__P3959_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 63; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
+ 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 = 837; s.pc = 1; return s.tmp_3; }
+ }
case 1:
- case 2:
- r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C378_VT);
- s.fn___23351 = (r0);
- r0 = (s.fn___23351).fields["order"] = (s.arg1);
- r0 = (s.fn___23351).fields["handler"] = (s.arg2);
- s.i___23360 = (0);
- case 3:
- s.tmp_1 = r0 = s.i___23360;
- 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___23360);
- 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___23360, s.fn___23351);
- r0 = s.fn___23351;
- { step = 7; continue; }
- case 4:
- case 5:
- r0 = (s.i___23360 + 1);
- s.i___23360 = (r0);
- { step = 3; continue; }
- case 6:
- r0 = s.arg0.fields["frameCallbacks"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.fn___23351);
- r0 = s.fn___23351;
- case 7:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_registerFrameHandler__P389.info = {"start":4573,"length":643,"line":140,"column":8,"endLine":157,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]}
+scene_Scene_addSprite__P62433.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]}
-function control_EventContext_registerFrameHandler__P389_mk(s) {
+function scene_Scene_addSprite__P62433_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_registerFrameHandler__P389, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_addSprite__P62433, depth: s.depth + 1,
pc: 0, retval: undefined, 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___23351: undefined,
- i___23360: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function control_EventContext_registerFrameCallbacks__P3959(s) {
+function sprites_BaseSprite_z__P61855(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10776,55 +8438,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.worker___23394 = 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__C381_VT)) failedCast(r0);
- r0 = s.arg0.fields["frameCallbacks"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_z"];
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 !== s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ r0 = (s.arg0).fields["_z"] = (s.arg1);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 141; 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 = s.arg0.fields["frameWorker"];
- s.worker___23394 = (r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P23400);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___23394);
- r0 = pxsim.control.runInParallel(s.tmp_0);
- case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_registerFrameCallbacks__P3959.info = {"start":3379,"length":895,"line":102,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]}
+sprites_BaseSprite_z__P61855.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 control_EventContext_registerFrameCallbacks__P3959_mk(s) {
+function sprites_BaseSprite_z__P61855_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_registerFrameCallbacks__P3959, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite_z__P61855, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- worker___23394: undefined,
+ tmp_3: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P23400(s) {
+function sprites_BaseSprite_z__P61854(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10834,73 +8497,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.delay___23430 = undefined;
- r0 = s.caps[0].fields["runningCallbacks"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P23406);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]);
- s.tmp_2 = pauseUntil__P353_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 57; 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__P3958_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 58; s.pc = 6; return s.tmp_2;
- case 6:
- r0 = s.retval;
- s.delay___23430 = (r0);
- s.tmp_0 = pause__P399_mk(s);
- s.tmp_0.arg0 = s.delay___23430;
- s.callLocIdx = 59; 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)
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_z"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-inline__P23400.info = {"start":3540,"length":723,"line":106,"column":34,"endLine":125,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
+sprites_BaseSprite_z__P61854.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__P61854.isGetter = true;
-function inline__P23400_mk(s) {
+function sprites_BaseSprite_z__P61854_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P23400, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite_z__P61854, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- delay___23430: undefined,
+ arg0: undefined,
} }
-function inline__P23406(s) {
+function helpers_arrayShift__P60092(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10910,30 +8532,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["runningCallbacks"];
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_0);
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_Array_.removeAt(s.arg0, 0);
return leave(s, r0)
default: oops()
} } }
-inline__P23406.info = {"start":3771,"length":28,"line":110,"column":31,"endLine":110,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
+helpers_arrayShift__P60092.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]}
-function inline__P23406_mk(s) {
+function helpers_arrayShift__P60092_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P23406, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayShift__P60092, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
+ arg0: undefined,
} }
-function control_EventContext_runCallbacks__P3958(s) {
+function particles_SprayFactory_setSpeed__P62711(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -10943,234 +8564,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.loopStart___23439 = undefined;
- s.f___23452 = undefined;
- s.unnamed48___U2 = undefined;
- s.unnamed49___U3 = undefined;
- s.runtime___23457 = undefined;
- s.fps___23477 = undefined;
- s.delay___23539 = 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__C381_VT)) failedCast(r0);
- r0 = pxsim.control.millis();
- s.loopStart___23439 = (r0);
+ if (!checkSubtype(r0, particles_SprayFactory__C62707_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["prevTimeMillis"];
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = (s.loopStart___23439 - s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1);
- r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___23439);
- s.f___23452 = (undefined);
- r0 = s.arg0.fields["frameCallbacks"];
- s.unnamed48___U2 = (r0);
- s.unnamed49___U3 = (0);
- case 1:
- s.tmp_0 = r0 = s.unnamed49___U3;
- r0 = pxsim_Array__length(s.unnamed48___U2);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed48___U2, s.unnamed49___U3);
- s.f___23452 = (r0);
- s.tmp_2 = if_handler_1_mk(s);
- s.tmp_2.arg0 = s.f___23452;
- if (!s.tmp_2.arg0.vtable.iface) {
- setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1);
- s.callLocIdx = 54; s.pc = 13; return s.tmp_2;
- } else {
- s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"];
- if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 54; s.pc = 13; return s.tmp_2; }
- else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 13; return s.tmp_2;; }
- else { s.callLocIdx = 54; s.pc = 13; return s.tmp_2; }
+ r0 = (s.tmp_0).fields["speed"] = (s.tmp_1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+particles_SprayFactory_setSpeed__P62711.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__P62711_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: particles_SprayFactory_setSpeed__P62711, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function particles_ConfettiFactory_constructor__P62735(s) {
+let r0 = s.r0, 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.confetti___83995 = undefined;
+ s.i___84011 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
}
- case 13:
- r0 = s.retval;
- r0 = (s.unnamed49___U3 + 1);
- s.unnamed49___U3 = (r0);
- { step = 1; continue; }
- case 2:
- s.unnamed48___U2 = (undefined);
- r0 = pxsim.control.millis();
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ConfettiFactory__C62734_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.loopStart___23439);
- s.runtime___23457 = (r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["timeInSample"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.runtime___23457);
- 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"];
+ r0 = pxsim.image.ofBuffer(_hex83998);
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"];
+ r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
+ r0 = pxsim.image.ofBuffer(_hex84000);
s.tmp_2 = r0;
- r0 = (s.tmp_2 > 30);
- case 4:
- // jmp value (already in r0)
+ r0 = pxsim_Array__push(s.tmp_0, s.tmp_2);
+ r0 = pxsim.image.ofBuffer(_hex84002);
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 11; continue; }
- r0 = s.arg0.fields["framesInSample"];
+ r0 = pxsim_Array__push(s.tmp_0, s.tmp_3);
+ r0 = pxsim.image.ofBuffer(_hex84004);
s.tmp_4 = r0;
- r0 = s.arg0.fields["timeInSample"];
- s.tmp_6 = r0;
- r0 = (s.tmp_6 / 1000);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 / s.tmp_5);
- s.fps___23477 = (r0);
- r0 = pxsim.Math_.round(s.fps___23477);
- s.tmp_1 = r0;
- if ((s.tmp_1) && (s.tmp_1).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.tmp_1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_1) + ""; }
- case 14:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat("fps:", s.tmp_0);
- globals.control_EventContext_lastStats___383 = (r0);
- r0 = (s.fps___23477 < 99);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- if ((globals.control_EventContext_lastStats___383) && (globals.control_EventContext_lastStats___383).vtable) {
- setupResume(s, 15);
- pxsim_String__stringConv(globals.control_EventContext_lastStats___383);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.control_EventContext_lastStats___383) + ""; }
- case 15:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.fps___23477 * 10);
- s.tmp_7 = r0;
- r0 = pxsim.Math_.round(s.tmp_7);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 % 10);
+ r0 = pxsim_Array__push(s.tmp_0, s.tmp_4);
+ r0 = pxsim.image.ofBuffer(_hex84006);
s.tmp_5 = r0;
- if ((s.tmp_5) && (s.tmp_5).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.tmp_5);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_5) + ""; }
- case 16:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(".", s.tmp_4);
- s.tmp_3 = r0;
- if ((s.tmp_3) && (s.tmp_3).vtable) {
- setupResume(s, 17);
- pxsim_String__stringConv(s.tmp_3);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_3) + ""; }
- case 17:
+ r0 = pxsim_Array__push(s.tmp_0, s.tmp_5);
+ s.confetti___83995 = (s.tmp_0);
+ s.tmp_0 = particles_ShapeFactory_constructor__P62730_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___83995, 0);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 1178; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
+ s.i___84011 = (1);
+ case 1:
+ s.tmp_1 = r0 = s.i___84011;
+ r0 = pxsim_Array__length(s.confetti___83995);
s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- globals.control_EventContext_lastStats___383 = (r0);
- case 5:
- case 6:
- s.tmp_2 = control_ramSize__P332_mk(s);
- s.callLocIdx = 55; s.pc = 18; return s.tmp_2;
- case 18:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 2000000);
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 7:
- r0 = pxsim.control.profilingEnabled();
- case 8:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_String_.mkEmpty();
- s.tmp_8 = r0;
- r0 = (s.fps___23477 * 100);
- s.tmp_11 = r0;
- r0 = (s.tmp_11 | 0);
- s.tmp_10 = r0;
- if ((s.tmp_10) && (s.tmp_10).vtable) {
- setupResume(s, 19);
- pxsim_String__stringConv(s.tmp_10);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_10) + ""; }
- case 19:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String__concat(s.tmp_8, s.tmp_9);
- s.tmp_7 = r0;
- r0 = pxsim_String__concat(s.tmp_7, "/100 fps - ");
- s.tmp_6 = r0;
- r0 = s.arg0.fields["framesInSample"];
- s.tmp_13 = r0;
- if ((s.tmp_13) && (s.tmp_13).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.tmp_13);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_13) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_12 = r0;
- r0 = pxsim_String__concat(s.tmp_6, s.tmp_12);
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, " frames");
- s.tmp_4 = r0;
- r0 = pxsim.control.dmesg(s.tmp_4);
- r0 = pxsim.control.gc();
- r0 = pxsim_pxtcore.dumpPerfCounters();
- case 9:
- case 10:
- r0 = (s.arg0).fields["timeInSample"] = (0);
- r0 = (s.arg0).fields["framesInSample"] = (0);
- case 11:
- case 12:
- s.tmp_0 = Math_max__P122_mk(s);
- s.tmp_0.arg0 = 1;
- r0 = (20 - s.runtime___23457);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 56; s.pc = 21; return s.tmp_0;
- case 21:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_3 = particles_ShapeFactory_addShape__P62731_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ r0 = pxsim_Array__getAt(s.confetti___83995, s.i___84011);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 1179; s.pc = 4; return s.tmp_3;
+ case 4:
r0 = s.retval;
- s.delay___23539 = (r0);
- r0 = s.delay___23539;
+ r0 = (s.i___84011 + 1);
+ s.i___84011 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = (s.arg0).fields["minLifespan"] = (1000);
+ r0 = (s.arg0).fields["maxLifespan"] = (4500);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_runCallbacks__P3958.info = {"start":2080,"length":1246,"line":71,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]}
+particles_ConfettiFactory_constructor__P62735.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 control_EventContext_runCallbacks__P3958_mk(s) {
+function particles_ConfettiFactory_constructor__P62735_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_runCallbacks__P3958, depth: s.depth + 1,
+ parent: s, fn: particles_ConfettiFactory_constructor__P62735, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -11178,29 +8685,23 @@ function control_EventContext_runCallbacks__P3958_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
- tmp_12: undefined,
- tmp_13: undefined,
- loopStart___23439: undefined,
- f___23452: undefined,
- unnamed48___U2: undefined,
- unnamed49___U3: undefined,
- runtime___23457: undefined,
- fps___23477: undefined,
- delay___23539: undefined,
+ confetti___83995: undefined,
+ i___84011: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
+const _hex83998 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000")
+const _hex84000 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000")
+const _hex84002 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000")
+const _hex84004 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000")
+const _hex84006 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000")
-function pauseUntil__P353(s) {
+function particles_ShapeFactory_addShape__P62731(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11215,63 +8716,27 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ShapeFactory__C62729_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = s.arg0.fields["sources"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg1);
case 1:
- s.tmp_2 = lambda_1_mk(s);
- s.tmp_2.argL = s.arg0;
- setupLambda(s.tmp_2, s.tmp_2.argL);
- s.callLocIdx = 34; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
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__P352_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = undefined;
- s.callLocIdx = 35; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-pauseUntil__P353.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]}
+particles_ShapeFactory_addShape__P62731.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 pauseUntil__P353_mk(s) {
+function particles_ShapeFactory_addShape__P62731_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: pauseUntil__P353, depth: s.depth + 1,
+ parent: s, fn: particles_ShapeFactory_addShape__P62731, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -11280,7 +8745,7 @@ function pauseUntil__P353_mk(s) {
-function control___queuePollEvent__P352(s) {
+function particles_ShapeFactory_constructor__P62730(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11290,97 +8755,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ev___23561 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C3932_VT);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_ShapeFactory__C62729_VT)) failedCast(r0);
+ s.tmp_0 = particles_AreaFactory_constructor__P62718_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 = 1168; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- s.tmp_1 = control_PollEvent_constructor__P3933_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = pxsim.control.allocateNotifyEvent();
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = 1;
- r0 = pxsim.control.millis();
- s.tmp_1.arg3 = r0;
- s.tmp_1.arg4 = s.arg0;
- s.tmp_1.arg5 = s.arg1;
- r0 = pxsim_numops_toBoolDecr(s.arg2);
+ r0 = pxsim_Array__push(s.tmp_0, s.arg3);
+ r0 = (s.arg0).fields["sources"] = (s.tmp_0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_ImageMethods.width(s.arg3);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 1);
s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
- s.tmp_1.arg6 = r0;
- s.callLocIdx = 32; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.ev___23561 = (s.tmp_0);
- r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___3935);
+ r0 = (s.tmp_2 * 256);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 | 0);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
+ r0 = (s.tmp_0).fields["ox"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_ImageMethods.height(s.arg3);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 1);
s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_2, s.ev___23561);
- globals._pollEventQueue___3935 = (s.tmp_2);
- r0 = pxsim.control.runInParallel(control_pollEvents__P3936);
- { step = 2; continue; }
- case 1:
- r0 = pxsim_Array__push(globals._pollEventQueue___3935, s.ev___23561);
- case 2:
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 3; continue; }
- s.tmp_0 = control_onEvent__P377_mk(s);
- r0 = s.ev___23561.fields["eid"];
- s.tmp_0.arg0 = r0;
- r0 = s.ev___23561.fields["vid"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = 16;
- s.callLocIdx = 33; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- { step = 4; continue; }
- case 3:
- r0 = s.ev___23561.fields["eid"];
- s.tmp_0 = r0;
- r0 = s.ev___23561.fields["vid"];
+ r0 = (s.tmp_2 * 256);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 | 0);
s.tmp_1 = r0;
- setupResume(s, 7);
- pxsim.control.waitForEvent(s.tmp_0, s.tmp_1);
- checkResumeConsumed();
- return;
- case 7:
- r0 = s.retval;
- case 4:
+ r0 = (s.tmp_0).fields["oy"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control___queuePollEvent__P352.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]}
+particles_ShapeFactory_constructor__P62730.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 control___queuePollEvent__P352_mk(s) {
+function particles_ShapeFactory_constructor__P62730_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control___queuePollEvent__P352, depth: s.depth + 1,
+ parent: s, fn: particles_ShapeFactory_constructor__P62730, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- ev___23561: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function control_pollEvents__P3936(s) {
+function particles_AreaFactory_constructor__P62718(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11390,139 +8833,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.now___23687 = undefined;
- s.i___23690 = undefined;
- s.ev___23696 = undefined;
- case 1:
- r0 = pxsim_Array__length(globals._pollEventQueue___3935);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- r0 = pxsim.control.millis();
- s.now___23687 = (r0);
- s.i___23690 = (0);
- case 2:
- s.tmp_1 = r0 = s.i___23690;
- r0 = pxsim_Array__length(globals._pollEventQueue___3935);
- 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___3935, s.i___23690);
- s.ev___23696 = (r0);
- s.tmp_1 = if_condition_1_mk(s);
- s.tmp_1.arg0 = s.ev___23696;
- if (!s.tmp_1.arg0.vtable.iface) {
- setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1);
- s.callLocIdx = 29; s.pc = 13; return s.tmp_1;
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"];
- if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 29; s.pc = 13; return s.tmp_1; }
- else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; }
- else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; }
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.lambdaArgs = null;
}
- case 13:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, particles_AreaFactory__C62713_VT)) failedCast(r0);
+ s.tmp_0 = particles_SprayFactory_constructor__P62708_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 = 1156; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
+ r0 = (s.arg0).fields["xRange"] = (s.arg1);
+ r0 = (s.arg0).fields["yRange"] = (s.arg2);
+ r0 = pxsim_numops_toBoolDecr(s.arg3);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg3;
+ { step = 2; continue; }
+ case 1:
+ r0 = 150;
+ case 2:
+ // jmp value (already in r0)
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.arg4);
if (!r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
+ r0 = s.arg4;
+ { step = 4; continue; }
case 3:
- r0 = s.ev___23696.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; }
+ r0 = 850;
case 4:
- r0 = s.ev___23696.fields["start"];
- s.tmp_5 = r0;
- r0 = (s.now___23687 - s.tmp_5);
- s.tmp_4 = r0;
- r0 = s.ev___23696.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___23696.fields["eid"];
- s.tmp_9 = r0;
- r0 = s.ev___23696.fields["vid"];
- s.tmp_10 = r0;
- r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10);
- r0 = s.ev___23696.fields["once"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_1 = helpers_arraySplice__P95_mk(s);
- s.tmp_1.arg0 = globals._pollEventQueue___3935;
- s.tmp_1.arg1 = s.i___23690;
- s.tmp_1.arg2 = 1;
- s.callLocIdx = 30; s.pc = 14; return s.tmp_1;
- case 14:
- r0 = s.retval;
- r0 = (s.i___23690 - 1);
- s.i___23690 = (r0);
- case 7:
- case 8:
- case 9:
- case 10:
- r0 = (s.i___23690 + 1);
- s.i___23690 = (r0);
- { step = 2; continue; }
- case 11:
- s.tmp_0 = pause__P399_mk(s);
- s.tmp_0.arg0 = 50;
- s.callLocIdx = 31; s.pc = 15; return s.tmp_0;
- case 15:
+ r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C62575_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = Math_FastRandom_constructor__P62577_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = undefined;
+ s.callLocIdx = 1157; s.pc = 6; return s.tmp_1;
+ case 6:
r0 = s.retval;
- { step = 1; continue; }
- case 12:
- globals._pollEventQueue___3935 = (undefined);
+ r0 = (s.arg0).fields["galois"] = (s.tmp_0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_pollEvents__P3936.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]}
+particles_AreaFactory_constructor__P62718.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 control_pollEvents__P3936_mk(s) {
+function particles_AreaFactory_constructor__P62718_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_pollEvents__P3936, depth: s.depth + 1,
+ parent: s, fn: particles_AreaFactory_constructor__P62718, depth: s.depth + 1,
pc: 0, retval: undefined, 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___23687: undefined,
- i___23690: undefined,
- ev___23696: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function helpers_arraySplice__P95(s) {
+function effects_ScreenEffect_constructor__P62783(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11532,55 +8916,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___23744 = 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.arg1 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, effects_ScreenEffect__C62782_VT)) failedCast(r0);
+ s.tmp_0 = effects_ParticleEffect_constructor__P62779_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 = 1185; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- s.i___23744 = (0);
- case 3:
- r0 = (s.i___23744 < 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___23744 + 1);
- s.i___23744 = (r0);
- { step = 3; continue; }
- case 4:
- case 5:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_arraySplice__P95.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"]}
+effects_ScreenEffect_constructor__P62783.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 helpers_arraySplice__P95_mk(s) {
+function effects_ScreenEffect_constructor__P62783_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arraySplice__P95, depth: s.depth + 1,
+ parent: s, fn: effects_ScreenEffect_constructor__P62783, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- i___23744: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function control_PollEvent_constructor__P3933(s) {
+function effects_ParticleEffect_constructor__P62779(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11595,44 +8973,35 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
- s.arg6 = (s.lambdaArgs[6]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, control_PollEvent__C3932_VT)) failedCast(r0);
- r0 = (s.arg0).fields["eid"] = (s.arg1);
- r0 = (s.arg0).fields["vid"] = (s.arg2);
- r0 = (s.arg0).fields["start"] = (s.arg3);
- r0 = (s.arg0).fields["timeOut"] = (s.arg4);
- r0 = (s.arg0).fields["condition"] = (s.arg5);
- r0 = (s.arg0).fields["once"] = (s.arg6);
+ if (!checkSubtype(r0, effects_ParticleEffect__C62778_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["sourceFactory"] = (s.arg3);
+ r0 = (s.arg0).fields["defaultRate"] = (s.arg1);
+ r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_PollEvent_constructor__P3933.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"]}
+effects_ParticleEffect_constructor__P62779.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 control_PollEvent_constructor__P3933_mk(s) {
+function effects_ParticleEffect_constructor__P62779_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_PollEvent_constructor__P3933, depth: s.depth + 1,
+ parent: s, fn: effects_ParticleEffect_constructor__P62779, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
- arg4: undefined,
- arg5: undefined,
- arg6: undefined,
} }
-function control_onEvent__P377(s) {
+function scene_Scene_init__P62430(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11642,63 +9011,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ctx___23603 = 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__P394_mk(s);
- s.callLocIdx = 51; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.ctx___23603 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.ctx___23603);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, scene_Scene__C62408_VT)) failedCast(r0);
+ r0 = s.arg0.fields["allSprites"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3);
- { step = 2; continue; }
+ { step = 3; continue; }
case 1:
- s.tmp_0 = control_EventContext_registerHandler__P391_mk(s);
- s.tmp_0.arg0 = s.ctx___23603;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = s.arg1;
- s.tmp_0.arg3 = s.arg2;
- s.tmp_0.arg4 = s.arg3;
- s.callLocIdx = 52; s.pc = 4; return s.tmp_0;
+ case 2:
+ s.tmp_1 = power_poke__P61697_mk(s);
+ s.callLocIdx = 817; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
- case 2:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1);
+ r0 = (s.arg0).fields["spriteNextId"] = (0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84130);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = control_EventContext_registerFrameHandler__P60384_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 = 820; s.pc = 5; return s.tmp_1;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = control_EventContext_registerFrameHandler__P60384_mk(s);
+ r0 = s.arg0.fields["eventContext"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 13;
+ s.tmp_0.arg2 = controller__moveSprites__P61914;
+ s.callLocIdx = 821; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84153);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = control_EventContext_registerFrameHandler__P60384_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 = 823; s.pc = 7; return s.tmp_1;
+ case 7:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84166);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = control_EventContext_registerFrameHandler__P60384_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 = 827; s.pc = 8; return s.tmp_1;
+ case 8:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84187);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = control_EventContext_registerFrameHandler__P60384_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 = 829; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84195);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = control_EventContext_registerFrameHandler__P60384_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 = 833; s.pc = 10; return s.tmp_1;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = control_EventContext_registerFrameHandler__P60384_mk(s);
+ r0 = s.arg0.fields["eventContext"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 200;
+ s.tmp_0.arg2 = control___screen_update__P61755;
+ s.callLocIdx = 834; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84224);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals.scene_Scene_initializers___62428;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 836; s.pc = 12; return s.tmp_1;
+ case 12:
+ r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_onEvent__P377.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"]}
+scene_Scene_init__P62430.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]}
-function control_onEvent__P377_mk(s) {
+function scene_Scene_init__P62430_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_onEvent__P377, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_init__P62430, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- ctx___23603: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function control_eventContext__P394(s) {
+function inline__P84130(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11708,30 +9144,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = r0 = globals.eventContexts___3961;
- r0 = pxsim_Array__length(globals.eventContexts___3961);
+ s.tmp_0 = r0 = s.caps[0];
+ r0 = s.tmp_0.fields["_millis"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
+ r0 = s.caps[0].fields["eventContext"];
+ r0 = r0.fields["deltaTimeMillis"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
- { step = 2; continue; }
+ r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1);
+ s.tmp_0 = controller___update__P61942_mk(s);
+ r0 = s.caps[0].fields["eventContext"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["deltaTimeMillis"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 / 1000);
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 819; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
r0 = undefined;
- case 2:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-control_eventContext__P394.info = {"start":6805,"length":136,"line":206,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]}
+inline__P84130.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
-function control_eventContext__P394_mk(s) {
+function inline__P84130_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_eventContext__P394, depth: s.depth + 1,
+ parent: s, fn: inline__P84130, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -11743,7 +9184,7 @@ function control_eventContext__P394_mk(s) {
-function control_EventContext_registerHandler__P391(s) {
+function inline__P84153(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11753,113 +9194,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.h___23626 = undefined;
- s.unnamed54___U1 = undefined;
- s.unnamed55___U2 = undefined;
- s.hn___23649 = 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__C381_VT)) failedCast(r0);
- s.h___23626 = (undefined);
- r0 = s.arg0.fields["handlers"];
- s.unnamed54___U1 = (r0);
- s.unnamed55___U2 = (0);
- case 1:
- s.tmp_0 = r0 = s.unnamed55___U2;
- r0 = pxsim_Array__length(s.unnamed54___U1);
+ s.tmp_0 = PhysicsEngine__C62151_v4_2_mk(s);
+ r0 = s.caps[0].fields["physicsEngine"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.caps[0].fields["eventContext"];
s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 6; continue; }
- r0 = pxsim_Array__getAt(s.unnamed54___U1, s.unnamed55___U2);
- s.h___23626 = (r0);
- r0 = s.h___23626.fields["src"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.arg1);
+ r0 = s.tmp_1.fields["deltaTimeMillis"];
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___23626.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___23626).fields["flags"] = (s.arg4);
- r0 = (s.h___23626).fields["handler"] = (s.arg3);
- { step = 7; continue; }
- case 4:
- case 5:
- r0 = (s.unnamed55___U2 + 1);
- s.unnamed55___U2 = (r0);
- { step = 1; continue; }
- case 6:
- s.unnamed54___U1 = (undefined);
- r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C3953_VT);
- s.tmp_0 = r0;
- s.tmp_1 = control_EventHandler_constructor__P3956_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 = 64; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
- s.hn___23649 = (s.tmp_0);
- r0 = s.arg0.fields["handlers"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.hn___23649);
- s.tmp_0 = control_EventHandler_register__P3954_mk(s);
- s.tmp_0.arg0 = s.hn___23649;
- s.callLocIdx = 65; s.pc = 9; return s.tmp_0;
- case 9:
+ r0 = (s.tmp_2 / 1000);
+ s.tmp_0.arg1 = r0;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_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;
- case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_registerHandler__P391.info = {"start":5471,"length":525,"line":166,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]}
+inline__P84153.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
-function control_EventContext_registerHandler__P391_mk(s) {
+function inline__P84153_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_registerHandler__P391, depth: s.depth + 1,
+ parent: s, fn: inline__P84153, depth: s.depth + 1,
pc: 0, retval: undefined, 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___23626: undefined,
- unnamed54___U1: undefined,
- unnamed55___U2: undefined,
- hn___23649: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function control_EventHandler_constructor__P3956(s) {
+function inline__P84166(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11869,43 +9238,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.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.lambdaArgs = null;
+ s.dt___84167 = undefined;
+ s.s___84175 = undefined;
+ s.unnamed154___U2 = undefined;
+ s.unnamed155___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___84167 = (r0);
+ s.tmp_0 = scene_Camera_update__P62365_mk(s);
+ r0 = s.caps[0].fields["camera"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 825; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.s___84175 = (undefined);
+ r0 = s.caps[0].fields["allSprites"];
+ s.unnamed154___U2 = (r0);
+ s.unnamed155___U3 = (0);
+ case 1:
+ 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 = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed154___U2, s.unnamed155___U3);
+ s.s___84175 = (r0);
+ s.tmp_2 = if___update_3_mk(s);
+ s.tmp_2.arg0 = s.s___84175;
+ r0 = s.caps[0].fields["camera"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = s.dt___84167;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3);
+ s.callLocIdx = 826; 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 = 826; s.pc = 4; return s.tmp_2; }
+ else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 826; s.pc = 4; return s.tmp_2;; }
+ else { s.callLocIdx = 826; s.pc = 4; return s.tmp_2; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, control_EventHandler__C3953_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);
+ case 4:
+ r0 = s.retval;
+ r0 = (s.unnamed155___U3 + 1);
+ s.unnamed155___U3 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.unnamed154___U2 = (undefined);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventHandler_constructor__P3956.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]}
+inline__P84166.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
-function control_EventHandler_constructor__P3956_mk(s) {
+function inline__P84166_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventHandler_constructor__P3956, depth: s.depth + 1,
+ parent: s, fn: inline__P84166, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ dt___84167: undefined,
+ s___84175: undefined,
+ unnamed154___U2: undefined,
+ unnamed155___U3: undefined,
} }
-function control_EventHandler_register__P3954(s) {
+function inline__P84187(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11915,45 +9321,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, control_EventHandler__C3953_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P23670);
- 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);
+ s.tmp_0 = scene_Scene_render__P62435_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 828; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventHandler_register__P3954.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]}
+inline__P84187.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
-function control_EventHandler_register__P3954_mk(s) {
+function inline__P84187_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventHandler_register__P3954, depth: s.depth + 1,
+ parent: s, fn: inline__P84187, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- arg0: undefined,
} }
-function inline__P23670(s) {
+function inline__P84195(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -11963,107 +9354,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["handler"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = if_handler_1_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- if (!s.tmp_1.arg0.vtable.iface) {
- setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1);
- s.callLocIdx = 53; s.pc = 3; return s.tmp_1;
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"];
- if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 53; s.pc = 3; return s.tmp_1; }
- else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; }
- else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; }
- }
- case 3:
- r0 = s.retval;
+ s.tmp_0 = r0 = globals.stats___62518;
+ 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___60379;
case 2:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P23670.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P23670_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P23670, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
-} }
-
-
-
-
-
-function game_onUpdate__P2535(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = undefined;
- s.callLocIdx = 887; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg0);
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_2 = control_EventContext_registerFrameHandler__P389_mk(s);
- s.tmp_3 = game_eventContext__P2527_mk(s);
- s.callLocIdx = 888; s.pc = 6; return s.tmp_3;
- case 6:
+ 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___60379;
+ if ((globals.control_EventContext_lastStats___60378) && (globals.control_EventContext_lastStats___60378).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(globals.control_EventContext_lastStats___60378);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.control_EventContext_lastStats___60378) + ""; }
+ 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;
- s.tmp_2.arg1 = 20;
- s.tmp_2.arg2 = s.arg0;
- s.callLocIdx = 889; s.pc = 5; return s.tmp_2;
- case 5:
+ setupLambda(s.tmp_2, s.tmp_2.argL);
+ s.callLocIdx = 830; s.pc = 7; return s.tmp_2;
+ case 7:
r0 = s.retval;
case 3:
+ case 4:
+ r0 = pxsim_numops_toBoolDecr(globals.debug___62517);
+ if (!r0) { step = 5; continue; }
+ s.tmp_0 = PhysicsEngine__C62151_v3_1_mk(s);
+ r0 = s.caps[0].fields["physicsEngine"];
+ s.tmp_0.arg0 = r0;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_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__P62643_mk(s);
+ s.callLocIdx = 831; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_0 = power_checkDeepSleep__P61698_mk(s);
+ s.callLocIdx = 832; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_onUpdate__P2535.info = {"start":7429,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]}
+inline__P84195.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
-function game_onUpdate__P2535_mk(s) {
+function inline__P84195_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_onUpdate__P2535, depth: s.depth + 1,
+ parent: s, fn: inline__P84195, depth: s.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,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
} }
-function particles_SprayFactory_constructor__P2711(s) {
+function inline__P84224(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12075,54 +9467,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0);
- r0 = undefined;
- s.tmp_0 = particles_initTrig__P4650_mk(s);
- s.callLocIdx = 1138; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = lambda_2_mk(s);
+ s.tmp_0.argL = s.arg0;
+ s.tmp_0.arg0 = s.caps[0];
+ setupLambda(s.tmp_0, s.tmp_0.argL);
+ s.callLocIdx = 835; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.retval;
- s.tmp_0 = particles_SprayFactory_setSpeed__P2714_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1139; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = particles_SprayFactory_setDirection__P2715_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg2;
- s.tmp_0.arg2 = s.arg3;
- s.callLocIdx = 1140; s.pc = 3; return s.tmp_0;
- case 3:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_SprayFactory_constructor__P2711.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"]}
+inline__P84224.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]}
-function particles_SprayFactory_constructor__P2711_mk(s) {
+function inline__P84224_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_SprayFactory_constructor__P2711, depth: s.depth + 1,
+ parent: s, fn: inline__P84224, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function particles_initTrig__P4650(s) {
+function game_consoleOverlay_draw__P62643(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12132,47 +9505,216 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.cachedSin___4636);
+ s.height___84273 = undefined;
+ s.top___84278 = undefined;
+ s.i___84284 = undefined;
+ s.t___84297 = undefined;
+ s.tOff___84304 = undefined;
+ s.tab___84306 = undefined;
+ s.unnamed158___U6 = undefined;
+ s.unnamed159___U7 = undefined;
+ s.padding___84308 = undefined;
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
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_2 = particles_cacheSin__P2704_mk(s);
- s.tmp_2.arg0 = 100;
- s.callLocIdx = 1126; s.pc = 3; return s.tmp_2;
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = pxsim_numops_toBoolDecr(globals.instance___64526);
+ 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:
- r0 = s.retval;
- globals.cachedSin___4636 = (r0);
- s.tmp_0 = particles_cacheCos__P2705_mk(s);
- s.tmp_0.arg0 = 100;
- s.callLocIdx = 1127; s.pc = 4; return s.tmp_0;
case 4:
+ s.tmp_7 = if_charHeight_1_mk(s);
+ s.tmp_7.arg0 = globals.consoleFont___64580;
+ 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 = 1061; s.pc = 14; return s.tmp_7; }
+ }
+ case 14:
r0 = s.retval;
- globals.cachedCos___4637 = (r0);
- case 1:
- case 2:
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 2);
+ s.height___84273 = (r0);
+ r0 = pxsim_numops_toBoolDecr(globals.stats___62518);
+ if (!r0) { step = 5; continue; }
+ r0 = s.height___84273;
+ { 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___84278 = (r0);
+ s.i___84284 = (0);
+ case 7:
+ s.tmp_1 = r0 = s.i___84284;
+ r0 = pxsim_Array__length(globals.consoleStrings___64572);
+ 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___64572, s.i___84284);
+ 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__P60109_mk(s);
+ r0 = pxsim_Array__getAt(globals.consoleStrings___64572, s.i___84284);
+ s.tmp_6.arg0 = r0;
+ s.tmp_6.arg1 = "\t";
+ s.tmp_6.arg2 = undefined;
+ s.callLocIdx = 1062; s.pc = 15; return s.tmp_6;
+ case 15:
+ r0 = s.retval;
+ s.t___84297 = (r0);
+ s.tOff___84304 = (0);
+ s.tab___84306 = (undefined);
+ s.unnamed158___U6 = (s.t___84297);
+ s.unnamed159___U7 = (0);
+ case 8:
+ s.tmp_0 = r0 = s.unnamed159___U7;
+ r0 = pxsim_Array__length(s.unnamed158___U6);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 9; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed158___U6, s.unnamed159___U7);
+ s.tab___84306 = (r0);
+ s.tmp_2 = r0 = globals.tabSize___64574;
+ s.tmp_5 = r0 = s.tOff___84304;
+ r0 = pxsim_String_.length(s.tab___84306);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 + s.tmp_6);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 % globals.tabSize___64574);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 - s.tmp_3);
+ s.padding___84308 = (r0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = s.tab___84306;
+ s.tmp_2 = r0 = s.tOff___84304;
+ s.tmp_4 = if_charWidth_1_mk(s);
+ s.tmp_4.arg0 = globals.consoleFont___64580;
+ 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 = 1063; 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___84278;
+ r0 = (s.i___84284 * s.height___84273);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 + s.tmp_6);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = globals.consoleColor___64571;
+ s.tmp_0.arg5 = globals.consoleFont___64580;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1064; s.pc = 16; return s.tmp_0;
+ case 16:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.tOff___84304;
+ r0 = pxsim_String_.length(s.tab___84306);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.padding___84308);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.tOff___84304 = (r0);
+ r0 = (s.unnamed159___U7 + 1);
+ s.unnamed159___U7 = (r0);
+ { step = 8; continue; }
+ case 9:
+ s.unnamed158___U6 = (undefined);
+ { step = 11; continue; }
+ case 10:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = pxsim_Array__getAt(globals.consoleStrings___64572, s.i___84284);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 4;
+ s.tmp_1 = r0 = s.top___84278;
+ r0 = (s.i___84284 * s.height___84273);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 + s.tmp_2);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = globals.consoleColor___64571;
+ s.tmp_0.arg5 = globals.consoleFont___64580;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1065; s.pc = 18; return s.tmp_0;
+ case 18:
+ r0 = s.retval;
+ case 11:
+ r0 = (s.i___84284 + 1);
+ s.i___84284 = (r0);
+ { step = 7; continue; }
+ case 12:
+ case 13:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_initTrig__P4650.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]}
+game_consoleOverlay_draw__P62643.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]}
-function particles_initTrig__P4650_mk(s) {
+function game_consoleOverlay_draw__P62643_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_initTrig__P4650, depth: s.depth + 1,
+ parent: s, fn: game_consoleOverlay_draw__P62643, depth: s.depth + 1,
pc: 0, retval: undefined, 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___84273: undefined,
+ top___84278: undefined,
+ i___84284: undefined,
+ t___84297: undefined,
+ tOff___84304: undefined,
+ tab___84306: undefined,
+ unnamed158___U6: undefined,
+ unnamed159___U7: undefined,
+ padding___84308: undefined,
} }
-function particles_cacheCos__P2705(s) {
+function scene_systemMenu_isVisible__P62624(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12182,65 +9724,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.cos___23092 = undefined;
- s.anglePerSlice___23094 = undefined;
- s.i___23100 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = pxsim_Array__mk();
- s.cos___23092 = (r0);
- r0 = (6.283185307179586 / s.arg0);
- s.anglePerSlice___23094 = (r0);
- s.i___23100 = (0);
- case 1:
- r0 = (s.i___23100 < s.arg0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = r0 = s.cos___23092;
- r0 = (s.i___23100 * s.anglePerSlice___23094);
- s.tmp_4 = r0;
- r0 = pxsim.Math_.cos(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 * 256);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 | 0);
+ r0 = pxsim_numops_toBoolDecr(globals.instance___64526);
s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.i___23100 + 1);
- s.i___23100 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = s.cos___23092;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_0);
return leave(s, r0)
default: oops()
} } }
-particles_cacheCos__P2705.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]}
+scene_systemMenu_isVisible__P62624.info = {"start":13055,"length":62,"line":392,"column":4,"endLine":394,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]}
-function particles_cacheCos__P2705_mk(s) {
+function scene_systemMenu_isVisible__P62624_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_cacheCos__P2705, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_isVisible__P62624, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- cos___23092: undefined,
- anglePerSlice___23094: undefined,
- i___23100: undefined,
- arg0: undefined,
} }
-function particles_cacheSin__P2704(s) {
+function helpers_stringSplit__P60109(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12250,65 +9760,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.sin___23118 = undefined;
- s.anglePerSlice___23120 = undefined;
- s.i___23126 = undefined;
+ s.A___82622 = undefined;
+ s.lim___82624 = undefined;
+ s.s___82640 = undefined;
+ s.p___82643 = undefined;
+ s.R___82644 = undefined;
+ s.z___82658 = undefined;
+ s.T___82671 = undefined;
+ s.q___82672 = undefined;
+ s.e___82678 = 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.sin___23118 = (r0);
- r0 = (6.283185307179586 / s.arg0);
- s.anglePerSlice___23120 = (r0);
- s.i___23126 = (0);
+ s.A___82622 = (r0);
+ s.lim___82624 = (0);
+ r0 = (s.arg2 === undefined);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = (536870912 - 1);
+ s.lim___82624 = (r0);
+ { step = 4; continue; }
case 1:
- r0 = (s.i___23126 < s.arg0);
+ r0 = (s.arg2 < 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 2; continue; }
- s.tmp_1 = r0 = s.sin___23118;
- r0 = (s.i___23126 * s.anglePerSlice___23120);
- s.tmp_4 = r0;
- r0 = pxsim.Math_.sin(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 * 256);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 | 0);
- s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.i___23126 + 1);
- s.i___23126 = (r0);
- { step = 1; continue; }
+ s.lim___82624 = (0);
+ { step = 3; continue; }
case 2:
- r0 = s.sin___23118;
+ r0 = (s.arg2 | 0);
+ s.lim___82624 = (r0);
+ case 3:
+ case 4:
+ r0 = pxsim_String_.length(s.arg0);
+ s.s___82640 = (r0);
+ s.p___82643 = (0);
+ s.R___82644 = (s.arg1);
+ r0 = (s.lim___82624 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.A___82622;
+ { 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___82622, 0, s.arg0);
+ r0 = s.A___82622;
+ { step = 21; continue; }
+ case 7:
+ case 8:
+ r0 = (s.s___82640 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = helpers_splitMatch__P63885_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = 0;
+ s.tmp_1.arg2 = s.R___82644;
+ s.callLocIdx = 12; s.pc = 22; return s.tmp_1;
+ case 22:
+ r0 = s.retval;
+ s.z___82658 = (r0);
+ r0 = (s.z___82658 > -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ r0 = s.A___82622;
+ { step = 21; continue; }
+ case 9:
+ case 10:
+ r0 = pxsim_Array_.setAt(s.A___82622, 0, s.arg0);
+ r0 = s.A___82622;
+ { step = 21; continue; }
+ case 11:
+ case 12:
+ s.q___82672 = (s.p___82643);
+ case 13:
+ r0 = (s.q___82672 != s.s___82640);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 20; continue; }
+ s.tmp_1 = helpers_splitMatch__P63885_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.q___82672;
+ s.tmp_1.arg2 = s.R___82644;
+ s.callLocIdx = 13; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ s.e___82678 = (r0);
+ r0 = (s.e___82678 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ r0 = (s.q___82672 + 1);
+ s.q___82672 = (r0);
+ { step = 19; continue; }
+ case 14:
+ r0 = (s.e___82678 == s.p___82643);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ r0 = (s.q___82672 + 1);
+ s.q___82672 = (r0);
+ { step = 18; continue; }
+ case 15:
+ s.tmp_0 = helpers_stringSlice__P60107_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.p___82643;
+ s.tmp_0.arg2 = s.q___82672;
+ s.callLocIdx = 14; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.T___82671 = (r0);
+ r0 = pxsim_Array__push(s.A___82622, s.T___82671);
+ r0 = pxsim_Array__length(s.A___82622);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.lim___82624);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ r0 = s.A___82622;
+ { step = 21; continue; }
+ case 16:
+ case 17:
+ s.p___82643 = (s.e___82678);
+ s.q___82672 = (s.p___82643);
+ case 18:
+ case 19:
+ { step = 13; continue; }
+ case 20:
+ s.tmp_0 = helpers_stringSlice__P60107_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.p___82643;
+ s.tmp_0.arg2 = s.q___82672;
+ s.callLocIdx = 15; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.T___82671 = (r0);
+ r0 = pxsim_Array__push(s.A___82622, s.T___82671);
+ r0 = s.A___82622;
+ case 21:
return leave(s, r0)
default: oops()
} } }
-particles_cacheSin__P2704.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]}
+helpers_stringSplit__P60109.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]}
-function particles_cacheSin__P2704_mk(s) {
+function helpers_stringSplit__P60109_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_cacheSin__P2704, depth: s.depth + 1,
+ parent: s, fn: helpers_stringSplit__P60109, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- sin___23118: undefined,
- anglePerSlice___23120: undefined,
- i___23126: undefined,
+ A___82622: undefined,
+ lim___82624: undefined,
+ s___82640: undefined,
+ p___82643: undefined,
+ R___82644: undefined,
+ z___82658: undefined,
+ T___82671: undefined,
+ q___82672: undefined,
+ e___82678: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function particles_SprayFactory_setDirection__P2715(s) {
+function helpers_splitMatch__P63885(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12318,52 +9949,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.r___82723 = undefined;
+ s.s___82726 = undefined;
+ s.i___82736 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_4 = particles_toRadians__P4655_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 = 1148; s.pc = 1; return s.tmp_4;
- case 1:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / globals.angleSlice___4649);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
+ r0 = pxsim_String_.length(s.arg2);
+ s.r___82723 = (r0);
+ r0 = pxsim_String_.length(s.arg0);
+ s.s___82726 = (r0);
+ r0 = (s.arg1 + s.r___82723);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_4 = particles_toRadians__P4655_mk(s);
- s.tmp_4.arg0 = s.arg2;
- s.callLocIdx = 1149; s.pc = 2; return s.tmp_4;
+ r0 = (s.tmp_1 > s.s___82726);
+ 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:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / globals.angleSlice___4649);
+ s.i___82736 = (0);
+ case 3:
+ r0 = (s.i___82736 < s.r___82723);
+ 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___82736);
+ s.tmp_4 = r0;
+ r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4);
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
+ r0 = pxsim_String_.charAt(s.arg2, s.i___82736);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_2 != s.tmp_5);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spread"] = (s.tmp_1);
- r0 = undefined;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = -1;
+ { step = 7; continue; }
+ case 4:
+ case 5:
+ r0 = (s.i___82736 + 1);
+ s.i___82736 = (r0);
+ { step = 3; continue; }
+ case 6:
+ r0 = (s.arg1 + s.r___82723);
+ case 7:
return leave(s, r0)
default: oops()
} } }
-particles_SprayFactory_setDirection__P2715.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"]}
+helpers_splitMatch__P63885.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]}
-function particles_SprayFactory_setDirection__P2715_mk(s) {
+function helpers_splitMatch__P63885_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_SprayFactory_setDirection__P2715, depth: s.depth + 1,
+ parent: s, fn: helpers_splitMatch__P63885, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -12371,7 +10015,9 @@ function particles_SprayFactory_setDirection__P2715_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
+ r___82723: undefined,
+ s___82726: undefined,
+ i___82736: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -12381,7 +10027,7 @@ function particles_SprayFactory_setDirection__P2715_mk(s) {
-function particles_toRadians__P4655(s) {
+function helpers_stringSlice__P60107(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12391,86 +10037,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.len___82380 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 < 0);
+ r0 = pxsim_String_.length(s.arg0);
+ s.len___82380 = (r0);
+ r0 = (s.arg1 < 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_3 = Math_abs__P120_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 1130; s.pc = 3; return s.tmp_3;
- case 3:
+ s.tmp_1 = Math_max__P60117_mk(s);
+ r0 = (s.len___82380 + s.arg1);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 0;
+ s.callLocIdx = 11; s.pc = 7; return s.tmp_1;
+ case 7:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 % 360);
- s.tmp_1 = r0;
- r0 = (360 - s.tmp_1);
- s.arg0 = (r0);
- { step = 2; continue; }
+ s.arg1 = (r0);
case 1:
- r0 = (s.arg0 % 360);
- s.arg0 = (r0);
case 2:
- r0 = (s.arg0 * 0.017453292519943295);
+ r0 = (s.arg2 == null);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.arg2 = (s.len___82380);
+ case 3:
+ case 4:
+ r0 = (s.arg2 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = (s.len___82380 + s.arg2);
+ s.arg2 = (r0);
+ case 5:
+ case 6:
+ 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()
} } }
-particles_toRadians__P4655.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]}
+helpers_stringSlice__P60107.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]}
-function particles_toRadians__P4655_mk(s) {
+function helpers_stringSlice__P60107_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_toRadians__P4655, depth: s.depth + 1,
+ parent: s, fn: helpers_stringSlice__P60107, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function particles_ParticleFactory_constructor__P2707(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleFactory__C2706_VT)) failedCast(r0);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-particles_ParticleFactory_constructor__P2707.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__P2707_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: particles_ParticleFactory_constructor__P2707, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ len___82380: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function particles_ParticleSource_setFactory__P2689(s) {
+function scene_Scene_render__P62435(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12480,38 +10113,147 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.s___84422 = undefined;
+ s.unnamed156___U1 = undefined;
+ s.unnamed157___U2 = 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__C2670_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!checkSubtype(r0, scene_Scene__C62408_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; }
- r0 = (s.arg0).fields["_factory"] = (s.arg1);
+ { 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__P62435_mk(s);
+ r0 = s.arg0.fields["previousScene"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 838; s.pc = 12; return s.tmp_3;
+ case 12:
+ r0 = s.retval;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_0 = scene_Background_draw__P62266_mk(s);
+ r0 = s.arg0.fields["background"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 839; 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__P60095_mk(s);
+ r0 = s.arg0.fields["allSprites"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = inline__P84399;
+ s.callLocIdx = 844; 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___84422 = (undefined);
+ r0 = s.arg0.fields["allSprites"];
+ s.unnamed156___U1 = (r0);
+ s.unnamed157___U2 = (0);
+ case 9:
+ 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 = 10; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed156___U1, s.unnamed157___U2);
+ s.s___84422 = (r0);
+ s.tmp_2 = if___draw_2_mk(s);
+ s.tmp_2.arg0 = s.s___84422;
+ 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 = 845; 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 = 845; s.pc = 15; return s.tmp_2; }
+ else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 845; s.pc = 15; return s.tmp_2;; }
+ else { s.callLocIdx = 845; s.pc = 15; return s.tmp_2; }
+ }
+ case 15:
+ r0 = s.retval;
+ r0 = (s.unnamed157___U2 + 1);
+ s.unnamed157___U2 = (r0);
+ { step = 9; continue; }
+ case 10:
+ s.unnamed156___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()
} } }
-particles_ParticleSource_setFactory__P2689.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]}
+scene_Scene_render__P62435.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]}
-function particles_ParticleSource_setFactory__P2689_mk(s) {
+function scene_Scene_render__P62435_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_setFactory__P2689, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_render__P62435, depth: s.depth + 1,
pc: 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___84422: undefined,
+ unnamed156___U1: undefined,
+ unnamed157___U2: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function particles_ParticleSource_setRate__P2687(s) {
+function inline__P84399(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12526,29 +10268,90 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (1000 / s.arg1);
- s.tmp_2 = r0;
- r0 = pxsim.Math_.ceil(s.tmp_2);
+ s.tmp_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 = 840; s.pc = 3; return s.tmp_2; }
+ }
+ case 3:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["period"] = (s.tmp_1);
- r0 = (s.arg0).fields["timer"] = (0);
- r0 = undefined;
+ s.tmp_4 = if_z_1_mk(s);
+ s.tmp_4.arg0 = s.arg1;
+ if (!s.tmp_4.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z");
+ } else {
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"];
+ if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; }
+ else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); }
+ else { s.callLocIdx = 841; 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 = 842; 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 = 843; s.pc = 6; return s.tmp_8; }
+ }
+ case 6:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_5 - s.tmp_7);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = s.tmp_9;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_setRate__P2687.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]}
+inline__P84399.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]}
-function particles_ParticleSource_setRate__P2687_mk(s) {
+function inline__P84399_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_setRate__P2687, depth: s.depth + 1,
+ parent: s, fn: inline__P84399, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -12557,7 +10360,7 @@ function particles_ParticleSource_setRate__P2687_mk(s) {
-function particles_ParticleSource_setAnchor__P2686(s) {
+function scene_Background_draw__P62266(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12569,32 +10372,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, particles_ParticleSource__C2670_VT)) failedCast(r0);
- r0 = (s.arg0).fields["anchor"] = (s.arg1);
+ if (!checkSubtype(r0, scene_Background__C62257_VT)) failedCast(r0);
+ r0 = s.arg0.fields["color"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 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___61794, s.tmp_1, 0, 0);
+ case 1:
+ case 2:
+ r0 = s.arg0.fields["_layers"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P84454);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
+ s.tmp_2 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["_layers"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 724; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_setAnchor__P2686.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]}
+scene_Background_draw__P62266.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]}
-function particles_ParticleSource_setAnchor__P2686_mk(s) {
+function scene_Background_draw__P62266_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_setAnchor__P2686, depth: s.depth + 1,
+ parent: s, fn: scene_Background_draw__P62266, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function particles_ParticleSource_clear__P2685(s) {
+function inline__P84454(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12604,24 +10435,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ox___84456 = undefined;
+ s.oy___84467 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- r0 = (s.arg0).fields["head"] = (undefined);
+ 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___84456 = (r0);
+ r0 = s.caps[0].fields["camera"];
+ r0 = r0.fields["drawOffsetY"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["distance"];
+ s.tmp_3 = r0;
+ r0 = (1 + s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 / s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim.Math_.round(s.tmp_0);
+ s.oy___84467 = (r0);
+ s.tmp_0 = scene_BackgroundLayer_draw__P62275_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.ox___84456;
+ s.tmp_0.arg2 = s.oy___84467;
+ s.callLocIdx = 723; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_clear__P2685.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]}
+inline__P84454.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]}
-function particles_ParticleSource_clear__P2685_mk(s) {
+function inline__P84454_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_clear__P2685, depth: s.depth + 1,
+ parent: s, fn: inline__P84454, depth: s.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___84456: undefined,
+ oy___84467: undefined,
arg0: undefined,
} }
@@ -12629,7 +10494,7 @@ function particles_ParticleSource_clear__P2685_mk(s) {
-function particles_ParticleSource_destroy__P2684(s) {
+function scene_BackgroundLayer_draw__P62275(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12639,51 +10504,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.w___84485 = undefined;
+ s.h___84488 = undefined;
+ s.pw___84491 = undefined;
+ s.ph___84495 = undefined;
+ s.rx___84504 = undefined;
+ s.ry___84507 = undefined;
+ s.y___84576 = undefined;
+ s.py___84577 = undefined;
+ s.dh___84586 = undefined;
+ s.x___84594 = undefined;
+ s.rxl___84595 = undefined;
+ s.px___84601 = undefined;
+ s.dw___84605 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = false;
- s.callLocIdx = 1087; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, scene_BackgroundLayer__C62267_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.w___84485 = (r0);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.h___84488 = (r0);
+ r0 = s.arg0.fields["img"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.width(s.tmp_0);
+ s.pw___84491 = (r0);
+ r0 = s.arg0.fields["img"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_0);
+ s.ph___84495 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.pw___84491);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["pFlags"];
+ r0 = pxsim_numops_toBoolDecr(s.ph___84495);
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
- s.tmp_0 = particles_ParticleSource__prune__P2678_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1088; s.pc = 2; return s.tmp_0;
+ 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___84504 = (r0);
+ r0 = (0 - s.arg2);
+ s.ry___84507 = (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___84504;
+ r0 = (s.w___84485 + s.pw___84491);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.rx___84504 = (r0);
+ { step = 7; continue; }
+ case 6:
+ s.tmp_0 = r0 = s.rx___84504;
+ r0 = (s.w___84485 + s.pw___84491);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 >> 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 - s.tmp_1);
+ s.rx___84504 = (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___84507;
+ r0 = (s.h___84488 + s.ph___84495);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.ry___84507 = (r0);
+ { step = 10; continue; }
+ case 9:
+ s.tmp_0 = r0 = s.ry___84507;
+ r0 = (s.h___84488 + s.ph___84495);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 >> 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 - s.tmp_1);
+ s.ry___84507 = (r0);
+ case 10:
+ r0 = (s.rx___84504 % s.w___84485);
+ s.rx___84504 = (r0);
+ r0 = (s.rx___84504 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ r0 = (s.rx___84504 + s.w___84485);
+ s.rx___84504 = (r0);
+ case 11:
+ case 12:
+ r0 = (s.ry___84507 % s.h___84488);
+ s.ry___84507 = (r0);
+ r0 = (s.ry___84507 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ r0 = (s.ry___84507 + s.h___84488);
+ s.ry___84507 = (r0);
+ case 13:
+ case 14:
+ r0 = pxsim.Math_.floor(s.rx___84504);
+ s.rx___84504 = (r0);
+ r0 = pxsim.Math_.floor(s.ry___84507);
+ s.ry___84507 = (r0);
+ s.y___84576 = (0);
+ s.py___84577 = (0);
+ case 15:
+ r0 = (s.y___84576 < s.h___84488);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 22; continue; }
+ r0 = (s.y___84576 % s.ph___84495);
+ s.py___84577 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
+ r0 = (s.ph___84495 - s.py___84577);
+ s.tmp_0.arg0 = r0;
+ r0 = (s.h___84488 - s.ry___84507);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 726; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.dh___84586 = (r0);
+ s.x___84594 = (0);
+ s.rxl___84595 = (s.rx___84504);
+ case 16:
+ r0 = (s.x___84594 < s.w___84485);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 19; continue; }
+ r0 = (s.x___84594 % s.pw___84491);
+ s.px___84601 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
+ r0 = (s.pw___84491 - s.px___84601);
+ s.tmp_0.arg0 = r0;
+ r0 = (s.w___84485 - s.rxl___84595);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 727; s.pc = 25; return s.tmp_0;
+ case 25:
r0 = s.retval;
+ s.dw___84605 = (r0);
+ r0 = s.arg0.fields["img"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.drawImage(globals.screen___61794, s.tmp_0, s.rxl___84595, s.ry___84507);
+ r0 = (s.rxl___84595 + s.dw___84605);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 % s.w___84485);
+ s.rxl___84595 = (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___84605;
+ { step = 18; continue; }
+ case 17:
+ r0 = s.w___84485;
+ case 18:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = (s.x___84594 + s.tmp_1);
+ s.x___84594 = (r0);
+ { step = 16; continue; }
+ case 19:
+ r0 = (s.ry___84507 + s.dh___84586);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 % s.h___84488);
+ s.ry___84507 = (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___84586;
+ { step = 21; continue; }
+ case 20:
+ r0 = s.h___84488;
+ case 21:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = (s.y___84576 + s.tmp_1);
+ s.y___84576 = (r0);
+ { step = 15; continue; }
+ case 22:
+ case 23:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_destroy__P2684.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]}
+scene_BackgroundLayer_draw__P62275.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 particles_ParticleSource_destroy__P2684_mk(s) {
+function scene_BackgroundLayer_draw__P62275_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_destroy__P2684, depth: s.depth + 1,
+ parent: s, fn: scene_BackgroundLayer_draw__P62275, depth: s.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___84485: undefined,
+ h___84488: undefined,
+ pw___84491: undefined,
+ ph___84495: undefined,
+ rx___84504: undefined,
+ ry___84507: undefined,
+ y___84576: undefined,
+ py___84577: undefined,
+ dh___84586: undefined,
+ x___84594: undefined,
+ rxl___84595: undefined,
+ px___84601: undefined,
+ dw___84605: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function particles_ParticleSource_enabled__P2683(s) {
+function Math_min__P60118(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12698,54 +10763,27 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_1 = r0 = s.arg1;
- s.tmp_3 = particles_ParticleSource_enabled__P2682_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 1086; s.pc = 5; return s.tmp_3;
- case 5:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1 !== s.tmp_2);
+ r0 = (s.arg0 <= s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_numops_toBoolDecr(s.arg1);
if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["pFlags"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 1);
- { step = 2; continue; }
+ r0 = s.arg0;
+ { step = 3; continue; }
case 1:
- r0 = s.arg0.fields["pFlags"];
- s.tmp_5 = r0;
- r0 = (s.tmp_5 ^ 1);
case 2:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = (s.arg0).fields["pFlags"] = (s.tmp_6);
- r0 = (s.arg0).fields["timer"] = (0);
+ r0 = s.arg1;
case 3:
- case 4:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_enabled__P2683.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]}
+Math_min__P60118.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]}
-function particles_ParticleSource_enabled__P2683_mk(s) {
+function Math_min__P60118_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_enabled__P2683, depth: s.depth + 1,
+ parent: s, fn: Math_min__P60118, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -12754,7 +10792,7 @@ function particles_ParticleSource_enabled__P2683_mk(s) {
-function particles_ParticleSource_enabled__P2682(s) {
+function scene_Camera_update__P62365(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12764,39 +10802,182 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.elapsed___84686 = undefined;
+ s.percentComplete___84700 = undefined;
+ s.damp___84707 = undefined;
+ s.f___84716 = undefined;
+ s.x___84722 = undefined;
+ s.y___84729 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- r0 = s.arg0.fields["pFlags"];
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
+ r0 = s.arg0.fields["sprite"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = scene_Camera_offsetX__P62355_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_3 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["sprite"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 799; s.pc = 10; return s.tmp_3;
+ case 10:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 1);
s.tmp_4 = r0;
- r0 = (s.tmp_4 & 1);
+ r0 = (s.tmp_2 - s.tmp_4);
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 800; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = scene_Camera_offsetY__P62357_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["sprite"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 801; s.pc = 12; return s.tmp_2;
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 >> 1);
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = (s.tmp_1 - s.tmp_3);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 802; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ s.tmp_0 = scene_Camera_offsetX__P62355_mk(s);
+ s.tmp_1 = r0 = s.arg0;
+ s.tmp_0.arg0 = r0;
+ r0 = s.tmp_1.fields["_offsetX"];
s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
+ r0 = (s.tmp_2 | 0);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 804; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = scene_Camera_offsetY__P62357_mk(s);
+ s.tmp_1 = r0 = s.arg0;
+ s.tmp_0.arg0 = r0;
+ r0 = s.tmp_1.fields["_offsetY"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 806; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["_offsetX"];
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ 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_Boolean__bang(s.tmp_0);
- return leaveAccessor(s, 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___84686 = (r0);
+ r0 = s.arg0.fields["shakeDuration"];
+ s.tmp_1 = r0;
+ r0 = (s.elapsed___84686 >= 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___84686 / s.tmp_0);
+ s.percentComplete___84700 = (r0);
+ s.damp___84707 = (1);
+ r0 = (s.percentComplete___84700 >= 0.75);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_1.arg0 = 0;
+ r0 = (1 - s.percentComplete___84700);
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 809; s.pc = 15; return s.tmp_1;
+ case 15:
+ r0 = s.retval;
+ s.damp___84707 = (r0);
+ case 4:
+ case 5:
+ r0 = s.arg0.fields["shakeAmplitude"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 * s.damp___84707);
+ s.f___84716 = (r0);
+ r0 = pxsim.Math_.random();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 * s.f___84716);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 0);
+ s.x___84722 = (r0);
+ r0 = pxsim.Math_.random();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 * s.f___84716);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 0);
+ s.y___84729 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["drawOffsetX"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.x___84722);
+ 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___84729);
+ 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()
} } }
-particles_ParticleSource_enabled__P2682.info = {"start":6605,"length":76,"line":215,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]}
-particles_ParticleSource_enabled__P2682.isGetter = true;
+scene_Camera_update__P62365.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]}
-function particles_ParticleSource_enabled__P2682_mk(s) {
+function scene_Camera_update__P62365_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_enabled__P2682, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_update__P62365, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ tmp_5: undefined,
+ elapsed___84686: undefined,
+ percentComplete___84700: undefined,
+ damp___84707: undefined,
+ f___84716: undefined,
+ x___84722: undefined,
+ y___84729: undefined,
arg0: undefined,
} }
@@ -12804,7 +10985,7 @@ function particles_ParticleSource_enabled__P2682_mk(s) {
-function particles_ParticleSource_setAcceleration__P2679(s) {
+function scene_Camera_offsetY__P62357(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12814,50 +10995,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___84748 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ax"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg2 * 256);
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 798; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.scene___84748 = (r0);
+ r0 = s.scene___84748.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:
+ s.tmp_1 = tiles_TileMap__C62309_v6_1_mk(s);
+ r0 = s.scene___84748.fields["tileMap"];
+ s.tmp_1.arg0 = r0;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
+ s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ case 2:
+ // jmp value (already in r0)
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ay"] = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_3 = r0 = s.arg0;
+ s.tmp_5 = tiles_TileMap__C62309_v2_2_mk(s);
+ r0 = s.scene___84748.fields["tileMap"];
+ s.tmp_5.arg0 = r0;
+ s.tmp_5.arg1 = s.arg1;
+ if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_5.arg0);
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetY;
+ s.pc = 7; return s.tmp_5;
+ case 7:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3).fields["_offsetY"] = (s.tmp_4);
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.arg0).fields["_offsetY"] = (s.arg1);
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_setAcceleration__P2679.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]}
+scene_Camera_offsetY__P62357.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]}
-function particles_ParticleSource_setAcceleration__P2679_mk(s) {
+function scene_Camera_offsetY__P62357_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_setAcceleration__P2679, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_offsetY__P62357, depth: s.depth + 1,
pc: 0, retval: undefined, 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___84748: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function sprites_BaseSprite_constructor__P1857(s) {
+function tiles_TileMap_enabled__P62319(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12869,49 +11082,42 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
- s.tmp_0 = sprites_BaseSprite_z__P1860_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 138; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = scene_Scene_addSprite__P2436_mk(s);
- s.tmp_1 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 139; 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 = 140; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_0);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-sprites_BaseSprite_constructor__P1857.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]}
+tiles_TileMap_enabled__P62319.info = {"start":7107,"length":66,"line":261,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]}
+tiles_TileMap_enabled__P62319.isGetter = true;
-function sprites_BaseSprite_constructor__P1857_mk(s) {
+function tiles_TileMap_enabled__P62319_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite_constructor__P1857, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_enabled__P62319, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function scene_Scene_addSprite__P2436(s) {
+function tiles_TileMap_offsetY__P62314(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12927,44 +11133,46 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_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"];
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
+ s.tmp_0.arg0 = 0;
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v4_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight;
+ s.pc = 3; return s.tmp_3;
+ case 3:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1);
- s.tmp_3 = if_id_2_mk(s);
- s.tmp_3.arg0 = s.arg1;
- s.tmp_3.arg1 = s.tmp_2;
- if (!s.tmp_3.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1);
- } else {
- s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"];
- if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; }
- else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) }
- else { s.callLocIdx = 837; s.pc = 1; return s.tmp_3; }
- }
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_2 - s.tmp_4);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 0;
+ s.callLocIdx = 745; 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 = 746; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Scene_addSprite__P2436.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]}
+tiles_TileMap_offsetY__P62314.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]}
-function scene_Scene_addSprite__P2436_mk(s) {
+function tiles_TileMap_offsetY__P62314_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_addSprite__P2436, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_offsetY__P62314, depth: s.depth + 1,
pc: 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,
} }
@@ -12973,7 +11181,7 @@ function scene_Scene_addSprite__P2436_mk(s) {
-function sprites_BaseSprite_z__P1860(s) {
+function tiles_TileMap_areaHeight__P62316(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -12985,54 +11193,51 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
- r0 = s.arg0.fields["_z"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 !== s.arg1);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_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["_z"] = (s.arg1);
- s.tmp_1 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 141; 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);
+ r0 = s.arg0.fields["_map"];
s.tmp_2 = r0;
- r0 = (s.tmp_0).fields["flags"] = (s.tmp_2);
+ 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:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
return leave(s, r0)
default: oops()
} } }
-sprites_BaseSprite_z__P1860.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]}
+tiles_TileMap_areaHeight__P62316.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]}
-function sprites_BaseSprite_z__P1860_mk(s) {
+function tiles_TileMap_areaHeight__P62316_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite_z__P1860, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_areaHeight__P62316, depth: s.depth + 1,
pc: 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_BaseSprite_z__P1859(s) {
+function tiles_TileMap_scale__P62311(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13047,18 +11252,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
- r0 = s.arg0.fields["_z"];
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_scale"];
return leaveAccessor(s, r0)
default: oops()
} } }
-sprites_BaseSprite_z__P1859.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__P1859.isGetter = true;
+tiles_TileMap_scale__P62311.info = {"start":6125,"length":55,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]}
+tiles_TileMap_scale__P62311.isGetter = true;
-function sprites_BaseSprite_z__P1859_mk(s) {
+function tiles_TileMap_scale__P62311_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite_z__P1859, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_scale__P62311, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -13067,7 +11272,7 @@ function sprites_BaseSprite_z__P1859_mk(s) {
-function helpers_arrayShift__P97(s) {
+function tiles_TileMapData_height__P62299(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13081,16 +11286,19 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array_.removeAt(s.arg0, 0);
- return leave(s, r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_height"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-helpers_arrayShift__P97.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]}
+tiles_TileMapData_height__P62299.info = {"start":3734,"length":65,"line":139,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]}
+tiles_TileMapData_height__P62299.isGetter = true;
-function helpers_arrayShift__P97_mk(s) {
+function tiles_TileMapData_height__P62299_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayShift__P97, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_height__P62299, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -13099,7 +11307,7 @@ function helpers_arrayShift__P97_mk(s) {
-function particles_SprayFactory_setSpeed__P2714(s) {
+function Math_clamp__P60114(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13112,39 +11320,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["speed"] = (s.tmp_1);
- r0 = undefined;
+ s.tmp_0 = Math_min__P60118_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg2;
+ s.callLocIdx = 16; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 17; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-particles_SprayFactory_setSpeed__P2714.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]}
+Math_clamp__P60114.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]}
-function particles_SprayFactory_setSpeed__P2714_mk(s) {
+function Math_clamp__P60114_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_SprayFactory_setSpeed__P2714, depth: s.depth + 1,
+ parent: s, fn: Math_clamp__P60114, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function particles_ConfettiFactory_constructor__P2738(s) {
+function scene_Camera_offsetY__P62356(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13154,99 +11366,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.confetti___24009 = undefined;
- s.i___24025 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ConfettiFactory__C2737_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.tmp_0 = r0;
- r0 = pxsim.image.ofBuffer(_hex24012);
- s.tmp_1 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
- r0 = pxsim.image.ofBuffer(_hex24014);
- s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.tmp_2);
- r0 = pxsim.image.ofBuffer(_hex24016);
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.tmp_3);
- r0 = pxsim.image.ofBuffer(_hex24018);
- s.tmp_4 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.tmp_4);
- r0 = pxsim.image.ofBuffer(_hex24020);
- s.tmp_5 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.tmp_5);
- s.confetti___24009 = (s.tmp_0);
- s.tmp_0 = particles_ShapeFactory_constructor__P2733_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___24009, 0);
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 1172; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.i___24025 = (1);
- case 1:
- s.tmp_1 = r0 = s.i___24025;
- r0 = pxsim_Array__length(s.confetti___24009);
- 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__P2734_mk(s);
- s.tmp_3.arg0 = s.arg0;
- r0 = pxsim_Array__getAt(s.confetti___24009, s.i___24025);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 1173; s.pc = 4; return s.tmp_3;
- case 4:
- r0 = s.retval;
- r0 = (s.i___24025 + 1);
- s.i___24025 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = (s.arg0).fields["minLifespan"] = (1000);
- r0 = (s.arg0).fields["maxLifespan"] = (4500);
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_offsetY"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-particles_ConfettiFactory_constructor__P2738.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"]}
+scene_Camera_offsetY__P62356.info = {"start":966,"length":59,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]}
+scene_Camera_offsetY__P62356.isGetter = true;
-function particles_ConfettiFactory_constructor__P2738_mk(s) {
+function scene_Camera_offsetY__P62356_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ConfettiFactory_constructor__P2738, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_offsetY__P62356, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- confetti___24009: undefined,
- i___24025: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-const _hex24012 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000")
-const _hex24014 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000")
-const _hex24016 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000")
-const _hex24018 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000")
-const _hex24020 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000")
-function particles_ShapeFactory_addShape__P2734(s) {
+function scene_Camera_offsetX__P62355(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13256,32 +11401,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___84786 = 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__C2732_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["sources"];
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 797; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.scene___84786 = (r0);
+ r0 = s.scene___84786.fields["tileMap"];
s.tmp_0 = r0;
- r0 = pxsim_Array__push(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:
+ s.tmp_1 = tiles_TileMap__C62309_v6_1_mk(s);
+ r0 = s.scene___84786.fields["tileMap"];
+ s.tmp_1.arg0 = r0;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
+ s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
case 2:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_3 = r0 = s.arg0;
+ s.tmp_5 = tiles_TileMap__C62309_v1_2_mk(s);
+ r0 = s.scene___84786.fields["tileMap"];
+ s.tmp_5.arg0 = r0;
+ s.tmp_5.arg1 = s.arg1;
+ if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_5.arg0);
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetX;
+ s.pc = 7; return s.tmp_5;
+ case 7:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3).fields["_offsetX"] = (s.tmp_4);
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.arg0).fields["_offsetX"] = (s.arg1);
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ShapeFactory_addShape__P2734.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]}
+scene_Camera_offsetX__P62355.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]}
-function particles_ShapeFactory_addShape__P2734_mk(s) {
+function scene_Camera_offsetX__P62355_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ShapeFactory_addShape__P2734, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_offsetX__P62355, depth: s.depth + 1,
pc: 0, retval: undefined, 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___84786: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -13290,7 +11476,7 @@ function particles_ShapeFactory_addShape__P2734_mk(s) {
-function particles_ShapeFactory_constructor__P2733(s) {
+function tiles_TileMap_offsetX__P62313(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13303,55 +11489,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0);
- s.tmp_0 = particles_AreaFactory_constructor__P2721_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 = 1162; s.pc = 1; return s.tmp_0;
- case 1:
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
+ s.tmp_0.arg0 = 0;
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v3_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth;
+ s.pc = 3; return s.tmp_3;
+ case 3:
r0 = s.retval;
- r0 = pxsim_Array__mk();
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg3);
- r0 = (s.arg0).fields["sources"] = (s.tmp_0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_ImageMethods.width(s.arg3);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ox"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_ImageMethods.height(s.arg3);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 1);
s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["oy"] = (s.tmp_1);
- r0 = undefined;
+ r0 = (s.tmp_2 - s.tmp_4);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 0;
+ s.callLocIdx = 743; 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 = 744; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-particles_ShapeFactory_constructor__P2733.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"]}
+tiles_TileMap_offsetX__P62313.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]}
-function particles_ShapeFactory_constructor__P2733_mk(s) {
+function tiles_TileMap_offsetX__P62313_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ShapeFactory_constructor__P2733, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_offsetX__P62313, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -13360,15 +11534,13 @@ function particles_ShapeFactory_constructor__P2733_mk(s) {
tmp_4: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function particles_AreaFactory_constructor__P2721(s) {
+function tiles_TileMap_areaWidth__P62315(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13380,78 +11552,51 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_AreaFactory__C2716_VT)) failedCast(r0);
- s.tmp_0 = particles_SprayFactory_constructor__P2711_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 = 1150; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- r0 = (s.arg0).fields["xRange"] = (s.arg1);
- r0 = (s.arg0).fields["yRange"] = (s.arg2);
- r0 = pxsim_numops_toBoolDecr(s.arg3);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_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.arg3;
+ 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 = 150;
+ r0 = 0;
case 2:
// jmp value (already in r0)
- s.tmp_0 = r0;
- r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0);
- r0 = pxsim_numops_toBoolDecr(s.arg4);
- if (!r0) { step = 3; continue; }
- r0 = s.arg4;
- { step = 4; continue; }
- case 3:
- r0 = 850;
- case 4:
- // jmp value (already in r0)
- s.tmp_0 = r0;
- r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT);
- s.tmp_0 = r0;
- s.tmp_1 = Math_FastRandom_constructor__P2580_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = undefined;
- s.callLocIdx = 1151; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- r0 = (s.arg0).fields["galois"] = (s.tmp_0);
- r0 = undefined;
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
return leave(s, r0)
default: oops()
} } }
-particles_AreaFactory_constructor__P2721.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"]}
+tiles_TileMap_areaWidth__P62315.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]}
-function particles_AreaFactory_constructor__P2721_mk(s) {
+function tiles_TileMap_areaWidth__P62315_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_AreaFactory_constructor__P2721, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_areaWidth__P62315, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function effects_ScreenEffect_constructor__P2786(s) {
+function tiles_TileMapData_width__P62298(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13463,47 +11608,30 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, effects_ScreenEffect__C2785_VT)) failedCast(r0);
- s.tmp_0 = effects_ParticleEffect_constructor__P2782_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 = 1179; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2);
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_width"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-effects_ScreenEffect_constructor__P2786.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"]}
+tiles_TileMapData_width__P62298.info = {"start":3661,"length":63,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]}
+tiles_TileMapData_width__P62298.isGetter = true;
-function effects_ScreenEffect_constructor__P2786_mk(s) {
+function tiles_TileMapData_width__P62298_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ScreenEffect_constructor__P2786, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_width__P62298, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function effects_ParticleEffect_constructor__P2782(s) {
+function scene_Camera_offsetX__P62354(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13515,38 +11643,30 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, effects_ParticleEffect__C2781_VT)) failedCast(r0);
- r0 = (s.arg0).fields["sourceFactory"] = (s.arg3);
- r0 = (s.arg0).fields["defaultRate"] = (s.arg1);
- r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2);
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_offsetX"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-effects_ParticleEffect_constructor__P2782.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"]}
+scene_Camera_offsetX__P62354.info = {"start":622,"length":59,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]}
+scene_Camera_offsetX__P62354.isGetter = true;
-function effects_ParticleEffect_constructor__P2782_mk(s) {
+function scene_Camera_offsetX__P62354_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ParticleEffect_constructor__P2782, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_offsetX__P62354, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function scene_Scene_init__P2433(s) {
+function Sprite_y__P62019(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13561,117 +11681,34 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0);
- r0 = s.arg0.fields["allSprites"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_1 = power_poke__P1702_mk(s);
- s.callLocIdx = 817; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_y"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1);
- r0 = (s.arg0).fields["spriteNextId"] = (0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P24144);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 820; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s);
- r0 = s.arg0.fields["eventContext"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 13;
- s.tmp_0.arg2 = controller__moveSprites__P1919;
- s.callLocIdx = 821; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P24167);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 823; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P24180);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 827; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P24201);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 829; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P24209);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 833; s.pc = 10; return s.tmp_1;
- case 10:
- r0 = s.retval;
- s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s);
- r0 = s.arg0.fields["eventContext"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 200;
- s.tmp_0.arg2 = control___screen_update__P1760;
- s.callLocIdx = 834; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P24238);
+ r0 = (s.tmp_1 / 256);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals.scene_Scene_initializers___2431;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 836; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- case 3:
- r0 = undefined;
- return leave(s, r0)
+ r0 = s.arg0.fields["_image"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 / 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Scene_init__P2433.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]}
+Sprite_y__P62019.info = {"start":1849,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]}
+Sprite_y__P62019.isGetter = true;
-function scene_Scene_init__P2433_mk(s) {
+function Sprite_y__P62019_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_init__P2433, depth: s.depth + 1,
+ parent: s, fn: Sprite_y__P62019, depth: s.depth + 1,
pc: 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,
} }
@@ -13679,7 +11716,7 @@ function scene_Scene_init__P2433_mk(s) {
-function inline__P24144(s) {
+function Fx_toFloat__P60158(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13689,47 +11726,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = r0 = s.caps[0];
- r0 = s.tmp_0.fields["_millis"];
- s.tmp_2 = r0;
- r0 = s.caps[0].fields["eventContext"];
- r0 = r0.fields["deltaTimeMillis"];
- s.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__P1947_mk(s);
- r0 = s.caps[0].fields["eventContext"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["deltaTimeMillis"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 / 1000);
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 819; 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()
} } }
-inline__P24144.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
+Fx_toFloat__P60158.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]}
-function inline__P24144_mk(s) {
+function Fx_toFloat__P60158_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24144, depth: s.depth + 1,
+ parent: s, fn: Fx_toFloat__P60158, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
+ arg0: undefined,
} }
-function inline__P24167(s) {
+function Sprite_x__P62017(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13739,41 +11758,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = PhysicsEngine__C2156_v4_2_mk(s);
- r0 = s.caps[0].fields["physicsEngine"];
- s.tmp_0.arg0 = r0;
- r0 = s.caps[0].fields["eventContext"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["deltaTimeMillis"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 / 1000);
- s.tmp_0.arg1 = r0;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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)
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_x"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 / 256);
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["_image"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.width(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 / 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-inline__P24167.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
+Sprite_x__P62017.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]}
+Sprite_x__P62017.isGetter = true;
-function inline__P24167_mk(s) {
+function Sprite_x__P62017_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24167, depth: s.depth + 1,
+ parent: s, fn: Sprite_x__P62017, depth: s.depth + 1,
pc: 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 inline__P24180(s) {
+function PhysicsEngine_move__P62157(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13783,80 +11808,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.dt___24181 = undefined;
- s.s___24189 = undefined;
- s.unnamed74___U2 = undefined;
- s.unnamed75___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___24181 = (r0);
- s.tmp_0 = scene_Camera_update__P2368_mk(s);
- r0 = s.caps[0].fields["camera"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 825; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.s___24189 = (undefined);
- r0 = s.caps[0].fields["allSprites"];
- s.unnamed74___U2 = (r0);
- s.unnamed75___U3 = (0);
- case 1:
- s.tmp_0 = r0 = s.unnamed75___U3;
- r0 = pxsim_Array__length(s.unnamed74___U2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed74___U2, s.unnamed75___U3);
- s.s___24189 = (r0);
- s.tmp_2 = if___update_3_mk(s);
- s.tmp_2.arg0 = s.s___24189;
- r0 = s.caps[0].fields["camera"];
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = s.dt___24181;
- if (!s.tmp_2.arg0.vtable.iface) {
- setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3);
- s.callLocIdx = 826; 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 = 826; s.pc = 4; return s.tmp_2; }
- else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 826; s.pc = 4; return s.tmp_2;; }
- else { s.callLocIdx = 826; s.pc = 4; return s.tmp_2; }
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
}
- case 4:
- r0 = s.retval;
- r0 = (s.unnamed75___U3 + 1);
- s.unnamed75___U3 = (r0);
- { step = 1; continue; }
- case 2:
- s.unnamed74___U2 = (undefined);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P24180.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
+PhysicsEngine_move__P62157.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 inline__P24180_mk(s) {
+function PhysicsEngine_move__P62157_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24180, depth: s.depth + 1,
+ parent: s, fn: PhysicsEngine_move__P62157, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- dt___24181: undefined,
- s___24189: undefined,
- unnamed74___U2: undefined,
- unnamed75___U3: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P24201(s) {
+function PhysicsEngine_draw__P62156(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13866,30 +11844,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_Scene_render__P2438_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 828; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P24201.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
+PhysicsEngine_draw__P62156.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]}
-function inline__P24201_mk(s) {
+function PhysicsEngine_draw__P62156_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24201, depth: s.depth + 1,
+ parent: s, fn: PhysicsEngine_draw__P62156, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
+ arg0: undefined,
} }
-function inline__P24209(s) {
+function controller___update__P61942(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -13899,108 +11878,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = r0 = globals.stats___2521;
- 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___384;
+ s.dtms___85134 = 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___85134 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85141);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___85134);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_2 = controller_players__P61910_mk(s);
+ s.callLocIdx = 201; s.pc = 2; return s.tmp_2;
case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = lambda_2_mk(s);
- s.tmp_2.argL = globals.control_EventContext_onStats___384;
- if ((globals.control_EventContext_lastStats___383) && (globals.control_EventContext_lastStats___383).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(globals.control_EventContext_lastStats___383);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.control_EventContext_lastStats___383) + ""; }
- 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 = 830; s.pc = 7; return s.tmp_2;
- case 7:
- r0 = s.retval;
- case 3:
- case 4:
- r0 = pxsim_numops_toBoolDecr(globals.debug___2520);
- if (!r0) { step = 5; continue; }
- s.tmp_0 = PhysicsEngine__C2156_v3_1_mk(s);
- r0 = s.caps[0].fields["physicsEngine"];
- s.tmp_0.arg0 = r0;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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__P2646_mk(s);
- s.callLocIdx = 831; s.pc = 12; return s.tmp_0;
- case 12:
r0 = s.retval;
- s.tmp_0 = power_checkDeepSleep__P1703_mk(s);
- s.callLocIdx = 832; s.pc = 13; return s.tmp_0;
- case 13:
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 203; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P24209.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]}
+controller___update__P61942.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]}
-function inline__P24209_mk(s) {
+function controller___update__P61942_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24209, depth: s.depth + 1,
+ parent: s, fn: controller___update__P61942, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ dtms___85134: undefined,
+ arg0: undefined,
} }
-function inline__P24238(s) {
+function inline__P85141(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14014,23 +11936,22 @@ 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 = 835; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = controller_Controller___update__P61940_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.caps[0];
+ s.callLocIdx = 202; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P24238.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]}
+inline__P85141.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
-function inline__P24238_mk(s) {
+function inline__P85141_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24238, depth: s.depth + 1,
+ parent: s, fn: inline__P85141, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -14040,7 +11961,7 @@ function inline__P24238_mk(s) {
-function game_consoleOverlay_draw__P2646(s) {
+function controller_Controller___update__P61940(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14050,216 +11971,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.height___24287 = undefined;
- s.top___24292 = undefined;
- s.i___24298 = undefined;
- s.t___24311 = undefined;
- s.tOff___24318 = undefined;
- s.tab___24320 = undefined;
- s.unnamed78___U6 = undefined;
- s.unnamed79___U7 = undefined;
- s.padding___24322 = undefined;
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
- 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___4526);
- 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___4577;
- 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 = 1055; s.pc = 14; return s.tmp_7; }
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
}
- case 14:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 2);
- s.height___24287 = (r0);
- r0 = pxsim_numops_toBoolDecr(globals.stats___2521);
- if (!r0) { step = 5; continue; }
- r0 = s.height___24287;
- { 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___24292 = (r0);
- s.i___24298 = (0);
- case 7:
- s.tmp_1 = r0 = s.i___24298;
- r0 = pxsim_Array__length(globals.consoleStrings___4569);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ r0 = pxsim_pxtrt.mklocRef();
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- r0 = pxsim_Array__getAt(globals.consoleStrings___4569, s.i___24298);
- 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__P114_mk(s);
- r0 = pxsim_Array__getAt(globals.consoleStrings___4569, s.i___24298);
- s.tmp_6.arg0 = r0;
- s.tmp_6.arg1 = "\t";
- s.tmp_6.arg2 = undefined;
- s.callLocIdx = 1056; s.pc = 15; return s.tmp_6;
- case 15:
- r0 = s.retval;
- s.t___24311 = (r0);
- s.tOff___24318 = (0);
- s.tab___24320 = (undefined);
- s.unnamed78___U6 = (s.t___24311);
- s.unnamed79___U7 = (0);
- case 8:
- s.tmp_0 = r0 = s.unnamed79___U7;
- r0 = pxsim_Array__length(s.unnamed78___U6);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_Array__getAt(s.unnamed78___U6, s.unnamed79___U7);
- s.tab___24320 = (r0);
- s.tmp_2 = r0 = globals.tabSize___4571;
- s.tmp_5 = r0 = s.tOff___24318;
- r0 = pxsim_String_.length(s.tab___24320);
- s.tmp_6 = r0;
- r0 = (s.tmp_5 + s.tmp_6);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 % globals.tabSize___4571);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- s.padding___24322 = (r0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = s.tab___24320;
- s.tmp_2 = r0 = s.tOff___24318;
- s.tmp_4 = if_charWidth_1_mk(s);
- s.tmp_4.arg0 = globals.consoleFont___4577;
- 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 = 1057; s.pc = 17; return s.tmp_4; }
- }
- case 17:
- r0 = s.retval;
+ 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_2 * s.tmp_3);
- s.tmp_1 = r0;
- r0 = (4 + s.tmp_1);
- s.tmp_0.arg2 = r0;
- s.tmp_5 = r0 = s.top___24292;
- r0 = (s.i___24298 * s.height___24287);
- s.tmp_6 = r0;
- r0 = (s.tmp_5 + s.tmp_6);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = globals.consoleColor___4568;
- s.tmp_0.arg5 = globals.consoleFont___4577;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1058; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.tmp_0 = r0 = s.tOff___24318;
- r0 = pxsim_String_.length(s.tab___24320);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.padding___24322);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.tOff___24318 = (r0);
- r0 = (s.unnamed79___U7 + 1);
- s.unnamed79___U7 = (r0);
- { step = 8; continue; }
- case 9:
- s.unnamed78___U6 = (undefined);
- { step = 11; continue; }
- case 10:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = pxsim_Array__getAt(globals.consoleStrings___4569, s.i___24298);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 4;
- s.tmp_1 = r0 = s.top___24292;
- r0 = (s.i___24298 * s.height___24287);
+ r0 = (s.tmp_3 | 0);
s.tmp_2 = r0;
- r0 = (s.tmp_1 + s.tmp_2);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = globals.consoleColor___4568;
- s.tmp_0.arg5 = globals.consoleFont___4577;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1059; s.pc = 18; return s.tmp_0;
- case 18:
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85154);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["buttons"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 200; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- case 11:
- r0 = (s.i___24298 + 1);
- s.i___24298 = (r0);
- { step = 7; continue; }
- case 12:
- case 13:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_consoleOverlay_draw__P2646.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]}
+controller_Controller___update__P61940.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
-function game_consoleOverlay_draw__P2646_mk(s) {
+function controller_Controller___update__P61940_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_consoleOverlay_draw__P2646, depth: s.depth + 1,
+ parent: s, fn: controller_Controller___update__P61940, depth: s.depth + 1,
pc: 0, retval: undefined, 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___24287: undefined,
- top___24292: undefined,
- i___24298: undefined,
- t___24311: undefined,
- tOff___24318: undefined,
- tab___24320: undefined,
- unnamed78___U6: undefined,
- unnamed79___U7: undefined,
- padding___24322: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function scene_systemMenu_isVisible__P2627(s) {
+function inline__P85154(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14269,33 +12031,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.instance___4526);
- 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 = controller_Button___update__P61907_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 199; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_isVisible__P2627.info = {"start":12708,"length":62,"line":385,"column":4,"endLine":387,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]}
+inline__P85154.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]}
-function scene_systemMenu_isVisible__P2627_mk(s) {
+function inline__P85154_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_isVisible__P2627, depth: s.depth + 1,
+ parent: s, fn: inline__P85154, 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 helpers_stringSplit__P114(s) {
+function controller_Button___update__P61907(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14305,186 +12071,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.A___22636 = undefined;
- s.lim___22638 = undefined;
- s.s___22654 = undefined;
- s.p___22657 = undefined;
- s.R___22658 = undefined;
- s.z___22672 = undefined;
- s.T___22685 = undefined;
- s.q___22686 = undefined;
- s.e___22692 = undefined;
+ s.delay___85170 = undefined;
+ s.interval___85179 = undefined;
+ s.count___85192 = 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___22636 = (r0);
- s.lim___22638 = (0);
- r0 = (s.arg2 === undefined);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_pressed"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = (536870912 - 1);
- s.lim___22638 = (r0);
- { step = 4; continue; }
+ { step = 11; continue; }
case 1:
- r0 = (s.arg2 < 0);
+ 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 = 2; continue; }
- s.lim___22638 = (0);
- { step = 3; continue; }
- case 2:
- r0 = (s.arg2 | 0);
- s.lim___22638 = (r0);
+ if (!r0) { step = 3; continue; }
+ r0 = globals.defaultRepeatDelay___64105;
+ { step = 4; continue; }
case 3:
+ r0 = s.arg0.fields["repeatDelay"];
case 4:
- r0 = pxsim_String_.length(s.arg0);
- s.s___22654 = (r0);
- s.p___22657 = (0);
- s.R___22658 = (s.arg1);
- r0 = (s.lim___22638 == 0);
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.delay___85170 = (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 = s.A___22636;
- { step = 21; continue; }
+ r0 = globals.defaultRepeatInterval___64107;
+ { step = 6; continue; }
case 5:
+ r0 = s.arg0.fields["repeatInterval"];
case 6:
- r0 = (s.arg1 === undefined);
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.interval___85179 = (s.tmp_2);
+ r0 = s.arg0.fields["_pressedElasped"];
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ r0 = (s.tmp_1 < s.delay___85170);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- r0 = pxsim_Array_.setAt(s.A___22636, 0, s.arg0);
- r0 = s.A___22636;
- { step = 21; continue; }
+ { step = 11; continue; }
case 7:
case 8:
- r0 = (s.s___22654 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = helpers_splitMatch__P3888_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = 0;
- s.tmp_1.arg2 = s.R___22658;
- s.callLocIdx = 12; s.pc = 22; return s.tmp_1;
- case 22:
- r0 = s.retval;
- s.z___22672 = (r0);
- r0 = (s.z___22672 > -1);
+ r0 = s.arg0.fields["_pressedElasped"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - s.delay___85170);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 - s.interval___85179);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 / s.interval___85179);
+ s.tmp_2 = r0;
+ r0 = pxsim.Math_.floor(s.tmp_2);
+ s.count___85192 = (r0);
+ r0 = s.arg0.fields["_repeatCount"];
+ s.tmp_1 = r0;
+ r0 = (s.count___85192 != s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 9; continue; }
- r0 = s.A___22636;
- { step = 21; continue; }
+ s.tmp_2 = controller_Button_raiseButtonRepeat__P64112_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 157; s.pc = 12; return s.tmp_2;
+ case 12:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["_repeatCount"] = (s.count___85192);
case 9:
case 10:
- r0 = pxsim_Array_.setAt(s.A___22636, 0, s.arg0);
- r0 = s.A___22636;
- { step = 21; continue; }
case 11:
- case 12:
- s.q___22686 = (s.p___22657);
- case 13:
- r0 = (s.q___22686 != s.s___22654);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 20; continue; }
- s.tmp_1 = helpers_splitMatch__P3888_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.q___22686;
- s.tmp_1.arg2 = s.R___22658;
- s.callLocIdx = 13; s.pc = 23; return s.tmp_1;
- case 23:
- r0 = s.retval;
- s.e___22692 = (r0);
- r0 = (s.e___22692 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- r0 = (s.q___22686 + 1);
- s.q___22686 = (r0);
- { step = 19; continue; }
- case 14:
- r0 = (s.e___22692 == s.p___22657);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- r0 = (s.q___22686 + 1);
- s.q___22686 = (r0);
- { step = 18; continue; }
- case 15:
- s.tmp_0 = helpers_stringSlice__P112_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.p___22657;
- s.tmp_0.arg2 = s.q___22686;
- s.callLocIdx = 14; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- s.T___22685 = (r0);
- r0 = pxsim_Array__push(s.A___22636, s.T___22685);
- r0 = pxsim_Array__length(s.A___22636);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.lim___22638);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- r0 = s.A___22636;
- { step = 21; continue; }
- case 16:
- case 17:
- s.p___22657 = (s.e___22692);
- s.q___22686 = (s.p___22657);
- case 18:
- case 19:
- { step = 13; continue; }
- case 20:
- s.tmp_0 = helpers_stringSlice__P112_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.p___22657;
- s.tmp_0.arg2 = s.q___22686;
- s.callLocIdx = 15; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.T___22685 = (r0);
- r0 = pxsim_Array__push(s.A___22636, s.T___22685);
- r0 = s.A___22636;
- case 21:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_stringSplit__P114.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]}
+controller_Button___update__P61907.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
-function helpers_stringSplit__P114_mk(s) {
+function controller_Button___update__P61907_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_stringSplit__P114, depth: s.depth + 1,
+ parent: s, fn: controller_Button___update__P61907, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- A___22636: undefined,
- lim___22638: undefined,
- s___22654: undefined,
- p___22657: undefined,
- R___22658: undefined,
- z___22672: undefined,
- T___22685: undefined,
- q___22686: undefined,
- e___22692: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ delay___85170: undefined,
+ interval___85179: undefined,
+ count___85192: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function helpers_splitMatch__P3888(s) {
+function controller_Button_raiseButtonRepeat__P64112(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14494,85 +12198,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.r___22737 = undefined;
- s.s___22740 = undefined;
- s.i___22750 = 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___22737 = (r0);
- r0 = pxsim_String_.length(s.arg0);
- s.s___22740 = (r0);
- r0 = (s.arg1 + s.r___22737);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > s.s___22740);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___64103);
if (!r0) { step = 1; continue; }
- r0 = -1;
- { step = 7; continue; }
+ r0 = s.arg0.fields["id"];
+ s.tmp_0 = r0;
+ r0 = pxsim.control.raiseEvent(2054, s.tmp_0);
+ { step = 2; continue; }
case 1:
- case 2:
- s.i___22750 = (0);
- case 3:
- r0 = (s.i___22750 < s.r___22737);
+ r0 = s.arg0.fields["id"];
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___22750);
- 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___22750);
- 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___22750 + 1);
- s.i___22750 = (r0);
- { step = 3; continue; }
- case 6:
- r0 = (s.arg1 + s.r___22737);
- case 7:
+ r0 = pxsim.control.raiseEvent(2055, s.tmp_0);
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_splitMatch__P3888.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]}
+controller_Button_raiseButtonRepeat__P64112.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]}
-function helpers_splitMatch__P3888_mk(s) {
+function controller_Button_raiseButtonRepeat__P64112_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_splitMatch__P3888, depth: s.depth + 1,
+ parent: s, fn: controller_Button_raiseButtonRepeat__P64112, depth: s.depth + 1,
pc: 0, retval: undefined, 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___22737: undefined,
- s___22740: undefined,
- i___22750: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function helpers_stringSlice__P112(s) {
+function controller_players__P61910(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.tmp_0 = controller__player1__P61909_mk(s);
+ s.callLocIdx = 160; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_0.arg0 = globals._players___64116;
+ s.tmp_0.arg1 = inline__P85033;
+ s.callLocIdx = 161; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ return leave(s, r0)
+ default: oops()
+} } }
+controller_players__P61910.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]}
+
+function controller_players__P61910_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: controller_players__P61910, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P85033(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14582,73 +12281,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___22394 = 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___22394 = (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__P122_mk(s);
- r0 = (s.len___22394 + s.arg1);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 0;
- s.callLocIdx = 11; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- s.arg1 = (r0);
- case 1:
- case 2:
- r0 = (s.arg2 == null);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.arg2 = (s.len___22394);
- case 3:
- case 4:
- r0 = (s.arg2 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = (s.len___22394 + s.arg2);
- s.arg2 = (r0);
- case 5:
- case 6:
- s.tmp_0 = r0 = s.arg0;
- s.tmp_1 = r0 = s.arg1;
- r0 = (s.arg2 - s.arg1);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_2 = r0;
- r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2);
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_0);
return leave(s, r0)
default: oops()
} } }
-helpers_stringSlice__P112.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]}
+inline__P85033.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
-function helpers_stringSlice__P112_mk(s) {
+function inline__P85033_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_stringSlice__P112, depth: s.depth + 1,
+ parent: s, fn: inline__P85033, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- len___22394: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function scene_Scene_render__P2438(s) {
+function controller__player1__P61909(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14658,147 +12322,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.s___24436 = undefined;
- s.unnamed76___U1 = undefined;
- s.unnamed77___U2 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0);
- r0 = s.arg0.fields["flags"];
+ r0 = pxsim_numops_toBoolDecr(globals._players___64116);
s.tmp_1 = r0;
- r0 = (s.tmp_1 & 4);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 11; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
- case 2:
- s.tmp_2 = r0 = s.arg0;
- r0 = s.tmp_2.fields["flags"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 4);
+ r0 = pxsim_Array__getAt(globals._players___64116, 0);
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)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 5; continue; }
- s.tmp_3 = scene_Scene_render__P2438_mk(s);
- r0 = s.arg0.fields["previousScene"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 838; s.pc = 12; return s.tmp_3;
- case 12:
- r0 = s.retval;
- { step = 6; continue; }
+ 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__C61915_VT);
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__push(s.tmp_6, globals.left___61871);
+ r0 = pxsim_Array__push(s.tmp_6, globals.up___61872);
+ r0 = pxsim_Array__push(s.tmp_6, globals.right___61873);
+ r0 = pxsim_Array__push(s.tmp_6, globals.down___61874);
+ r0 = pxsim_Array__push(s.tmp_6, globals.A___61869);
+ r0 = pxsim_Array__push(s.tmp_6, globals.B___61870);
+ r0 = pxsim_Array__push(s.tmp_6, globals.menu___61875);
+ s.tmp_7 = controller_Controller_constructor__P61919_mk(s);
+ s.tmp_7.arg0 = s.tmp_5;
+ s.tmp_7.arg1 = 1;
+ s.tmp_7.arg2 = s.tmp_6;
+ s.callLocIdx = 159; s.pc = 5; return s.tmp_7;
case 5:
- s.tmp_0 = scene_Background_draw__P2271_mk(s);
- r0 = s.arg0.fields["background"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 839; 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__P100_mk(s);
- r0 = s.arg0.fields["allSprites"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = inline__P24413;
- s.callLocIdx = 844; 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___24436 = (undefined);
- r0 = s.arg0.fields["allSprites"];
- s.unnamed76___U1 = (r0);
- s.unnamed77___U2 = (0);
- case 9:
- s.tmp_0 = r0 = s.unnamed77___U2;
- r0 = pxsim_Array__length(s.unnamed76___U1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 10; continue; }
- r0 = pxsim_Array__getAt(s.unnamed76___U1, s.unnamed77___U2);
- s.s___24436 = (r0);
- s.tmp_2 = if___draw_2_mk(s);
- s.tmp_2.arg0 = s.s___24436;
- 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 = 845; 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 = 845; s.pc = 15; return s.tmp_2; }
- else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 845; s.pc = 15; return s.tmp_2;; }
- else { s.callLocIdx = 845; s.pc = 15; return s.tmp_2; }
- }
- case 15:
r0 = s.retval;
- r0 = (s.unnamed77___U2 + 1);
- s.unnamed77___U2 = (r0);
- { step = 9; continue; }
- case 10:
- s.unnamed76___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;
+ case 3:
+ case 4:
+ r0 = pxsim_Array__getAt(globals._players___64116, 0);
return leave(s, r0)
default: oops()
} } }
-scene_Scene_render__P2438.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]}
+controller__player1__P61909.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]}
-function scene_Scene_render__P2438_mk(s) {
+function controller__player1__P61909_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_render__P2438, depth: s.depth + 1,
+ parent: s, fn: controller__player1__P61909, depth: s.depth + 1,
pc: 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___24436: undefined,
- unnamed76___U1: undefined,
- unnamed77___U2: undefined,
- arg0: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
} }
-function inline__P24413(s) {
+function controller_Controller_constructor__P61919(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14808,84 +12396,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.leftId___85080 = undefined;
+ s.i___85088 = undefined;
+ s.i___85106 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
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 = 840; s.pc = 3; return s.tmp_2; }
- }
- case 3:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim.control.allocateNotifyEvent();
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 = 841; s.pc = 4; return s.tmp_4; }
- }
- case 4:
+ r0 = (s.tmp_0).fields["_id"] = (s.tmp_1);
+ r0 = (s.arg0).fields["_connected"] = (false);
+ r0 = (s.arg0).fields["playerIndex"] = (s.arg1);
+ r0 = (s.arg0).fields["analog"] = (false);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 1; continue; }
+ r0 = (s.arg0).fields["buttons"] = (s.arg2);
+ { step = 4; continue; }
+ case 1:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1);
+ r0 = s.arg0.fields["playerIndex"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 * 7);
+ s.tmp_0 = r0;
+ r0 = (1 + s.tmp_0);
+ s.leftId___85080 = (r0);
+ s.i___85088 = (0);
+ case 2:
+ r0 = (s.i___85088 < 7);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C61895_VT);
+ s.tmp_1 = r0;
+ s.tmp_2 = controller_Button_constructor__P61901_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = (s.leftId___85080 + s.i___85088);
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = -1;
+ s.callLocIdx = 165; s.pc = 7; return s.tmp_2;
+ case 7:
r0 = s.retval;
+ r0 = s.arg0.fields["buttons"];
s.tmp_3 = r0;
- r0 = (s.tmp_1 - s.tmp_3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
+ r0 = pxsim_Array__push(s.tmp_3, s.tmp_1);
+ r0 = (s.i___85088 + 1);
+ s.i___85088 = (r0);
{ step = 2; continue; }
- case 1:
- s.tmp_6 = if_id_1_mk(s);
- s.tmp_6.arg0 = s.arg0;
- if (!s.tmp_6.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id");
- } else {
- s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"];
- if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; }
- else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); }
- else { s.callLocIdx = 842; s.pc = 5; return s.tmp_6; }
- }
+ case 3:
+ case 4:
+ s.i___85106 = (0);
case 5:
- r0 = s.retval;
+ s.tmp_1 = r0 = s.i___85106;
+ r0 = s.arg0.fields["buttons"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ r0 = s.arg0.fields["buttons"];
s.tmp_5 = r0;
- 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 = 843; s.pc = 6; return s.tmp_8; }
- }
+ r0 = pxsim_Array__getAt(s.tmp_5, s.i___85106);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4).fields["_owner"] = (s.arg0);
+ r0 = (s.i___85106 + 1);
+ s.i___85106 = (r0);
+ { step = 5; continue; }
case 6:
+ s.tmp_0 = controller_addController__P64117_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 166; s.pc = 8; return s.tmp_0;
+ case 8:
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 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P24413.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]}
+controller_Controller_constructor__P61919.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]}
-function inline__P24413_mk(s) {
+function controller_Controller_constructor__P61919_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24413, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_constructor__P61919, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -14893,19 +12497,19 @@ function inline__P24413_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
+ leftId___85080: undefined,
+ i___85088: undefined,
+ i___85106: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function scene_Background_draw__P2271(s) {
+function controller_addController__P64117(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14919,46 +12523,32 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Background__C2262_VT)) failedCast(r0);
- r0 = s.arg0.fields["color"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, s.tmp_0);
- r0 = s.arg0.fields["_image"];
+ r0 = pxsim_numops_toBoolDecr(globals._players___64116);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["_image"];
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, s.tmp_1, 0, 0);
+ r0 = pxsim_Array__mk();
+ globals._players___64116 = (r0);
case 1:
case 2:
- r0 = s.arg0.fields["_layers"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P24468);
+ s.tmp_0 = r0 = globals._players___64116;
+ r0 = s.arg0.fields["playerIndex"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
- s.tmp_2 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["_layers"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 724; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
- case 3:
- case 4:
+ r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Background_draw__P2271.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]}
+controller_addController__P64117.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]}
-function scene_Background_draw__P2271_mk(s) {
+function controller_addController__P64117_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Background_draw__P2271, depth: s.depth + 1,
+ parent: s, fn: controller_addController__P64117, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -14970,7 +12560,7 @@ function scene_Background_draw__P2271_mk(s) {
-function inline__P24468(s) {
+function helpers_arrayFilter__P60100(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -14980,66 +12570,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___24470 = undefined;
- s.oy___24481 = undefined;
+ s.res___87451 = undefined;
+ s.len___87453 = undefined;
+ s.i___87456 = undefined;
+ s.v___87461 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
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___24470 = (r0);
- r0 = s.caps[0].fields["camera"];
- r0 = r0.fields["drawOffsetY"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["distance"];
- s.tmp_3 = r0;
- r0 = (1 + s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 / s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim.Math_.round(s.tmp_0);
- s.oy___24481 = (r0);
- s.tmp_0 = scene_BackgroundLayer_draw__P2280_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.ox___24470;
- s.tmp_0.arg2 = s.oy___24481;
- s.callLocIdx = 723; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_Array__mk();
+ s.res___87451 = (r0);
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___87453 = (r0);
+ s.i___87456 = (0);
case 1:
+ r0 = (s.i___87456 < s.len___87453);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_Array__getAt(s.arg0, s.i___87456);
+ s.v___87461 = (r0);
+ s.tmp_1 = lambda_3_mk(s);
+ s.tmp_1.argL = s.arg1;
+ s.tmp_1.arg0 = s.v___87461;
+ s.tmp_1.arg1 = s.i___87456;
+ setupLambda(s.tmp_1, s.tmp_1.argL);
+ s.callLocIdx = 7; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__push(s.res___87451, s.v___87461);
+ case 2:
+ case 3:
+ r0 = (s.i___87456 + 1);
+ s.i___87456 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = s.res___87451;
return leave(s, r0)
default: oops()
} } }
-inline__P24468.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]}
+helpers_arrayFilter__P60100.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 inline__P24468_mk(s) {
+function helpers_arrayFilter__P60100_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24468, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayFilter__P60100, depth: s.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___24470: undefined,
- oy___24481: undefined,
+ res___87451: undefined,
+ len___87453: undefined,
+ i___87456: undefined,
+ v___87461: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function scene_BackgroundLayer_draw__P2280(s) {
+function controller__moveSprites__P61914(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15049,251 +12644,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.w___24499 = undefined;
- s.h___24502 = undefined;
- s.pw___24505 = undefined;
- s.ph___24509 = undefined;
- s.rx___24518 = undefined;
- s.ry___24521 = undefined;
- s.y___24590 = undefined;
- s.py___24591 = undefined;
- s.dh___24600 = undefined;
- s.x___24608 = undefined;
- s.rxl___24609 = undefined;
- s.px___24615 = undefined;
- s.dw___24619 = 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__C2272_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.w___24499 = (r0);
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- s.h___24502 = (r0);
- r0 = s.arg0.fields["img"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_0);
- s.pw___24505 = (r0);
- r0 = s.arg0.fields["img"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_0);
- s.ph___24509 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.pw___24505);
- 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___24509);
- s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1 = controller_players__P61910_mk(s);
+ s.callLocIdx = 162; s.pc = 2; return s.tmp_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 = 23; continue; }
- case 3:
- case 4:
- r0 = (0 - s.arg1);
- s.rx___24518 = (r0);
- r0 = (0 - s.arg2);
- s.ry___24521 = (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___24518;
- r0 = (s.w___24499 + s.pw___24505);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- s.rx___24518 = (r0);
- { step = 7; continue; }
- case 6:
- s.tmp_0 = r0 = s.rx___24518;
- r0 = (s.w___24499 + s.pw___24505);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 >> 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 - s.tmp_1);
- s.rx___24518 = (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___24521;
- r0 = (s.h___24502 + s.ph___24509);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- s.ry___24521 = (r0);
- { step = 10; continue; }
- case 9:
- s.tmp_0 = r0 = s.ry___24521;
- r0 = (s.h___24502 + s.ph___24509);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 >> 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 - s.tmp_1);
- s.ry___24521 = (r0);
- case 10:
- r0 = (s.rx___24518 % s.w___24499);
- s.rx___24518 = (r0);
- r0 = (s.rx___24518 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = (s.rx___24518 + s.w___24499);
- s.rx___24518 = (r0);
- case 11:
- case 12:
- r0 = (s.ry___24521 % s.h___24502);
- s.ry___24521 = (r0);
- r0 = (s.ry___24521 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- r0 = (s.ry___24521 + s.h___24502);
- s.ry___24521 = (r0);
- case 13:
- case 14:
- r0 = pxsim.Math_.floor(s.rx___24518);
- s.rx___24518 = (r0);
- r0 = pxsim.Math_.floor(s.ry___24521);
- s.ry___24521 = (r0);
- s.y___24590 = (0);
- s.py___24591 = (0);
- case 15:
- r0 = (s.y___24590 < s.h___24502);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 22; continue; }
- r0 = (s.y___24590 % s.ph___24509);
- s.py___24591 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
- r0 = (s.ph___24509 - s.py___24591);
- s.tmp_0.arg0 = r0;
- r0 = (s.h___24502 - s.ry___24521);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 726; s.pc = 24; return s.tmp_0;
- case 24:
r0 = s.retval;
- s.dh___24600 = (r0);
- s.x___24608 = (0);
- s.rxl___24609 = (s.rx___24518);
- case 16:
- r0 = (s.x___24608 < s.w___24499);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 19; continue; }
- r0 = (s.x___24608 % s.pw___24505);
- s.px___24615 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
- r0 = (s.pw___24505 - s.px___24615);
s.tmp_0.arg0 = r0;
- r0 = (s.w___24499 - s.rxl___24609);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 727; s.pc = 25; return s.tmp_0;
- case 25:
+ s.tmp_0.arg1 = inline__P84828;
+ s.callLocIdx = 164; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.dw___24619 = (r0);
- r0 = s.arg0.fields["img"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.drawImage(globals.screen___1799, s.tmp_0, s.rxl___24609, s.ry___24521);
- r0 = (s.rxl___24609 + s.dw___24619);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 % s.w___24499);
- s.rxl___24609 = (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___24619;
- { step = 18; continue; }
- case 17:
- r0 = s.w___24499;
- case 18:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = (s.x___24608 + s.tmp_1);
- s.x___24608 = (r0);
- { step = 16; continue; }
- case 19:
- r0 = (s.ry___24521 + s.dh___24600);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 % s.h___24502);
- s.ry___24521 = (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___24600;
- { step = 21; continue; }
- case 20:
- r0 = s.h___24502;
- case 21:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = (s.y___24590 + s.tmp_1);
- s.y___24590 = (r0);
- { step = 15; continue; }
- case 22:
- case 23:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_BackgroundLayer_draw__P2280.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"]}
+controller__moveSprites__P61914.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]}
-function scene_BackgroundLayer_draw__P2280_mk(s) {
+function controller__moveSprites__P61914_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_BackgroundLayer_draw__P2280, depth: s.depth + 1,
+ parent: s, fn: controller__moveSprites__P61914, depth: s.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___24499: undefined,
- h___24502: undefined,
- pw___24505: undefined,
- ph___24509: undefined,
- rx___24518: undefined,
- ry___24521: undefined,
- y___24590: undefined,
- py___24591: undefined,
- dh___24600: undefined,
- x___24608: undefined,
- rxl___24609: undefined,
- px___24615: undefined,
- dw___24619: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function Math_min__P123(s) {
+function inline__P84828(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15305,39 +12685,33 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 <= s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0;
- { step = 3; continue; }
+ s.tmp_0 = controller_Controller___preUpdate__P61939_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 163; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- r0 = s.arg1;
- case 3:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Math_min__P123.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]}
+inline__P84828.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
-function Math_min__P123_mk(s) {
+function inline__P84828_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_min__P123, depth: s.depth + 1,
+ parent: s, fn: inline__P84828, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function scene_Camera_update__P2368(s) {
+function controller_Controller___preUpdate__P61939(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15347,169 +12721,308 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.elapsed___24700 = undefined;
- s.percentComplete___24714 = undefined;
- s.damp___24721 = undefined;
- s.f___24730 = undefined;
- s.x___24736 = undefined;
- s.y___24743 = undefined;
+ s.deadSprites___84835 = undefined;
+ s.svx___84836 = undefined;
+ s.svy___84837 = undefined;
+ s.svxInCricle___84872 = undefined;
+ s.svyInCircle___84874 = undefined;
+ s.sq___84876 = undefined;
+ s.scale___84891 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
- r0 = s.arg0.fields["sprite"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = scene_Camera_offsetX__P2358_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_3 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["sprite"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 799; s.pc = 10; return s.tmp_3;
- case 10:
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ s.tmp_3 = controller_Controller__controlledSprites__P61920_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 174; s.pc = 18; return s.tmp_3;
+ case 18:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 1);
- s.tmp_4 = r0;
- r0 = (s.tmp_2 - s.tmp_4);
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 800; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- s.tmp_0 = scene_Camera_offsetY__P2360_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["sprite"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 801; s.pc = 12; return s.tmp_2;
- case 12:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- 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 = 802; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 17; continue; }
case 1:
case 2:
- s.tmp_0 = scene_Camera_offsetX__P2358_mk(s);
- s.tmp_1 = r0 = s.arg0;
- s.tmp_0.arg0 = r0;
- r0 = s.tmp_1.fields["_offsetX"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 804; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = scene_Camera_offsetY__P2360_mk(s);
- s.tmp_1 = r0 = s.arg0;
- s.tmp_0.arg0 = r0;
- r0 = s.tmp_1.fields["_offsetY"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 806; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["_offsetX"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["_offsetY"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1);
- r0 = s.arg0.fields["shakeStartTime"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 !== undefined);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.deadSprites___84835 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.deadSprites___84835, false);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.svx___84836 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.svx___84836, 0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.svy___84837 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.svy___84837, 0);
+ r0 = s.arg0.fields["analog"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = pxsim.control.millis();
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = r0 = s.svx___84836;
+ s.tmp_5 = controller_Button_pressureLevel__P61905_mk(s);
+ s.tmp_6 = controller_Controller_right__P61925_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.callLocIdx = 175; s.pc = 20; return s.tmp_6;
+ case 20:
+ r0 = s.retval;
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 176; s.pc = 19; return s.tmp_5;
+ case 19:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ s.tmp_8 = controller_Button_pressureLevel__P61905_mk(s);
+ s.tmp_9 = controller_Controller_left__P61924_mk(s);
+ s.tmp_9.arg0 = s.arg0;
+ s.callLocIdx = 177; s.pc = 22; return s.tmp_9;
+ case 22:
+ r0 = s.retval;
+ s.tmp_8.arg0 = r0;
+ s.callLocIdx = 178; 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 = s.arg0.fields["shakeStartTime"];
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2);
+ s.tmp_0 = r0 = s.svy___84837;
+ s.tmp_4 = controller_Button_pressureLevel__P61905_mk(s);
+ s.tmp_5 = controller_Controller_down__P61927_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.callLocIdx = 179; s.pc = 24; return s.tmp_5;
+ case 24:
+ r0 = s.retval;
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 180; s.pc = 23; return s.tmp_4;
+ case 23:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- s.elapsed___24700 = (r0);
- r0 = s.arg0.fields["shakeDuration"];
+ s.tmp_7 = controller_Button_pressureLevel__P61905_mk(s);
+ s.tmp_8 = controller_Controller_up__P61926_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.callLocIdx = 181; s.pc = 26; return s.tmp_8;
+ case 26:
+ r0 = s.retval;
+ s.tmp_7.arg0 = r0;
+ s.callLocIdx = 182; 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 = (s.elapsed___24700 >= 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; }
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ { step = 12; continue; }
case 3:
- r0 = s.arg0.fields["shakeDuration"];
- s.tmp_0 = r0;
- r0 = (s.elapsed___24700 / s.tmp_0);
- s.percentComplete___24714 = (r0);
- s.damp___24721 = (1);
- r0 = (s.percentComplete___24714 >= 0.75);
+ s.tmp_1 = controller_Button__C61895_v0_1_mk(s);
+ s.tmp_2 = controller_Controller_right__P61925_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 183; 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__C61895_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; }
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_1.arg0 = 0;
- r0 = (1 - s.percentComplete___24714);
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 809; s.pc = 15; return s.tmp_1;
- case 15:
- r0 = s.retval;
- s.damp___24721 = (r0);
+ r0 = 256;
+ { step = 5; continue; }
case 4:
+ r0 = 0;
case 5:
- r0 = s.arg0.fields["shakeAmplitude"];
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.tmp_5 = controller_Button__C61895_v0_1_mk(s);
+ s.tmp_6 = controller_Controller_left__P61924_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.callLocIdx = 184; 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__C61895_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___84836;
+ 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__C61895_v0_1_mk(s);
+ s.tmp_2 = controller_Controller_down__P61927_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 185; 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__C61895_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 = (s.tmp_0 * s.damp___24721);
- s.f___24730 = (r0);
- r0 = pxsim.Math_.random();
+ 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__C61895_v0_1_mk(s);
+ s.tmp_6 = controller_Controller_up__P61926_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.callLocIdx = 186; 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__C61895_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___84837;
+ 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___84872 = (r0);
+ s.tmp_0 = r0 = s.svxInCricle___84872;
+ r0 = pxsim_pxtrt_ldlocRef(s.svx___84836);
s.tmp_1 = r0;
- r0 = (s.tmp_1 * s.f___24730);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 0);
- s.x___24736 = (r0);
- r0 = pxsim.Math_.random();
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.svyInCircle___84874 = (r0);
+ s.tmp_0 = r0 = s.svyInCircle___84874;
+ r0 = pxsim_pxtrt_ldlocRef(s.svy___84837);
s.tmp_1 = r0;
- r0 = (s.tmp_1 * s.f___24730);
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt_ldlocRef(s.svx___84836);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.svx___84836);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 * s.tmp_2);
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 0);
- s.y___24743 = (r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["drawOffsetX"];
+ r0 = pxsim_pxtrt_ldlocRef(s.svy___84837);
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.svy___84837);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 * s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_0 + s.tmp_3);
+ s.sq___84876 = (r0);
+ r0 = (s.sq___84876 > 65536);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ r0 = (65536 / s.sq___84876);
+ s.tmp_1 = r0;
+ r0 = pxsim.Math_.sqrt(s.tmp_1);
+ s.scale___84891 = (r0);
+ s.tmp_0 = r0 = s.svxInCricle___84872;
+ s.tmp_3 = r0 = s.scale___84891;
+ r0 = pxsim_pxtrt_ldlocRef(s.svx___84836);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 * s.tmp_4);
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.x___24736);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["drawOffsetY"];
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_0 = r0 = s.svyInCircle___84874;
+ s.tmp_3 = r0 = s.scale___84891;
+ r0 = pxsim_pxtrt_ldlocRef(s.svy___84837);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 * s.tmp_4);
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.y___24743);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1);
- case 6:
- case 7:
- case 8:
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ case 13:
+ case 14:
+ r0 = pxsim_pxtcore_mkAction(5, inline__P84909);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___84835);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___84836);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___84837);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___84872);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___84874);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_2 = controller_Controller__controlledSprites__P61920_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 187; 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 = 195; s.pc = 35; return s.tmp_1;
+ case 35:
+ r0 = s.retval;
+ r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___84835);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_1 = controller_Controller__controlledSprites__P61921_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_2 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_3 = controller_Controller__controlledSprites__P61920_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 196; s.pc = 39; return s.tmp_3;
+ case 39:
+ r0 = s.retval;
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = inline__P84966;
+ s.callLocIdx = 197; s.pc = 38; return s.tmp_2;
+ case 38:
+ r0 = s.retval;
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 198; 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()
} } }
-scene_Camera_update__P2368.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]}
+controller_Controller___preUpdate__P61939.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]}
-function scene_Camera_update__P2368_mk(s) {
+function controller_Controller___preUpdate__P61939_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_update__P2368, depth: s.depth + 1,
+ parent: s, fn: controller_Controller___preUpdate__P61939, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -15517,12 +13030,17 @@ function scene_Camera_update__P2368_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- elapsed___24700: undefined,
- percentComplete___24714: undefined,
- damp___24721: undefined,
- f___24730: undefined,
- x___24736: undefined,
- y___24743: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ deadSprites___84835: undefined,
+ svx___84836: undefined,
+ svy___84837: undefined,
+ svxInCricle___84872: undefined,
+ svyInCircle___84874: undefined,
+ sq___84876: undefined,
+ scale___84891: undefined,
arg0: undefined,
} }
@@ -15530,7 +13048,7 @@ function scene_Camera_update__P2368_mk(s) {
-function scene_Camera_offsetY__P2360(s) {
+function inline__P84909(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15540,65 +13058,156 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___24762 = undefined;
+ s.s___84912 = undefined;
+ s.vx___84913 = undefined;
+ s.vy___84914 = 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__C2352_VT)) failedCast(r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 798; s.pc = 5; return s.tmp_0;
- case 5:
+ 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 = 188; s.pc = 22; return s.tmp_0; }
+ }
+ case 22:
+ r0 = s.retval;
+ s.s___84912 = (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 = 189; s.pc = 23; return s.tmp_2; }
+ }
+ case 23:
+ r0 = s.retval;
+ s.vx___84913 = (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 = 190; s.pc = 24; return s.tmp_3; }
+ }
+ case 24:
r0 = s.retval;
- s.scene___24762 = (r0);
- r0 = s.scene___24762.fields["tileMap"];
+ s.vy___84914 = (r0);
+ r0 = s.s___84912.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 = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ 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:
- s.tmp_1 = tiles_TileMap__C2314_v6_1_mk(s);
- r0 = s.scene___24762.fields["tileMap"];
- s.tmp_1.arg0 = r0;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
- s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_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___84913);
if (!r0) { step = 3; continue; }
- s.tmp_3 = r0 = s.arg0;
- s.tmp_5 = tiles_TileMap__C2314_v2_2_mk(s);
- r0 = s.scene___24762.fields["tileMap"];
- s.tmp_5.arg0 = r0;
- s.tmp_5.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0);
- s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetY;
- s.pc = 7; return s.tmp_5;
- case 7:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["_offsetY"] = (s.tmp_4);
- { step = 4; continue; }
+ r0 = (s.s___84912).fields["_vx"] = (0);
case 3:
- r0 = (s.arg0).fields["_offsetY"] = (s.arg1);
case 4:
+ r0 = pxsim_numops_toBoolDecr(s.vy___84914);
+ if (!r0) { step = 5; continue; }
+ r0 = (s.s___84912).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___84913;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 11; continue; }
+ r0 = s.tmp_2;
+ { step = 12; continue; }
+ case 11:
+ r0 = s.vy___84914;
+ 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___84912;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
+ s.tmp_6 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_6, s.vx___84913);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5);
+ s.tmp_0 = r0 = s.s___84912;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
+ s.tmp_2 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_2, s.vy___84914);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1);
+ { step = 18; continue; }
+ case 13:
+ r0 = pxsim_numops_toBoolDecr(s.vx___84913);
+ if (!r0) { step = 14; continue; }
+ s.tmp_0 = r0 = s.s___84912;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_2 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_2, s.vx___84913);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1);
+ { step = 17; continue; }
+ case 14:
+ r0 = pxsim_numops_toBoolDecr(s.vy___84914);
+ if (!r0) { step = 15; continue; }
+ s.tmp_0 = r0 = s.s___84912;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
+ s.tmp_2 = r0;
+ r0 = pxsim.Math_.imul(s.tmp_2, s.vy___84914);
+ 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_Camera_offsetY__P2360.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]}
+inline__P84909.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]}
-function scene_Camera_offsetY__P2360_mk(s) {
+function inline__P84909_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_offsetY__P2360, depth: s.depth + 1,
+ parent: s, fn: inline__P84909, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -15606,16 +13215,18 @@ function scene_Camera_offsetY__P2360_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- scene___24762: undefined,
+ tmp_6: undefined,
+ s___84912: undefined,
+ vx___84913: undefined,
+ vy___84914: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tiles_TileMap_enabled__P2324(s) {
+function inline__P84966(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15629,32 +13240,27 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = s.arg0.fields["_map"];
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = s.arg0.fields["s"];
+ r0 = r0.fields["flags"];
s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
+ 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 leaveAccessor(s, r0)
+ return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_enabled__P2324.info = {"start":7107,"length":66,"line":261,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]}
-tiles_TileMap_enabled__P2324.isGetter = true;
+inline__P84966.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]}
-function tiles_TileMap_enabled__P2324_mk(s) {
+function inline__P84966_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_enabled__P2324, depth: s.depth + 1,
+ parent: s, fn: inline__P84966, depth: s.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,
} }
@@ -15662,7 +13268,7 @@ function tiles_TileMap_enabled__P2324_mk(s) {
-function tiles_TileMap_offsetY__P2319(s) {
+function controller_Controller_down__P61927(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15674,59 +13280,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, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
- s.tmp_0.arg0 = 0;
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_3 = tiles_TileMap__C2314_v4_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight;
- s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- s.tmp_4 = r0;
- r0 = (s.tmp_2 - s.tmp_4);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 0;
- s.callLocIdx = 745; 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 = 746; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- return leave(s, r0)
+ if (!checkSubtype(r0, controller_Controller__C61915_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()
} } }
-tiles_TileMap_offsetY__P2319.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]}
+controller_Controller_down__P61927.info = {"start":9528,"length":77,"line":312,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]}
+controller_Controller_down__P61927.isGetter = true;
-function tiles_TileMap_offsetY__P2319_mk(s) {
+function controller_Controller_down__P61927_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_offsetY__P2319, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_down__P61927, depth: s.depth + 1,
pc: 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__P2321(s) {
+function controller_Controller_button__P64118(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15738,51 +13321,37 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = s.arg0.fields["_map"];
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ r0 = s.arg0.fields["buttons"];
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"];
+ r0 = (s.arg1 - 1);
s.tmp_1 = r0;
- r0 = s.arg0.fields["_scale"];
- s.tmp_3 = r0;
- r0 = (s.tmp_1 << s.tmp_3);
- { step = 2; continue; }
- case 1:
- r0 = 0;
- case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_areaHeight__P2321.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]}
+controller_Controller_button__P64118.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]}
-function tiles_TileMap_areaHeight__P2321_mk(s) {
+function controller_Controller_button__P64118_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_areaHeight__P2321, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_button__P64118, depth: s.depth + 1,
pc: 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_scale__P2316(s) {
+function controller_Controller_up__P61926(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15797,19 +13366,25 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = s.arg0.fields["_scale"];
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ r0 = s.arg0.fields["buttons"];
+ s.tmp_0 = r0;
+ r0 = (2 - 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_TileMap_scale__P2316.info = {"start":6125,"length":55,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]}
-tiles_TileMap_scale__P2316.isGetter = true;
+controller_Controller_up__P61926.info = {"start":9376,"length":73,"line":304,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]}
+controller_Controller_up__P61926.isGetter = true;
-function tiles_TileMap_scale__P2316_mk(s) {
+function controller_Controller_up__P61926_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_scale__P2316, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_up__P61926, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -15817,7 +13392,7 @@ function tiles_TileMap_scale__P2316_mk(s) {
-function tiles_TileMapData_height__P2304(s) {
+function controller_Controller_right__P61925(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15832,19 +13407,25 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- r0 = s.arg0.fields["_height"];
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ r0 = s.arg0.fields["buttons"];
+ s.tmp_0 = r0;
+ r0 = (3 - 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_TileMapData_height__P2304.info = {"start":3734,"length":65,"line":139,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]}
-tiles_TileMapData_height__P2304.isGetter = true;
+controller_Controller_right__P61925.info = {"start":9220,"length":79,"line":296,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]}
+controller_Controller_right__P61925.isGetter = true;
-function tiles_TileMapData_height__P2304_mk(s) {
+function controller_Controller_right__P61925_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_height__P2304, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_right__P61925, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -15852,7 +13433,7 @@ function tiles_TileMapData_height__P2304_mk(s) {
-function Math_clamp__P119(s) {
+function controller_Controller_left__P61924(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15864,44 +13445,36 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = Math_min__P123_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg2;
- s.callLocIdx = 16; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 17; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- return leave(s, r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Controller__C61915_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()
} } }
-Math_clamp__P119.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]}
+controller_Controller_left__P61924.info = {"start":9063,"length":77,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]}
+controller_Controller_left__P61924.isGetter = true;
-function Math_clamp__P119_mk(s) {
+function controller_Controller_left__P61924_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_clamp__P119, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_left__P61924, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function scene_Camera_offsetY__P2359(s) {
+function controller_Controller__controlledSprites__P61921(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15913,30 +13486,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
- r0 = s.arg0.fields["_offsetY"];
- return leaveAccessor(s, r0)
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 168; 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()
} } }
-scene_Camera_offsetY__P2359.info = {"start":966,"length":59,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]}
-scene_Camera_offsetY__P2359.isGetter = true;
+controller_Controller__controlledSprites__P61921.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]}
-function scene_Camera_offsetY__P2359_mk(s) {
+function controller_Controller__controlledSprites__P61921_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_offsetY__P2359, depth: s.depth + 1,
+ parent: s, fn: controller_Controller__controlledSprites__P61921, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function scene_Camera_offsetX__P2358(s) {
+function controller_Controller__controlledSprites__P61920(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -15946,82 +13532,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___24800 = 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__C2352_VT)) failedCast(r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 797; s.pc = 5; return s.tmp_0;
- case 5:
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 167; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- s.scene___24800 = (r0);
- r0 = s.scene___24800.fields["tileMap"];
+ r0 = r0.fields["controlledSprites"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_1 = tiles_TileMap__C2314_v6_1_mk(s);
- r0 = s.scene___24800.fields["tileMap"];
- s.tmp_1.arg0 = r0;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
- s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- case 2:
- // jmp value (already in r0)
+ r0 = s.arg0.fields["playerIndex"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- s.tmp_3 = r0 = s.arg0;
- s.tmp_5 = tiles_TileMap__C2314_v1_2_mk(s);
- r0 = s.scene___24800.fields["tileMap"];
- s.tmp_5.arg0 = r0;
- s.tmp_5.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0);
- s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetX;
- s.pc = 7; return s.tmp_5;
- case 7:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["_offsetX"] = (s.tmp_4);
- { step = 4; continue; }
- case 3:
- r0 = (s.arg0).fields["_offsetX"] = (s.arg1);
- case 4:
- r0 = undefined;
- return leave(s, r0)
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Camera_offsetX__P2358.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]}
+controller_Controller__controlledSprites__P61920.info = {"start":8555,"length":132,"line":268,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]}
+controller_Controller__controlledSprites__P61920.isGetter = true;
-function scene_Camera_offsetX__P2358_mk(s) {
+function controller_Controller__controlledSprites__P61920_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_offsetX__P2358, depth: s.depth + 1,
+ parent: s, fn: controller_Controller__controlledSprites__P61920, depth: s.depth + 1,
pc: 0, retval: undefined, 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___24800: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tiles_TileMap_offsetX__P2318(s) {
+function controller_Button_pressureLevel__P61905(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16033,59 +13580,68 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
- s.tmp_0.arg0 = 0;
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_3 = tiles_TileMap__C2314_v3_1_mk(s);
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = pxsim.control.deviceDalVersion();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == "sim");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_3 = controller_Button__C61895_v0_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth;
- s.pc = 3; return s.tmp_3;
- case 3:
+ if (!checkSubtype(s.tmp_3.arg0, controller_Button__C61895_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_ImageMethods.width(globals.screen___1799);
- s.tmp_4 = r0;
- r0 = (s.tmp_2 - s.tmp_4);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 0;
- s.callLocIdx = 743; 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 = 744; 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()
} } }
-tiles_TileMap_offsetX__P2318.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]}
+controller_Button_pressureLevel__P61905.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]}
-function tiles_TileMap_offsetX__P2318_mk(s) {
+function controller_Button_pressureLevel__P61905_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_offsetX__P2318, depth: s.depth + 1,
+ parent: s, fn: controller_Button_pressureLevel__P61905, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tiles_TileMap_areaWidth__P2320(s) {
+function controller_Button_isPressed__P61904(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16100,40 +13656,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = s.arg0.fields["_map"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["_map"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_width"];
- s.tmp_1 = r0;
- r0 = s.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;
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_pressed"];
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_areaWidth__P2320.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]}
+controller_Button_isPressed__P61904.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]}
-function tiles_TileMap_areaWidth__P2320_mk(s) {
+function controller_Button_isPressed__P61904_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_areaWidth__P2320, depth: s.depth + 1,
+ parent: s, fn: controller_Button_isPressed__P61904, depth: s.depth + 1,
pc: 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,
} }
@@ -16141,7 +13675,7 @@ function tiles_TileMap_areaWidth__P2320_mk(s) {
-function tiles_TileMapData_width__P2303(s) {
+function Fx_imul__P60148(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16153,30 +13687,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- r0 = s.arg0.fields["_width"];
- return leaveAccessor(s, r0)
+ r0 = pxsim.Math_.imul(s.arg0, s.arg1);
+ return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_width__P2303.info = {"start":3661,"length":63,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]}
-tiles_TileMapData_width__P2303.isGetter = true;
+Fx_imul__P60148.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]}
-function tiles_TileMapData_width__P2303_mk(s) {
+function Fx_imul__P60148_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_width__P2303, depth: s.depth + 1,
+ parent: s, fn: Fx_imul__P60148, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
+ arg1: undefined,
} }
-function scene_Camera_offsetX__P2357(s) {
+function power_checkDeepSleep__P61698(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16186,32 +13719,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.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
- r0 = s.arg0.fields["_offsetX"];
- return leaveAccessor(s, r0)
+ s.p___84228 = undefined;
+ s.to___84231 = undefined;
+ s.tmp_0 = power_init__P64017_mk(s);
+ s.callLocIdx = 86; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = r0 = globals._poked___64015;
+ 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___84228 = (s.tmp_1);
+ s.tmp_0 = r0 = globals._timeout___64016;
+ 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___84231 = (s.tmp_1);
+ r0 = (s.to___84231 > 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___84228);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > s.to___84231);
+ 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()
} } }
-scene_Camera_offsetX__P2357.info = {"start":622,"length":59,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]}
-scene_Camera_offsetX__P2357.isGetter = true;
+power_checkDeepSleep__P61698.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]}
-function scene_Camera_offsetX__P2357_mk(s) {
+function power_checkDeepSleep__P61698_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_offsetX__P2357, depth: s.depth + 1,
+ parent: s, fn: power_checkDeepSleep__P61698, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ p___84228: undefined,
+ to___84231: undefined,
} }
-function Sprite_y__P2024(s) {
+function power_init__P64017(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16221,47 +13816,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_y"];
+ r0 = (globals._timeout___64016 !== 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 / 256);
+ r0 = (s.tmp_1 * 1000);
+ globals._timeout___64016 = (r0);
+ r0 = (globals._timeout___64016 > 0);
s.tmp_0 = r0;
- r0 = s.arg0.fields["_image"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- return leaveAccessor(s, r0)
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
+ case 3:
+ r0 = (globals._timeout___64016 < 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___64016 = (300000);
+ case 5:
+ case 6:
+ case 7:
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_y__P2024.info = {"start":1849,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]}
-Sprite_y__P2024.isGetter = true;
+power_init__P64017.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]}
-function Sprite_y__P2024_mk(s) {
+function power_init__P64017_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_y__P2024, depth: s.depth + 1,
+ parent: s, fn: power_init__P64017, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- arg0: undefined,
} }
-function Fx_toFloat__P163(s) {
+function power_poke__P61697(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16271,29 +13873,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = (s.arg0 / 256);
+ s.tmp_0 = power_init__P64017_mk(s);
+ s.callLocIdx = 85; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = pxsim.control.millis();
+ globals._poked___64015 = (r0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_toFloat__P163.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]}
+power_poke__P61697.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]}
-function Fx_toFloat__P163_mk(s) {
+function power_poke__P61697_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_toFloat__P163, depth: s.depth + 1,
+ parent: s, fn: power_poke__P61697, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
+ tmp_0: undefined,
} }
-function Sprite_x__P2022(s) {
+function control_EventContext_deltaTime__P60381(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16308,34 +13912,22 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_x"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 / 256);
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ r0 = s.arg0.fields["deltaTimeMillis"];
s.tmp_0 = r0;
- r0 = s.arg0.fields["_image"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
+ r0 = (s.tmp_0 / 1000);
return leaveAccessor(s, r0)
default: oops()
} } }
-Sprite_x__P2022.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]}
-Sprite_x__P2022.isGetter = true;
+control_EventContext_deltaTime__P60381.info = {"start":1995,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]}
+control_EventContext_deltaTime__P60381.isGetter = true;
-function Sprite_x__P2022_mk(s) {
+function control_EventContext_deltaTime__P60381_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_x__P2022, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_deltaTime__P60381, depth: s.depth + 1,
pc: 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,
} }
@@ -16343,7 +13935,7 @@ function Sprite_x__P2022_mk(s) {
-function PhysicsEngine_move__P2162(s) {
+function scene_Scene_constructor__P62429(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16356,30 +13948,111 @@ 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, PhysicsEngine__C2156_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Scene__C62408_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__C62165_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = ArcadePhysicsEngine_constructor__P62166_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 = 814; s.pc = 1; return s.tmp_1;
+ case 1:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C62349_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = scene_Camera_constructor__P62353_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 815; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["camera"] = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C62257_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = scene_Background_constructor__P62261_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.arg0.fields["camera"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 816; s.pc = 3; return s.tmp_1;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["background"] = (s.tmp_0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_pxtrt.mkMap();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_pxtrt.mkMap();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_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()
} } }
-PhysicsEngine_move__P2162.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]}
+scene_Scene_constructor__P62429.info = {"start":3365,"length":793,"line":102,"column":8,"endLine":120,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]}
-function PhysicsEngine_move__P2162_mk(s) {
+function scene_Scene_constructor__P62429_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: PhysicsEngine_move__P2162, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_constructor__P62429, 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 PhysicsEngine_draw__P2161(s) {
+function scene_Camera_constructor__P62353(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16394,17 +14067,21 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Camera__C62349_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()
} } }
-PhysicsEngine_draw__P2161.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]}
+scene_Camera_constructor__P62353.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]}
-function PhysicsEngine_draw__P2161_mk(s) {
+function scene_Camera_constructor__P62353_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: PhysicsEngine_draw__P2161, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_constructor__P62353, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -16413,7 +14090,7 @@ function PhysicsEngine_draw__P2161_mk(s) {
-function controller___update__P1947(s) {
+function scene_Background_constructor__P62261(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16423,51 +14100,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.dtms___25148 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 * 1000);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 | 0);
- s.dtms___25148 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P25155);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___25148);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_2 = controller_players__P1915_mk(s);
- s.callLocIdx = 201; 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 = 203; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, scene_Background__C62257_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["color"] = (0);
+ r0 = (s.arg0).fields["camera"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller___update__P1947.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]}
+scene_Background_constructor__P62261.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 controller___update__P1947_mk(s) {
+function scene_Background_constructor__P62261_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller___update__P1947, depth: s.depth + 1,
+ parent: s, fn: scene_Background_constructor__P62261, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- dtms___25148: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P25155(s) {
+function ArcadePhysicsEngine_constructor__P62166(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16479,34 +14146,68 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- s.tmp_0 = controller_Controller___update__P1945_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.caps[0];
- s.callLocIdx = 202; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ r0 = undefined;
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C62086_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = sprites_SpriteMap_constructor__P62087_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 503; s.pc = 1; return s.tmp_1;
case 1:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["map"] = (s.tmp_0);
+ s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P62168_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 504; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = ArcadePhysicsEngine_maxStep__P62172_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg3;
+ s.callLocIdx = 505; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = ArcadePhysicsEngine_minStep__P62170_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg2;
+ s.callLocIdx = 506; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P25155.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
+ArcadePhysicsEngine_constructor__P62166.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]}
-function inline__P25155_mk(s) {
+function ArcadePhysicsEngine_constructor__P62166_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25155, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_constructor__P62166, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function controller_Controller___update__P1945(s) {
+function ArcadePhysicsEngine_maxStep__P62172(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16522,42 +14223,27 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1);
- s.arg1 = (s.tmp_0);
- s.tmp_1 = r0 = s.arg1;
- r0 = pxsim_pxtrt_ldlocRef(s.arg1);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 | 0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2);
- r0 = pxsim_pxtcore_mkAction(1, inline__P25168);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["buttons"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 200; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Controller___update__P1945.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
+ArcadePhysicsEngine_maxStep__P62172.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]}
-function controller_Controller___update__P1945_mk(s) {
+function ArcadePhysicsEngine_maxStep__P62172_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller___update__P1945, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_maxStep__P62172, depth: s.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,
} }
@@ -16566,7 +14252,7 @@ function controller_Controller___update__P1945_mk(s) {
-function inline__P25168(s) {
+function ArcadePhysicsEngine_maxStep__P62171(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16580,25 +14266,26 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = controller_Button___update__P1912_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 199; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ r0 = s.arg0.fields["maxSingleStep"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + 128);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >> 8);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-inline__P25168.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]}
+ArcadePhysicsEngine_maxStep__P62171.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]}
+ArcadePhysicsEngine_maxStep__P62171.isGetter = true;
-function inline__P25168_mk(s) {
+function ArcadePhysicsEngine_maxStep__P62171_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25168, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_maxStep__P62171, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -16606,7 +14293,7 @@ function inline__P25168_mk(s) {
-function controller_Button___update__P1912(s) {
+function Fx_toInt__P60157(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16616,124 +14303,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.delay___25184 = undefined;
- s.interval___25193 = undefined;
- s.count___25206 = 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__C1900_VT)) failedCast(r0);
- r0 = s.arg0.fields["_pressed"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 11; continue; }
- case 1:
- case 2:
- s.tmp_3 = r0 = s.arg0;
- r0 = s.tmp_3.fields["_pressedElasped"];
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + s.arg1);
- s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4);
- r0 = s.arg0.fields["repeatDelay"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 === undefined);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = globals.defaultRepeatDelay___4108;
- { step = 4; continue; }
- case 3:
- r0 = s.arg0.fields["repeatDelay"];
- case 4:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.delay___25184 = (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___4110;
- { step = 6; continue; }
- case 5:
- r0 = s.arg0.fields["repeatInterval"];
- case 6:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.interval___25193 = (s.tmp_2);
- r0 = s.arg0.fields["_pressedElasped"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < s.delay___25184);
- 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___25184);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.interval___25193);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / s.interval___25193);
- s.tmp_2 = r0;
- r0 = pxsim.Math_.floor(s.tmp_2);
- s.count___25206 = (r0);
- r0 = s.arg0.fields["_repeatCount"];
- s.tmp_1 = r0;
- r0 = (s.count___25206 != s.tmp_1);
+ r0 = (s.arg0 + 128);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.tmp_2 = controller_Button_raiseButtonRepeat__P4115_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 157; s.pc = 12; return s.tmp_2;
- case 12:
- r0 = s.retval;
- r0 = (s.arg0).fields["_repeatCount"] = (s.count___25206);
- case 9:
- case 10:
- case 11:
- r0 = undefined;
+ r0 = (s.tmp_0 >> 8);
return leave(s, r0)
default: oops()
} } }
-controller_Button___update__P1912.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
+Fx_toInt__P60157.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]}
-function controller_Button___update__P1912_mk(s) {
+function Fx_toInt__P60157_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button___update__P1912, depth: s.depth + 1,
+ parent: s, fn: Fx_toInt__P60157, depth: s.depth + 1,
pc: 0, retval: undefined, 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___25184: undefined,
- interval___25193: undefined,
- count___25206: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function controller_Button_raiseButtonRepeat__P4115(s) {
+function ArcadePhysicsEngine_minStep__P62170(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16745,41 +14340,40 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["id"];
- s.tmp_0 = r0;
- r0 = pxsim.control.raiseEvent(2054, s.tmp_0);
- { step = 2; continue; }
- case 1:
- r0 = s.arg0.fields["id"];
- s.tmp_0 = r0;
- r0 = pxsim.control.raiseEvent(2055, s.tmp_0);
- case 2:
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-controller_Button_raiseButtonRepeat__P4115.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]}
+ArcadePhysicsEngine_minStep__P62170.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]}
-function controller_Button_raiseButtonRepeat__P4115_mk(s) {
+function ArcadePhysicsEngine_minStep__P62170_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_raiseButtonRepeat__P4115, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_minStep__P62170, 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_players__P1915(s) {
+function ArcadePhysicsEngine_minStep__P62169(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16789,34 +14383,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = controller__player1__P1914_mk(s);
- s.callLocIdx = 160; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = helpers_arrayFilter__P105_mk(s);
- s.tmp_0.arg0 = globals._players___4119;
- s.tmp_0.arg1 = inline__P25047;
- s.callLocIdx = 161; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- return leave(s, r0)
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_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()
} } }
-controller_players__P1915.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]}
+ArcadePhysicsEngine_minStep__P62169.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]}
+ArcadePhysicsEngine_minStep__P62169.isGetter = true;
-function controller_players__P1915_mk(s) {
+function ArcadePhysicsEngine_minStep__P62169_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_players__P1915, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_minStep__P62169, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
} }
-function inline__P25047(s) {
+function ArcadePhysicsEngine_maxSpeed__P62168(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16828,36 +14426,230 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(s.arg0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_0);
+ r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["maxVelocity"];
+ s.tmp_2 = r0;
+ r0 = (0 - s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P25047.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
+ArcadePhysicsEngine_maxSpeed__P62168.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]}
-function inline__P25047_mk(s) {
+function ArcadePhysicsEngine_maxSpeed__P62168_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25047, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_maxSpeed__P62168, 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__P60142(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = (0 - s.arg0);
+ return leave(s, r0)
+ default: oops()
+} } }
+Fx_neg__P60142.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]}
+
+function Fx_neg__P60142_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Fx_neg__P60142, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+} }
+
+
+
+
+
+function ArcadePhysicsEngine_maxSpeed__P62167(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62165_VT)) failedCast(r0);
+ r0 = s.arg0.fields["maxVelocity"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + 128);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >> 8);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+ArcadePhysicsEngine_maxSpeed__P62167.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]}
+ArcadePhysicsEngine_maxSpeed__P62167.isGetter = true;
+
+function ArcadePhysicsEngine_maxSpeed__P62167_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: ArcadePhysicsEngine_maxSpeed__P62167, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function PhysicsEngine_constructor__P62152(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+PhysicsEngine_constructor__P62152.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]}
+
+function PhysicsEngine_constructor__P62152_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: PhysicsEngine_constructor__P62152, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+} }
+
+
+
+
+
+function sprites_SpriteMap_constructor__P62087(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+sprites_SpriteMap_constructor__P62087.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]}
+
+function sprites_SpriteMap_constructor__P62087_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: sprites_SpriteMap_constructor__P62087, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function music_Melody_constructor__P61593(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, music_Melody__C61590_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_text"] = (s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+music_Melody_constructor__P61593.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]}
+
+function music_Melody_constructor__P61593_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: music_Melody_constructor__P61593, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
} }
-function controller__player1__P1914(s) {
+function control_pushEventContext__P60390(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16867,71 +14659,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals._players___4119);
+ s.ctx___85233 = undefined;
+ s.n___85239 = undefined;
+ r0 = pxsim_numops_toBoolDecr(globals.eventContexts___63958);
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; }
+ r0 = pxsim_Array__mk();
+ globals.eventContexts___63958 = (r0);
case 1:
- r0 = pxsim_Array__getAt(globals._players___4119, 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__C1920_VT);
- s.tmp_5 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_6 = r0;
- r0 = pxsim_Array__push(s.tmp_6, globals.left___1876);
- r0 = pxsim_Array__push(s.tmp_6, globals.up___1877);
- r0 = pxsim_Array__push(s.tmp_6, globals.right___1878);
- r0 = pxsim_Array__push(s.tmp_6, globals.down___1879);
- r0 = pxsim_Array__push(s.tmp_6, globals.A___1874);
- r0 = pxsim_Array__push(s.tmp_6, globals.B___1875);
- r0 = pxsim_Array__push(s.tmp_6, globals.menu___1880);
- s.tmp_7 = controller_Controller_constructor__P1924_mk(s);
- s.tmp_7.arg0 = s.tmp_5;
- s.tmp_7.arg1 = 1;
- s.tmp_7.arg2 = s.tmp_6;
- s.callLocIdx = 159; s.pc = 5; return s.tmp_7;
+ s.tmp_0 = control_eventContext__P60389_mk(s);
+ s.callLocIdx = 66; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
+ s.ctx___85233 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.ctx___85233);
+ if (!r0) { step = 3; continue; }
+ s.tmp_0 = control_EventContext_unregister__P60383_mk(s);
+ s.tmp_0.arg0 = s.ctx___85233;
+ s.callLocIdx = 67; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
case 3:
case 4:
- r0 = pxsim_Array__getAt(globals._players___4119, 0);
+ r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C60376_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = control_EventContext_constructor__P60380_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 68; s.pc = 7; return s.tmp_1;
+ case 7:
+ r0 = s.retval;
+ s.n___85239 = (s.tmp_0);
+ r0 = pxsim_Array__push(globals.eventContexts___63958, s.n___85239);
+ r0 = s.n___85239;
return leave(s, r0)
default: oops()
} } }
-controller__player1__P1914.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]}
+control_pushEventContext__P60390.info = {"start":7021,"length":340,"line":213,"column":4,"endLine":224,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]}
-function controller__player1__P1914_mk(s) {
+function control_pushEventContext__P60390_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller__player1__P1914, depth: s.depth + 1,
+ parent: s, fn: control_pushEventContext__P60390, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ ctx___85233: undefined,
+ n___85239: undefined,
} }
-function controller_Controller_constructor__P1924(s) {
+function control_EventContext_unregister__P60383(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -16941,120 +14725,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.leftId___25094 = undefined;
- s.i___25102 = undefined;
- s.i___25120 = undefined;
+ s.h___85265 = undefined;
+ s.unnamed132___U1 = undefined;
+ s.unnamed133___U2 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_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; }
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ s.h___85265 = (undefined);
+ r0 = s.arg0.fields["handlers"];
+ s.unnamed132___U1 = (r0);
+ s.unnamed133___U2 = (0);
case 1:
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ s.tmp_0 = r0 = s.unnamed133___U2;
+ r0 = pxsim_Array__length(s.unnamed132___U1);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1);
- r0 = s.arg0.fields["playerIndex"];
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed132___U1, s.unnamed133___U2);
+ s.h___85265 = (r0);
+ s.tmp_2 = control_EventHandler_unregister__P63952_mk(s);
+ s.tmp_2.arg0 = s.h___85265;
+ s.callLocIdx = 62; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.unnamed133___U2 + 1);
+ s.unnamed133___U2 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.unnamed132___U1 = (undefined);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["frameWorker"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
+ r0 = (s.tmp_2 + 1);
s.tmp_1 = r0;
- r0 = (s.tmp_1 * 7);
- s.tmp_0 = r0;
- r0 = (1 + s.tmp_0);
- s.leftId___25094 = (r0);
- s.i___25102 = (0);
- case 2:
- r0 = (s.i___25102 < 7);
+ r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+control_EventContext_unregister__P60383.info = {"start":4432,"length":131,"line":134,"column":8,"endLine":138,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]}
+
+function control_EventContext_unregister__P60383_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: control_EventContext_unregister__P60383, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ h___85265: undefined,
+ unnamed132___U1: undefined,
+ unnamed133___U2: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function control_EventHandler_unregister__P63952(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventHandler__C63950_VT)) failedCast(r0);
+ r0 = s.arg0.fields["src"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT);
+ r0 = s.arg0.fields["value"];
s.tmp_1 = r0;
- s.tmp_2 = controller_Button_constructor__P1906_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = (s.leftId___25094 + s.i___25102);
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = -1;
- s.callLocIdx = 165; 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___25102 + 1);
- s.i___25102 = (r0);
- { step = 2; continue; }
- case 3:
- case 4:
- s.i___25120 = (0);
- case 5:
- s.tmp_1 = r0 = s.i___25120;
- r0 = s.arg0.fields["buttons"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
+ r0 = s.arg0.fields["flags"];
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- r0 = s.arg0.fields["buttons"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.i___25120);
- s.tmp_4 = r0;
- r0 = (s.tmp_4).fields["_owner"] = (s.arg0);
- r0 = (s.i___25120 + 1);
- s.i___25120 = (r0);
- { step = 5; continue; }
- case 6:
- s.tmp_0 = controller_addController__P4120_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 166; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
+ r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P63954, s.tmp_2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Controller_constructor__P1924.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]}
+control_EventHandler_unregister__P63952.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]}
-function controller_Controller_constructor__P1924_mk(s) {
+function control_EventHandler_unregister__P63952_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_constructor__P1924, depth: s.depth + 1,
+ parent: s, fn: control_EventHandler_unregister__P63952, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- leftId___25094: undefined,
- i___25102: undefined,
- i___25120: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function controller_addController__P4120(s) {
+function control_doNothing__P63954(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+control_doNothing__P63954.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]}
+
+function control_doNothing__P63954_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: control_doNothing__P63954, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+} }
+
+
+
+
+
+function control_EventContext_constructor__P60380(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17068,36 +14871,30 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals._players___4119);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
- globals._players___4119 = (r0);
- case 1:
- case 2:
- s.tmp_0 = r0 = globals._players___4119;
- 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.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 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_addController__P4120.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]}
+control_EventContext_constructor__P60380.info = {"start":1740,"length":245,"line":58,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]}
-function controller_addController__P4120_mk(s) {
+function control_EventContext_constructor__P60380_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_addController__P4120, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_constructor__P60380, 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,
} }
@@ -17105,7 +14902,7 @@ function controller_addController__P4120_mk(s) {
-function helpers_arrayFilter__P105(s) {
+function image_getFontForText__P61739(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17115,71 +14912,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.res___27465 = undefined;
- s.len___27467 = undefined;
- s.i___27470 = undefined;
- s.v___27475 = undefined;
+ s.i___82079 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array__mk();
- s.res___27465 = (r0);
- r0 = pxsim_Array__length(s.arg0);
- s.len___27467 = (r0);
- s.i___27470 = (0);
+ s.i___82079 = (0);
case 1:
- r0 = (s.i___27470 < s.len___27467);
+ s.tmp_1 = r0 = s.i___82079;
+ 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_Array__getAt(s.arg0, s.i___27470);
- s.v___27475 = (r0);
- s.tmp_1 = lambda_3_mk(s);
- s.tmp_1.argL = s.arg1;
- s.tmp_1.arg0 = s.v___27475;
- s.tmp_1.arg1 = s.i___27470;
- setupLambda(s.tmp_1, s.tmp_1.argL);
- s.callLocIdx = 7; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_String_.charCodeAt(s.arg0, s.i___82079);
+ 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 = pxsim_Array__push(s.res___27465, s.v___27475);
+ r0 = globals.font12___61738;
+ { step = 5; continue; }
case 2:
case 3:
- r0 = (s.i___27470 + 1);
- s.i___27470 = (r0);
+ r0 = (s.i___82079 + 1);
+ s.i___82079 = (r0);
{ step = 1; continue; }
case 4:
- r0 = s.res___27465;
+ r0 = globals.font8___61737;
+ case 5:
return leave(s, r0)
default: oops()
} } }
-helpers_arrayFilter__P105.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"]}
+image_getFontForText__P61739.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]}
-function helpers_arrayFilter__P105_mk(s) {
+function image_getFontForText__P61739_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayFilter__P105, depth: s.depth + 1,
+ parent: s, fn: image_getFontForText__P61739, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- res___27465: undefined,
- len___27467: undefined,
- i___27470: undefined,
- v___27475: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ i___82079: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function controller__moveSprites__P1919(s) {
+function helpers_imageDrawLine__P61722(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17189,36 +14975,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1 = controller_players__P1915_mk(s);
- s.callLocIdx = 162; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P24842;
- s.callLocIdx = 164; 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.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__P64026_mk(s);
+ s.tmp_2.arg0 = s.arg1;
+ s.tmp_2.arg1 = s.arg2;
+ s.callLocIdx = 92; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
+ s.tmp_1 = r0;
+ s.tmp_4 = helpers_pack__P64026_mk(s);
+ s.tmp_4.arg0 = s.arg3;
+ s.tmp_4.arg1 = s.arg4;
+ s.callLocIdx = 93; 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()
} } }
-controller__moveSprites__P1919.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]}
+helpers_imageDrawLine__P61722.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
-function controller__moveSprites__P1919_mk(s) {
+function helpers_imageDrawLine__P61722_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller__moveSprites__P1919, depth: s.depth + 1,
+ parent: s, fn: helpers_imageDrawLine__P61722, depth: s.depth + 1,
pc: 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 inline__P24842(s) {
+function helpers_pack__P64026(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17230,33 +15040,57 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = controller_Controller___preUpdate__P1944_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 163; s.pc = 1; return s.tmp_0;
+ s.tmp_2 = Math_clamp__P60114_mk(s);
+ s.tmp_2.arg0 = -30000;
+ s.tmp_2.arg1 = 30000;
+ r0 = (s.arg0 | 0);
+ s.tmp_2.arg2 = r0;
+ s.callLocIdx = 87; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 & 65535);
+ s.tmp_0 = r0;
+ s.tmp_5 = Math_clamp__P60114_mk(s);
+ s.tmp_5.arg0 = -30000;
+ s.tmp_5.arg1 = 30000;
+ r0 = (s.arg1 | 0);
+ s.tmp_5.arg2 = r0;
+ s.callLocIdx = 88; s.pc = 2; return s.tmp_5;
+ case 2:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 << 16);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_0 | s.tmp_3);
return leave(s, r0)
default: oops()
} } }
-inline__P24842.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
+helpers_pack__P64026.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
-function inline__P24842_mk(s) {
+function helpers_pack__P64026_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24842, depth: s.depth + 1,
+ parent: s, fn: helpers_pack__P64026, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function controller_Controller___preUpdate__P1944(s) {
+function Sprite_setFlag__P62071(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17266,554 +15100,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.deadSprites___24849 = undefined;
- s.svx___24850 = undefined;
- s.svy___24851 = undefined;
- s.svxInCricle___24886 = undefined;
- s.svyInCircle___24888 = undefined;
- s.sq___24890 = undefined;
- s.scale___24905 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- s.tmp_3 = controller_Controller__controlledSprites__P1925_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 174; s.pc = 18; return s.tmp_3;
- case 18:
- r0 = s.retval;
+ if (!checkSubtype(r0, Sprite__C62008_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 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = (s.tmp_2 | s.arg1);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 17; continue; }
+ r0 = (s.tmp_0).fields["flags"] = (s.tmp_1);
+ { step = 2; continue; }
case 1:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["flags"];
+ s.tmp_4 = r0;
+ r0 = (~ s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (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 = pxsim_pxtrt.mklocRef();
- s.deadSprites___24849 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.deadSprites___24849, false);
- r0 = pxsim_pxtrt.mklocRef();
- s.svx___24850 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.svx___24850, 0);
- r0 = pxsim_pxtrt.mklocRef();
- s.svy___24851 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.svy___24851, 0);
- r0 = s.arg0.fields["analog"];
+ r0 = (s.arg1 === 512);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = r0 = s.svx___24850;
- s.tmp_5 = controller_Button_pressureLevel__P1910_mk(s);
- s.tmp_6 = controller_Controller_right__P1930_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 175; s.pc = 20; return s.tmp_6;
- case 20:
- r0 = s.retval;
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 176; s.pc = 19; return s.tmp_5;
- case 19:
- r0 = s.retval;
- s.tmp_4 = r0;
- s.tmp_8 = controller_Button_pressureLevel__P1910_mk(s);
- s.tmp_9 = controller_Controller_left__P1929_mk(s);
- s.tmp_9.arg0 = s.arg0;
- s.callLocIdx = 177; s.pc = 22; return s.tmp_9;
- case 22:
- r0 = s.retval;
- s.tmp_8.arg0 = r0;
- s.callLocIdx = 178; 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___24851;
- s.tmp_4 = controller_Button_pressureLevel__P1910_mk(s);
- s.tmp_5 = controller_Controller_down__P1932_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 179; s.pc = 24; return s.tmp_5;
- case 24:
- r0 = s.retval;
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 180; s.pc = 23; return s.tmp_4;
- case 23:
- r0 = s.retval;
- s.tmp_3 = r0;
- s.tmp_7 = controller_Button_pressureLevel__P1910_mk(s);
- s.tmp_8 = controller_Controller_up__P1931_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.callLocIdx = 181; s.pc = 26; return s.tmp_8;
- case 26:
- r0 = s.retval;
- s.tmp_7.arg0 = r0;
- s.callLocIdx = 182; s.pc = 25; return s.tmp_7;
- case 25:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_3 - s.tmp_6);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 >> 1);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- { step = 12; continue; }
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
case 3:
- s.tmp_1 = controller_Button__C1900_v0_1_mk(s);
- s.tmp_2 = controller_Controller_right__P1930_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 183; 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__C1900_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed;
- s.pc = 27; return s.tmp_1;
- case 27:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- r0 = 256;
- { step = 5; continue; }
+ r0 = s.arg0.fields["sayBubbleSprite"];
case 4:
- r0 = 0;
- case 5:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.tmp_5 = controller_Button__C1900_v0_1_mk(s);
- s.tmp_6 = controller_Controller_left__P1929_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 184; 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__C1900_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___24850;
- 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__C1900_v0_1_mk(s);
- s.tmp_2 = controller_Controller_down__P1932_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 185; 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__C1900_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__C1900_v0_1_mk(s);
- s.tmp_6 = controller_Controller_up__P1931_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 186; 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__C1900_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___24851;
- 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___24886 = (r0);
- s.tmp_0 = r0 = s.svxInCricle___24886;
- r0 = pxsim_pxtrt_ldlocRef(s.svx___24850);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt.mklocRef();
- s.svyInCircle___24888 = (r0);
- s.tmp_0 = r0 = s.svyInCircle___24888;
- r0 = pxsim_pxtrt_ldlocRef(s.svy___24851);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt_ldlocRef(s.svx___24850);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.svx___24850);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 * s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.svy___24851);
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.svy___24851);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 * s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_0 + s.tmp_3);
- s.sq___24890 = (r0);
- r0 = (s.sq___24890 > 65536);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- r0 = (65536 / s.sq___24890);
- s.tmp_1 = r0;
- r0 = pxsim.Math_.sqrt(s.tmp_1);
- s.scale___24905 = (r0);
- s.tmp_0 = r0 = s.svxInCricle___24886;
- s.tmp_3 = r0 = s.scale___24905;
- r0 = pxsim_pxtrt_ldlocRef(s.svx___24850);
- 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___24888;
- s.tmp_3 = r0 = s.scale___24905;
- r0 = pxsim_pxtrt_ldlocRef(s.svy___24851);
- s.tmp_4 = r0;
- r0 = (s.tmp_3 * s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- case 13:
- case 14:
- r0 = pxsim_pxtcore_mkAction(5, inline__P24923);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___24849);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___24850);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___24851);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___24886);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___24888);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_2 = controller_Controller__controlledSprites__P1925_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 187; 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 = 195; s.pc = 35; return s.tmp_1;
- case 35:
- r0 = s.retval;
- r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___24849);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_1 = controller_Controller__controlledSprites__P1926_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_2 = helpers_arrayFilter__P105_mk(s);
- s.tmp_3 = controller_Controller__controlledSprites__P1925_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 196; s.pc = 39; return s.tmp_3;
- case 39:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = inline__P24980;
- s.callLocIdx = 197; s.pc = 38; return s.tmp_2;
- case 38:
- r0 = s.retval;
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 198; 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()
-} } }
-controller_Controller___preUpdate__P1944.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]}
-
-function controller_Controller___preUpdate__P1944_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: controller_Controller___preUpdate__P1944, depth: s.depth + 1,
- pc: 0, retval: undefined, 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___24849: undefined,
- svx___24850: undefined,
- svy___24851: undefined,
- svxInCricle___24886: undefined,
- svyInCircle___24888: undefined,
- sq___24890: undefined,
- scale___24905: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P24923(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.s___24926 = undefined;
- s.vx___24927 = undefined;
- s.vy___24928 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = if_s_1_mk(s);
- s.tmp_1 = r0 = s.arg0;
- s.tmp_0.arg0 = r0;
- if (!s.tmp_0.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s");
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"];
- if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; }
- else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); }
- else { s.callLocIdx = 188; s.pc = 22; return s.tmp_0; }
- }
- case 22:
- r0 = s.retval;
- s.s___24926 = (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 = 189; s.pc = 23; return s.tmp_2; }
- }
- case 23:
- r0 = s.retval;
- s.vx___24927 = (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 = 190; s.pc = 24; return s.tmp_3; }
- }
- case 24:
+ s.tmp_2.arg1 = 512;
+ s.tmp_2.arg2 = s.arg2;
+ s.callLocIdx = 416; s.pc = 7; return s.tmp_2;
+ case 7:
r0 = s.retval;
- s.vy___24928 = (r0);
- r0 = s.s___24926.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___24927);
- if (!r0) { step = 3; continue; }
- r0 = (s.s___24926).fields["_vx"] = (0);
- case 3:
- case 4:
- r0 = pxsim_numops_toBoolDecr(s.vy___24928);
- if (!r0) { step = 5; continue; }
- r0 = (s.s___24926).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___24927;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 11; continue; }
- r0 = s.tmp_2;
- { step = 12; continue; }
- case 11:
- r0 = s.vy___24928;
- 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___24926;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
- s.tmp_6 = r0;
- r0 = pxsim.Math_.imul(s.tmp_6, s.vx___24927);
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5);
- s.tmp_0 = r0 = s.s___24926;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
- s.tmp_2 = r0;
- r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24928);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1);
- { step = 18; continue; }
- case 13:
- r0 = pxsim_numops_toBoolDecr(s.vx___24927);
- if (!r0) { step = 14; continue; }
- s.tmp_0 = r0 = s.s___24926;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_2 = r0;
- r0 = pxsim.Math_.imul(s.tmp_2, s.vx___24927);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1);
- { step = 17; continue; }
- case 14:
- r0 = pxsim_numops_toBoolDecr(s.vy___24928);
- if (!r0) { step = 15; continue; }
- s.tmp_0 = r0 = s.s___24926;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
- s.tmp_2 = r0;
- r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24928);
- 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()
} } }
-inline__P24923.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]}
+Sprite_setFlag__P62071.info = {"start":23807,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]}
-function inline__P24923_mk(s) {
+function Sprite_setFlag__P62071_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P24923, depth: s.depth + 1,
+ parent: s, fn: Sprite_setFlag__P62071, depth: s.depth + 1,
pc: 0, retval: undefined, 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___24926: undefined,
- vx___24927: undefined,
- vy___24928: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P24980(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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"];
- 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()
-} } }
-inline__P24980.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]}
-
-function inline__P24980_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P24980, 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 controller_Controller_down__P1932(s) {
+function tileworld_Project_getWorldBackgrounds__P63685(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17828,25 +15192,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_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)
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_backgrounds"];
+ return leave(s, r0)
default: oops()
} } }
-controller_Controller_down__P1932.info = {"start":9528,"length":77,"line":312,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]}
-controller_Controller_down__P1932.isGetter = true;
+tileworld_Project_getWorldBackgrounds__P63685.info = {"start":2871,"length":78,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"project.ts","functionName":"getWorldBackgrounds","argumentNames":["this"]}
-function controller_Controller_down__P1932_mk(s) {
+function tileworld_Project_getWorldBackgrounds__P63685_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_down__P1932, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getWorldBackgrounds__P63685, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
} }
@@ -17854,7 +15211,7 @@ function controller_Controller_down__P1932_mk(s) {
-function controller_Controller_button__P4121(s) {
+function tileworld_RuleVisualsBase_drawImage__P72688(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17867,36 +15224,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, controller_Controller__C1920_VT)) failedCast(r0);
- r0 = s.arg0.fields["buttons"];
- s.tmp_0 = r0;
- r0 = (s.arg1 - 1);
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = r0 = globals.screen___61794;
+ s.tmp_1 = r0 = s.arg3;
+ r0 = (s.arg1 << 4);
+ s.tmp_2 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_4 = r0;
+ r0 = (6 + s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Controller_button__P4121.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]}
+tileworld_RuleVisualsBase_drawImage__P72688.info = {"start":4359,"length":136,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImage","argumentNames":["this","c","r","img"]}
-function controller_Controller_button__P4121_mk(s) {
+function tileworld_RuleVisualsBase_drawImage__P72688_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_button__P4121, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_drawImage__P72688, depth: s.depth + 1,
pc: 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 controller_Controller_up__P1931(s) {
+function helpers_imagePrint__P61752(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -17906,120 +15275,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.x0___86507 = undefined;
+ s.cp___86509 = undefined;
+ s.mult___86510 = undefined;
+ s.dataW___86515 = undefined;
+ s.dataH___86521 = undefined;
+ s.byteHeight___86527 = undefined;
+ s.charSize___86533 = undefined;
+ s.dataSize___86537 = undefined;
+ s.fontdata___86541 = undefined;
+ s.lastchar___86544 = undefined;
+ s.imgBuf___86551 = undefined;
+ s.xOffset___86575 = undefined;
+ s.yOffset___86576 = undefined;
+ s.ch___86591 = undefined;
+ s.l___86610 = undefined;
+ s.r___86611 = undefined;
+ s.off___86613 = undefined;
+ s.guess___86614 = undefined;
+ s.m___86633 = undefined;
+ s.v___86642 = undefined;
+ s.i___86698 = undefined;
+ s.j___86703 = undefined;
+ s.mask___86704 = undefined;
+ s.c___86705 = undefined;
+ s.n___86722 = 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, controller_Controller__C1920_VT)) failedCast(r0);
- r0 = s.arg0.fields["buttons"];
+ 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 = (2 - 1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = image_getFontForText__P61739_mk(s);
+ s.tmp_2.arg0 = s.arg1;
+ s.callLocIdx = 108; s.pc = 39; return s.tmp_2;
+ case 39:
+ r0 = s.retval;
+ s.arg5 = (r0);
+ case 1:
+ case 2:
+ r0 = pxsim_numops_toBoolDecr(s.arg4);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
- return leaveAccessor(s, r0)
- default: oops()
-} } }
-controller_Controller_up__P1931.info = {"start":9376,"length":73,"line":304,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]}
-controller_Controller_up__P1931.isGetter = true;
-
-function controller_Controller_up__P1931_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: controller_Controller_up__P1931, 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__P1930(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.arg4 = (1);
+ case 3:
+ case 4:
+ s.x0___86507 = (s.arg2);
+ s.cp___86509 = (0);
+ s.tmp_1 = if_multiplier_1_mk(s);
+ s.tmp_1.arg0 = s.arg5;
+ if (!s.tmp_1.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier");
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"];
+ if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; }
+ else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
+ else { s.callLocIdx = 109; s.pc = 40; return s.tmp_1; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- r0 = s.arg0.fields["buttons"];
+ case 40:
+ r0 = s.retval;
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__P1930.info = {"start":9220,"length":79,"line":296,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]}
-controller_Controller_right__P1930.isGetter = true;
-
-function controller_Controller_right__P1930_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: controller_Controller_right__P1930, 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__P1929(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = if_multiplier_1_mk(s);
+ s.tmp_2.arg0 = s.arg5;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier");
+ } else {
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"];
+ if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; }
+ else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
+ else { s.callLocIdx = 110; s.pc = 41; return s.tmp_2; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- r0 = s.arg0.fields["buttons"];
+ case 41:
+ r0 = s.retval;
+ { step = 6; continue; }
+ case 5:
+ r0 = 1;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.mult___86510 = (s.tmp_3);
+ s.tmp_1 = if_charWidth_1_mk(s);
+ s.tmp_1.arg0 = s.arg5;
+ if (!s.tmp_1.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth");
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"];
+ if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; }
+ else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
+ else { s.callLocIdx = 111; s.pc = 42; return s.tmp_1; }
+ }
+ case 42:
+ r0 = s.retval;
s.tmp_0 = r0;
- r0 = (1 - 1);
+ r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___86510);
+ s.dataW___86515 = (r0);
+ s.tmp_1 = if_charHeight_1_mk(s);
+ s.tmp_1.arg0 = s.arg5;
+ if (!s.tmp_1.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight");
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"];
+ if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; }
+ else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
+ else { s.callLocIdx = 112; s.pc = 43; return s.tmp_1; }
+ }
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___86510);
+ s.dataH___86521 = (r0);
+ r0 = (s.dataH___86521 + 7);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 3);
+ s.byteHeight___86527 = (r0);
+ r0 = (s.byteHeight___86527 * s.dataW___86515);
+ s.charSize___86533 = (r0);
+ r0 = (2 + s.charSize___86533);
+ s.dataSize___86537 = (r0);
+ s.tmp_0 = if_data_1_mk(s);
+ s.tmp_0.arg0 = s.arg5;
+ if (!s.tmp_0.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data");
+ } else {
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"];
+ if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; }
+ else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); }
+ else { s.callLocIdx = 113; s.pc = 44; return s.tmp_0; }
+ }
+ case 44:
+ r0 = s.retval;
+ s.fontdata___86541 = (r0);
+ r0 = pxsim.BufferMethods.length(s.fontdata___86541);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
- return leaveAccessor(s, r0)
+ r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___86537);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 - 1);
+ s.lastchar___86544 = (r0);
+ r0 = (s.mult___86510 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = (8 + s.charSize___86533);
+ s.tmp_1 = r0;
+ r0 = pxsim.control.createBuffer(s.tmp_1);
+ s.imgBuf___86551 = (r0);
+ r0 = pxsim.BufferMethods.setByte(s.imgBuf___86551, 0, 135);
+ r0 = pxsim.BufferMethods.setByte(s.imgBuf___86551, 1, 1);
+ r0 = pxsim.BufferMethods.setByte(s.imgBuf___86551, 2, s.dataW___86515);
+ r0 = pxsim.BufferMethods.setByte(s.imgBuf___86551, 4, s.dataH___86521);
+ case 7:
+ case 8:
+ case 9:
+ s.tmp_1 = r0 = s.cp___86509;
+ 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___86575 = (0);
+ s.yOffset___86576 = (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___86509;
+ r0 = pxsim_Array__length(s.arg6);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 12; continue; }
+ s.tmp_4 = if_xOffset_1_mk(s);
+ r0 = pxsim_Array__getAt(s.arg6, s.cp___86509);
+ s.tmp_4.arg0 = r0;
+ if (!s.tmp_4.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset");
+ } else {
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"];
+ if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; }
+ else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); }
+ else { s.callLocIdx = 114; s.pc = 45; return s.tmp_4; }
+ }
+ case 45:
+ r0 = s.retval;
+ s.xOffset___86575 = (r0);
+ s.tmp_0 = if_yOffset_1_mk(s);
+ r0 = pxsim_Array__getAt(s.arg6, s.cp___86509);
+ s.tmp_0.arg0 = r0;
+ if (!s.tmp_0.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset");
+ } else {
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"];
+ if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; }
+ else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); }
+ else { s.callLocIdx = 115; s.pc = 46; return s.tmp_0; }
+ }
+ case 46:
+ r0 = s.retval;
+ s.yOffset___86576 = (r0);
+ case 12:
+ case 13:
+ s.tmp_0 = r0 = s.cp___86509;
+ r0 = (s.tmp_0 + 1);
+ s.cp___86509 = (r0);
+ r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0);
+ s.ch___86591 = (r0);
+ r0 = (s.ch___86591 == 10);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ s.tmp_1 = r0 = s.arg3;
+ s.tmp_4 = if_charHeight_1_mk(s);
+ s.tmp_4.arg0 = s.arg5;
+ if (!s.tmp_4.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight");
+ } else {
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"];
+ if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; }
+ else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); }
+ else { s.callLocIdx = 116; s.pc = 47; return s.tmp_4; }
+ }
+ case 47:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 + s.tmp_2);
+ s.arg3 = (r0);
+ s.arg2 = (s.x0___86507);
+ case 14:
+ case 15:
+ r0 = (s.ch___86591 < 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___86610 = (0);
+ s.r___86611 = (s.lastchar___86544);
+ s.off___86613 = (0);
+ r0 = (s.ch___86591 - 32);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 * s.dataSize___86537);
+ s.guess___86614 = (r0);
+ r0 = pxsim.BufferMethods.getNumber(s.fontdata___86541, 4, s.guess___86614);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.ch___86591);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 18; continue; }
+ s.off___86613 = (s.guess___86614);
+ { step = 25; continue; }
+ case 18:
+ case 19:
+ r0 = (s.l___86610 <= s.r___86611);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 24; continue; }
+ s.tmp_1 = r0 = s.l___86610;
+ r0 = (s.r___86611 - s.l___86610);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 + s.tmp_2);
+ s.m___86633 = (r0);
+ s.tmp_0 = r0 = s.fontdata___86541;
+ r0 = (s.m___86633 * s.dataSize___86537);
+ s.tmp_1 = r0;
+ r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1);
+ s.v___86642 = (r0);
+ r0 = (s.v___86642 == s.ch___86591);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 20; continue; }
+ r0 = (s.m___86633 * s.dataSize___86537);
+ s.off___86613 = (r0);
+ { step = 24; continue; }
+ case 20:
+ case 21:
+ r0 = (s.v___86642 < s.ch___86591);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 22; continue; }
+ r0 = (s.m___86633 + 1);
+ s.l___86610 = (r0);
+ { step = 23; continue; }
+ case 22:
+ r0 = (s.m___86633 - 1);
+ s.r___86611 = (r0);
+ case 23:
+ { step = 19; continue; }
+ case 24:
+ case 25:
+ r0 = (s.mult___86510 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 26; continue; }
+ s.tmp_1 = r0 = s.imgBuf___86551;
+ s.tmp_3 = r0 = s.fontdata___86541;
+ r0 = (s.off___86613 + 2);
+ s.tmp_4 = r0;
+ r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___86533);
+ s.tmp_2 = r0;
+ r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2);
+ s.tmp_0 = helpers_imageDrawIcon__P61719_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.imgBuf___86551;
+ r0 = (s.arg2 + s.xOffset___86575);
+ s.tmp_0.arg2 = r0;
+ r0 = (s.arg3 + s.yOffset___86576);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.arg4;
+ s.callLocIdx = 117; s.pc = 48; return s.tmp_0;
+ case 48:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg2;
+ s.tmp_2 = if_charWidth_1_mk(s);
+ s.tmp_2.arg0 = s.arg5;
+ if (!s.tmp_2.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth");
+ } else {
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"];
+ if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; }
+ else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
+ else { s.callLocIdx = 118; s.pc = 49; return s.tmp_2; }
+ }
+ case 49:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.arg2 = (r0);
+ { step = 37; continue; }
+ case 26:
+ r0 = (s.off___86613 + 2);
+ s.off___86613 = (r0);
+ s.i___86698 = (0);
+ case 27:
+ r0 = (s.i___86698 < s.dataW___86515);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 36; continue; }
+ s.j___86703 = (0);
+ s.mask___86704 = (1);
+ s.tmp_0 = r0 = s.off___86613;
+ r0 = (s.tmp_0 + 1);
+ s.off___86613 = (r0);
+ r0 = pxsim.BufferMethods.getByte(s.fontdata___86541, s.tmp_0);
+ s.c___86705 = (r0);
+ case 28:
+ r0 = (s.j___86703 < s.dataH___86521);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 35; continue; }
+ r0 = (s.mask___86704 == 256);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 29; continue; }
+ s.tmp_2 = r0 = s.off___86613;
+ r0 = (s.tmp_2 + 1);
+ s.off___86613 = (r0);
+ r0 = pxsim.BufferMethods.getByte(s.fontdata___86541, s.tmp_2);
+ s.c___86705 = (r0);
+ s.mask___86704 = (1);
+ case 29:
+ case 30:
+ s.n___86722 = (0);
+ case 31:
+ r0 = (s.c___86705 & s.mask___86704);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 32; continue; }
+ r0 = (s.n___86722 + 1);
+ s.n___86722 = (r0);
+ r0 = (s.mask___86704 << 1);
+ s.mask___86704 = (r0);
+ { step = 31; continue; }
+ case 32:
+ r0 = pxsim_numops_toBoolDecr(s.n___86722);
+ if (!r0) { step = 33; continue; }
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = r0 = s.arg2;
+ r0 = (s.xOffset___86575 * s.mult___86510);
+ 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___86703 + s.yOffset___86576);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 * s.mult___86510);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 + s.tmp_4);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.mult___86510;
+ r0 = (s.mult___86510 * s.n___86722);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = s.arg4;
+ s.callLocIdx = 119; s.pc = 50; return s.tmp_0;
+ case 50:
+ r0 = s.retval;
+ r0 = (s.j___86703 + s.n___86722);
+ s.j___86703 = (r0);
+ { step = 34; continue; }
+ case 33:
+ r0 = (s.mask___86704 << 1);
+ s.mask___86704 = (r0);
+ r0 = (s.j___86703 + 1);
+ s.j___86703 = (r0);
+ case 34:
+ { step = 28; continue; }
+ case 35:
+ r0 = (s.arg2 + s.mult___86510);
+ s.arg2 = (r0);
+ r0 = (s.i___86698 + 1);
+ s.i___86698 = (r0);
+ { step = 27; continue; }
+ case 36:
+ case 37:
+ { step = 9; continue; }
+ case 38:
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-controller_Controller_left__P1929.info = {"start":9063,"length":77,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]}
-controller_Controller_left__P1929.isGetter = true;
+helpers_imagePrint__P61752.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 controller_Controller_left__P1929_mk(s) {
+function helpers_imagePrint__P61752_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_left__P1929, depth: s.depth + 1,
+ parent: s, fn: helpers_imagePrint__P61752, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ x0___86507: undefined,
+ cp___86509: undefined,
+ mult___86510: undefined,
+ dataW___86515: undefined,
+ dataH___86521: undefined,
+ byteHeight___86527: undefined,
+ charSize___86533: undefined,
+ dataSize___86537: undefined,
+ fontdata___86541: undefined,
+ lastchar___86544: undefined,
+ imgBuf___86551: undefined,
+ xOffset___86575: undefined,
+ yOffset___86576: undefined,
+ ch___86591: undefined,
+ l___86610: undefined,
+ r___86611: undefined,
+ off___86613: undefined,
+ guess___86614: undefined,
+ m___86633: undefined,
+ v___86642: undefined,
+ i___86698: undefined,
+ j___86703: undefined,
+ mask___86704: undefined,
+ c___86705: undefined,
+ n___86722: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+ arg6: undefined,
} }
-function controller_Controller__controlledSprites__P1926(s) {
+function helpers_imageDrawIcon__P61719(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18032,42 +15787,48 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- s.tmp_1 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 168; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_1 = r0 = s.arg1;
+ s.tmp_3 = helpers_pack__P64026_mk(s);
+ s.tmp_3.arg0 = s.arg2;
+ s.tmp_3.arg1 = s.arg3;
+ s.callLocIdx = 89; s.pc = 1; return s.tmp_3;
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 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Controller__controlledSprites__P1926.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]}
+helpers_imageDrawIcon__P61719.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
-function controller_Controller__controlledSprites__P1926_mk(s) {
+function helpers_imageDrawIcon__P61719_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller__controlledSprites__P1926, depth: s.depth + 1,
+ parent: s, fn: helpers_imageDrawIcon__P61719, depth: s.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 controller_Controller__controlledSprites__P1925(s) {
+function helpers_imageFillRect__P61720(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18079,41 +15840,58 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
- s.tmp_1 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 167; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = helpers_pack__P64026_mk(s);
+ s.tmp_2.arg0 = s.arg1;
+ s.tmp_2.arg1 = s.arg2;
+ s.callLocIdx = 90; s.pc = 1; return s.tmp_2;
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)
+ s.tmp_1 = r0;
+ s.tmp_4 = helpers_pack__P64026_mk(s);
+ s.tmp_4.arg0 = s.arg3;
+ s.tmp_4.arg1 = s.arg4;
+ s.callLocIdx = 91; 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()
} } }
-controller_Controller__controlledSprites__P1925.info = {"start":8555,"length":132,"line":268,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]}
-controller_Controller__controlledSprites__P1925.isGetter = true;
+helpers_imageFillRect__P61720.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
-function controller_Controller__controlledSprites__P1925_mk(s) {
+function helpers_imageFillRect__P61720_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller__controlledSprites__P1925, depth: s.depth + 1,
+ parent: s, fn: helpers_imageFillRect__P61720, depth: s.depth + 1,
pc: 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 controller_Button_pressureLevel__P1910(s) {
+function tileworld_Project_saveHelp__P63701(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18128,50 +15906,55 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
- r0 = pxsim.control.deviceDalVersion();
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == "sim");
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["help"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_3 = controller_Button__C1900_v0_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, controller_Button__C1900_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed;
- s.pc = 6; return s.tmp_3;
- case 6:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 1; continue; }
- r0 = 512;
+ r0 = 1;
{ step = 2; continue; }
case 1:
r0 = 0;
case 2:
// jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = settings_writeNumber__P61821_mk(s);
+ r0 = s.arg0.fields["prefix"];
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; }
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
case 4:
- r0 = undefined;
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ if ((globals.HelpKey___68339) && (globals.HelpKey___68339).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(globals.HelpKey___68339);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.HelpKey___68339) + ""; }
case 5:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 193; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Button_pressureLevel__P1910.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]}
+tileworld_Project_saveHelp__P63701.info = {"start":5551,"length":103,"line":157,"column":8,"endLine":159,"endColumn":9,"fileName":"project.ts","functionName":"saveHelp","argumentNames":["this"]}
-function controller_Button_pressureLevel__P1910_mk(s) {
+function tileworld_Project_saveHelp__P63701_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_pressureLevel__P1910, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_saveHelp__P63701, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -18186,7 +15969,7 @@ function controller_Button_pressureLevel__P1910_mk(s) {
-function controller_Button_isPressed__P1909(s) {
+function settings_writeNumber__P61821(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18198,29 +15981,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, controller_Button__C1900_VT)) failedCast(r0);
- r0 = s.arg0.fields["_pressed"];
+ r0 = pxsim_Array__mk();
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg1);
+ s.tmp_1 = settings_writeBuffer__P61819_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_2 = msgpack_packNumberArray__P60169_mk(s);
+ s.tmp_2.arg0 = s.tmp_0;
+ s.callLocIdx = 133; s.pc = 2; return s.tmp_2;
+ case 2:
+ r0 = s.retval;
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 134; s.pc = 1; return s.tmp_1;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller_Button_isPressed__P1909.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]}
+settings_writeNumber__P61821.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]}
-function controller_Button_isPressed__P1909_mk(s) {
+function settings_writeNumber__P61821_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_isPressed__P1909, depth: s.depth + 1,
+ parent: s, fn: settings_writeNumber__P61821, 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_imul__P153(s) {
+function settings_writeBuffer__P61819(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18235,17 +16035,26 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim.Math_.imul(s.arg0, s.arg1);
+ r0 = pxsim.settings._set(s.arg0, s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim.settings._userClean();
+ r0 = pxsim_pxtrt.panic(920);
+ case 1:
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_imul__P153.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]}
+settings_writeBuffer__P61819.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_imul__P153_mk(s) {
+function settings_writeBuffer__P61819_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_imul__P153, depth: s.depth + 1,
+ parent: s, fn: settings_writeBuffer__P61819, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -18254,7 +16063,7 @@ function Fx_imul__P153_mk(s) {
-function power_checkDeepSleep__P1703(s) {
+function msgpack_packNumberArray__P60169(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18264,94 +16073,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___24242 = undefined;
- s.to___24245 = undefined;
- s.tmp_0 = power_init__P4020_mk(s);
- s.callLocIdx = 86; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = r0 = globals._poked___4018;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ s.off___87231 = undefined;
+ s.n___87233 = undefined;
+ s.unnamed124___U2 = undefined;
+ s.unnamed125___U3 = undefined;
+ s.buf___87243 = undefined;
+ s.n___87249 = undefined;
+ s.unnamed126___U6 = undefined;
+ s.unnamed127___U7 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.off___87231 = (0);
+ s.n___87233 = (undefined);
+ s.unnamed124___U2 = (s.arg0);
+ s.unnamed125___U3 = (0);
case 1:
- r0 = 0;
- case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.p___24242 = (s.tmp_1);
- s.tmp_0 = r0 = globals._timeout___4019;
- 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_0 = r0 = s.unnamed125___U3;
+ r0 = pxsim_Array__length(s.unnamed124___U2);
s.tmp_1 = r0;
- s.to___24245 = (s.tmp_1);
- r0 = (s.to___24245 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed124___U2, s.unnamed125___U3);
+ s.n___87233 = (r0);
+ s.tmp_2 = r0 = s.off___87231;
+ s.tmp_4 = msgpack_packNumberCore__P63899_mk(s);
+ s.tmp_4.arg0 = null;
+ s.tmp_4.arg1 = s.off___87231;
+ s.tmp_4.arg2 = s.n___87233;
+ s.callLocIdx = 23; s.pc = 5; return s.tmp_4;
case 5:
- r0 = pxsim.control.millis();
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.p___24242);
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
+ s.off___87231 = (r0);
+ r0 = (s.unnamed125___U3 + 1);
+ s.unnamed125___U3 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.unnamed124___U2 = (undefined);
+ r0 = pxsim.control.createBuffer(s.off___87231);
+ s.buf___87243 = (r0);
+ s.off___87231 = (0);
+ s.n___87249 = (undefined);
+ s.unnamed126___U6 = (s.arg0);
+ s.unnamed127___U7 = (0);
+ case 3:
+ s.tmp_0 = r0 = s.unnamed127___U7;
+ r0 = pxsim_Array__length(s.unnamed126___U6);
s.tmp_1 = r0;
- r0 = (s.tmp_1 > s.to___24245);
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed126___U6, s.unnamed127___U7);
+ s.n___87249 = (r0);
+ s.tmp_2 = r0 = s.off___87231;
+ s.tmp_4 = msgpack_packNumberCore__P63899_mk(s);
+ s.tmp_4.arg0 = s.buf___87243;
+ s.tmp_4.arg1 = s.off___87231;
+ s.tmp_4.arg2 = s.n___87249;
+ s.callLocIdx = 24; s.pc = 6; return s.tmp_4;
case 6:
- // jmp value (already in r0)
+ r0 = s.retval;
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;
+ r0 = (s.tmp_2 + s.tmp_3);
+ s.off___87231 = (r0);
+ r0 = (s.unnamed127___U7 + 1);
+ s.unnamed127___U7 = (r0);
+ { step = 3; continue; }
+ case 4:
+ s.unnamed126___U6 = (undefined);
+ r0 = s.buf___87243;
return leave(s, r0)
default: oops()
} } }
-power_checkDeepSleep__P1703.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]}
+msgpack_packNumberArray__P60169.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]}
-function power_checkDeepSleep__P1703_mk(s) {
+function msgpack_packNumberArray__P60169_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: power_checkDeepSleep__P1703, depth: s.depth + 1,
+ parent: s, fn: msgpack_packNumberArray__P60169, depth: s.depth + 1,
pc: 0, retval: undefined, 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___24242: undefined,
- to___24245: undefined,
+ off___87231: undefined,
+ n___87233: undefined,
+ unnamed124___U2: undefined,
+ unnamed125___U3: undefined,
+ buf___87243: undefined,
+ n___87249: undefined,
+ unnamed126___U6: undefined,
+ unnamed127___U7: undefined,
+ arg0: undefined,
} }
-function power_init__P4020(s) {
+function msgpack_packNumberCore__P63899(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18361,54 +16184,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = (globals._timeout___4019 !== undefined);
+ s.tag___87263 = undefined;
+ s.fmt___87306 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ s.tag___87263 = (203);
+ s.tmp_1 = r0 = s.arg2;
+ r0 = (s.arg2 << 0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 == s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 7; 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:
- r0 = pxsim_pxtcore.getConfig(212, -1);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 * 1000);
- globals._timeout___4019 = (r0);
- r0 = (globals._timeout___4019 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ // 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_0;
+ r0 = s.tmp_6;
{ step = 4; continue; }
case 3:
- r0 = (globals._timeout___4019 < 300000);
+ r0 = (s.arg2 <= 127);
case 4:
// jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ 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; }
- globals._timeout___4019 = (300000);
+ 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 = undefined;
+ 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 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 8; continue; }
+ s.tag___87263 = (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___87263 = (205);
+ { step = 10; continue; }
+ case 9:
+ s.tag___87263 = (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___87263 = (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___87263 = (209);
+ { step = 15; continue; }
+ case 14:
+ s.tag___87263 = (210);
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ s.tmp_0 = msgpack_tagFormat__P63898_mk(s);
+ s.tmp_0.arg0 = s.tag___87263;
+ s.callLocIdx = 19; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.fmt___87306 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ if (!r0) { step = 21; continue; }
+ r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___87263);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_1 = r0 = s.fmt___87306;
+ 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__P60160_mk(s);
+ s.tmp_1.arg0 = s.fmt___87306;
+ s.callLocIdx = 20; 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()
} } }
-power_init__P4020.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]}
+msgpack_packNumberCore__P63899.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 power_init__P4020_mk(s) {
+function msgpack_packNumberCore__P63899_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: power_init__P4020, depth: s.depth + 1,
+ parent: s, fn: msgpack_packNumberCore__P63899, depth: s.depth + 1,
pc: 0, retval: undefined, 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___87263: undefined,
+ fmt___87306: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function power_poke__P1702(s) {
+function msgpack_tagFormat__P63898(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18418,31 +16341,72 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = power_init__P4020_mk(s);
- s.callLocIdx = 85; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0);
+ if (r0) { step = 2; continue; }
+ r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0);
+ if (r0) { step = 4; continue; }
+ r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0);
+ if (r0) { step = 6; continue; }
+ r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
case 1:
- r0 = s.retval;
- r0 = pxsim.control.millis();
- globals._poked___4018 = (r0);
+ 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()
} } }
-power_poke__P1702.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]}
+msgpack_tagFormat__P63898.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]}
-function power_poke__P1702_mk(s) {
+function msgpack_tagFormat__P63898_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: power_poke__P1702, depth: s.depth + 1,
+ parent: s, fn: msgpack_tagFormat__P63898, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ arg0: undefined,
} }
-function control_EventContext_deltaTime__P386(s) {
+function pins_sizeOf__P60160(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18456,21 +16420,20 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0);
- r0 = s.arg0.fields["deltaTimeMillis"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 / 1000);
- return leaveAccessor(s, r0)
+ s.tmp_0 = Buffer_sizeOfNumberFormat__P60196_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 18; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ return leave(s, r0)
default: oops()
} } }
-control_EventContext_deltaTime__P386.info = {"start":1995,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]}
-control_EventContext_deltaTime__P386.isGetter = true;
+pins_sizeOf__P60160.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]}
-function control_EventContext_deltaTime__P386_mk(s) {
+function pins_sizeOf__P60160_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_deltaTime__P386, depth: s.depth + 1,
+ parent: s, fn: pins_sizeOf__P60160, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -18480,7 +16443,7 @@ function control_EventContext_deltaTime__P386_mk(s) {
-function scene_Scene_constructor__P2432(s) {
+function Buffer_sizeOfNumberFormat__P60196(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18492,112 +16455,89 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_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__C2170_VT);
- s.tmp_0 = r0;
- s.tmp_1 = ArcadePhysicsEngine_constructor__P2171_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 = 814; s.pc = 1; return s.tmp_1;
+ 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:
- r0 = s.retval;
- r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2352_VT);
- s.tmp_0 = r0;
- s.tmp_1 = scene_Camera_constructor__P2356_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 815; s.pc = 2; return s.tmp_1;
case 2:
- r0 = s.retval;
- r0 = (s.arg0).fields["camera"] = (s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C2262_VT);
- s.tmp_0 = r0;
- s.tmp_1 = scene_Background_constructor__P2266_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.arg0.fields["camera"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 816; s.pc = 3; return s.tmp_1;
case 3:
- r0 = s.retval;
- r0 = (s.arg0).fields["background"] = (s.tmp_0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtrt.mkMap();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtrt.mkMap();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtrt.mkMap();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_data"] = (s.tmp_1);
- r0 = (s.arg0).fields["_millis"] = (0);
- r0 = undefined;
+ 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()
} } }
-scene_Scene_constructor__P2432.info = {"start":3365,"length":793,"line":102,"column":8,"endLine":120,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]}
+Buffer_sizeOfNumberFormat__P60196.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]}
-function scene_Scene_constructor__P2432_mk(s) {
+function Buffer_sizeOfNumberFormat__P60196_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_constructor__P2432, depth: s.depth + 1,
+ parent: s, fn: Buffer_sizeOfNumberFormat__P60196, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function scene_Camera_constructor__P2356(s) {
+function settings_clear__P61818(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18607,35 +16547,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_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 = pxsim.settings._userClean();
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Camera_constructor__P2356.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]}
+settings_clear__P61818.info = {"start":1414,"length":58,"line":56,"column":4,"endLine":58,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"clear","argumentNames":[]}
-function scene_Camera_constructor__P2356_mk(s) {
+function settings_clear__P61818_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_constructor__P2356, depth: s.depth + 1,
+ parent: s, fn: settings_clear__P61818, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
} }
-function scene_Background_constructor__P2266(s) {
+function game_popScene__P62526(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18645,41 +16575,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, scene_Background__C2262_VT)) failedCast(r0);
- r0 = (s.arg0).fields["color"] = (0);
- r0 = (s.arg0).fields["camera"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ s.oldScene___85559 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 860; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.oldScene___85559 = (r0);
+ s.tmp_0 = r0 = globals._sceneStack___64275;
+ 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___64275);
+ case 2:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_Array_.pop(globals._sceneStack___64275);
+ globals._scene___64274 = (r0);
+ s.tmp_0 = control_popEventContext__P60391_mk(s);
+ s.callLocIdx = 861; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ { step = 6; continue; }
+ case 3:
+ r0 = pxsim_numops_toBoolDecr(globals._scene___64274);
+ if (!r0) { step = 4; continue; }
+ s.tmp_0 = control_popEventContext__P60391_mk(s);
+ s.callLocIdx = 862; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ globals._scene___64274 = (undefined);
+ case 4:
+ case 5:
+ case 6:
+ r0 = pxsim_numops_toBoolDecr(globals._scene___64274);
+ if (!r0) { step = 7; continue; }
+ s.tmp_0 = particles_enableAll__P62699_mk(s);
+ s.callLocIdx = 863; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___64277);
+ if (!r0) { step = 9; continue; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85580);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___85559);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals._scenePopHandlers___64277;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 865; s.pc = 15; return s.tmp_1;
+ case 15:
+ r0 = s.retval;
+ case 9:
+ case 10:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Background_constructor__P2266.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]}
+game_popScene__P62526.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]}
-function scene_Background_constructor__P2266_mk(s) {
+function game_popScene__P62526_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Background_constructor__P2266, depth: s.depth + 1,
+ parent: s, fn: game_popScene__P62526, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- arg0: undefined,
- arg1: undefined,
+ oldScene___85559: undefined,
} }
-function ArcadePhysicsEngine_constructor__P2171(s) {
+function inline__P85580(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18691,68 +16664,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- r0 = undefined;
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C2091_VT);
- s.tmp_0 = r0;
- s.tmp_1 = sprites_SpriteMap_constructor__P2092_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 503; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = lambda_2_mk(s);
+ s.tmp_0.argL = s.arg0;
+ s.tmp_0.arg0 = s.caps[0];
+ setupLambda(s.tmp_0, s.tmp_0.argL);
+ s.callLocIdx = 864; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.retval;
- r0 = (s.arg0).fields["map"] = (s.tmp_0);
- s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P2173_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 504; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = ArcadePhysicsEngine_maxStep__P2177_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg3;
- s.callLocIdx = 505; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = ArcadePhysicsEngine_minStep__P2175_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg2;
- s.callLocIdx = 506; s.pc = 4; return s.tmp_0;
- case 4:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_constructor__P2171.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]}
+inline__P85580.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]}
-function ArcadePhysicsEngine_constructor__P2171_mk(s) {
+function inline__P85580_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_constructor__P2171, depth: s.depth + 1,
+ parent: s, fn: inline__P85580, 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__P2177(s) {
+function particles_enableAll__P62699(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18762,42 +16702,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.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_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.sources___85584 = undefined;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1126; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.sources___85584 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.sources___85584);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = s.sources___85584;
+ s.tmp_0.arg1 = inline__P85590;
+ s.callLocIdx = 1128; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = particles_pruneParticles__P64634_mk(s);
+ s.callLocIdx = 1129; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_maxStep__P2177.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]}
+particles_enableAll__P62699.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]}
-function ArcadePhysicsEngine_maxStep__P2177_mk(s) {
+function particles_enableAll__P62699_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_maxStep__P2177, depth: s.depth + 1,
+ parent: s, fn: particles_enableAll__P62699, 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,
+ sources___85584: undefined,
} }
-function ArcadePhysicsEngine_maxStep__P2176(s) {
+function inline__P85590(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18811,26 +16755,24 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- r0 = s.arg0.fields["maxSingleStep"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + 128);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >> 8);
- return leaveAccessor(s, r0)
+ s.tmp_0 = particles_ParticleSource_enabled__P62680_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1127; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = true;
+ return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_maxStep__P2176.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]}
-ArcadePhysicsEngine_maxStep__P2176.isGetter = true;
+inline__P85590.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
-function ArcadePhysicsEngine_maxStep__P2176_mk(s) {
+function inline__P85590_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_maxStep__P2176, depth: s.depth + 1,
+ parent: s, fn: inline__P85590, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
} }
@@ -18838,7 +16780,7 @@ function ArcadePhysicsEngine_maxStep__P2176_mk(s) {
-function Fx_toInt__P162(s) {
+function control_popEventContext__P60391(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18848,32 +16790,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.lambdaArgs = null;
- }
- r0 = (s.arg0 + 128);
+ s.ctx___85597 = undefined;
+ s.context___85605 = undefined;
+ r0 = pxsim_numops_toBoolDecr(globals.eventContexts___63958);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 8);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 7; continue; }
+ case 1:
+ case 2:
+ r0 = pxsim_Array_.pop(globals.eventContexts___63958);
+ s.ctx___85597 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.ctx___85597);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ { step = 7; continue; }
+ case 3:
+ case 4:
+ s.tmp_2 = control_EventContext_unregister__P60383_mk(s);
+ s.tmp_2.arg0 = s.ctx___85597;
+ s.callLocIdx = 69; s.pc = 8; return s.tmp_2;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = r0 = globals.eventContexts___63958;
+ r0 = pxsim_Array__length(globals.eventContexts___63958);
+ 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___85605 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.context___85605);
+ if (!r0) { step = 5; continue; }
+ s.tmp_0 = control_EventContext_register__P60382_mk(s);
+ s.tmp_0.arg0 = s.context___85605;
+ s.callLocIdx = 70; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ { step = 6; continue; }
+ case 5:
+ globals.eventContexts___63958 = (undefined);
+ case 6:
+ case 7:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Fx_toInt__P162.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]}
+control_popEventContext__P60391.info = {"start":7466,"length":413,"line":229,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]}
-function Fx_toInt__P162_mk(s) {
+function control_popEventContext__P60391_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_toInt__P162, depth: s.depth + 1,
+ parent: s, fn: control_popEventContext__P60391, 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,
+ ctx___85597: undefined,
+ context___85605: undefined,
} }
-function ArcadePhysicsEngine_minStep__P2175(s) {
+function control_EventContext_register__P60382(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18883,42 +16868,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.h___85618 = undefined;
+ s.unnamed130___U1 = undefined;
+ s.unnamed131___U2 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
+ if (!checkSubtype(r0, control_EventContext__C60376_VT)) failedCast(r0);
+ s.h___85618 = (undefined);
+ r0 = s.arg0.fields["handlers"];
+ s.unnamed130___U1 = (r0);
+ s.unnamed131___U2 = (0);
+ case 1:
+ s.tmp_0 = r0 = s.unnamed131___U2;
+ r0 = pxsim_Array__length(s.unnamed130___U1);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1);
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed130___U1, s.unnamed131___U2);
+ s.h___85618 = (r0);
+ s.tmp_2 = control_EventHandler_register__P63951_mk(s);
+ s.tmp_2.arg0 = s.h___85618;
+ s.callLocIdx = 60; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.unnamed131___U2 + 1);
+ s.unnamed131___U2 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.unnamed130___U1 = (undefined);
+ s.tmp_0 = control_EventContext_registerFrameCallbacks__P63956_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 61; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_minStep__P2175.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]}
+control_EventContext_register__P60382.info = {"start":4284,"length":138,"line":128,"column":8,"endLine":132,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]}
-function ArcadePhysicsEngine_minStep__P2175_mk(s) {
+function control_EventContext_register__P60382_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_minStep__P2175, depth: s.depth + 1,
+ parent: s, fn: control_EventContext_register__P60382, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ h___85618: undefined,
+ unnamed130___U1: undefined,
+ unnamed131___U2: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function ArcadePhysicsEngine_minStep__P2174(s) {
+function settings_remove__P61828(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18932,26 +16942,18 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_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)
+ r0 = pxsim.settings._remove(s.arg0);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_minStep__P2174.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]}
-ArcadePhysicsEngine_minStep__P2174.isGetter = true;
+settings_remove__P61828.info = {"start":3702,"length":64,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"remove","argumentNames":["key"]}
-function ArcadePhysicsEngine_minStep__P2174_mk(s) {
+function settings_remove__P61828_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_minStep__P2174, depth: s.depth + 1,
+ parent: s, fn: settings_remove__P61828, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
} }
@@ -18959,7 +16961,7 @@ function ArcadePhysicsEngine_minStep__P2174_mk(s) {
-function ArcadePhysicsEngine_maxSpeed__P2173(s) {
+function helpers_arrayForEach__P60099(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -18969,121 +16971,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.len___87434 = undefined;
+ s.i___87437 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["maxVelocity"];
- s.tmp_2 = r0;
- r0 = (0 - s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-ArcadePhysicsEngine_maxSpeed__P2173.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]}
-
-function ArcadePhysicsEngine_maxSpeed__P2173_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2173, 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__P147(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = (0 - s.arg0);
- return leave(s, r0)
- default: oops()
-} } }
-Fx_neg__P147.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]}
-
-function Fx_neg__P147_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Fx_neg__P147, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
-} }
-
-
-
-
-
-function ArcadePhysicsEngine_maxSpeed__P2172(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2170_VT)) failedCast(r0);
- r0 = s.arg0.fields["maxVelocity"];
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___87434 = (r0);
+ s.i___87437 = (0);
+ case 1:
+ r0 = (s.i___87437 < s.len___87434);
s.tmp_0 = r0;
- r0 = (s.tmp_0 + 128);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >> 8);
- return leaveAccessor(s, r0)
+ r0 = pxsim_numops_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___87437);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.i___87437;
+ setupLambda(s.tmp_1, s.tmp_1.argL);
+ s.callLocIdx = 6; s.pc = 3; return s.tmp_1;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.i___87437 + 1);
+ s.i___87437 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_maxSpeed__P2172.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]}
-ArcadePhysicsEngine_maxSpeed__P2172.isGetter = true;
+helpers_arrayForEach__P60099.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 ArcadePhysicsEngine_maxSpeed__P2172_mk(s) {
+function helpers_arrayForEach__P60099_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2172, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayForEach__P60099, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ len___87434: undefined,
+ i___87437: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function PhysicsEngine_constructor__P2157(s) {
+function settings_list__P61827(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19097,19 +17036,29 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0);
- r0 = undefined;
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_String_.mkEmpty();
+ s.arg0 = (r0);
+ case 1:
+ case 2:
+ r0 = pxsim.settings._list(s.arg0);
return leave(s, r0)
default: oops()
} } }
-PhysicsEngine_constructor__P2157.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]}
+settings_list__P61827.info = {"start":3544,"length":107,"line":140,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"list","argumentNames":["prefix"]}
-function PhysicsEngine_constructor__P2157_mk(s) {
+function settings_list__P61827_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: PhysicsEngine_constructor__P2157, depth: s.depth + 1,
+ parent: s, fn: settings_list__P61827, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -19117,7 +17066,7 @@ function PhysicsEngine_constructor__P2157_mk(s) {
-function sprites_SpriteMap_constructor__P2092(s) {
+function tileworld_RuleVisualsBase_setRow__P72685(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19129,35 +17078,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, sprites_SpriteMap__C2091_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ r0 = (s.arg1 << 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 8);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1);
+ r0 = (s.tmp_1 + 6);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 681; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_constructor__P2092.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]}
+tileworld_RuleVisualsBase_setRow__P72685.info = {"start":3985,"length":92,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setRow","argumentNames":["this","row"]}
-function sprites_SpriteMap_constructor__P2092_mk(s) {
+function tileworld_RuleVisualsBase_setRow__P72685_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_constructor__P2092, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_setRow__P72685, 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 music_Melody_constructor__P1598(s) {
+function Sprite_y__P62020(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19173,94 +17133,46 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, music_Melody__C1595_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_text"] = (s.arg1);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-music_Melody_constructor__P1598.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]}
-
-function music_Melody_constructor__P1598_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: music_Melody_constructor__P1598, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function control_pushEventContext__P395(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.ctx___25247 = undefined;
- s.n___25253 = undefined;
- r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
- globals.eventContexts___3961 = (r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_top__P62059_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_image"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 / 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 232; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- s.tmp_0 = control_eventContext__P394_mk(s);
- s.callLocIdx = 66; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.ctx___25247 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.ctx___25247);
- if (!r0) { step = 3; continue; }
- s.tmp_0 = control_EventContext_unregister__P388_mk(s);
- s.tmp_0.arg0 = s.ctx___25247;
- s.callLocIdx = 67; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- case 3:
- case 4:
- r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C381_VT);
- s.tmp_0 = r0;
- s.tmp_1 = control_EventContext_constructor__P385_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 68; s.pc = 7; return s.tmp_1;
- case 7:
r0 = s.retval;
- s.n___25253 = (s.tmp_0);
- r0 = pxsim_Array__push(globals.eventContexts___3961, s.n___25253);
- r0 = s.n___25253;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_pushEventContext__P395.info = {"start":7021,"length":340,"line":213,"column":4,"endLine":224,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]}
+Sprite_y__P62020.info = {"start":2022,"length":72,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]}
-function control_pushEventContext__P395_mk(s) {
+function Sprite_y__P62020_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_pushEventContext__P395, depth: s.depth + 1,
+ parent: s, fn: Sprite_y__P62020, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- ctx___25247: undefined,
- n___25253: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function control_EventContext_unregister__P388(s) {
+function Sprite_top__P62059(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19270,68 +17182,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.h___25279 = undefined;
- s.unnamed52___U1 = undefined;
- s.unnamed53___U2 = undefined;
+ s.physics___86200 = 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__C381_VT)) failedCast(r0);
- s.h___25279 = (undefined);
- r0 = s.arg0.fields["handlers"];
- s.unnamed52___U1 = (r0);
- s.unnamed53___U2 = (0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 285; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_0 = r0 = s.unnamed53___U2;
- r0 = pxsim_Array__length(s.unnamed52___U1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed52___U1, s.unnamed53___U2);
- s.h___25279 = (r0);
- s.tmp_2 = control_EventHandler_unregister__P3955_mk(s);
- s.tmp_2.arg0 = s.h___25279;
- s.callLocIdx = 62; s.pc = 3; return s.tmp_2;
- case 3:
r0 = s.retval;
- r0 = (s.unnamed53___U2 + 1);
- s.unnamed53___U2 = (r0);
- { step = 1; continue; }
- case 2:
- s.unnamed52___U1 = (undefined);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["frameWorker"];
+ r0 = r0.fields["physicsEngine"];
+ s.physics___86200 = (r0);
+ s.tmp_0 = PhysicsEngine__C62151_v2_4_mk(s);
+ s.tmp_0.arg0 = s.physics___86200;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1);
+ 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__C62151_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite;
+ s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_unregister__P388.info = {"start":4432,"length":131,"line":134,"column":8,"endLine":138,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]}
+Sprite_top__P62059.info = {"start":9733,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]}
-function control_EventContext_unregister__P388_mk(s) {
+function Sprite_top__P62059_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_unregister__P388, depth: s.depth + 1,
+ parent: s, fn: Sprite_top__P62059, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- h___25279: undefined,
- unnamed52___U1: undefined,
- unnamed53___U2: undefined,
+ tmp_3: undefined,
+ physics___86200: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function control_EventHandler_unregister__P3955(s) {
+function PhysicsEngine_moveSprite__P62155(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19343,66 +17249,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, control_EventHandler__C3953_VT)) failedCast(r0);
- r0 = s.arg0.fields["src"];
- s.tmp_0 = r0;
- r0 = s.arg0.fields["value"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["flags"];
- s.tmp_2 = r0;
- r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P3957, s.tmp_2);
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventHandler_unregister__P3955.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]}
+PhysicsEngine_moveSprite__P62155.info = {"start":230,"length":43,"line":13,"column":4,"endLine":13,"endColumn":47,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]}
-function control_EventHandler_unregister__P3955_mk(s) {
+function PhysicsEngine_moveSprite__P62155_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventHandler_unregister__P3955, depth: s.depth + 1,
+ parent: s, fn: PhysicsEngine_moveSprite__P62155, 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 control_doNothing__P3957(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-control_doNothing__P3957.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]}
-
-function control_doNothing__P3957_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: control_doNothing__P3957, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
-} }
-
-
-
-
-
-function control_EventContext_constructor__P385(s) {
+function Fx_sub__P60146(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19414,40 +17289,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, control_EventContext__C381_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 = undefined;
+ r0 = (s.arg0 - s.arg1);
return leave(s, r0)
default: oops()
} } }
-control_EventContext_constructor__P385.info = {"start":1740,"length":245,"line":58,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]}
+Fx_sub__P60146.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 control_EventContext_constructor__P385_mk(s) {
+function Fx_sub__P60146_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_constructor__P385, depth: s.depth + 1,
+ parent: s, fn: Fx_sub__P60146, 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 image_getFontForText__P1744(s) {
+function Sprite_top__P62058(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19457,52 +17321,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___22093 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.i___22093 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___22093;
- r0 = pxsim_String_.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_y"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_String_.charCodeAt(s.arg0, s.i___22093);
- 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___1743;
- { step = 5; continue; }
- case 2:
- case 3:
- r0 = (s.i___22093 + 1);
- s.i___22093 = (r0);
- { step = 1; continue; }
- case 4:
- r0 = globals.font8___1742;
- case 5:
- return leave(s, r0)
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-image_getFontForText__P1744.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]}
+Sprite_top__P62058.info = {"start":9590,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]}
+Sprite_top__P62058.isGetter = true;
-function image_getFontForText__P1744_mk(s) {
+function Sprite_top__P62058_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: image_getFontForText__P1744, depth: s.depth + 1,
+ parent: s, fn: Sprite_top__P62058, depth: s.depth + 1,
pc: 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___22093: undefined,
arg0: undefined,
} }
@@ -19510,7 +17349,7 @@ function image_getFontForText__P1744_mk(s) {
-function helpers_imageDrawLine__P1727(s) {
+function tileworld_RuleVisualsBase_setCol__P72684(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19523,57 +17362,42 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = helpers_pack__P4029_mk(s);
- s.tmp_2.arg0 = s.arg1;
- s.tmp_2.arg1 = s.arg2;
- s.callLocIdx = 92; s.pc = 1; return s.tmp_2;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ r0 = (s.arg1 << 4);
s.tmp_1 = r0;
- s.tmp_4 = helpers_pack__P4029_mk(s);
- s.tmp_4.arg0 = s.arg3;
- s.tmp_4.arg1 = s.arg4;
- s.callLocIdx = 93; s.pc = 2; return s.tmp_4;
- case 2:
+ r0 = (s.tmp_1 + 8);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 680; s.pc = 1; return s.tmp_0;
+ case 1:
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__P1727.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]}
+tileworld_RuleVisualsBase_setCol__P72684.info = {"start":3890,"length":85,"line":96,"column":8,"endLine":98,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setCol","argumentNames":["this","col"]}
-function helpers_imageDrawLine__P1727_mk(s) {
+function tileworld_RuleVisualsBase_setCol__P72684_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imageDrawLine__P1727, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_setCol__P72684, depth: s.depth + 1,
pc: 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__P4029(s) {
+function Sprite_x__P62018(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19588,45 +17412,38 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_2 = Math_clamp__P119_mk(s);
- s.tmp_2.arg0 = -30000;
- s.tmp_2.arg1 = 30000;
- r0 = (s.arg0 | 0);
- s.tmp_2.arg2 = r0;
- s.callLocIdx = 87; s.pc = 1; return s.tmp_2;
- case 1:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 & 65535);
- s.tmp_0 = r0;
- s.tmp_5 = Math_clamp__P119_mk(s);
- s.tmp_5.arg0 = -30000;
- s.tmp_5.arg1 = 30000;
- r0 = (s.arg1 | 0);
- s.tmp_5.arg2 = r0;
- s.callLocIdx = 88; s.pc = 2; return s.tmp_5;
- case 2:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_left__P62055_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_image"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 << 16);
+ r0 = pxsim_ImageMethods.width(s.tmp_4);
s.tmp_3 = r0;
- r0 = (s.tmp_0 | s.tmp_3);
+ r0 = (s.tmp_3 / 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 230; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_pack__P4029.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]}
+Sprite_x__P62018.info = {"start":1673,"length":72,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]}
-function helpers_pack__P4029_mk(s) {
+function Sprite_x__P62018_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_pack__P4029, depth: s.depth + 1,
+ parent: s, fn: Sprite_x__P62018, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -19635,7 +17452,7 @@ function helpers_pack__P4029_mk(s) {
-function Sprite_setFlag__P2076(s) {
+function Sprite_left__P62055(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19645,84 +17462,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.physics___81793 = 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__C2013_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["flags"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | s.arg1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["flags"] = (s.tmp_1);
- { step = 2; continue; }
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 277; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["flags"];
- s.tmp_4 = r0;
- r0 = (~ s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 | s.arg1);
+ r0 = s.retval;
+ r0 = r0.fields["physicsEngine"];
+ s.physics___81793 = (r0);
+ s.tmp_0 = PhysicsEngine__C62151_v2_4_mk(s);
+ s.tmp_0.arg0 = s.physics___81793;
+ s.tmp_0.arg1 = s.arg0;
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = (~ s.tmp_2);
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["flags"] = (s.tmp_1);
+ r0 = s.arg0.fields["_x"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_1 - s.tmp_3);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 0;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite;
+ s.pc = 2; return s.tmp_0;
case 2:
- r0 = (s.arg1 === 512);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- r0 = s.arg0.fields["sayBubbleSprite"];
- case 4:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 5; continue; }
- s.tmp_2 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = 512;
- s.tmp_2.arg2 = s.arg2;
- s.callLocIdx = 416; s.pc = 7; return s.tmp_2;
- case 7:
r0 = s.retval;
- case 5:
- case 6:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_setFlag__P2076.info = {"start":23834,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]}
+Sprite_left__P62055.info = {"start":8929,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]}
-function Sprite_setFlag__P2076_mk(s) {
+function Sprite_left__P62055_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_setFlag__P2076, depth: s.depth + 1,
+ parent: s, fn: Sprite_left__P62055, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
+ physics___81793: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_Project_getWorldBackgrounds__P3688(s) {
+function Sprite_left__P62054(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19737,18 +17532,22 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_backgrounds"];
- return leave(s, r0)
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_x"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
default: oops()
} } }
-tileworld_Project_getWorldBackgrounds__P3688.info = {"start":2871,"length":78,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"project.ts","functionName":"getWorldBackgrounds","argumentNames":["this"]}
+Sprite_left__P62054.info = {"start":8785,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]}
+Sprite_left__P62054.isGetter = true;
-function tileworld_Project_getWorldBackgrounds__P3688_mk(s) {
+function Sprite_left__P62054_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getWorldBackgrounds__P3688, depth: s.depth + 1,
+ parent: s, fn: Sprite_left__P62054, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
} }
@@ -19756,7 +17555,7 @@ function tileworld_Project_getWorldBackgrounds__P3688_mk(s) {
-function tileworld_RuleVisualsBase_drawImage__P12696(s) {
+function tileworld_GameHome_constructor__P63827(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19769,48 +17568,67 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = r0 = globals.screen___1799;
- s.tmp_1 = r0 = s.arg3;
- r0 = (s.arg1 << 4);
- s.tmp_2 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_4 = r0;
- r0 = (6 + s.tmp_4);
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3);
+ if (!checkSubtype(r0, tileworld_GameHome__C63826_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_constructor__P63782_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1358; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1359; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1360; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77524);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1388; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_0.arg0 = globals.B___61870;
+ s.tmp_0.arg1 = 2049;
+ s.tmp_0.arg2 = inline__P77627;
+ s.callLocIdx = 1390; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_drawImage__P12696.info = {"start":4359,"length":136,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImage","argumentNames":["this","c","r","img"]}
+tileworld_GameHome_constructor__P63827.info = {"start":222,"length":2063,"line":6,"column":8,"endLine":56,"endColumn":9,"fileName":"home.ts","functionName":"inline","argumentNames":["this","p"]}
-function tileworld_RuleVisualsBase_drawImage__P12696_mk(s) {
+function tileworld_GameHome_constructor__P63827_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_drawImage__P12696, depth: s.depth + 1,
+ parent: s, fn: tileworld_GameHome_constructor__P63827, depth: s.depth + 1,
pc: 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 helpers_imagePrint__P1757(s) {
+function inline__P77524(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -19820,460 +17638,285 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.x0___26521 = undefined;
- s.cp___26523 = undefined;
- s.mult___26524 = undefined;
- s.dataW___26529 = undefined;
- s.dataH___26535 = undefined;
- s.byteHeight___26541 = undefined;
- s.charSize___26547 = undefined;
- s.dataSize___26551 = undefined;
- s.fontdata___26555 = undefined;
- s.lastchar___26558 = undefined;
- s.imgBuf___26565 = undefined;
- s.xOffset___26589 = undefined;
- s.yOffset___26590 = undefined;
- s.ch___26605 = undefined;
- s.l___26624 = undefined;
- s.r___26625 = undefined;
- s.off___26627 = undefined;
- s.guess___26628 = undefined;
- s.m___26647 = undefined;
- s.v___26656 = undefined;
- s.i___26712 = undefined;
- s.j___26717 = undefined;
- s.mask___26718 = undefined;
- s.c___26719 = undefined;
- s.n___26736 = 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.index___77525 = undefined;
+ s.command___77555 = undefined;
+ s.rules___77562 = undefined;
+ s.g___77570 = undefined;
+ r0 = s.caps[0].fields["dirMap"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = image_getFontForText__P1744_mk(s);
- s.tmp_2.arg0 = s.arg1;
- s.callLocIdx = 108; s.pc = 39; return s.tmp_2;
- case 39:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1361; s.pc = 22; return s.tmp_2;
+ case 22:
r0 = s.retval;
- s.arg5 = (r0);
- case 1:
- case 2:
- r0 = pxsim_numops_toBoolDecr(s.arg4);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1362; s.pc = 23; return s.tmp_4;
+ case 23:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.index___77525 = (r0);
+ r0 = (s.index___77525 != 15);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.arg4 = (1);
- case 3:
- case 4:
- s.x0___26521 = (s.arg2);
- s.cp___26523 = (0);
- s.tmp_1 = if_multiplier_1_mk(s);
- s.tmp_1.arg0 = s.arg5;
- if (!s.tmp_1.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier");
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"];
- if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; }
- else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
- else { s.callLocIdx = 109; s.pc = 40; return s.tmp_1; }
- }
- case 40:
+ s.tmp_1 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1363; s.pc = 24; return s.tmp_1;
+ case 24:
r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Gallery__C63820_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_2 = if_multiplier_1_mk(s);
- s.tmp_2.arg0 = s.arg5;
- if (!s.tmp_2.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier");
- } else {
- s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"];
- if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; }
- else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
- else { s.callLocIdx = 110; s.pc = 41; return s.tmp_2; }
- }
- case 41:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_SwitchExport__C63663_VT);
+ s.tmp_1 = r0;
+ s.tmp_2 = tileworld_SwitchExport_constructor__P63664_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1364; s.pc = 26; return s.tmp_4;
+ case 26:
r0 = s.retval;
- { step = 6; continue; }
- case 5:
- r0 = 1;
- case 6:
- // jmp value (already in r0)
s.tmp_3 = r0;
- s.mult___26524 = (s.tmp_3);
- s.tmp_1 = if_charWidth_1_mk(s);
- s.tmp_1.arg0 = s.arg5;
- if (!s.tmp_1.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth");
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"];
- if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; }
- else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
- else { s.callLocIdx = 111; s.pc = 42; return s.tmp_1; }
- }
- case 42:
+ r0 = (s.tmp_3 == 3);
+ s.tmp_2.arg2 = r0;
+ s.callLocIdx = 1365; s.pc = 25; return s.tmp_2;
+ case 25:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___26524);
- s.dataW___26529 = (r0);
- s.tmp_1 = if_charHeight_1_mk(s);
- s.tmp_1.arg0 = s.arg5;
- if (!s.tmp_1.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight");
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"];
- if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; }
- else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
- else { s.callLocIdx = 112; s.pc = 43; return s.tmp_1; }
- }
- case 43:
+ s.tmp_7 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_7.arg0 = s.caps[0];
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 1366; s.pc = 27; return s.tmp_7;
+ case 27:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___26524);
- s.dataH___26535 = (r0);
- r0 = (s.dataH___26535 + 7);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 3);
- s.byteHeight___26541 = (r0);
- r0 = (s.byteHeight___26541 * s.dataW___26529);
- s.charSize___26547 = (r0);
- r0 = (2 + s.charSize___26547);
- s.dataSize___26551 = (r0);
- s.tmp_0 = if_data_1_mk(s);
- s.tmp_0.arg0 = s.arg5;
- if (!s.tmp_0.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data");
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"];
- if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; }
- else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); }
- else { s.callLocIdx = 113; s.pc = 44; return s.tmp_0; }
- }
- case 44:
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 == 3);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 1; continue; }
+ r0 = globals.galleryTiles___63768;
+ { step = 2; continue; }
+ case 1:
+ r0 = globals.gallerySprites___63767;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ s.tmp_9 = tileworld_Gallery_constructor__P63821_mk(s);
+ s.tmp_9.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_9.arg1 = r0;
+ s.tmp_9.arg2 = s.index___77525;
+ s.tmp_9.arg3 = s.tmp_1;
+ s.tmp_9.arg4 = s.tmp_8;
+ s.callLocIdx = 1367; s.pc = 28; return s.tmp_9;
+ case 28:
+ r0 = s.retval;
+ { step = 21; continue; }
+ case 3:
+ case 4:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1368; s.pc = 29; return s.tmp_2;
+ case 29:
r0 = s.retval;
- s.fontdata___26555 = (r0);
- r0 = pxsim.BufferMethods.length(s.fontdata___26555);
s.tmp_1 = r0;
- r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___26551);
+ r0 = (s.tmp_1 > 0);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - 1);
- s.lastchar___26558 = (r0);
- r0 = (s.mult___26524 == 1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ { step = 21; continue; }
+ case 5:
+ case 6:
+ s.tmp_3 = r0 = globals.commandImages___77507;
+ s.tmp_5 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_5.arg0 = s.caps[0];
+ s.tmp_5.arg1 = true;
+ s.callLocIdx = 1369; s.pc = 30; return s.tmp_5;
+ case 30:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
+ s.command___77555 = (r0);
+ r0 = (s.command___77555 == globals.play___63710);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["rules"];
+ s.rules___77562 = (r0);
+ r0 = pxsim_Array__length(s.rules___77562);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- r0 = (8 + s.charSize___26547);
+ s.tmp_2 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1371; s.pc = 31; return s.tmp_2;
+ case 31:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C63770_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_RunGame_constructor__P63771_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.rules___77562;
+ s.tmp_1.arg3 = false;
+ s.callLocIdx = 1372; s.pc = 32; return s.tmp_1;
+ case 32:
+ r0 = s.retval;
+ s.g___77570 = (s.tmp_0);
+ s.tmp_0 = tileworld_RunGame_setWorld__P63772_mk(s);
+ s.tmp_0.arg0 = s.g___77570;
+ r0 = s.caps[0].fields["p"];
s.tmp_1 = r0;
- r0 = pxsim.control.createBuffer(s.tmp_1);
- s.imgBuf___26565 = (r0);
- r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 0, 135);
- r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 1, 1);
- r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 2, s.dataW___26529);
- r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 4, s.dataH___26535);
+ r0 = s.tmp_1.fields["_backgrounds"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_sprites"];
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1375; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RunGame_start__P63773_mk(s);
+ s.tmp_0.arg0 = s.g___77570;
+ s.callLocIdx = 1376; s.pc = 34; return s.tmp_0;
+ case 34:
+ r0 = s.retval;
case 7:
case 8:
+ { step = 20; continue; }
case 9:
- s.tmp_1 = r0 = s.cp___26523;
- r0 = pxsim_String_.length(s.arg1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.command___77555 == globals.map___63709);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 38; continue; }
- s.xOffset___26589 = (0);
- s.yOffset___26590 = (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; }
+ if (!r0) { step = 10; continue; }
+ s.tmp_1 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1377; s.pc = 35; return s.tmp_1;
+ case 35:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C63816_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_MapEditor_constructor__P63817_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1378; s.pc = 36; return s.tmp_1;
+ case 36:
+ r0 = s.retval;
+ { step = 19; continue; }
case 10:
- s.tmp_1 = r0 = s.cp___26523;
- r0 = pxsim_Array__length(s.arg6);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.command___77555 == globals.paint___63713);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1379; s.pc = 37; return s.tmp_1;
+ case 37:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ImageEditor__C63775_VT);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C63668_VT);
+ s.tmp_1 = r0;
+ s.tmp_2 = tileworld_AllExport_constructor__P63669_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2.arg1 = r0;
+ s.callLocIdx = 1380; s.pc = 38; return s.tmp_2;
+ case 38:
+ r0 = s.retval;
+ s.tmp_3 = tileworld_ImageEditor_constructor__P63776_mk(s);
+ s.tmp_3.arg0 = s.tmp_0;
+ s.tmp_3.arg1 = s.tmp_1;
+ s.callLocIdx = 1381; s.pc = 39; return s.tmp_3;
+ case 39:
+ r0 = s.retval;
+ { step = 18; continue; }
case 11:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = (s.command___77555 == globals.code___63712);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 12; continue; }
- s.tmp_4 = if_xOffset_1_mk(s);
- r0 = pxsim_Array__getAt(s.arg6, s.cp___26523);
- s.tmp_4.arg0 = r0;
- if (!s.tmp_4.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset");
- } else {
- s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"];
- if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; }
- else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); }
- else { s.callLocIdx = 114; s.pc = 45; return s.tmp_4; }
- }
- case 45:
+ s.tmp_1 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1382; s.pc = 40; return s.tmp_1;
+ case 40:
r0 = s.retval;
- s.xOffset___26589 = (r0);
- s.tmp_0 = if_yOffset_1_mk(s);
- r0 = pxsim_Array__getAt(s.arg6, s.cp___26523);
- s.tmp_0.arg0 = r0;
- if (!s.tmp_0.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset");
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"];
- if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; }
- else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); }
- else { s.callLocIdx = 115; s.pc = 46; return s.tmp_0; }
- }
- case 46:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleRoom__C63802_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_ruleediting_RuleRoom_constructor__P63803_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1383; s.pc = 41; return s.tmp_1;
+ case 41:
r0 = s.retval;
- s.yOffset___26590 = (r0);
+ { step = 17; continue; }
case 12:
- case 13:
- s.tmp_0 = r0 = s.cp___26523;
- r0 = (s.tmp_0 + 1);
- s.cp___26523 = (r0);
- r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0);
- s.ch___26605 = (r0);
- r0 = (s.ch___26605 == 10);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1384; s.pc = 42; return s.tmp_2;
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 9);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- s.tmp_1 = r0 = s.arg3;
- s.tmp_4 = if_charHeight_1_mk(s);
- s.tmp_4.arg0 = s.arg5;
- if (!s.tmp_4.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight");
- } else {
- s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"];
- if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; }
- else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); }
- else { s.callLocIdx = 116; s.pc = 47; return s.tmp_4; }
- }
- case 47:
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_0;
+ { step = 14; continue; }
+ case 13:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1385; s.pc = 43; return s.tmp_4;
+ case 43:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 + 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 + s.tmp_2);
- s.arg3 = (r0);
- s.arg2 = (s.x0___26521);
+ r0 = (s.tmp_3 == 0);
case 14:
- case 15:
- r0 = (s.ch___26605 < 32);
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 15; continue; }
+ s.tmp_6 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1386; s.pc = 44; return s.tmp_6;
+ case 44:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C63823_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- { step = 9; continue; }
+ s.tmp_1 = tileworld_ProjectSettings_constructor__P63824_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1387; s.pc = 45; return s.tmp_1;
+ case 45:
+ r0 = s.retval;
+ case 15:
case 16:
case 17:
- s.l___26624 = (0);
- s.r___26625 = (s.lastchar___26558);
- s.off___26627 = (0);
- r0 = (s.ch___26605 - 32);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 * s.dataSize___26551);
- s.guess___26628 = (r0);
- r0 = pxsim.BufferMethods.getNumber(s.fontdata___26555, 4, s.guess___26628);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.ch___26605);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 18; continue; }
- s.off___26627 = (s.guess___26628);
- { step = 25; continue; }
case 18:
case 19:
- r0 = (s.l___26624 <= s.r___26625);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 24; continue; }
- s.tmp_1 = r0 = s.l___26624;
- r0 = (s.r___26625 - s.l___26624);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 + s.tmp_2);
- s.m___26647 = (r0);
- s.tmp_0 = r0 = s.fontdata___26555;
- r0 = (s.m___26647 * s.dataSize___26551);
- s.tmp_1 = r0;
- r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1);
- s.v___26656 = (r0);
- r0 = (s.v___26656 == s.ch___26605);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 20; continue; }
- r0 = (s.m___26647 * s.dataSize___26551);
- s.off___26627 = (r0);
- { step = 24; continue; }
case 20:
case 21:
- r0 = (s.v___26656 < s.ch___26605);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 22; continue; }
- r0 = (s.m___26647 + 1);
- s.l___26624 = (r0);
- { step = 23; continue; }
- case 22:
- r0 = (s.m___26647 - 1);
- s.r___26625 = (r0);
- case 23:
- { step = 19; continue; }
- case 24:
- case 25:
- r0 = (s.mult___26524 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 26; continue; }
- s.tmp_1 = r0 = s.imgBuf___26565;
- s.tmp_3 = r0 = s.fontdata___26555;
- r0 = (s.off___26627 + 2);
- s.tmp_4 = r0;
- r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___26547);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2);
- s.tmp_0 = helpers_imageDrawIcon__P1724_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.imgBuf___26565;
- r0 = (s.arg2 + s.xOffset___26589);
- s.tmp_0.arg2 = r0;
- r0 = (s.arg3 + s.yOffset___26590);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = s.arg4;
- s.callLocIdx = 117; s.pc = 48; return s.tmp_0;
- case 48:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg2;
- s.tmp_2 = if_charWidth_1_mk(s);
- s.tmp_2.arg0 = s.arg5;
- if (!s.tmp_2.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth");
- } else {
- s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"];
- if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; }
- else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); }
- else { s.callLocIdx = 118; s.pc = 49; return s.tmp_2; }
- }
- case 49:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.arg2 = (r0);
- { step = 37; continue; }
- case 26:
- r0 = (s.off___26627 + 2);
- s.off___26627 = (r0);
- s.i___26712 = (0);
- case 27:
- r0 = (s.i___26712 < s.dataW___26529);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 36; continue; }
- s.j___26717 = (0);
- s.mask___26718 = (1);
- s.tmp_0 = r0 = s.off___26627;
- r0 = (s.tmp_0 + 1);
- s.off___26627 = (r0);
- r0 = pxsim.BufferMethods.getByte(s.fontdata___26555, s.tmp_0);
- s.c___26719 = (r0);
- case 28:
- r0 = (s.j___26717 < s.dataH___26535);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 35; continue; }
- r0 = (s.mask___26718 == 256);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 29; continue; }
- s.tmp_2 = r0 = s.off___26627;
- r0 = (s.tmp_2 + 1);
- s.off___26627 = (r0);
- r0 = pxsim.BufferMethods.getByte(s.fontdata___26555, s.tmp_2);
- s.c___26719 = (r0);
- s.mask___26718 = (1);
- case 29:
- case 30:
- s.n___26736 = (0);
- case 31:
- r0 = (s.c___26719 & s.mask___26718);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 32; continue; }
- r0 = (s.n___26736 + 1);
- s.n___26736 = (r0);
- r0 = (s.mask___26718 << 1);
- s.mask___26718 = (r0);
- { step = 31; continue; }
- case 32:
- r0 = pxsim_numops_toBoolDecr(s.n___26736);
- if (!r0) { step = 33; continue; }
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = r0 = s.arg2;
- r0 = (s.xOffset___26589 * s.mult___26524);
- 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___26717 + s.yOffset___26590);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 * s.mult___26524);
- s.tmp_4 = r0;
- r0 = (s.tmp_3 + s.tmp_4);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.mult___26524;
- r0 = (s.mult___26524 * s.n___26736);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = s.arg4;
- s.callLocIdx = 119; s.pc = 50; return s.tmp_0;
- case 50:
- r0 = s.retval;
- r0 = (s.j___26717 + s.n___26736);
- s.j___26717 = (r0);
- { step = 34; continue; }
- case 33:
- r0 = (s.mask___26718 << 1);
- s.mask___26718 = (r0);
- r0 = (s.j___26717 + 1);
- s.j___26717 = (r0);
- case 34:
- { step = 28; continue; }
- case 35:
- r0 = (s.arg2 + s.mult___26524);
- s.arg2 = (r0);
- r0 = (s.i___26712 + 1);
- s.i___26712 = (r0);
- { step = 27; continue; }
- case 36:
- case 37:
- { step = 9; continue; }
- case 38:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_imagePrint__P1757.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]}
+inline__P77524.info = {"start":392,"length":1759,"line":12,"column":64,"endLine":51,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]}
-function helpers_imagePrint__P1757_mk(s) {
+function inline__P77524_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imagePrint__P1757, depth: s.depth + 1,
+ parent: s, fn: inline__P77524, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -20281,45 +17924,21 @@ function helpers_imagePrint__P1757_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- x0___26521: undefined,
- cp___26523: undefined,
- mult___26524: undefined,
- dataW___26529: undefined,
- dataH___26535: undefined,
- byteHeight___26541: undefined,
- charSize___26547: undefined,
- dataSize___26551: undefined,
- fontdata___26555: undefined,
- lastchar___26558: undefined,
- imgBuf___26565: undefined,
- xOffset___26589: undefined,
- yOffset___26590: undefined,
- ch___26605: undefined,
- l___26624: undefined,
- r___26625: undefined,
- off___26627: undefined,
- guess___26628: undefined,
- m___26647: undefined,
- v___26656: undefined,
- i___26712: undefined,
- j___26717: undefined,
- mask___26718: undefined,
- c___26719: undefined,
- n___26736: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
- arg5: undefined,
- arg6: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ index___77525: undefined,
+ command___77555: undefined,
+ rules___77562: undefined,
+ g___77570: undefined,
} }
-function helpers_imageDrawIcon__P1724(s) {
+function inline__P77627(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -20329,51 +17948,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.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = r0 = s.arg0;
- s.tmp_1 = r0 = s.arg1;
- s.tmp_3 = helpers_pack__P4029_mk(s);
- s.tmp_3.arg0 = s.arg2;
- s.tmp_3.arg1 = s.arg3;
- s.callLocIdx = 89; s.pc = 1; return s.tmp_3;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1389; s.pc = 1; return s.tmp_0;
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()
} } }
-helpers_imageDrawIcon__P1724.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]}
+inline__P77627.info = {"start":2219,"length":54,"line":53,"column":64,"endLine":55,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]}
-function helpers_imageDrawIcon__P1724_mk(s) {
+function inline__P77627_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imageDrawIcon__P1724, depth: s.depth + 1,
+ parent: s, fn: inline__P77627, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function helpers_imageFillRect__P1725(s) {
+function tileworld_ruleediting_RuleRoom_constructor__P63803(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -20386,57 +17983,122 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = helpers_pack__P4029_mk(s);
- s.tmp_2.arg0 = s.arg1;
- s.tmp_2.arg1 = s.arg2;
- s.callLocIdx = 90; s.pc = 1; return s.tmp_2;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P63795_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = null;
+ s.callLocIdx = 834; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = helpers_pack__P4029_mk(s);
- s.tmp_4.arg0 = s.arg3;
- s.tmp_4.arg1 = s.arg4;
- s.callLocIdx = 91; s.pc = 2; return s.tmp_4;
+ r0 = (s.arg0).fields["kind"] = (0);
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 835; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5);
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_1 = r0;
+ r0 = (1 + s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 836; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 837; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 838; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorIn___63720;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 839; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["moreHelp"] = (s.tmp_1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["moreHelp"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 840; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["moreHelp"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 84;
+ s.callLocIdx = 841; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["moreHelp"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 77;
+ s.callLocIdx = 842; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom__C63802_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P74427);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 858; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_0.arg0 = globals.B___61870;
+ s.tmp_0.arg1 = 2049;
+ s.tmp_0.arg2 = inline__P74528;
+ s.callLocIdx = 860; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_imageFillRect__P1725.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]}
+tileworld_ruleediting_RuleRoom_constructor__P63803.info = {"start":436,"length":1639,"line":9,"column":8,"endLine":45,"endColumn":9,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["this","p"]}
-function helpers_imageFillRect__P1725_mk(s) {
+function tileworld_ruleediting_RuleRoom_constructor__P63803_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imageFillRect__P1725, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_constructor__P63803, depth: s.depth + 1,
pc: 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 tileworld_Project_saveHelp__P3704(s) {
+function inline__P74427(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -20446,396 +18108,221 @@ 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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["help"];
+ s.rt___74449 = undefined;
+ s.dir___74456 = undefined;
+ s.rules___74465 = undefined;
+ s.filteredRules___74471 = undefined;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 843; s.pc = 11; return s.tmp_2;
+ case 11:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = 1;
+ 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.tmp_2 = settings_writeNumber__P1826_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 4:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 844; s.pc = 12; return s.tmp_4;
+ case 12:
r0 = s.retval;
s.tmp_3 = r0;
- if ((globals.HelpKey___8342) && (globals.HelpKey___8342).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(globals.HelpKey___8342);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.HelpKey___8342) + ""; }
- case 5:
- r0 = s.retval;
+ r0 = (s.tmp_3 >= 1);
+ case 2:
+ // jmp value (already in r0)
s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 191; s.pc = 3; return s.tmp_2;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_5;
+ { step = 4; continue; }
case 3:
+ s.tmp_7 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_7.arg0 = s.caps[0];
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 845; s.pc = 13; return s.tmp_7;
+ case 13:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Project_saveHelp__P3704.info = {"start":5396,"length":103,"line":153,"column":8,"endLine":155,"endColumn":9,"fileName":"project.ts","functionName":"saveHelp","argumentNames":["this"]}
-
-function tileworld_Project_saveHelp__P3704_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Project_saveHelp__P3704, depth: s.depth + 1,
- pc: 0, retval: undefined, 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 settings_clear__P1823(s) {
-let r0 = s.r0, 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.settings._userClean();
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-settings_clear__P1823.info = {"start":1414,"length":58,"line":56,"column":4,"endLine":58,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"clear","argumentNames":[]}
-
-function settings_clear__P1823_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: settings_clear__P1823, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
-} }
-
-
-
-
-
-function game_popScene__P2529(s) {
-let r0 = s.r0, 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___25573 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 860; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.oldScene___25573 = (r0);
- s.tmp_0 = r0 = globals._sceneStack___4275;
- 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___4275);
- 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___4275);
- globals._scene___4274 = (r0);
- s.tmp_0 = control_popEventContext__P396_mk(s);
- s.callLocIdx = 861; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- { step = 6; continue; }
- case 3:
- r0 = pxsim_numops_toBoolDecr(globals._scene___4274);
- if (!r0) { step = 4; continue; }
- s.tmp_0 = control_popEventContext__P396_mk(s);
- s.callLocIdx = 862; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- globals._scene___4274 = (undefined);
+ s.tmp_6 = r0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_9 = r0;
+ r0 = s.tmp_9.fields["_spritesI"];
+ s.tmp_10 = r0;
+ r0 = pxsim_Array__length(s.tmp_10);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_6 <= s.tmp_8);
case 4:
- case 5:
- case 6:
- r0 = pxsim_numops_toBoolDecr(globals._scene___4274);
- if (!r0) { step = 7; continue; }
- s.tmp_0 = particles_enableAll__P2702_mk(s);
- s.callLocIdx = 863; s.pc = 14; return s.tmp_0;
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_11);
+ if (!r0) { step = 5; continue; }
+ s.tmp_12 = r0 = s.caps[0];
+ s.tmp_15 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_15.arg0 = s.caps[0];
+ s.tmp_15.arg1 = true;
+ s.callLocIdx = 847; s.pc = 14; return s.tmp_15;
case 14:
r0 = s.retval;
- case 7:
- case 8:
- r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4277);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P25594);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___25573);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals._scenePopHandlers___4277;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 865; s.pc = 15; return s.tmp_1;
+ s.tmp_14 = r0;
+ r0 = (s.tmp_14 - 1);
+ s.tmp_13 = r0;
+ r0 = (s.tmp_12).fields["kind"] = (s.tmp_13);
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 848; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- case 9:
- case 10:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-game_popScene__P2529.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]}
-
-function game_popScene__P2529_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: game_popScene__P2529, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- oldScene___25573: undefined,
-} }
-
-
-
-
-
-function inline__P25594(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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 = lambda_2_mk(s);
- s.tmp_0.argL = s.arg0;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom__C63802_v0_1_mk(s);
s.tmp_0.arg0 = s.caps[0];
- setupLambda(s.tmp_0, s.tmp_0.argL);
- s.callLocIdx = 864; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P25594.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]}
-
-function inline__P25594_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P25594, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function particles_enableAll__P2702(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.sources___25598 = undefined;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1120; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.sources___25598 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.sources___25598);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = s.sources___25598;
- s.tmp_0.arg1 = inline__P25604;
- s.callLocIdx = 1122; s.pc = 4; return s.tmp_0;
- case 4:
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 16; return s.tmp_0;
+ case 16:
r0 = s.retval;
- s.tmp_0 = particles_pruneParticles__P4631_mk(s);
- s.callLocIdx = 1123; s.pc = 5; return s.tmp_0;
+ { step = 10; continue; }
case 5:
+ r0 = s.caps[0].fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 849; s.pc = 17; return s.tmp_2;
+ case 17:
r0 = s.retval;
- case 1:
- case 2:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-particles_enableAll__P2702.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]}
-
-function particles_enableAll__P2702_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: particles_enableAll__P2702, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- sources___25598: undefined,
-} }
-
-
-
-
-
-function inline__P25604(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1121; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = true;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P25604.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
-
-function inline__P25604_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P25604, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function control_popEventContext__P396(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.ctx___25611 = undefined;
- s.context___25619 = undefined;
- r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 850; s.pc = 18; return s.tmp_4;
+ case 18:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.rt___74449 = (r0);
+ r0 = s.caps[0].fields["dirMap"];
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_Array_.pop(globals.eventContexts___3961);
- s.ctx___25611 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.ctx___25611);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 851; s.pc = 19; return s.tmp_2;
+ case 19:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 852; s.pc = 20; return s.tmp_4;
+ case 20:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.dir___74456 = (r0);
+ r0 = (s.rt___74449 != 15);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- { step = 7; continue; }
- case 3:
- case 4:
- s.tmp_2 = control_EventContext_unregister__P388_mk(s);
- s.tmp_2.arg0 = s.ctx___25611;
- s.callLocIdx = 69; s.pc = 8; return s.tmp_2;
- case 8:
+ if (!r0) { step = 8; continue; }
+ s.tmp_1 = tileworld_Project_getRulesForSpriteKind__P63705_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg0 = r0;
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 853; s.pc = 21; return s.tmp_1;
+ case 21:
r0 = s.retval;
- s.tmp_0 = r0 = globals.eventContexts___3961;
- r0 = pxsim_Array__length(globals.eventContexts___3961);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
+ s.rules___74465 = (r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P72683_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.rules___74465;
+ s.tmp_0.arg2 = s.rt___74449;
+ s.tmp_0.arg3 = s.dir___74456;
+ s.callLocIdx = 854; s.pc = 22; return s.tmp_0;
+ case 22:
+ r0 = s.retval;
+ s.filteredRules___74471 = (r0);
+ r0 = pxsim_Array__length(s.filteredRules___74471);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
- s.context___25619 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.context___25619);
- if (!r0) { step = 5; continue; }
- s.tmp_0 = control_EventContext_register__P387_mk(s);
- s.tmp_0.arg0 = s.context___25619;
- s.callLocIdx = 70; s.pc = 9; return s.tmp_0;
- case 9:
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_2 = r0 = s.filteredRules___74471;
+ s.tmp_4 = tileworld_Project_makeRule__P63698_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.rt___74449;
+ s.tmp_4.arg2 = s.dir___74456;
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_4.arg3 = r0;
+ s.callLocIdx = 855; s.pc = 23; return s.tmp_4;
+ case 23:
r0 = s.retval;
- { step = 6; continue; }
- case 5:
- globals.eventContexts___3961 = (undefined);
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_2, s.tmp_3);
case 6:
case 7:
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 856; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleEditor__C63813_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_constructor__P63814_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ r0 = pxsim_Array__getAt(s.filteredRules___74471, 0);
+ s.tmp_1.arg2 = r0;
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 857; s.pc = 25; return s.tmp_1;
+ case 25:
+ r0 = s.retval;
+ case 8:
+ case 9:
+ case 10:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_popEventContext__P396.info = {"start":7466,"length":413,"line":229,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]}
+inline__P74427.info = {"start":974,"length":964,"line":23,"column":64,"endLine":41,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]}
-function control_popEventContext__P396_mk(s) {
+function inline__P74427_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_popEventContext__P396, depth: s.depth + 1,
+ parent: s, fn: inline__P74427, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- ctx___25611: undefined,
- context___25619: 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,
+ rt___74449: undefined,
+ dir___74456: undefined,
+ rules___74465: undefined,
+ filteredRules___74471: undefined,
} }
-function control_EventContext_register__P387(s) {
+function inline__P74528(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -20845,100 +18332,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.h___25632 = undefined;
- s.unnamed50___U1 = undefined;
- s.unnamed51___U2 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0);
- s.h___25632 = (undefined);
- r0 = s.arg0.fields["handlers"];
- s.unnamed50___U1 = (r0);
- s.unnamed51___U2 = (0);
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 859; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_0 = r0 = s.unnamed51___U2;
- r0 = pxsim_Array__length(s.unnamed50___U1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed50___U1, s.unnamed51___U2);
- s.h___25632 = (r0);
- s.tmp_2 = control_EventHandler_register__P3954_mk(s);
- s.tmp_2.arg0 = s.h___25632;
- s.callLocIdx = 60; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
- r0 = (s.unnamed51___U2 + 1);
- s.unnamed51___U2 = (r0);
- { step = 1; continue; }
- case 2:
- s.unnamed50___U1 = (undefined);
- s.tmp_0 = control_EventContext_registerFrameCallbacks__P3959_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 61; s.pc = 4; return s.tmp_0;
- case 4:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_EventContext_register__P387.info = {"start":4284,"length":138,"line":128,"column":8,"endLine":132,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]}
+inline__P74528.info = {"start":2006,"length":56,"line":42,"column":64,"endLine":44,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]}
-function control_EventContext_register__P387_mk(s) {
+function inline__P74528_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_EventContext_register__P387, depth: s.depth + 1,
+ parent: s, fn: inline__P74528, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- h___25632: undefined,
- unnamed50___U1: undefined,
- unnamed51___U2: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function settings_remove__P1833(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = pxsim.settings._remove(s.arg0);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-settings_remove__P1833.info = {"start":3702,"length":64,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"remove","argumentNames":["key"]}
-
-function settings_remove__P1833_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: settings_remove__P1833, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
} }
-function helpers_arrayForEach__P104(s) {
+function tileworld_ruleediting_RuleEditor_constructor__P63814(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -20948,58 +18364,86 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___27448 = undefined;
- s.i___27451 = 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__length(s.arg0);
- s.len___27448 = (r0);
- s.i___27451 = (0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["kind"] = (s.arg3);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P63795_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 930; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___27451 < s.len___27448);
- 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___27451);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.i___27451;
- setupLambda(s.tmp_1, s.tmp_1.argL);
- s.callLocIdx = 6; s.pc = 3; return s.tmp_1;
- case 3:
r0 = s.retval;
- r0 = (s.i___27451 + 1);
- s.i___27451 = (r0);
- { step = 1; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 931; s.pc = 2; return s.tmp_0;
case 2:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 932; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["askDeleteRule"] = (false);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 933; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(2, inline__P75127);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1003; s.pc = 5; return s.tmp_1;
+ case 5:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P75426);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1010; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_arrayForEach__P104.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"]}
+tileworld_ruleediting_RuleEditor_constructor__P63814.info = {"start":1153,"length":5997,"line":26,"column":8,"endLine":138,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["this","p","rule","kind"]}
-function helpers_arrayForEach__P104_mk(s) {
+function tileworld_ruleediting_RuleEditor_constructor__P63814_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayForEach__P104, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_constructor__P63814, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- len___27448: undefined,
- i___27451: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function settings_list__P1832(s) {
+function inline__P75127(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21009,92 +18453,795 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.index___75135 = undefined;
+ s.rules___75148 = undefined;
+ s.rules___75227 = undefined;
+ s.index___75229 = undefined;
+ s.rules___75309 = undefined;
+ s.g___75313 = undefined;
+ s.col___75370 = undefined;
+ s.row___75376 = undefined;
+ s.tmp_0 = Sprite_say__P62066_mk(s);
+ r0 = s.caps[0].fields["helpCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = null;
+ s.tmp_0.arg2 = undefined;
+ s.tmp_0.arg3 = 15;
+ s.tmp_0.arg4 = 1;
+ s.callLocIdx = 934; s.pc = 68; return s.tmp_0;
+ case 68:
+ r0 = s.retval;
+ r0 = s.caps[0].fields["askDeleteRule"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_String_.mkEmpty();
- s.arg0 = (r0);
- case 1:
- case 2:
- r0 = pxsim.settings._list(s.arg0);
- return leave(s, r0)
- default: oops()
-} } }
-settings_list__P1832.info = {"start":3544,"length":107,"line":140,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"list","argumentNames":["prefix"]}
-
-function settings_list__P1832_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: settings_list__P1832, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleVisualsBase_setRow__P12693(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["cursor"];
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_currentRules__P74499_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 935; s.pc = 69; return s.tmp_2;
+ case 69:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_1, s.tmp_3, undefined);
+ s.index___75135 = (r0);
+ s.tmp_0 = tileworld_Project_removeRule__P63699_mk(s);
+ r0 = s.caps[0].fields["p"];
s.tmp_0.arg0 = r0;
- r0 = (s.arg1 << 4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 8);
+ r0 = s.caps[0].fields["rule"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 6);
+ r0 = s.tmp_1.fields["rid"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 679; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 937; s.pc = 70; return s.tmp_0;
+ case 70:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P74499_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 938; s.pc = 71; return s.tmp_0;
+ case 71:
+ r0 = s.retval;
+ s.rules___75148 = (r0);
+ r0 = pxsim_Array__length(s.rules___75148);
+ 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_2 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 939; s.pc = 72; return s.tmp_2;
+ case 72:
+ r0 = s.retval;
+ { step = 67; continue; }
+ { step = 4; continue; }
case 1:
+ s.tmp_1 = r0 = s.index___75135;
+ r0 = pxsim_Array__length(s.rules___75148);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.rules___75148, s.index___75135);
+ { step = 3; continue; }
+ case 2:
+ s.tmp_3 = r0 = s.rules___75148;
+ r0 = (s.index___75135 - 1);
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.tmp_6 = tileworld_ruleediting_RuleEditor_resetRule__P74497_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.tmp_6.arg1 = s.tmp_5;
+ s.callLocIdx = 940; s.pc = 73; return s.tmp_6;
+ case 73:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
+ case 4:
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (false);
+ { step = 66; continue; }
+ case 5:
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ s.callLocIdx = 941; s.pc = 74; return s.tmp_1;
+ case 74:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P73105_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 942; s.pc = 76; return s.tmp_4;
+ case 76:
+ r0 = s.retval;
+ s.tmp_3.arg1 = r0;
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 943; s.pc = 77; return s.tmp_6;
+ case 77:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 2);
+ s.tmp_3.arg2 = r0;
+ s.callLocIdx = 944; s.pc = 75; return s.tmp_3;
+ case 75:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 10; continue; }
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 == 0);
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 6; continue; }
+ r0 = (s.caps[0]).fields["menu"] = (1);
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 945; s.pc = 78; return s.tmp_0;
+ case 78:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 946; s.pc = 79; return s.tmp_0;
+ case 79:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 947; s.pc = 80; return s.tmp_0;
+ case 80:
+ r0 = s.retval;
+ { step = 9; continue; }
+ case 6:
+ r0 = s.caps[0].fields["menu"];
+ 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 = tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 948; s.pc = 81; return s.tmp_2;
+ case 81:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ { step = 65; continue; }
+ case 12:
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_0;
+ { step = 14; continue; }
+ case 13:
+ s.tmp_3 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 949; s.pc = 82; return s.tmp_3;
+ case 82:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 < 2);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 15; continue; }
+ s.tmp_5 = tileworld_ruleediting_RuleEditor_attrUpdate__P74516_mk(s);
+ s.tmp_5.arg0 = s.caps[0];
+ s.callLocIdx = 950; s.pc = 83; return s.tmp_5;
+ case 83:
+ r0 = s.retval;
+ { step = 64; continue; }
+ case 15:
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P74511_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = false;
+ s.callLocIdx = 951; s.pc = 84; return s.tmp_2;
+ case 84:
+ r0 = s.retval;
+ { step = 63; continue; }
+ case 16:
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 17; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 952; s.pc = 85; return s.tmp_2;
+ case 85:
+ r0 = s.retval;
+ { step = 62; continue; }
+ case 17:
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 60; continue; }
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 953; s.pc = 86; return s.tmp_4;
+ case 86:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 42; continue; }
+ s.tmp_7 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_7.arg0 = s.caps[0];
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 954; s.pc = 87; return s.tmp_7;
+ case 87:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (7 <= s.tmp_6);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 18; continue; }
+ r0 = s.tmp_5;
+ { step = 19; continue; }
+ case 18:
+ s.tmp_9 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_9.arg0 = s.caps[0];
+ s.tmp_9.arg1 = true;
+ s.callLocIdx = 955; s.pc = 88; return s.tmp_9;
+ case 88:
+ r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 <= 9);
+ case 19:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_10);
+ if (!r0) { step = 32; continue; }
+ s.tmp_11 = tileworld_ruleediting_RuleEditor_currentRules__P74499_mk(s);
+ s.tmp_11.arg0 = s.caps[0];
+ s.callLocIdx = 956; s.pc = 89; return s.tmp_11;
+ case 89:
+ r0 = s.retval;
+ s.rules___75227 = (r0);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.indexOf(s.rules___75227, s.tmp_0, undefined);
+ s.index___75229 = (r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 957; s.pc = 90; return s.tmp_2;
+ case 90:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 7);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 20; continue; }
+ r0 = s.tmp_0;
+ { step = 21; continue; }
+ case 20:
+ r0 = (s.index___75229 > 0);
+ case 21:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 22; continue; }
+ s.tmp_4 = tileworld_ruleediting_RuleEditor_changeRule__P74496_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_5 = r0 = s.rules___75227;
+ r0 = (s.index___75229 - 1);
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6);
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 958; s.pc = 91; return s.tmp_4;
+ case 91:
+ r0 = s.retval;
+ { step = 31; continue; }
+ case 22:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 959; s.pc = 92; return s.tmp_2;
+ case 92:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 9);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 23; continue; }
+ r0 = s.tmp_0;
+ { step = 24; continue; }
+ case 23:
+ s.tmp_3 = r0 = s.index___75229;
+ r0 = pxsim_Array__length(s.rules___75227);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 1);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 < s.tmp_4);
+ case 24:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 25; continue; }
+ s.tmp_7 = tileworld_ruleediting_RuleEditor_changeRule__P74496_mk(s);
+ s.tmp_7.arg0 = s.caps[0];
+ s.tmp_8 = r0 = s.rules___75227;
+ r0 = (s.index___75229 + 1);
+ s.tmp_9 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_8, s.tmp_9);
+ s.tmp_7.arg1 = r0;
+ s.callLocIdx = 960; s.pc = 93; return s.tmp_7;
+ case 93:
+ r0 = s.retval;
+ { step = 30; continue; }
+ case 25:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 961; s.pc = 94; return s.tmp_2;
+ case 94:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 8);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 26; continue; }
+ r0 = s.tmp_0;
+ { step = 27; continue; }
+ case 26:
+ s.tmp_4 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.callLocIdx = 962; s.pc = 95; return s.tmp_4;
+ case 95:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 != -1);
+ case 27:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 28; continue; }
+ s.tmp_6 = tileworld_ruleediting_RuleEditor_changeRule__P74496_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.tmp_7 = tileworld_Project_makeRule__P63698_mk(s);
+ s.tmp_7.arg0 = s.caps[1];
+ s.tmp_8 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_8.arg0 = s.caps[0];
+ s.callLocIdx = 963; s.pc = 98; return s.tmp_8;
+ case 98:
+ r0 = s.retval;
+ s.tmp_7.arg1 = r0;
+ s.tmp_9 = tileworld_ruleediting_RuleDisplay_getDir__P73094_mk(s);
+ s.tmp_9.arg0 = s.caps[0];
+ s.callLocIdx = 964; s.pc = 99; return s.tmp_9;
+ case 99:
+ r0 = s.retval;
+ s.tmp_7.arg2 = r0;
+ s.tmp_10 = tileworld_ruleediting_RuleDisplay_getKind__P73096_mk(s);
+ s.tmp_10.arg0 = s.caps[0];
+ s.callLocIdx = 965; s.pc = 100; return s.tmp_10;
+ case 100:
+ r0 = s.retval;
+ s.tmp_7.arg3 = r0;
+ s.callLocIdx = 966; s.pc = 97; return s.tmp_7;
+ case 97:
+ r0 = s.retval;
+ s.tmp_6.arg1 = r0;
+ s.callLocIdx = 967; s.pc = 96; return s.tmp_6;
+ case 96:
+ r0 = s.retval;
+ case 28:
+ case 29:
+ case 30:
+ case 31:
+ { step = 41; continue; }
+ case 32:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 968; s.pc = 101; return s.tmp_2;
+ case 101:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 33; continue; }
+ s.tmp_3 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 969; s.pc = 102; return s.tmp_3;
+ case 102:
+ r0 = s.retval;
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 970; s.pc = 103; return s.tmp_0;
+ case 103:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C63816_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_MapEditor_constructor__P63817_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 971; s.pc = 104; return s.tmp_1;
+ case 104:
+ r0 = s.retval;
+ { step = 67; continue; }
+ { step = 40; continue; }
+ case 33:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 972; s.pc = 105; return s.tmp_2;
+ case 105:
+ 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 = 34; continue; }
+ s.tmp_3 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 973; s.pc = 106; return s.tmp_3;
+ case 106:
+ r0 = s.retval;
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 974; s.pc = 107; return s.tmp_0;
+ case 107:
+ r0 = s.retval;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_0 = r0;
+ r0 = s.tmp_0.fields["rules"];
+ s.rules___75309 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C63770_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_RunGame_constructor__P63771_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.rules___75309;
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 976; s.pc = 109; return s.tmp_3;
+ case 109:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == 3);
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 977; s.pc = 108; return s.tmp_1;
+ case 108:
+ r0 = s.retval;
+ s.g___75313 = (s.tmp_0);
+ s.tmp_0 = tileworld_RunGame_setWorld__P63772_mk(s);
+ s.tmp_0.arg0 = s.g___75313;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_backgrounds"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_sprites"];
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 980; s.pc = 110; return s.tmp_0;
+ case 110:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RunGame_start__P63773_mk(s);
+ s.tmp_0.arg0 = s.g___75313;
+ s.callLocIdx = 981; s.pc = 111; return s.tmp_0;
+ case 111:
+ r0 = s.retval;
+ { step = 67; continue; }
+ { step = 39; continue; }
+ case 34:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 982; s.pc = 112; return s.tmp_2;
+ case 112:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 6);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 35; continue; }
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
+ { step = 38; continue; }
+ case 35:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 983; s.pc = 113; return s.tmp_2;
+ case 113:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 5);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 36; continue; }
+ s.tmp_3 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 984; s.pc = 114; return s.tmp_3;
+ case 114:
+ r0 = s.retval;
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 985; s.pc = 115; return s.tmp_0;
+ case 115:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleViewDisplay__C63798_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_ruleediting_RuleViewDisplay_constructor__P63799_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ r0 = s.caps[0].fields["p"];
+ s.tmp_1.arg1 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_1.arg2 = r0;
+ s.callLocIdx = 986; s.pc = 116; return s.tmp_1;
+ case 116:
+ r0 = s.retval;
+ { step = 67; continue; }
+ case 36:
+ case 37:
+ case 38:
+ case 39:
+ case 40:
+ case 41:
+ { step = 59; continue; }
+ case 42:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 987; s.pc = 117; return s.tmp_2;
+ case 117:
+ 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 = 57; continue; }
+ s.tmp_5 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_5.arg0 = s.caps[0];
+ s.tmp_5.arg1 = true;
+ s.callLocIdx = 988; s.pc = 118; return s.tmp_5;
+ case 118:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 > 5);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 43; continue; }
+ s.tmp_6 = tileworld_ruleediting_RuleEditor_tryEditCommand__P74504_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.callLocIdx = 989; s.pc = 119; return s.tmp_6;
+ case 119:
+ r0 = s.retval;
+ { step = 56; continue; }
+ case 43:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 990; s.pc = 120; return s.tmp_2;
+ case 120:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 5);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 44; continue; }
+ r0 = s.tmp_0;
+ { step = 45; continue; }
+ case 44:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 991; s.pc = 121; return s.tmp_4;
+ case 121:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 < 7);
+ case 45:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 54; continue; }
+ s.tmp_6 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106_mk(s);
+ s.tmp_6.arg0 = s.caps[0];
+ s.tmp_8 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_8.arg0 = s.caps[0];
+ s.tmp_8.arg1 = true;
+ s.callLocIdx = 992; s.pc = 123; return s.tmp_8;
+ case 123:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 2);
+ s.tmp_6.arg1 = r0;
+ s.callLocIdx = 993; s.pc = 122; return s.tmp_6;
+ case 122:
+ r0 = s.retval;
+ s.col___75370 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 994; s.pc = 125; return s.tmp_2;
+ case 125:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 995; s.pc = 124; return s.tmp_0;
+ case 124:
+ r0 = s.retval;
+ s.row___75376 = (r0);
+ s.tmp_2 = tileworld_RuleView_findWitnessColRow__P63647_mk(s);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.col___75370;
+ s.tmp_2.arg2 = s.row___75376;
+ s.tmp_2.arg3 = true;
+ s.callLocIdx = 996; s.pc = 126; return s.tmp_2;
+ case 126:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 46; continue; }
+ r0 = s.tmp_0;
+ { step = 51; continue; }
+ case 46:
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 != 2);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 47; continue; }
+ r0 = s.tmp_3;
+ { step = 48; continue; }
+ case 47:
+ r0 = (s.col___75370 != 2);
+ case 48:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_6);
+ if (!r0) { step = 49; continue; }
+ r0 = s.tmp_6;
+ { step = 50; continue; }
+ case 49:
+ r0 = (s.row___75376 != 2);
+ case 50:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = s.tmp_7;
+ case 51:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 52; continue; }
+ r0 = (s.caps[0]).fields["menu"] = (2);
+ s.tmp_0 = r0 = s.caps[0];
+ s.tmp_2 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.col___75370;
+ s.tmp_2.arg2 = s.row___75376;
+ s.callLocIdx = 998; s.pc = 127; return s.tmp_2;
+ case 127:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1);
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 999; s.pc = 128; return s.tmp_0;
+ case 128:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_1 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_1.arg0 = r0;
+ r0 = s.caps[0].fields["whenDo"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1000; s.pc = 130; return s.tmp_1;
+ case 130:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1001; s.pc = 129; return s.tmp_0;
+ case 129:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1002; s.pc = 131; return s.tmp_0;
+ case 131:
+ r0 = s.retval;
+ case 52:
+ case 53:
+ case 54:
+ case 55:
+ case 56:
+ case 57:
+ case 58:
+ case 59:
+ case 60:
+ case 61:
+ case 62:
+ case 63:
+ case 64:
+ case 65:
+ case 66:
+ case 67:
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_setRow__P12693.info = {"start":3985,"length":92,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setRow","argumentNames":["this","row"]}
+inline__P75127.info = {"start":1585,"length":4868,"line":35,"column":64,"endLine":119,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]}
-function tileworld_RuleVisualsBase_setRow__P12693_mk(s) {
+function inline__P75127_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_setRow__P12693, depth: s.depth + 1,
+ parent: s, fn: inline__P75127, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- arg0: undefined,
- arg1: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ index___75135: undefined,
+ rules___75148: undefined,
+ rules___75227: undefined,
+ index___75229: undefined,
+ rules___75309: undefined,
+ g___75313: undefined,
+ col___75370: undefined,
+ row___75376: undefined,
} }
-function Sprite_y__P2025(s) {
+function inline__P75426(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21104,52 +19251,95 @@ 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__C2013_VT)) failedCast(r0);
- s.tmp_0 = Sprite_top__P2064_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_image"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 232; s.pc = 1; return s.tmp_0;
+ r0 = s.caps[0].fields["askDeleteRule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = (s.caps[0]).fields["askDeleteRule"] = (false);
+ { step = 6; continue; }
case 1:
+ r0 = s.caps[0].fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 1004; s.pc = 8; return s.tmp_2;
+ case 8:
+ r0 = s.retval;
+ { step = 5; continue; }
+ case 2:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1005; s.pc = 9; return s.tmp_2;
+ case 9:
+ 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 = 3; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.callLocIdx = 1006; s.pc = 10; return s.tmp_3;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 1007; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1008; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_saveAndPop__P74498_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1009; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ { step = 7; continue; }
+ case 4:
+ case 5:
+ case 6:
+ s.tmp_0 = tileworld_ruleediting_RuleEditor__C63813_v0_1_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 14; return s.tmp_0;
+ case 14:
r0 = s.retval;
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_y__P2025.info = {"start":2022,"length":72,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]}
+inline__P75426.info = {"start":6520,"length":618,"line":121,"column":64,"endLine":137,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_y__P2025_mk(s) {
+function inline__P75426_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_y__P2025, depth: s.depth + 1,
+ parent: s, fn: inline__P75426, depth: s.depth + 1,
pc: 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__P2064(s) {
+function tileworld_ruleediting_RuleEditor_update__P74502(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21159,62 +19349,276 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.physics___26214 = undefined;
+ s.len___75698 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 285; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P73103_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1060; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["help"];
+ 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["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_2;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1061; s.pc = 26; return s.tmp_4;
+ case 26:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 5);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_5;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_7 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 1062; s.pc = 27; return s.tmp_7;
+ case 27:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 >= 2);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 13; continue; }
+ r0 = s.arg0.fields["commandLengths"];
+ s.tmp_9 = r0;
+ s.tmp_12 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_12.arg0 = s.arg0;
+ s.tmp_12.arg1 = true;
+ s.callLocIdx = 1063; s.pc = 28; return s.tmp_12;
+ case 28:
+ r0 = s.retval;
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 - 2);
+ s.tmp_10 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10);
+ s.len___75698 = (r0);
+ r0 = (s.len___75698 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 1064; s.pc = 29; return s.tmp_3;
+ case 29:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 6);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 < s.len___75698);
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 11; continue; }
+ s.tmp_8 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.tmp_8.arg1 = true;
+ s.callLocIdx = 1065; s.pc = 30; return s.tmp_8;
+ case 30:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 6);
+ s.tmp_6 = r0;
+ r0 = (s.len___75698 - 1);
+ s.tmp_9 = r0;
+ r0 = (s.tmp_6 == s.tmp_9);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 9; continue; }
+ r0 = "A: add command";
+ { step = 10; continue; }
+ case 9:
+ r0 = "E: edit command";
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ s.tmp_11 = Sprite_say__P62066_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_11.arg0 = r0;
+ s.tmp_11.arg1 = s.tmp_10;
+ s.tmp_11.arg2 = undefined;
+ s.tmp_11.arg3 = 15;
+ s.tmp_11.arg4 = 1;
+ s.callLocIdx = 1066; s.pc = 31; return s.tmp_11;
+ case 31:
+ r0 = s.retval;
+ case 11:
+ case 12:
+ case 13:
+ case 14:
+ r0 = s.arg0.fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_showMainMenu__P74503_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 1067; s.pc = 32; return s.tmp_2;
+ case 32:
+ r0 = s.retval;
+ { step = 22; continue; }
+ case 15:
+ r0 = s.arg0.fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_2, 15);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_attrMenu__P74514_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = false;
+ s.callLocIdx = 1068; s.pc = 34; return s.tmp_1;
+ case 34:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.tmp_3 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = false;
+ s.callLocIdx = 1069; s.pc = 35; return s.tmp_3;
+ case 35:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 2);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1070; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ { step = 21; continue; }
+ case 16:
+ r0 = s.arg0.fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 17; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = false;
+ s.callLocIdx = 1071; s.pc = 36; return s.tmp_2;
+ case 36:
+ r0 = s.retval;
+ { step = 20; continue; }
+ case 17:
+ r0 = s.arg0.fields["menu"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 18; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprMenu__P74518_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 1072; s.pc = 37; return s.tmp_2;
+ case 37:
+ r0 = s.retval;
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ r0 = s.arg0.fields["askDeleteRule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 23; continue; }
+ s.tmp_1 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 128;
+ s.tmp_1.arg2 = true;
+ s.callLocIdx = 1073; s.pc = 38; return s.tmp_1;
+ case 38:
r0 = s.retval;
- r0 = r0.fields["physicsEngine"];
- s.physics___26214 = (r0);
- s.tmp_0 = PhysicsEngine__C2156_v2_4_mk(s);
- s.tmp_0.arg0 = s.physics___26214;
- 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__C2156_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.tmp_0 = game_showDialog__P62527_mk(s);
+ s.tmp_0.arg0 = "OK to delete rule?";
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = "A = OK, B = CANCEL";
+ s.callLocIdx = 1074; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ { step = 24; continue; }
+ case 23:
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = false;
+ s.callLocIdx = 1075; s.pc = 40; return s.tmp_0;
+ case 40:
r0 = s.retval;
+ case 24:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_top__P2064.info = {"start":9760,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]}
+tileworld_ruleediting_RuleEditor_update__P74502.info = {"start":10424,"length":1240,"line":223,"column":8,"endLine":248,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"update","argumentNames":["this"]}
-function Sprite_top__P2064_mk(s) {
+function tileworld_ruleediting_RuleEditor_update__P74502_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_top__P2064, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_update__P74502, depth: s.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___26214: 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,
+ len___75698: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function PhysicsEngine_moveSprite__P2160(s) {
+function tileworld_ruleediting_RuleEditor_dirExprMenu__P74518(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21226,99 +19630,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, PhysicsEngine__C2156_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76490);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals.movedImages___63786;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1189; s.pc = 1; return s.tmp_1;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_1.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1190; s.pc = 3; return s.tmp_1;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.cursorOut___63721;
+ s.callLocIdx = 1191; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-PhysicsEngine_moveSprite__P2160.info = {"start":230,"length":43,"line":13,"column":4,"endLine":13,"endColumn":47,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]}
-
-function PhysicsEngine_moveSprite__P2160_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: PhysicsEngine_moveSprite__P2160, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
-} }
-
-
-
-
-
-function Fx_sub__P151(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = (s.arg0 - s.arg1);
- return leave(s, r0)
- default: oops()
-} } }
-Fx_sub__P151.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]}
-
-function Fx_sub__P151_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Fx_sub__P151, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function Sprite_top__P2063(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2013_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__P2063.info = {"start":9617,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]}
-Sprite_top__P2063.isGetter = true;
+tileworld_ruleediting_RuleEditor_dirExprMenu__P74518.info = {"start":22106,"length":326,"line":502,"column":8,"endLine":509,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprMenu","argumentNames":["this"]}
-function Sprite_top__P2063_mk(s) {
+function tileworld_ruleediting_RuleEditor_dirExprMenu__P74518_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_top__P2063, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprMenu__P74518, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -21326,7 +19679,7 @@ function Sprite_top__P2063_mk(s) {
-function tileworld_RuleVisualsBase_setCol__P12692(s) {
+function inline__P76490(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21341,31 +19694,52 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- r0 = (s.arg1 << 4);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 678; s.pc = 1; return s.tmp_0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ r0 = (s.arg1 < 4);
+ 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:
+ s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = s.arg1;
+ s.tmp_4.arg2 = 0;
+ s.tmp_4.arg3 = s.arg0;
+ s.callLocIdx = 1188; s.pc = 6; return s.tmp_4;
+ case 6:
r0 = s.retval;
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_setCol__P12692.info = {"start":3890,"length":85,"line":96,"column":8,"endLine":98,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setCol","argumentNames":["this","col"]}
+inline__P76490.info = {"start":22162,"length":172,"line":503,"column":32,"endLine":507,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]}
-function tileworld_RuleVisualsBase_setCol__P12692_mk(s) {
+function inline__P76490_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_setCol__P12692, depth: s.depth + 1,
+ parent: s, fn: inline__P76490, depth: s.depth + 1,
pc: 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,
} }
@@ -21374,7 +19748,7 @@ function tileworld_RuleVisualsBase_setCol__P12692_mk(s) {
-function Sprite_x__P2023(s) {
+function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21384,43 +19758,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.inst___75963 = undefined;
+ s.arg___75971 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = Sprite_left__P2060_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_image"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 / 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 230; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1111; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.inst___75963 = (r0);
+ s.tmp_0 = tileworld_RuleView_getCmdArg__P63652_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1112; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.arg___75971 = (r0);
+ r0 = s.arg0.fields["tokens"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__length(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_3 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.inst___75963;
+ s.tmp_3.arg2 = s.arg___75971;
+ s.tmp_3.arg3 = s.arg1;
+ s.callLocIdx = 1113; s.pc = 7; return s.tmp_3;
+ case 7:
+ r0 = s.retval;
+ { step = 4; continue; }
case 1:
+ r0 = (s.inst___75963 != 255);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.inst___75963);
+ r0 = pxsim_Array__push(s.tmp_1, 100);
+ r0 = (s.arg0).fields["tokens"] = (s.tmp_1);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.inst___75963;
+ s.tmp_0.arg2 = s.arg___75971;
+ s.tmp_0.arg3 = s.arg1;
+ s.callLocIdx = 1114; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
+ case 2:
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_x__P2023.info = {"start":1673,"length":72,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]}
+tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506.info = {"start":14845,"length":488,"line":326,"column":8,"endLine":335,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"modifyCommandMenu","argumentNames":["this","inEdit"]}
-function Sprite_x__P2023_mk(s) {
+function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_x__P2023, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
+ inst___75963: undefined,
+ arg___75971: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -21429,7 +19852,7 @@ function Sprite_x__P2023_mk(s) {
-function Sprite_left__P2060(s) {
+function tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21439,62 +19862,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.physics___21807 = undefined;
+ s.col___75915 = undefined;
+ s.row___75916 = 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, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 277; s.pc = 1; return s.tmp_0;
- case 1:
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.col___75915 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.col___75915, 3);
+ s.row___75916 = (0);
+ r0 = pxsim_pxtcore_mkAction(5, inline__P75920);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___75915);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___75916);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg3);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["tokens"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1109; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- r0 = r0.fields["physicsEngine"];
- s.physics___21807 = (r0);
- s.tmp_0 = PhysicsEngine__C2156_v2_4_mk(s);
- s.tmp_0.arg0 = s.physics___21807;
- s.tmp_0.arg1 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = s.arg0.fields["_x"];
- s.tmp_3 = r0;
- r0 = (s.tmp_1 - s.tmp_3);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 0;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite;
- s.pc = 2; return s.tmp_0;
- case 2:
+ r0 = (s.arg1 != 255);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_makeArgMenu__P74510_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.arg2;
+ s.tmp_1.arg3 = s.arg3;
+ s.callLocIdx = 1110; s.pc = 4; return s.tmp_1;
+ case 4:
r0 = s.retval;
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_left__P2060.info = {"start":8956,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]}
+tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505.info = {"start":13987,"length":848,"line":303,"column":8,"endLine":324,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeCommandMenu","argumentNames":["this","inst","arg","inEdit"]}
-function Sprite_left__P2060_mk(s) {
+function tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_left__P2060, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505, depth: s.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___21807: undefined,
+ col___75915: undefined,
+ row___75916: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function Sprite_left__P2059(s) {
+function inline__P75920(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21508,23 +19944,92 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_x"];
+ r0 = (s.arg0 < 7);
s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__getAt(globals.categoryImages___75097, s.arg0);
+ { step = 2; continue; }
+ case 1:
+ r0 = globals.garbageCan___63715;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = s.caps[2];
+ s.tmp_2.arg3 = s.tmp_1;
+ s.callLocIdx = 1104; s.pc = 7; return s.tmp_2;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.caps[2];
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1105; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ r0 = (s.caps[3] == s.arg0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.caps[2];
+ s.tmp_1.arg3 = globals.cursorOut___63721;
+ s.callLocIdx = 1106; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.caps[4]);
+ if (!r0) { step = 3; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1107; s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.caps[2];
+ s.callLocIdx = 1108; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ r0 = s.caps[0].fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.caps[2], s.arg0);
+ s.tmp_0 = r0 = s.caps[1];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_left__P2059.info = {"start":8812,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]}
-Sprite_left__P2059.isGetter = true;
+inline__P75920.info = {"start":14230,"length":494,"line":308,"column":32,"endLine":320,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["ct"]}
-function Sprite_left__P2059_mk(s) {
+function inline__P75920_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_left__P2059, depth: s.depth + 1,
+ parent: s, fn: inline__P75920, 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,
} }
@@ -21532,7 +20037,7 @@ function Sprite_left__P2059_mk(s) {
-function tileworld_GameHome_constructor__P3830(s) {
+function tileworld_ruleediting_RuleEditor_makeArgMenu__P74510(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21542,70 +20047,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.col___76042 = undefined;
+ s.row___76043 = undefined;
+ s.last___76048 = undefined;
+ s.i___76056 = 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, tileworld_GameHome__C3829_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.col___76042 = (4);
+ s.row___76043 = (1);
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_instToStartArg__P74507_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 1119; s.pc = 7; return s.tmp_1;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ s.tmp_3 = tileworld_ruleediting_RuleEditor_instToNumArgs__P74509_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.arg1;
+ s.callLocIdx = 1120; s.pc = 8; return s.tmp_3;
+ case 8:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ s.last___76048 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_instToStartArg__P74507_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1357; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1121; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.i___76056 = (r0);
case 1:
+ r0 = (s.i___76056 < s.last___76048);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.col___76042;
+ s.tmp_1.arg2 = s.row___76043;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_instToImage__P73109_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.i___76056;
+ s.callLocIdx = 1122; s.pc = 11; return s.tmp_2;
+ case 11:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1358; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 1123; s.pc = 10; return s.tmp_1;
+ case 10:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1359; s.pc = 3; return s.tmp_0;
- case 3:
+ s.tmp_0.arg1 = s.col___76042;
+ s.tmp_0.arg2 = s.row___76043;
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1124; s.pc = 12; return s.tmp_0;
+ case 12:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17536);
+ r0 = (s.arg2 == s.i___76056);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1387; s.pc = 4; return s.tmp_1;
- case 4:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.col___76042;
+ s.tmp_1.arg2 = s.row___76043;
+ s.tmp_1.arg3 = globals.cursorOut___63721;
+ s.callLocIdx = 1125; s.pc = 13; return s.tmp_1;
+ case 13:
r0 = s.retval;
- s.tmp_0 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_0.arg0 = globals.B___1875;
- s.tmp_0.arg1 = 2049;
- s.tmp_0.arg2 = inline__P17639;
- s.callLocIdx = 1389; s.pc = 5; return s.tmp_0;
- case 5:
+ r0 = pxsim_numops_toBoolDecr(s.arg3);
+ if (!r0) { step = 2; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.col___76042;
+ s.callLocIdx = 1126; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.row___76043;
+ s.callLocIdx = 1127; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___76042, s.row___76043, s.i___76056);
+ r0 = (s.col___76042 + 1);
+ s.col___76042 = (r0);
+ r0 = (s.i___76056 + 1);
+ s.i___76056 = (r0);
+ { step = 1; continue; }
+ case 6:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_GameHome_constructor__P3830.info = {"start":222,"length":2063,"line":6,"column":8,"endLine":56,"endColumn":9,"fileName":"home.ts","functionName":"inline","argumentNames":["this","p"]}
+tileworld_ruleediting_RuleEditor_makeArgMenu__P74510.info = {"start":16450,"length":755,"line":368,"column":8,"endLine":386,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeArgMenu","argumentNames":["this","inst","arg","inEdit"]}
-function tileworld_GameHome_constructor__P3830_mk(s) {
+function tileworld_ruleediting_RuleEditor_makeArgMenu__P74510_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_GameHome_constructor__P3830, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_makeArgMenu__P74510, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ col___76042: undefined,
+ row___76043: undefined,
+ last___76048: undefined,
+ i___76056: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function inline__P17536(s) {
+function tileworld_ruleediting_RuleDisplay_instToImage__P73109(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21615,285 +20194,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___17537 = undefined;
- s.command___17567 = undefined;
- s.rules___17574 = undefined;
- s.g___17582 = undefined;
- r0 = s.caps[0].fields["dirMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1360; s.pc = 22; return s.tmp_2;
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1361; s.pc = 23; return s.tmp_4;
- case 23:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.index___17537 = (r0);
- r0 = (s.index___17537 != 15);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1362; s.pc = 24; return s.tmp_1;
- case 24:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Gallery__C3823_VT);
+ s.ret___73545 = undefined;
+ s.ret___73561 = undefined;
+ s.ret___73578 = 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, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg1 == 255);
s.tmp_0 = r0;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_SwitchExport__C3666_VT);
- s.tmp_1 = r0;
- s.tmp_2 = tileworld_SwitchExport_constructor__P3667_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = s.caps[0].fields["p"];
- s.tmp_2.arg1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1363; s.pc = 26; return s.tmp_4;
- case 26:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 3);
- s.tmp_2.arg2 = r0;
- s.callLocIdx = 1364; s.pc = 25; return s.tmp_2;
- case 25:
- r0 = s.retval;
- s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_7.arg0 = s.caps[0];
- s.tmp_7.arg1 = true;
- s.callLocIdx = 1365; s.pc = 27; return s.tmp_7;
- case 27:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 == 3);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = globals.galleryTiles___3771;
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = globals.gallerySprites___3770;
+ r0 = (s.arg2 == 255);
case 2:
// jmp value (already in r0)
- s.tmp_8 = r0;
- s.tmp_9 = tileworld_Gallery_constructor__P3824_mk(s);
- s.tmp_9.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_9.arg1 = r0;
- s.tmp_9.arg2 = s.index___17537;
- s.tmp_9.arg3 = s.tmp_1;
- s.tmp_9.arg4 = s.tmp_8;
- s.callLocIdx = 1366; s.pc = 28; return s.tmp_9;
- case 28:
- r0 = s.retval;
- { step = 21; continue; }
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ r0 = globals.emptyTile___63718;
+ { step = 15; continue; }
case 3:
case 4:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1367; s.pc = 29; return s.tmp_2;
- case 29:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- { step = 21; continue; }
- case 5:
- case 6:
- s.tmp_3 = r0 = globals.commandImages___17519;
- s.tmp_5 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_5.arg0 = s.caps[0];
- s.tmp_5.arg1 = true;
- s.callLocIdx = 1368; s.pc = 30; return s.tmp_5;
- case 30:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
- s.command___17567 = (r0);
- r0 = (s.command___17567 == globals.play___3713);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- r0 = s.caps[0].fields["p"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["rules"];
- s.rules___17574 = (r0);
- r0 = pxsim_Array__length(s.rules___17574);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_2 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1370; s.pc = 31; return s.tmp_2;
- case 31:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C3773_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_RunGame_constructor__P3774_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.rules___17574;
- s.tmp_1.arg3 = false;
- s.callLocIdx = 1371; s.pc = 32; return s.tmp_1;
- case 32:
- r0 = s.retval;
- s.g___17582 = (s.tmp_0);
- s.tmp_0 = tileworld_RunGame_setWorld__P3775_mk(s);
- s.tmp_0.arg0 = s.g___17582;
- r0 = s.caps[0].fields["p"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_backgrounds"];
- s.tmp_0.arg1 = r0;
- r0 = s.caps[0].fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_sprites"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1374; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- s.tmp_0 = tileworld_RunGame_start__P3776_mk(s);
- s.tmp_0.arg0 = s.g___17582;
- s.callLocIdx = 1375; s.pc = 34; return s.tmp_0;
- case 34:
- r0 = s.retval;
+ s.tmp_2 = r0 = s.arg1;
+ r0 = pxsim_pxtcore.switch_eq(0, s.tmp_2);
+ if (r0) { step = 5; continue; }
+ r0 = pxsim_pxtcore.switch_eq(1, s.tmp_2);
+ if (r0) { step = 6; continue; }
+ r0 = pxsim_pxtcore.switch_eq(3, s.tmp_2);
+ if (r0) { step = 7; continue; }
+ r0 = pxsim_pxtcore.switch_eq(4, s.tmp_2);
+ if (r0) { step = 8; continue; }
+ r0 = pxsim_pxtcore.switch_eq(2, s.tmp_2);
+ if (r0) { step = 9; continue; }
+ r0 = pxsim_pxtcore.switch_eq(6, s.tmp_2);
+ if (r0) { step = 10; continue; }
+ r0 = pxsim_pxtcore.switch_eq(5, s.tmp_2);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_2;
+ { step = 14; continue; }
+ case 5:
+ r0 = pxsim_Array__getAt(globals.moveImages___63785, s.arg2);
+ { step = 15; continue; }
+ case 6:
+ r0 = s.arg0.fields["p"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.arg2);
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.clone(s.tmp_3);
+ s.ret___73545 = (r0);
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___73545, globals.smallPaint___63754, 0, 0);
+ r0 = s.ret___73545;
+ { step = 15; continue; }
case 7:
+ r0 = globals.eat___63750;
+ { step = 15; continue; }
case 8:
- { step = 20; continue; }
+ r0 = pxsim_Array__getAt(globals.gameImages___63791, s.arg2);
+ { step = 15; continue; }
case 9:
- r0 = (s.command___17567 == globals.map___3712);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 10; continue; }
- s.tmp_1 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1376; s.pc = 35; return s.tmp_1;
- case 35:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C3819_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_MapEditor_constructor__P3820_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1377; s.pc = 36; return s.tmp_1;
- case 36:
- r0 = s.retval;
- { step = 19; continue; }
case 10:
- r0 = (s.command___17567 == globals.paint___3716);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_spritesI"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg2);
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.clone(s.tmp_0);
+ s.ret___73561 = (r0);
+ r0 = (s.arg1 == 2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 11; continue; }
- s.tmp_1 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1378; s.pc = 37; return s.tmp_1;
- case 37:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ImageEditor__C3778_VT);
- s.tmp_0 = r0;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C3671_VT);
- s.tmp_1 = r0;
- s.tmp_2 = tileworld_AllExport_constructor__P3672_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = s.caps[0].fields["p"];
- s.tmp_2.arg1 = r0;
- s.callLocIdx = 1379; s.pc = 38; return s.tmp_2;
- case 38:
- r0 = s.retval;
- s.tmp_3 = tileworld_ImageEditor_constructor__P3779_mk(s);
- s.tmp_3.arg0 = s.tmp_0;
- s.tmp_3.arg1 = s.tmp_1;
- s.callLocIdx = 1380; s.pc = 39; return s.tmp_3;
- case 39:
- r0 = s.retval;
- { step = 18; continue; }
+ r0 = globals.spawn___63753;
+ { step = 12; continue; }
case 11:
- r0 = (s.command___17567 == globals.code___3715);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- s.tmp_1 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1381; s.pc = 40; return s.tmp_1;
- case 40:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleRoom__C3805_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_ruleediting_RuleRoom_constructor__P3806_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1382; s.pc = 41; return s.tmp_1;
- case 41:
- r0 = s.retval;
- { step = 17; continue; }
+ r0 = globals.exclude___63724;
case 12:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1383; s.pc = 42; return s.tmp_2;
- case 42:
- r0 = s.retval;
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 9);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_0;
- { step = 14; continue; }
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___73561, s.tmp_1, 0, 0);
+ r0 = s.ret___73561;
+ { step = 15; continue; }
case 13:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1384; s.pc = 43; return s.tmp_4;
- case 43:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 0);
- case 14:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 15; continue; }
- s.tmp_6 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1385; s.pc = 44; return s.tmp_6;
- case 44:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C3826_VT);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_backgroundsI"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg2);
s.tmp_0 = r0;
- s.tmp_1 = tileworld_ProjectSettings_constructor__P3827_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1386; s.pc = 45; return s.tmp_1;
- case 45:
- r0 = s.retval;
+ r0 = pxsim_ImageMethods.clone(s.tmp_0);
+ s.ret___73578 = (r0);
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___73578, globals.portal___63755, 0, 0);
+ r0 = s.ret___73578;
+ { step = 15; continue; }
+ case 14:
+ r0 = globals.emptyTile___63718;
case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P17536.info = {"start":392,"length":1759,"line":12,"column":64,"endLine":51,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]}
+tileworld_ruleediting_RuleDisplay_instToImage__P73109.info = {"start":6695,"length":1169,"line":159,"column":8,"endLine":185,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"instToImage","argumentNames":["this","inst","arg"]}
-function inline__P17536_mk(s) {
+function tileworld_ruleediting_RuleDisplay_instToImage__P73109_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17536, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_instToImage__P73109, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -21901,21 +20315,19 @@ function inline__P17536_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- index___17537: undefined,
- command___17567: undefined,
- rules___17574: undefined,
- g___17582: undefined,
+ ret___73545: undefined,
+ ret___73561: undefined,
+ ret___73578: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P17639(s) {
+function tileworld_Project_spriteImages__P63692(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21925,29 +20337,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1388; 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;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_spritesI"];
return leave(s, r0)
default: oops()
} } }
-inline__P17639.info = {"start":2219,"length":54,"line":53,"column":64,"endLine":55,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]}
+tileworld_Project_spriteImages__P63692.info = {"start":3406,"length":48,"line":100,"column":8,"endLine":100,"endColumn":56,"fileName":"project.ts","functionName":"spriteImages","argumentNames":["this"]}
-function inline__P17639_mk(s) {
+function tileworld_Project_spriteImages__P63692_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17639, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_spriteImages__P63692, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_Project_backgroundImages__P63691(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_backgroundsI"];
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_backgroundImages__P63691.info = {"start":3341,"length":56,"line":99,"column":8,"endLine":99,"endColumn":64,"fileName":"project.ts","functionName":"backgroundImages","argumentNames":["this"]}
+
+function tileworld_Project_backgroundImages__P63691_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_backgroundImages__P63691, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
} }
-function tileworld_ruleediting_RuleRoom_constructor__P3806(s) {
+function tileworld_ruleediting_RuleEditor_instToNumArgs__P74509(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -21963,110 +20411,90 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = null;
- s.callLocIdx = 832; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = pxsim_pxtcore.switch_eq(1, 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(2, s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = pxsim_pxtcore.switch_eq(6, 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 1:
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 1116; s.pc = 12; return s.tmp_3;
+ case 12:
r0 = s.retval;
- r0 = (s.arg0).fields["kind"] = (0);
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 833; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["kind"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 != 2);
s.tmp_1 = r0;
- r0 = (1 + s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 834; s.pc = 3; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = 4;
+ { step = 3; continue; }
+ case 2:
+ r0 = 1;
case 3:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 835; s.pc = 4; return s.tmp_0;
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ { step = 11; continue; }
case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 836; s.pc = 5; return s.tmp_0;
+ r0 = 4;
+ { step = 11; continue; }
case 5:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorIn___3723;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 837; s.pc = 6; return s.tmp_2;
+ r0 = 0;
+ { step = 11; continue; }
case 6:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["moreHelp"] = (s.tmp_1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["moreHelp"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 838; s.pc = 7; return s.tmp_0;
+ r0 = 3;
+ { step = 11; continue; }
case 7:
- r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["moreHelp"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 84;
- s.callLocIdx = 839; s.pc = 8; return s.tmp_0;
case 8:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["moreHelp"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 77;
- s.callLocIdx = 840; s.pc = 9; return s.tmp_0;
+ r0 = s.arg0.fields["p"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["_spritesI"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__length(s.tmp_6);
+ { step = 11; continue; }
case 9:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 10; return s.tmp_0;
+ r0 = s.arg0.fields["p"];
+ s.tmp_7 = r0;
+ r0 = s.tmp_7.fields["_backgroundsI"];
+ s.tmp_8 = r0;
+ r0 = pxsim_Array__length(s.tmp_8);
+ { step = 11; continue; }
case 10:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P14435);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 856; s.pc = 11; return s.tmp_1;
+ r0 = 0;
case 11:
- r0 = s.retval;
- s.tmp_0 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_0.arg0 = globals.B___1875;
- s.tmp_0.arg1 = 2049;
- s.tmp_0.arg2 = inline__P14536;
- s.callLocIdx = 858; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_constructor__P3806.info = {"start":444,"length":1639,"line":9,"column":8,"endLine":45,"endColumn":9,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["this","p"]}
+tileworld_ruleediting_RuleEditor_instToNumArgs__P74509.info = {"start":15903,"length":537,"line":355,"column":8,"endLine":366,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToNumArgs","argumentNames":["this","inst"]}
-function tileworld_ruleediting_RuleRoom_constructor__P3806_mk(s) {
+function tileworld_ruleediting_RuleEditor_instToNumArgs__P74509_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_constructor__P3806, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_instToNumArgs__P74509, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -22075,7 +20503,7 @@ function tileworld_ruleediting_RuleRoom_constructor__P3806_mk(s) {
-function inline__P14435(s) {
+function tileworld_Project_backCnt__P63688(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -22085,221 +20513,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rt___14457 = undefined;
- s.dir___14464 = undefined;
- s.rules___14473 = undefined;
- s.filteredRules___14479 = undefined;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 841; s.pc = 11; return s.tmp_2;
- case 11:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_backgroundsI"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_Array__length(s.tmp_0);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_backCnt__P63688.info = {"start":3147,"length":54,"line":96,"column":8,"endLine":96,"endColumn":62,"fileName":"project.ts","functionName":"backCnt","argumentNames":["this"]}
+
+function tileworld_Project_backCnt__P63688_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_backCnt__P63688, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_ruleediting_RuleEditor_instToStartArg__P74507(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
if (r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
+ { step = 4; continue; }
case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 842; s.pc = 12; return s.tmp_4;
- case 12:
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 1115; s.pc = 6; return s.tmp_3;
+ case 6:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >= 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 != 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = 0;
+ { step = 3; continue; }
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_5;
- { step = 4; continue; }
+ r0 = 4;
case 3:
- s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_7.arg0 = s.caps[0];
- s.tmp_7.arg1 = true;
- s.callLocIdx = 843; s.pc = 13; return s.tmp_7;
- case 13:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = s.caps[0].fields["p"];
- s.tmp_9 = r0;
- r0 = s.tmp_9.fields["_spritesI"];
- s.tmp_10 = r0;
- r0 = pxsim_Array__length(s.tmp_10);
- s.tmp_8 = r0;
- r0 = (s.tmp_6 <= s.tmp_8);
- case 4:
// jmp value (already in r0)
- s.tmp_11 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_11);
- if (!r0) { step = 5; continue; }
- s.tmp_12 = r0 = s.caps[0];
- s.tmp_15 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_15.arg0 = s.caps[0];
- s.tmp_15.arg1 = true;
- s.callLocIdx = 845; s.pc = 14; return s.tmp_15;
- case 14:
- r0 = s.retval;
- s.tmp_14 = r0;
- r0 = (s.tmp_14 - 1);
- s.tmp_13 = r0;
- r0 = (s.tmp_12).fields["kind"] = (s.tmp_13);
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 846; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- { step = 10; continue; }
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ { step = 5; continue; }
+ case 4:
+ r0 = 0;
case 5:
- r0 = s.caps[0].fields["ruleTypeMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 847; s.pc = 17; return s.tmp_2;
- case 17:
- r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 848; s.pc = 18; return s.tmp_4;
- case 18:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.rt___14457 = (r0);
- r0 = s.caps[0].fields["dirMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 849; s.pc = 19; return s.tmp_2;
- case 19:
- r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 850; s.pc = 20; return s.tmp_4;
- case 20:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.dir___14464 = (r0);
- r0 = (s.rt___14457 != 15);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_1 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg0 = r0;
- r0 = s.caps[0].fields["kind"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 851; s.pc = 21; return s.tmp_1;
- case 21:
- r0 = s.retval;
- s.rules___14473 = (r0);
- s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.rules___14473;
- s.tmp_0.arg2 = s.rt___14457;
- s.tmp_0.arg3 = s.dir___14464;
- s.callLocIdx = 852; s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- s.filteredRules___14479 = (r0);
- r0 = pxsim_Array__length(s.filteredRules___14479);
- 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 = r0 = s.filteredRules___14479;
- s.tmp_4 = tileworld_Project_makeRule__P3701_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.rt___14457;
- s.tmp_4.arg2 = s.dir___14464;
- r0 = s.caps[0].fields["kind"];
- s.tmp_4.arg3 = r0;
- s.callLocIdx = 853; s.pc = 23; return s.tmp_4;
- case 23:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_2, s.tmp_3);
- case 6:
- case 7:
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 854; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleEditor__C3816_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_ruleediting_RuleEditor_constructor__P3817_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- r0 = pxsim_Array__getAt(s.filteredRules___14479, 0);
- s.tmp_1.arg2 = r0;
- r0 = s.caps[0].fields["kind"];
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 855; s.pc = 25; return s.tmp_1;
- case 25:
- r0 = s.retval;
- case 8:
- case 9:
- case 10:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P14435.info = {"start":982,"length":964,"line":23,"column":64,"endLine":41,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]}
+tileworld_ruleediting_RuleEditor_instToStartArg__P74507.info = {"start":15381,"length":236,"line":338,"column":8,"endLine":344,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToStartArg","argumentNames":["this","inst"]}
-function inline__P14435_mk(s) {
+function tileworld_ruleediting_RuleEditor_instToStartArg__P74507_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14435, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_instToStartArg__P74507, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- rt___14457: undefined,
- dir___14464: undefined,
- rules___14473: undefined,
- filteredRules___14479: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P14536(s) {
+function tileworld_RuleVisualsBase_drawOutline__P72690(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -22309,29 +20618,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 857; 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.arg3 = (s.lambdaArgs[3]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = (s.arg1 << 4);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_1 = r0;
+ r0 = (6 + s.tmp_1);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 17;
+ s.tmp_0.arg4 = 17;
+ s.tmp_0.arg5 = s.arg3;
+ s.callLocIdx = 686; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P14536.info = {"start":2014,"length":56,"line":42,"column":64,"endLine":44,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]}
+tileworld_RuleVisualsBase_drawOutline__P72690.info = {"start":4635,"length":140,"line":120,"column":8,"endLine":122,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawOutline","argumentNames":["this","c","r","col"]}
-function inline__P14536_mk(s) {
+function tileworld_RuleVisualsBase_drawOutline__P72690_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14536, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_drawOutline__P72690, 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 tileworld_ruleediting_RuleEditor_constructor__P3817(s) {
+function helpers_imageDrawRect__P61723(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -22346,67 +20679,89 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = (s.arg0).fields["kind"] = (s.arg3);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s);
+ r0 = (s.arg3 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = (s.arg4 == 0);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ { step = 5; continue; }
+ case 3:
+ case 4:
+ r0 = (s.arg3 - 1);
+ s.arg3 = (r0);
+ r0 = (s.arg4 - 1);
+ s.arg4 = (r0);
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 928; s.pc = 1; return s.tmp_0;
- case 1:
+ r0 = (s.arg1 + s.arg3);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.arg2;
+ s.tmp_0.arg5 = s.arg5;
+ s.callLocIdx = 94; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 929; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_0 = helpers_imageDrawLine__P61722_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 = 95; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 930; s.pc = 3; return s.tmp_0;
- case 3:
+ 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 = 96; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
- r0 = (s.arg0).fields["askDeleteRule"] = (false);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s);
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 931; s.pc = 4; return s.tmp_0;
- case 4:
+ 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 = 97; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(2, inline__P15135);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1002; s.pc = 5; return s.tmp_1;
case 5:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P15438);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1009; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_constructor__P3817.info = {"start":1161,"length":5971,"line":26,"column":8,"endLine":138,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["this","p","rule","kind"]}
+helpers_imageDrawRect__P61723.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
-function tileworld_ruleediting_RuleEditor_constructor__P3817_mk(s) {
+function helpers_imageDrawRect__P61723_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_constructor__P3817, depth: s.depth + 1,
+ parent: s, fn: helpers_imageDrawRect__P61723, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -22414,13 +20769,15 @@ function tileworld_ruleediting_RuleEditor_constructor__P3817_mk(s) {
arg1: undefined,
arg2: undefined,
arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
} }
-function inline__P15135(s) {
+function tileworld_RuleView_getCmdArg__P63652(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -22430,783 +20787,244 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___15143 = undefined;
- s.rules___15156 = undefined;
- s.rules___15235 = undefined;
- s.index___15237 = undefined;
- s.rules___15321 = undefined;
- s.g___15325 = undefined;
- s.col___15382 = undefined;
- s.row___15388 = undefined;
- s.tmp_0 = Sprite_say__P2071_mk(s);
- r0 = s.caps[0].fields["helpCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = null;
- s.tmp_0.arg2 = undefined;
- s.tmp_0.arg3 = 15;
- s.tmp_0.arg4 = 1;
- s.callLocIdx = 932; s.pc = 70; return s.tmp_0;
- case 70:
- r0 = s.retval;
- r0 = s.caps[0].fields["askDeleteRule"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 933; s.pc = 71; return s.tmp_2;
- case 71:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_3 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_1, s.tmp_3, undefined);
- s.index___15143 = (r0);
- s.tmp_0 = tileworld_Project_removeRule__P3702_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["rid"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 935; s.pc = 72; return s.tmp_0;
- case 72:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 936; s.pc = 73; return s.tmp_0;
- case 73:
- r0 = s.retval;
- s.rules___15156 = (r0);
- r0 = pxsim_Array__length(s.rules___15156);
- 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_2 = game_popScene__P2529_mk(s);
- s.callLocIdx = 937; s.pc = 74; return s.tmp_2;
- case 74:
- r0 = s.retval;
- { step = 69; continue; }
- { step = 4; continue; }
- case 1:
- s.tmp_1 = r0 = s.index___15143;
- r0 = pxsim_Array__length(s.rules___15156);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.rules___15156, s.index___15143);
- { step = 3; continue; }
- case 2:
- s.tmp_3 = r0 = s.rules___15156;
- r0 = (s.index___15143 - 1);
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
- case 3:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.tmp_6 = tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.tmp_6.arg1 = s.tmp_5;
- s.callLocIdx = 938; s.pc = 75; return s.tmp_6;
- case 75:
- r0 = s.retval;
- case 4:
- r0 = (s.caps[0]).fields["askDeleteRule"] = (false);
- { step = 68; continue; }
- case 5:
- s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- s.callLocIdx = 939; s.pc = 76; return s.tmp_1;
- case 76:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 940; s.pc = 78; return s.tmp_4;
- case 78:
- r0 = s.retval;
- s.tmp_3.arg1 = r0;
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.tmp_6.arg1 = true;
- s.callLocIdx = 941; s.pc = 79; return s.tmp_6;
- case 79:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 2);
- s.tmp_3.arg2 = r0;
- s.callLocIdx = 942; s.pc = 77; return s.tmp_3;
- case 77:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 10; continue; }
- r0 = s.caps[0].fields["menu"];
- s.tmp_8 = r0;
- r0 = (s.tmp_8 == 0);
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 6; continue; }
- r0 = (s.caps[0]).fields["menu"] = (1);
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 943; s.pc = 80; return s.tmp_0;
- case 80:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 944; s.pc = 81; return s.tmp_0;
- case 81:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 945; s.pc = 82; return s.tmp_0;
- case 82:
- r0 = s.retval;
- { step = 9; continue; }
- case 6:
- r0 = s.caps[0].fields["menu"];
- 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 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 946; s.pc = 83; return s.tmp_2;
- case 83:
- r0 = s.retval;
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- { step = 67; continue; }
- case 12:
- r0 = s.caps[0].fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_0;
- { step = 14; continue; }
- case 13:
- s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.tmp_3.arg1 = true;
- s.callLocIdx = 947; s.pc = 84; return s.tmp_3;
- case 84:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 < 2);
- case 14:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 15; continue; }
- s.tmp_5 = tileworld_ruleediting_RuleEditor_attrUpdate__P14524_mk(s);
- s.tmp_5.arg0 = s.caps[0];
- s.callLocIdx = 948; s.pc = 85; return s.tmp_5;
- case 85:
- r0 = s.retval;
- { step = 66; continue; }
- case 15:
- r0 = s.caps[0].fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = false;
- s.callLocIdx = 949; s.pc = 86; return s.tmp_2;
- case 86:
- r0 = s.retval;
- { step = 65; continue; }
- case 16:
- r0 = s.caps[0].fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 950; s.pc = 87; return s.tmp_2;
- case 87:
- r0 = s.retval;
- { step = 64; continue; }
- case 17:
- r0 = s.caps[0].fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 62; continue; }
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 951; s.pc = 88; return s.tmp_4;
- case 88:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 0);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 44; continue; }
- s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_7.arg0 = s.caps[0];
- s.tmp_7.arg1 = true;
- s.callLocIdx = 952; s.pc = 89; return s.tmp_7;
- case 89:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (7 <= s.tmp_6);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 18; continue; }
- r0 = s.tmp_5;
- { step = 19; continue; }
- case 18:
- s.tmp_9 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_9.arg0 = s.caps[0];
- s.tmp_9.arg1 = true;
- s.callLocIdx = 953; s.pc = 90; return s.tmp_9;
- case 90:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = (s.tmp_8 <= 9);
- case 19:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_10);
- if (!r0) { step = 32; continue; }
- s.tmp_11 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s);
- s.tmp_11.arg0 = s.caps[0];
- s.callLocIdx = 954; s.pc = 91; return s.tmp_11;
- case 91:
- r0 = s.retval;
- s.rules___15235 = (r0);
- r0 = s.caps[0].fields["rule"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.indexOf(s.rules___15235, s.tmp_0, undefined);
- s.index___15237 = (r0);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 955; s.pc = 92; return s.tmp_2;
- case 92:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 7);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 20; continue; }
- r0 = s.tmp_0;
- { step = 21; continue; }
- case 20:
- r0 = (s.index___15237 > 0);
- case 21:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 22; continue; }
- s.tmp_4 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_5 = r0 = s.rules___15235;
- r0 = (s.index___15237 - 1);
- s.tmp_6 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6);
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 956; s.pc = 93; return s.tmp_4;
- case 93:
- r0 = s.retval;
- { step = 31; continue; }
- case 22:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 957; s.pc = 94; return s.tmp_2;
- case 94:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 9);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 23; continue; }
- r0 = s.tmp_0;
- { step = 24; continue; }
- case 23:
- s.tmp_3 = r0 = s.index___15237;
- r0 = pxsim_Array__length(s.rules___15235);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 1);
- s.tmp_4 = r0;
- r0 = (s.tmp_3 < s.tmp_4);
- case 24:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 25; continue; }
- s.tmp_7 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s);
- s.tmp_7.arg0 = s.caps[0];
- s.tmp_8 = r0 = s.rules___15235;
- r0 = (s.index___15237 + 1);
- s.tmp_9 = r0;
- r0 = pxsim_Array__getAt(s.tmp_8, s.tmp_9);
- s.tmp_7.arg1 = r0;
- s.callLocIdx = 958; s.pc = 95; return s.tmp_7;
- case 95:
- r0 = s.retval;
- { step = 30; continue; }
- case 25:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 959; s.pc = 96; return s.tmp_2;
- case 96:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 8);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 26; continue; }
- r0 = s.tmp_0;
- { step = 27; continue; }
- case 26:
- s.tmp_4 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.callLocIdx = 960; s.pc = 97; return s.tmp_4;
- case 97:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 != -1);
- case 27:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 28; continue; }
- s.tmp_6 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.tmp_7 = tileworld_Project_makeRule__P3701_mk(s);
- s.tmp_7.arg0 = s.caps[1];
- s.tmp_8 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_8.arg0 = s.caps[0];
- s.callLocIdx = 961; s.pc = 100; return s.tmp_8;
- case 100:
- r0 = s.retval;
- s.tmp_7.arg1 = r0;
- s.tmp_9 = tileworld_ruleediting_RuleDisplay_getDir__P13102_mk(s);
- s.tmp_9.arg0 = s.caps[0];
- s.callLocIdx = 962; s.pc = 101; return s.tmp_9;
- case 101:
- r0 = s.retval;
- s.tmp_7.arg2 = r0;
- s.tmp_10 = tileworld_ruleediting_RuleDisplay_getKind__P13104_mk(s);
- s.tmp_10.arg0 = s.caps[0];
- s.callLocIdx = 963; s.pc = 102; return s.tmp_10;
- case 102:
- r0 = s.retval;
- s.tmp_7.arg3 = r0;
- s.callLocIdx = 964; s.pc = 99; return s.tmp_7;
- case 99:
- r0 = s.retval;
- s.tmp_6.arg1 = r0;
- s.callLocIdx = 965; s.pc = 98; return s.tmp_6;
- case 98:
- r0 = s.retval;
- case 28:
- case 29:
- case 30:
- case 31:
- { step = 43; continue; }
- case 32:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 966; s.pc = 103; return s.tmp_2;
- case 103:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 33; continue; }
- s.tmp_3 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_3.arg0 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 967; s.pc = 104; return s.tmp_3;
- case 104:
- r0 = s.retval;
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 968; s.pc = 105; return s.tmp_0;
- case 105:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C3819_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_MapEditor_constructor__P3820_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 969; s.pc = 106; return s.tmp_1;
- case 106:
- r0 = s.retval;
- { step = 69; continue; }
- { step = 42; continue; }
- case 33:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 970; s.pc = 107; return s.tmp_2;
- case 107:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 34; continue; }
- r0 = s.tmp_0;
- { step = 35; continue; }
- case 34:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 971; s.pc = 108; return s.tmp_4;
- case 108:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 3);
- case 35:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 36; continue; }
- s.tmp_6 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_6.arg0 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_6.arg1 = r0;
- s.callLocIdx = 972; s.pc = 109; return s.tmp_6;
- case 109:
- r0 = s.retval;
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 973; s.pc = 110; return s.tmp_0;
- case 110:
- r0 = s.retval;
- r0 = s.caps[0].fields["p"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["rules"];
- s.rules___15321 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C3773_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_RunGame_constructor__P3774_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.rules___15321;
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.tmp_3.arg1 = true;
- s.callLocIdx = 975; s.pc = 112; return s.tmp_3;
- case 112:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == 3);
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 976; s.pc = 111; return s.tmp_1;
- case 111:
- r0 = s.retval;
- s.g___15325 = (s.tmp_0);
- s.tmp_0 = tileworld_RunGame_setWorld__P3775_mk(s);
- s.tmp_0.arg0 = s.g___15325;
- r0 = s.caps[0].fields["p"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_backgrounds"];
- s.tmp_0.arg1 = r0;
- r0 = s.caps[0].fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_sprites"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 979; s.pc = 113; return s.tmp_0;
- case 113:
- r0 = s.retval;
- s.tmp_0 = tileworld_RunGame_start__P3776_mk(s);
- s.tmp_0.arg0 = s.g___15325;
- s.callLocIdx = 980; s.pc = 114; return s.tmp_0;
- case 114:
- r0 = s.retval;
- { step = 69; continue; }
- { step = 41; continue; }
- case 36:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 981; s.pc = 115; return s.tmp_2;
- case 115:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 6);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 37; continue; }
- r0 = (s.caps[0]).fields["askDeleteRule"] = (true);
- { step = 40; continue; }
- case 37:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 982; s.pc = 116; return s.tmp_2;
- case 116:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 5);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 38; continue; }
- s.tmp_3 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_3.arg0 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 983; s.pc = 117; return s.tmp_3;
- case 117:
- r0 = s.retval;
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 984; s.pc = 118; return s.tmp_0;
- case 118:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleViewDisplay__C3801_VT);
+ s.wd___67569 = undefined;
+ s.arg___67578 = 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, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
s.tmp_0 = r0;
- s.tmp_1 = tileworld_ruleediting_RuleViewDisplay_constructor__P3802_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- r0 = s.caps[0].fields["p"];
- s.tmp_1.arg1 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_1.arg2 = r0;
- s.callLocIdx = 985; s.pc = 119; return s.tmp_1;
- case 119:
- r0 = s.retval;
- { step = 69; continue; }
- case 38:
- case 39:
- case 40:
- case 41:
- case 42:
- case 43:
- { step = 61; continue; }
- case 44:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 986; s.pc = 120; return s.tmp_2;
- case 120:
- r0 = s.retval;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67569 = (r0);
+ r0 = s.wd___67569.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 >= 2);
+ r0 = (s.arg2 >= s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 59; continue; }
- s.tmp_5 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_5.arg0 = s.caps[0];
- s.tmp_5.arg1 = true;
- s.callLocIdx = 987; s.pc = 121; return s.tmp_5;
- case 121:
- r0 = s.retval;
+ if (!r0) { step = 1; continue; }
+ r0 = 255;
+ { step = 7; continue; }
+ case 1:
+ case 2:
+ r0 = s.wd___67569.fields["commands"];
+ s.tmp_2 = r0;
+ r0 = (s.arg2 << 1);
s.tmp_4 = r0;
- r0 = (s.tmp_4 > 5);
+ r0 = (s.tmp_4 + 1);
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 45; continue; }
- s.tmp_6 = tileworld_ruleediting_RuleEditor_tryEditCommand__P14512_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.callLocIdx = 988; s.pc = 122; return s.tmp_6;
- case 122:
- r0 = s.retval;
- { step = 58; continue; }
- case 45:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 989; s.pc = 123; return s.tmp_2;
- case 123:
- r0 = s.retval;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
+ s.arg___67578 = (r0);
+ r0 = s.arg0.fields["rid"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 5);
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 46; continue; }
+ if (r0) { step = 3; continue; }
r0 = s.tmp_0;
- { step = 47; continue; }
- case 46:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 990; s.pc = 124; return s.tmp_4;
- case 124:
+ { step = 4; continue; }
+ case 3:
+ s.tmp_3 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.arg1;
+ s.tmp_3.arg2 = s.arg2;
+ s.callLocIdx = 143; s.pc = 8; return s.tmp_3;
+ case 8:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 < 7);
- case 47:
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == 0);
+ case 4:
// jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 56; continue; }
- s.tmp_6 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s);
- s.tmp_6.arg0 = s.caps[0];
- s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_8.arg0 = s.caps[0];
- s.tmp_8.arg1 = true;
- s.callLocIdx = 991; s.pc = 126; return s.tmp_8;
- case 126:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 2);
- s.tmp_6.arg1 = r0;
- s.callLocIdx = 992; s.pc = 125; return s.tmp_6;
- case 125:
- r0 = s.retval;
- s.col___15382 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 993; s.pc = 128; return s.tmp_2;
- case 128:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 2);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 994; s.pc = 127; return s.tmp_0;
- case 127:
- r0 = s.retval;
- s.row___15388 = (r0);
- s.tmp_2 = tileworld_RuleView_findWitnessColRow__P3650_mk(s);
- r0 = s.caps[0].fields["rule"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.col___15382;
- s.tmp_2.arg2 = s.row___15388;
- s.tmp_2.arg3 = true;
- s.callLocIdx = 995; s.pc = 129; return s.tmp_2;
- case 129:
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 5; continue; }
+ s.tmp_5 = tileworld_flipRotateDir__P63618_mk(s);
+ s.tmp_5.arg0 = s.arg___67578;
+ r0 = s.arg0.fields["view"];
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 144; s.pc = 9; return s.tmp_5;
+ case 9:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
+ s.arg___67578 = (r0);
+ case 5:
+ case 6:
+ r0 = s.arg___67578;
+ case 7:
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleView_getCmdArg__P63652.info = {"start":6955,"length":390,"line":201,"column":8,"endLine":209,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdArg","argumentNames":["this","wdid","cid"]}
+
+function tileworld_RuleView_getCmdArg__P63652_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_getCmdArg__P63652, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ wd___67569: undefined,
+ arg___67578: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function tileworld_flipRotateDir__P63618(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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.arg1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 48; continue; }
+ if (!r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 53; continue; }
- case 48:
- r0 = s.caps[0].fields["rule"];
- s.tmp_5 = r0;
- r0 = s.tmp_5.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 != 2);
+ { step = 2; continue; }
+ case 1:
+ r0 = (s.arg0 >= 4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0;
+ { step = 23; continue; }
+ case 3:
+ case 4:
+ r0 = (s.arg1 == 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 9; continue; }
+ r0 = (s.arg0 == 0);
s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (!r0) { step = 49; continue; }
- r0 = s.tmp_3;
- { step = 50; continue; }
- case 49:
- r0 = (s.col___15382 != 2);
- case 50:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 5; continue; }
+ r0 = 2;
+ { step = 8; continue; }
+ case 5:
+ r0 = (s.arg0 == 2);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 6; continue; }
+ r0 = 0;
+ { step = 7; continue; }
+ case 6:
+ r0 = s.arg0;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
+ case 8:
// jmp value (already in r0)
s.tmp_6 = r0;
- r0 = pxsim_numops_toBool(s.tmp_6);
- if (!r0) { step = 51; continue; }
r0 = s.tmp_6;
- { step = 52; continue; }
- case 51:
- r0 = (s.row___15388 != 2);
- case 52:
- // jmp value (already in r0)
+ { step = 23; continue; }
+ { step = 22; continue; }
+ case 9:
+ r0 = (s.arg1 == 2);
s.tmp_7 = r0;
- r0 = s.tmp_7;
- case 53:
- // jmp value (already in r0)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 14; continue; }
+ r0 = (s.arg0 == 1);
s.tmp_8 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 54; continue; }
- r0 = (s.caps[0]).fields["menu"] = (2);
- s.tmp_0 = r0 = s.caps[0];
- s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.caps[0].fields["rule"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.col___15382;
- s.tmp_2.arg2 = s.row___15388;
- s.callLocIdx = 997; s.pc = 130; return s.tmp_2;
- case 130:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1);
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 998; s.pc = 131; return s.tmp_0;
- case 131:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- r0 = s.caps[0].fields["rule"];
- s.tmp_1.arg0 = r0;
- r0 = s.caps[0].fields["whenDo"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 999; s.pc = 133; return s.tmp_1;
- case 133:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1000; s.pc = 132; return s.tmp_0;
- case 132:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1001; s.pc = 134; return s.tmp_0;
- case 134:
- r0 = s.retval;
- case 54:
- case 55:
- case 56:
- case 57:
- case 58:
- case 59:
- case 60:
- case 61:
- case 62:
- case 63:
- case 64:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- r0 = undefined;
+ if (!r0) { step = 10; continue; }
+ r0 = 3;
+ { step = 13; continue; }
+ case 10:
+ r0 = (s.arg0 == 3);
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 11; continue; }
+ r0 = 1;
+ { step = 12; continue; }
+ case 11:
+ r0 = s.arg0;
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = s.tmp_10;
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = s.tmp_11;
+ { step = 23; continue; }
+ { step = 21; continue; }
+ case 14:
+ r0 = (s.arg1 == 3);
+ s.tmp_12 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_12);
+ if (!r0) { step = 15; continue; }
+ r0 = (s.arg0 + 3);
+ s.tmp_14 = r0;
+ r0 = (s.tmp_14 % 4);
+ s.tmp_13 = r0;
+ r0 = (s.tmp_13 | 0);
+ { step = 23; continue; }
+ { step = 20; continue; }
+ case 15:
+ r0 = (s.arg1 == 5);
+ s.tmp_15 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_15);
+ if (!r0) { step = 16; continue; }
+ r0 = (s.arg0 + 1);
+ s.tmp_17 = r0;
+ r0 = (s.tmp_17 % 4);
+ s.tmp_16 = r0;
+ r0 = (s.tmp_16 | 0);
+ { step = 23; continue; }
+ { step = 19; continue; }
+ case 16:
+ r0 = (s.arg1 == 4);
+ s.tmp_18 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_18);
+ if (!r0) { step = 17; continue; }
+ r0 = (s.arg0 + 2);
+ s.tmp_20 = r0;
+ r0 = (s.tmp_20 % 4);
+ s.tmp_19 = r0;
+ r0 = (s.tmp_19 | 0);
+ { step = 23; continue; }
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ r0 = s.arg0;
+ case 23:
return leave(s, r0)
default: oops()
} } }
-inline__P15135.info = {"start":1593,"length":4842,"line":35,"column":64,"endLine":119,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]}
+tileworld_flipRotateDir__P63618.info = {"start":5346,"length":790,"line":147,"column":4,"endLine":162,"endColumn":5,"fileName":"rule.ts","functionName":"flipRotateDir","argumentNames":["d","rt"]}
-function inline__P15135_mk(s) {
+function tileworld_flipRotateDir__P63618_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P15135, depth: s.depth + 1,
+ parent: s, fn: tileworld_flipRotateDir__P63618, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -23220,21 +21038,24 @@ function inline__P15135_mk(s) {
tmp_9: undefined,
tmp_10: undefined,
tmp_11: undefined,
- index___15143: undefined,
- rules___15156: undefined,
- rules___15235: undefined,
- index___15237: undefined,
- rules___15321: undefined,
- g___15325: undefined,
- col___15382: undefined,
- row___15388: 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,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P15438(s) {
+function tileworld_RuleView_getCmdInst__P63651(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23244,95 +21065,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["askDeleteRule"];
+ s.wd___67551 = 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, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = (s.caps[0]).fields["askDeleteRule"] = (false);
- { step = 6; continue; }
- case 1:
- r0 = s.caps[0].fields["menu"];
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67551 = (r0);
+ r0 = s.wd___67551.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 != 0);
+ r0 = (s.arg2 >= s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 1003; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
- { step = 5; continue; }
+ if (!r0) { step = 1; continue; }
+ r0 = 255;
+ { step = 3; continue; }
+ case 1:
case 2:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1004; s.pc = 9; return s.tmp_2;
- case 9:
- 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 = 3; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.callLocIdx = 1005; s.pc = 10; return s.tmp_3;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 1006; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1007; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- { step = 4; continue; }
+ r0 = s.wd___67551.fields["commands"];
+ s.tmp_2 = r0;
+ r0 = (s.arg2 << 1);
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
case 3:
- s.tmp_0 = tileworld_ruleediting_RuleEditor_saveAndPop__P14506_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1008; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- { step = 7; continue; }
- case 4:
- case 5:
- case 6:
- s.tmp_0 = tileworld_ruleediting_RuleEditor__C3816_v0_1_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- case 7:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P15438.info = {"start":6502,"length":618,"line":121,"column":64,"endLine":137,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]}
+tileworld_RuleView_getCmdInst__P63651.info = {"start":6744,"length":201,"line":195,"column":8,"endLine":199,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdInst","argumentNames":["this","wdid","cid"]}
-function inline__P15438_mk(s) {
+function tileworld_RuleView_getCmdInst__P63651_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P15438, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getCmdInst__P63651, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
+ wd___67551: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_update__P14510(s) {
+function tileworld_ruleediting_RuleEditor_attrMenu__P74514(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23342,276 +21129,166 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___15710 = undefined;
+ s.whenDo___76232 = undefined;
+ s.collision22___76251 = undefined;
+ s.aCol___76294 = 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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P13111_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1059; s.pc = 25; return s.tmp_0;
- case 25:
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.whenDo___76232 = (r0);
+ s.tmp_0 = r0 = s.whenDo___76232;
+ s.tmp_2 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.arg2;
+ s.callLocIdx = 1152; s.pc = 9; return s.tmp_2;
+ case 9:
r0 = s.retval;
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["help"];
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt_ldlocRef(s.whenDo___76232);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = r0 = s.whenDo___76232;
+ s.tmp_4 = tileworld_RuleView_makeWhenDo__P63641_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.arg1;
+ s.tmp_4.arg2 = s.arg2;
+ s.callLocIdx = 1153; s.pc = 10; return s.tmp_4;
+ case 10:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3);
case 1:
- r0 = s.arg0.fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
case 2:
- // jmp value (already in r0)
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_pxtrt_ldlocRef(s.whenDo___76232);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1);
+ r0 = s.arg0.fields["rule"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
+ 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_2;
+ r0 = s.tmp_0;
{ step = 4; continue; }
case 3:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1060; s.pc = 26; return s.tmp_4;
- case 26:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 5);
+ r0 = (s.arg1 == 2);
case 4:
// jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
if (r0) { step = 5; continue; }
- r0 = s.tmp_5;
+ r0 = s.tmp_3;
{ step = 6; continue; }
case 5:
- s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = true;
- s.callLocIdx = 1061; s.pc = 27; return s.tmp_7;
- case 27:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 >= 2);
+ r0 = (s.arg2 == 2);
case 6:
// jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 13; continue; }
- r0 = s.arg0.fields["commandLengths"];
- s.tmp_9 = r0;
- s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_12.arg0 = s.arg0;
- s.tmp_12.arg1 = true;
- s.callLocIdx = 1062; s.pc = 28; return s.tmp_12;
- case 28:
- r0 = s.retval;
- s.tmp_11 = r0;
- r0 = (s.tmp_11 - 2);
- s.tmp_10 = r0;
- r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10);
- s.len___15710 = (r0);
- r0 = (s.len___15710 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 7:
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = true;
- s.callLocIdx = 1063; s.pc = 29; return s.tmp_3;
- case 29:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 6);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < s.len___15710);
- case 8:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 11; continue; }
- s.tmp_8 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.tmp_8.arg1 = true;
- s.callLocIdx = 1064; s.pc = 30; return s.tmp_8;
- case 30:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 6);
- s.tmp_6 = r0;
- r0 = (s.len___15710 - 1);
- s.tmp_9 = r0;
- r0 = (s.tmp_6 == s.tmp_9);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 9; continue; }
- r0 = "A: add command";
- { step = 10; continue; }
- case 9:
- r0 = "E: edit command";
- case 10:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- s.tmp_11 = Sprite_say__P2071_mk(s);
- r0 = s.arg0.fields["helpCursor"];
- s.tmp_11.arg0 = r0;
- s.tmp_11.arg1 = s.tmp_10;
- s.tmp_11.arg2 = undefined;
- s.tmp_11.arg3 = 15;
- s.tmp_11.arg4 = 1;
- s.callLocIdx = 1065; s.pc = 31; return s.tmp_11;
- case 31:
- r0 = s.retval;
- case 11:
- case 12:
- case 13:
- case 14:
- r0 = s.arg0.fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_showMainMenu__P14511_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 1066; s.pc = 32; return s.tmp_2;
- case 32:
- r0 = s.retval;
- { step = 22; continue; }
- case 15:
- r0 = s.arg0.fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
+ s.tmp_4 = r0;
+ s.collision22___76251 = (s.tmp_4);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76266);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- r0 = s.arg0.fields["dirMap"];
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_2, 15);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_attrMenu__P14522_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = false;
- s.callLocIdx = 1067; s.pc = 34; return s.tmp_1;
- case 34:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = false;
- s.callLocIdx = 1068; s.pc = 35; return s.tmp_3;
- case 35:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 2);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1069; s.pc = 33; return s.tmp_0;
- case 33:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals.attrImages___63790;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1157; s.pc = 11; return s.tmp_1;
+ case 11:
r0 = s.retval;
- { step = 21; continue; }
- case 16:
- r0 = s.arg0.fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.aCol___76294 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.aCol___76294, 0);
+ r0 = pxsim_pxtcore_mkAction(4, inline__P76299);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = false;
- s.callLocIdx = 1070; s.pc = 36; return s.tmp_2;
- case 36:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.collision22___76251);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.whenDo___76232);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.aCol___76294);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["allImages"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1163; s.pc = 12; return s.tmp_1;
+ case 12:
r0 = s.retval;
- { step = 20; continue; }
- case 17:
- r0 = s.arg0.fields["menu"];
+ r0 = s.arg0.fields["attrSelected"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 18; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprMenu__P14526_mk(s);
+ if (!r0) { step = 7; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_selectAttr__P74515_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 1071; s.pc = 37; return s.tmp_2;
- case 37:
- r0 = s.retval;
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- r0 = s.arg0.fields["askDeleteRule"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 23; continue; }
- s.tmp_1 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 128;
- s.tmp_1.arg2 = true;
- s.callLocIdx = 1072; s.pc = 38; return s.tmp_1;
- case 38:
+ s.tmp_2.arg1 = 0;
+ s.callLocIdx = 1164; s.pc = 13; return s.tmp_2;
+ case 13:
r0 = s.retval;
- s.tmp_0 = game_showDialog__P2530_mk(s);
- s.tmp_0.arg0 = "OK to delete rule?";
- r0 = pxsim_String_.mkEmpty();
+ case 7:
+ case 8:
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = s.arg0.fields["attrSelected"];
s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = "A = OK, B = CANCEL";
- s.callLocIdx = 1073; s.pc = 39; return s.tmp_0;
- case 39:
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.cursorOut___63721;
+ s.callLocIdx = 1165; s.pc = 14; return s.tmp_0;
+ case 14:
r0 = s.retval;
- { step = 24; continue; }
- case 23:
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = false;
- s.callLocIdx = 1074; s.pc = 40; return s.tmp_0;
- case 40:
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 9;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.reset___63761;
+ s.callLocIdx = 1166; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- case 24:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_update__P14510.info = {"start":10406,"length":1240,"line":223,"column":8,"endLine":248,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"update","argumentNames":["this"]}
+tileworld_ruleediting_RuleEditor_attrMenu__P74514.info = {"start":19195,"length":1412,"line":435,"column":8,"endLine":465,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrMenu","argumentNames":["this","col","row"]}
-function tileworld_ruleediting_RuleEditor_update__P14510_mk(s) {
+function tileworld_ruleediting_RuleEditor_attrMenu__P74514_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_update__P14510, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_attrMenu__P74514, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- len___15710: undefined,
+ whenDo___76232: undefined,
+ collision22___76251: undefined,
+ aCol___76294: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_dirExprMenu__P14526(s) {
+function inline__P76266(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23623,56 +21300,82 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P16502);
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals.movedImages___3789;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1188; 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;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_1.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1189; s.pc = 3; return s.tmp_1;
+ r0 = (s.arg1 > 0);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ { step = 7; continue; }
case 3:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
+ case 4:
+ r0 = (s.arg1 >= 3);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 5; continue; }
+ { step = 7; continue; }
+ case 5:
+ case 6:
+ s.tmp_5 = r0 = globals.screen___61794;
+ s.tmp_6 = r0 = s.arg0;
+ r0 = (s.arg1 << 4);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 + 4);
+ s.tmp_7 = r0;
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_5, s.tmp_6, s.tmp_7, 10);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.cursorOut___3724;
- s.callLocIdx = 1190; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1156; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_dirExprMenu__P14526.info = {"start":22088,"length":326,"line":502,"column":8,"endLine":509,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprMenu","argumentNames":["this"]}
+inline__P76266.info = {"start":19654,"length":364,"line":443,"column":31,"endLine":451,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]}
-function tileworld_ruleediting_RuleEditor_dirExprMenu__P14526_mk(s) {
+function inline__P76266_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprMenu__P14526, depth: s.depth + 1,
+ parent: s, fn: inline__P76266, depth: s.depth + 1,
pc: 0, retval: undefined, 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 inline__P16502(s) {
+function inline__P76299(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23682,57 +21385,95 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.a___76309 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["rule"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
+ s.tmp_0 = r0 = s.caps[0];
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = (s.arg1 < 4);
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.caps[1].fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
case 2:
// jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 3; continue; }
{ step = 5; continue; }
case 3:
case 4:
- s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = s.arg1;
- s.tmp_4.arg2 = 0;
- s.tmp_4.arg3 = s.arg0;
- s.callLocIdx = 1187; s.pc = 6; return s.tmp_4;
+ s.tmp_6 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.caps[1].fields["all"];
+ s.tmp_6.arg0 = r0;
+ r0 = s.caps[1].fields["rule"];
+ s.tmp_6.arg1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
+ s.tmp_6.arg2 = r0;
+ s.tmp_6.arg3 = s.arg1;
+ s.tmp_6.arg4 = 65535;
+ s.callLocIdx = 1160; s.pc = 6; return s.tmp_6;
case 6:
r0 = s.retval;
+ s.a___76309 = (r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.caps[1];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = s.arg0;
+ s.callLocIdx = 1161; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.caps[1];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 1;
+ s.tmp_1 = r0 = globals.attrImages___63790;
+ r0 = pxsim_Array_.indexOf(globals.attrValues___63789, s.a___76309, undefined);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 1162; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.caps[3];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P16502.info = {"start":22144,"length":172,"line":503,"column":32,"endLine":507,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P76299.info = {"start":20088,"length":328,"line":453,"column":41,"endLine":460,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["image","i"]}
-function inline__P16502_mk(s) {
+function inline__P76299_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16502, depth: s.depth + 1,
+ parent: s, fn: inline__P76299, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ a___76309: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -23741,7 +21482,7 @@ function inline__P16502_mk(s) {
-function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514(s) {
+function tileworld_ruleediting_RuleEditor_selectAttr__P74515(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23751,101 +21492,128 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.inst___15975 = undefined;
- s.arg___15983 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1110; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.inst___15975 = (r0);
- s.tmp_0 = tileworld_RuleView_getCmdArg__P3655_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1111; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.arg___15983 = (r0);
- r0 = s.arg0.fields["tokens"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["attrSelected"] = (s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_ruleediting_RuleEditor_selectAttr__P74515.info = {"start":20617,"length":76,"line":467,"column":8,"endLine":469,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"selectAttr","argumentNames":["this","a"]}
+
+function tileworld_ruleediting_RuleEditor_selectAttr__P74515_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_ruleediting_RuleEditor_selectAttr__P74515, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_AllExport_getSetAttr__P63673(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_AllExport__C63668_VT)) failedCast(r0);
+ s.tmp_1 = r0 = s.arg3;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = pxsim_Array__length(s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
+ 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 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.inst___15975;
- s.tmp_3.arg2 = s.arg___15983;
- s.tmp_3.arg3 = s.arg1;
- s.callLocIdx = 1112; s.pc = 7; return s.tmp_3;
- case 7:
+ s.tmp_5 = tileworld_RuleView_getSetBgAttr__P63644_mk(s);
+ s.tmp_5.arg0 = s.arg1;
+ s.tmp_5.arg1 = s.arg2;
+ s.tmp_5.arg2 = s.arg3;
+ s.tmp_5.arg3 = s.arg4;
+ s.callLocIdx = 164; s.pc = 3; return s.tmp_5;
+ case 3:
r0 = s.retval;
- { step = 4; continue; }
+ { step = 2; continue; }
case 1:
- r0 = (s.inst___15975 != 255);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.inst___15975);
- r0 = pxsim_Array__push(s.tmp_1, 100);
- r0 = (s.arg0).fields["tokens"] = (s.tmp_1);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.inst___15975;
- s.tmp_0.arg2 = s.arg___15983;
- s.tmp_0.arg3 = s.arg1;
- s.callLocIdx = 1113; s.pc = 8; return s.tmp_0;
- case 8:
+ s.tmp_6 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_6.arg0 = s.arg1;
+ s.tmp_6.arg1 = s.arg2;
+ s.tmp_7 = r0 = s.arg3;
+ r0 = s.arg0.fields["p"];
+ s.tmp_9 = r0;
+ r0 = s.tmp_9.fields["_backgroundsI"];
+ s.tmp_10 = r0;
+ r0 = pxsim_Array__length(s.tmp_10);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_7 - s.tmp_8);
+ s.tmp_6.arg2 = r0;
+ s.tmp_6.arg3 = s.arg4;
+ s.callLocIdx = 166; s.pc = 4; return s.tmp_6;
+ case 4:
r0 = s.retval;
case 2:
- case 3:
- case 4:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = s.tmp_11;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514.info = {"start":14827,"length":488,"line":326,"column":8,"endLine":335,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"modifyCommandMenu","argumentNames":["this","inEdit"]}
+tileworld_AllExport_getSetAttr__P63673.info = {"start":1278,"length":227,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"project.ts","functionName":"getSetAttr","argumentNames":["this","rv","whendo","aid","val"]}
-function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s) {
+function tileworld_AllExport_getSetAttr__P63673_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514, depth: s.depth + 1,
+ parent: s, fn: tileworld_AllExport_getSetAttr__P63673, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- inst___15975: undefined,
- arg___15983: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513(s) {
+function tileworld_RuleView_getSetSpAttr__P63645(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23855,8 +21623,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___15927 = undefined;
- s.row___15928 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -23865,54 +21631,32 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.col___15927 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.col___15927, 3);
- s.row___15928 = (0);
- r0 = pxsim_pxtcore_mkAction(5, inline__P15932);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___15927);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___15928);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg3);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["tokens"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1108; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- r0 = (s.arg1 != 255);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = tileworld_ruleediting_RuleEditor_makeArgMenu__P14518_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.arg2;
- s.tmp_1.arg3 = s.arg3;
- s.callLocIdx = 1109; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P67037_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
+ r0 = r0.fields["spPred"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = s.arg3;
+ s.callLocIdx = 129; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- r0 = undefined;
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513.info = {"start":13969,"length":848,"line":303,"column":8,"endLine":324,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeCommandMenu","argumentNames":["this","inst","arg","inEdit"]}
+tileworld_RuleView_getSetSpAttr__P63645.info = {"start":4742,"length":172,"line":138,"column":8,"endLine":140,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetSpAttr","argumentNames":["this","wdid","index","val"]}
-function tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s) {
+function tileworld_RuleView_getSetSpAttr__P63645_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getSetSpAttr__P63645, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- col___15927: undefined,
- row___15928: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -23923,7 +21667,7 @@ function tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s) {
-function inline__P15932(s) {
+function tileworld_RuleView_getSetBuffAttr__P67037(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -23933,104 +21677,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.byteIndex___67321 = undefined;
+ s.byte___67324 = undefined;
+ s.remainder___67329 = undefined;
+ s.mask___67336 = undefined;
+ s.newByte___67344 = 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 < 7);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = (s.arg2 >> 2);
+ s.byteIndex___67321 = (r0);
+ r0 = pxsim.BufferMethods.getUint8(s.arg1, s.byteIndex___67321);
+ s.byte___67324 = (r0);
+ s.tmp_0 = r0 = s.arg2;
+ r0 = (s.byteIndex___67321 << 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 - s.tmp_1);
+ s.remainder___67329 = (r0);
+ r0 = (s.arg3 != 65535);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__getAt(globals.categoryImages___15105, s.arg0);
- { step = 2; continue; }
- case 1:
- r0 = globals.garbageCan___3718;
- case 2:
- // jmp value (already in r0)
+ r0 = (s.remainder___67329 << 1);
+ s.tmp_2 = r0;
+ r0 = (3 << s.tmp_2);
s.tmp_1 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = s.caps[2];
- s.tmp_2.arg3 = s.tmp_1;
- s.callLocIdx = 1103; s.pc = 7; return s.tmp_2;
- case 7:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.caps[2];
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1104; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- r0 = (s.caps[3] == s.arg0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.caps[2];
- s.tmp_1.arg3 = globals.cursorOut___3724;
- s.callLocIdx = 1105; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.caps[4]);
- if (!r0) { step = 3; continue; }
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1106; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.caps[2];
- s.callLocIdx = 1107; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- case 3:
- case 4:
- case 5:
- case 6:
- r0 = s.caps[0].fields["ruleTypeMap"];
+ r0 = (s.tmp_1 ^ 255);
+ s.mask___67336 = (r0);
+ r0 = (s.byte___67324 & s.mask___67336);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.caps[2], s.arg0);
- s.tmp_0 = r0 = s.caps[1];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ r0 = (s.arg3 & 3);
s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ r0 = (s.remainder___67329 << 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 << s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = undefined;
+ r0 = (s.tmp_0 | s.tmp_1);
+ s.newByte___67344 = (r0);
+ r0 = pxsim.BufferMethods.setUint8(s.arg1, s.byteIndex___67321, s.newByte___67344);
+ case 1:
+ case 2:
+ s.tmp_1 = r0 = s.byte___67324;
+ r0 = (s.remainder___67329 << 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >> s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 & 3);
return leave(s, r0)
default: oops()
} } }
-inline__P15932.info = {"start":14212,"length":494,"line":308,"column":32,"endLine":320,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["ct"]}
+tileworld_RuleView_getSetBuffAttr__P67037.info = {"start":4042,"length":508,"line":122,"column":8,"endLine":132,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBuffAttr","argumentNames":["this","buf","index","val"]}
-function inline__P15932_mk(s) {
+function tileworld_RuleView_getSetBuffAttr__P67037_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P15932, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getSetBuffAttr__P67037, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ byteIndex___67321: undefined,
+ byte___67324: undefined,
+ remainder___67329: undefined,
+ mask___67336: undefined,
+ newByte___67344: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_ruleediting_RuleEditor_makeArgMenu__P14518(s) {
+function tileworld_RuleView_getSetBgAttr__P63644(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24040,10 +21768,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___16054 = undefined;
- s.row___16055 = undefined;
- s.last___16060 = undefined;
- s.i___16068 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -24052,132 +21776,77 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.col___16054 = (4);
- s.row___16055 = (1);
- r0 = s.arg0.fields["dirMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- s.tmp_1 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 1118; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_3 = tileworld_ruleediting_RuleEditor_instToNumArgs__P14517_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.arg1;
- s.callLocIdx = 1119; s.pc = 8; return s.tmp_3;
- case 8:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- s.last___16060 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P67037_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1120; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.i___16068 = (r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
+ r0 = r0.fields["bgPred"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = s.arg3;
+ s.callLocIdx = 128; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___16068 < s.last___16060);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.col___16054;
- s.tmp_1.arg2 = s.row___16055;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.i___16068;
- s.callLocIdx = 1121; s.pc = 11; return s.tmp_2;
- case 11:
- r0 = s.retval;
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 1122; s.pc = 10; return s.tmp_1;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.col___16054;
- s.tmp_0.arg2 = s.row___16055;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1123; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- r0 = (s.arg2 == s.i___16068);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.col___16054;
- s.tmp_1.arg2 = s.row___16055;
- s.tmp_1.arg3 = globals.cursorOut___3724;
- s.callLocIdx = 1124; s.pc = 13; return s.tmp_1;
- case 13:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg3);
- if (!r0) { step = 2; continue; }
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.col___16054;
- s.callLocIdx = 1125; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.row___16055;
- s.callLocIdx = 1126; s.pc = 15; return s.tmp_0;
- case 15:
r0 = s.retval;
- case 2:
- case 3:
- case 4:
- case 5:
- r0 = s.arg0.fields["dirMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___16054, s.row___16055, s.i___16068);
- r0 = (s.col___16054 + 1);
- s.col___16054 = (r0);
- r0 = (s.i___16068 + 1);
- s.i___16068 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_makeArgMenu__P14518.info = {"start":16432,"length":755,"line":368,"column":8,"endLine":386,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeArgMenu","argumentNames":["this","inst","arg","inEdit"]}
+tileworld_RuleView_getSetBgAttr__P63644.info = {"start":4560,"length":172,"line":134,"column":8,"endLine":136,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBgAttr","argumentNames":["this","wdid","index","val"]}
+
+function tileworld_RuleView_getSetBgAttr__P63644_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_getSetBgAttr__P63644, 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 tileworld_AllExport_getImages__P63670(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_AllExport__C63668_VT)) failedCast(r0);
+ r0 = s.arg0.fields["allImages"];
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_AllExport_getImages__P63670.info = {"start":934,"length":65,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"project.ts","functionName":"getImages","argumentNames":["this"]}
-function tileworld_ruleediting_RuleEditor_makeArgMenu__P14518_mk(s) {
+function tileworld_AllExport_getImages__P63670_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_makeArgMenu__P14518, depth: s.depth + 1,
+ parent: s, fn: tileworld_AllExport_getImages__P63670, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- col___16054: undefined,
- row___16055: undefined,
- last___16060: undefined,
- i___16068: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_instToImage__P13117(s) {
+function tileworld_RuleView_makeWhenDo__P63641(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24187,9 +21856,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ret___13553 = undefined;
- s.ret___13569 = undefined;
- s.ret___13586 = undefined;
+ s.wd___67259 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -24197,120 +21864,73 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg1 == 255);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C63600_VT);
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_1 = tileworld_WhenDo_constructor__P63601_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 = null;
+ s.tmp_1.arg4 = null;
+ s.tmp_1.arg5 = 0;
+ s.tmp_1.arg6 = null;
+ s.tmp_1.arg7 = 0;
+ s.callLocIdx = 125; s.pc = 1; return s.tmp_1;
case 1:
- r0 = (s.arg2 == 255);
- case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- r0 = globals.emptyTile___3721;
- { step = 15; continue; }
- case 3:
- case 4:
- s.tmp_2 = r0 = s.arg1;
- r0 = pxsim_pxtcore.switch_eq(0, s.tmp_2);
- if (r0) { step = 5; continue; }
- r0 = pxsim_pxtcore.switch_eq(1, s.tmp_2);
- if (r0) { step = 6; continue; }
- r0 = pxsim_pxtcore.switch_eq(3, s.tmp_2);
- if (r0) { step = 7; continue; }
- r0 = pxsim_pxtcore.switch_eq(4, s.tmp_2);
- if (r0) { step = 8; continue; }
- r0 = pxsim_pxtcore.switch_eq(2, s.tmp_2);
- if (r0) { step = 9; continue; }
- r0 = pxsim_pxtcore.switch_eq(6, s.tmp_2);
- if (r0) { step = 10; continue; }
- r0 = pxsim_pxtcore.switch_eq(5, s.tmp_2);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_2;
- { step = 14; continue; }
- case 5:
- r0 = pxsim_Array__getAt(globals.moveImages___3788, s.arg2);
- { step = 15; continue; }
- case 6:
+ r0 = s.retval;
+ s.wd___67259 = (s.tmp_0);
+ s.tmp_0 = r0 = s.wd___67259;
r0 = s.arg0.fields["p"];
- s.tmp_5 = r0;
- r0 = s.tmp_5.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.arg2);
s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_3);
- s.ret___13553 = (r0);
- r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13553, globals.smallPaint___3757, 0, 0);
- r0 = s.ret___13553;
- { step = 15; continue; }
- case 7:
- r0 = globals.eat___3753;
- { step = 15; continue; }
- case 8:
- r0 = pxsim_Array__getAt(globals.gameImages___3794, s.arg2);
- { step = 15; continue; }
- case 9:
- case 10:
- r0 = s.arg0.fields["p"];
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_spritesI"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_0);
- s.ret___13569 = (r0);
- r0 = (s.arg1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = globals.spawn___3756;
- { step = 12; continue; }
- case 11:
- r0 = globals.exclude___3727;
- case 12:
- // jmp value (already in r0)
+ r0 = pxsim.control.createBuffer(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13569, s.tmp_1, 0, 0);
- r0 = s.ret___13569;
- { step = 15; continue; }
- case 13:
+ r0 = (s.tmp_0).fields["bgPred"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.wd___67259;
r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_backgroundsI"];
+ r0 = pxsim.control.createBuffer(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg2);
+ r0 = (s.tmp_0).fields["spPred"] = (s.tmp_1);
+ r0 = (s.wd___67259).fields["commandsLen"] = (0);
+ s.tmp_0 = r0 = s.wd___67259;
+ r0 = pxsim.control.createBuffer(8);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["commands"] = (s.tmp_1);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_0);
- s.ret___13586 = (r0);
- r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13586, globals.portal___3758, 0, 0);
- r0 = s.ret___13586;
- { step = 15; continue; }
- case 14:
- r0 = globals.emptyTile___3721;
- case 15:
+ r0 = pxsim_Array__push(s.tmp_0, s.wd___67259);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__length(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 - 1);
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_instToImage__P13117.info = {"start":6695,"length":1169,"line":159,"column":8,"endLine":185,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"instToImage","argumentNames":["this","inst","arg"]}
+tileworld_RuleView_makeWhenDo__P63641.info = {"start":3418,"length":408,"line":104,"column":8,"endLine":112,"endColumn":9,"fileName":"ruleview.ts","functionName":"makeWhenDo","argumentNames":["this","col","row"]}
-function tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s) {
+function tileworld_RuleView_makeWhenDo__P63641_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_instToImage__P13117, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_makeWhenDo__P63641, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- tmp_5: undefined,
- ret___13553: undefined,
- ret___13569: undefined,
- ret___13586: undefined,
+ wd___67259: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -24320,7 +21940,7 @@ function tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s) {
-function tileworld_Project_spriteImages__P3695(s) {
+function tileworld_WhenDo_constructor__P63601(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24332,29 +21952,51 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
+ s.arg6 = (s.lambdaArgs[6]);
+ s.arg7 = (s.lambdaArgs[7]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_spritesI"];
+ if (!checkSubtype(r0, tileworld_WhenDo__C63600_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["col"] = (s.arg1);
+ r0 = (s.arg0).fields["row"] = (s.arg2);
+ r0 = (s.arg0).fields["bgPred"] = (s.arg3);
+ r0 = (s.arg0).fields["spPred"] = (s.arg4);
+ r0 = (s.arg0).fields["dir"] = (s.arg5);
+ r0 = (s.arg0).fields["commands"] = (s.arg6);
+ r0 = (s.arg0).fields["commandsLen"] = (s.arg7);
+ r0 = (s.arg0).fields["dir"] = (6);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_spriteImages__P3695.info = {"start":3406,"length":48,"line":100,"column":8,"endLine":100,"endColumn":56,"fileName":"project.ts","functionName":"spriteImages","argumentNames":["this"]}
+tileworld_WhenDo_constructor__P63601.info = {"start":3368,"length":772,"line":101,"column":8,"endLine":111,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","col","row","bgPred","spPred","dir","commands","commandsLen"]}
-function tileworld_Project_spriteImages__P3695_mk(s) {
+function tileworld_WhenDo_constructor__P63601_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_spriteImages__P3695, depth: s.depth + 1,
+ parent: s, fn: tileworld_WhenDo_constructor__P63601, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+ arg6: undefined,
+ arg7: undefined,
} }
-function tileworld_Project_backgroundImages__P3694(s) {
+function tileworld_ruleediting_RuleEditor_showMainMenu__P74503(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24364,23 +22006,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.rules___75786 = undefined;
+ s.index___75788 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_backgroundsI"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = 11;
+ s.callLocIdx = 1076; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.code___63712;
+ s.callLocIdx = 1077; s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.map___63709;
+ s.callLocIdx = 1078; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.play___63710;
+ s.callLocIdx = 1079; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 5;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.flipHoriz___63740;
+ s.callLocIdx = 1080; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["transforms"];
+ 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_3 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = 5;
+ s.tmp_3.arg2 = 0;
+ s.tmp_3.arg3 = globals.include2___63726;
+ s.callLocIdx = 1082; s.pc = 14; return s.tmp_3;
+ case 14:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 6;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.garbageCan___63715;
+ s.callLocIdx = 1083; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P74499_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1084; s.pc = 16; return s.tmp_0;
+ case 16:
+ r0 = s.retval;
+ s.rules___75786 = (r0);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.indexOf(s.rules___75786, s.tmp_0, undefined);
+ s.index___75788 = (r0);
+ s.tmp_1 = r0 = s.index___75788;
+ r0 = pxsim_Array__length(s.rules___75786);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = globals.rightArrow___63748;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_4 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_4.arg0 = globals.rightArrow___63748;
+ s.callLocIdx = 1085; s.pc = 17; return s.tmp_4;
+ case 17:
+ r0 = s.retval;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = 9;
+ s.tmp_6.arg2 = 0;
+ s.tmp_6.arg3 = s.tmp_5;
+ s.callLocIdx = 1086; s.pc = 18; return s.tmp_6;
+ case 18:
+ r0 = s.retval;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 1087; s.pc = 19; return s.tmp_2;
+ case 19:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = globals.addRule___63717;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_3 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_3.arg0 = globals.addRule___63717;
+ s.callLocIdx = 1088; s.pc = 20; return s.tmp_3;
+ case 20:
+ r0 = s.retval;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.tmp_5 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = 8;
+ s.tmp_5.arg2 = 0;
+ s.tmp_5.arg3 = s.tmp_4;
+ s.callLocIdx = 1089; s.pc = 21; return s.tmp_5;
+ case 21:
+ r0 = s.retval;
+ r0 = (s.index___75788 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = globals.leftArrow___63749;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_1 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_1.arg0 = globals.leftArrow___63749;
+ s.callLocIdx = 1090; s.pc = 22; return s.tmp_1;
+ case 22:
+ r0 = s.retval;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = 7;
+ s.tmp_3.arg2 = 0;
+ s.tmp_3.arg3 = s.tmp_2;
+ s.callLocIdx = 1091; s.pc = 23; return s.tmp_3;
+ case 23:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_backgroundImages__P3694.info = {"start":3341,"length":56,"line":99,"column":8,"endLine":99,"endColumn":64,"fileName":"project.ts","functionName":"backgroundImages","argumentNames":["this"]}
+tileworld_ruleediting_RuleEditor_showMainMenu__P74503.info = {"start":11682,"length":850,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showMainMenu","argumentNames":["this"]}
-function tileworld_Project_backgroundImages__P3694_mk(s) {
+function tileworld_ruleediting_RuleEditor_showMainMenu__P74503_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_backgroundImages__P3694, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_showMainMenu__P74503, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ rules___75786: undefined,
+ index___75788: undefined,
arg0: undefined,
} }
@@ -24388,7 +22198,7 @@ function tileworld_Project_backgroundImages__P3694_mk(s) {
-function tileworld_ruleediting_RuleEditor_instToNumArgs__P14517(s) {
+function tileworld_greyImage__P63536(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24398,105 +22208,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ret___66054 = undefined;
+ s.x___66058 = undefined;
+ s.y___66064 = undefined;
+ s.pix___66070 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg1;
- r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = pxsim_pxtcore.switch_eq(1, 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(2, s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = pxsim_pxtcore.switch_eq(6, 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; }
+ r0 = pxsim_ImageMethods.clone(s.arg0);
+ s.ret___66054 = (r0);
+ s.x___66058 = (0);
case 1:
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 1115; s.pc = 12; return s.tmp_3;
- case 12:
- r0 = s.retval;
+ s.tmp_1 = r0 = s.x___66058;
+ r0 = pxsim_ImageMethods.width(s.ret___66054);
s.tmp_2 = r0;
- r0 = (s.tmp_2 != 2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = 4;
- { step = 3; continue; }
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.y___66064 = (0);
case 2:
- r0 = 1;
+ s.tmp_1 = r0 = s.y___66064;
+ r0 = pxsim_ImageMethods.height(s.ret___66054);
+ 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.ret___66054, s.x___66058, s.y___66064);
+ s.pix___66070 = (r0);
+ r0 = (s.pix___66070 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = 0;
+ { step = 4; continue; }
case 3:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- { step = 11; continue; }
+ r0 = 12;
case 4:
- r0 = 4;
- { step = 11; continue; }
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.ret___66054, s.x___66058, s.y___66064, s.tmp_1);
+ r0 = (s.y___66064 + 1);
+ s.y___66064 = (r0);
+ { step = 2; continue; }
case 5:
- r0 = 0;
- { step = 11; continue; }
+ r0 = (s.x___66058 + 1);
+ s.x___66058 = (r0);
+ { step = 1; continue; }
case 6:
- r0 = 3;
- { step = 11; continue; }
- case 7:
- case 8:
- r0 = s.arg0.fields["p"];
- s.tmp_5 = r0;
- r0 = s.tmp_5.fields["_spritesI"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__length(s.tmp_6);
- { step = 11; continue; }
- case 9:
- r0 = s.arg0.fields["p"];
- s.tmp_7 = r0;
- r0 = s.tmp_7.fields["_backgroundsI"];
- s.tmp_8 = r0;
- r0 = pxsim_Array__length(s.tmp_8);
- { step = 11; continue; }
- case 10:
- r0 = 0;
- case 11:
+ r0 = s.ret___66054;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_instToNumArgs__P14517.info = {"start":15885,"length":537,"line":355,"column":8,"endLine":366,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToNumArgs","argumentNames":["this","inst"]}
+tileworld_greyImage__P63536.info = {"start":995,"length":323,"line":29,"column":4,"endLine":38,"endColumn":5,"fileName":"utilities.ts","functionName":"greyImage","argumentNames":["img"]}
-function tileworld_ruleediting_RuleEditor_instToNumArgs__P14517_mk(s) {
+function tileworld_greyImage__P63536_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_instToNumArgs__P14517, depth: s.depth + 1,
+ parent: s, fn: tileworld_greyImage__P63536, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ ret___66054: undefined,
+ x___66058: undefined,
+ y___66064: undefined,
+ pix___66070: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_Project_backCnt__P3691(s) {
+function tileworld_RuleView_getTransforms__P63632(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24511,21 +22298,19 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_backgroundsI"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__length(s.tmp_0);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["transforms"];
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_backCnt__P3691.info = {"start":3147,"length":54,"line":96,"column":8,"endLine":96,"endColumn":62,"fileName":"project.ts","functionName":"backCnt","argumentNames":["this"]}
+tileworld_RuleView_getTransforms__P63632.info = {"start":1545,"length":72,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"ruleview.ts","functionName":"getTransforms","argumentNames":["this"]}
-function tileworld_Project_backCnt__P3691_mk(s) {
+function tileworld_RuleView_getTransforms__P63632_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_backCnt__P3691, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getTransforms__P63632, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
} }
@@ -24533,7 +22318,7 @@ function tileworld_Project_backCnt__P3691_mk(s) {
-function tileworld_ruleediting_RuleEditor_instToStartArg__P14515(s) {
+function tileworld_RuleVisualsBase_fillTile__P72691(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24546,62 +22331,56 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg1;
- r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = (s.arg1 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 1);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_3 = r0;
+ r0 = (6 + s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 15;
+ s.tmp_0.arg4 = 15;
+ s.tmp_0.arg5 = s.arg3;
+ s.callLocIdx = 687; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 1114; s.pc = 6; return s.tmp_3;
- case 6:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 != 2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = 0;
- { step = 3; continue; }
- case 2:
- r0 = 4;
- case 3:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- { step = 5; continue; }
- case 4:
- r0 = 0;
- case 5:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_instToStartArg__P14515.info = {"start":15363,"length":236,"line":338,"column":8,"endLine":344,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToStartArg","argumentNames":["this","inst"]}
+tileworld_RuleVisualsBase_fillTile__P72691.info = {"start":4785,"length":138,"line":124,"column":8,"endLine":126,"endColumn":9,"fileName":"rulesBase.ts","functionName":"fillTile","argumentNames":["this","c","r","col"]}
-function tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s) {
+function tileworld_RuleVisualsBase_fillTile__P72691_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_instToStartArg__P14515, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_fillTile__P72691, depth: s.depth + 1,
pc: 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 tileworld_RuleVisualsBase_drawOutline__P12698(s) {
+function tileworld_ruleediting_RuleDisplay_update__P73103(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24611,53 +22390,202 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.image___73422 = 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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = helpers_imageDrawRect__P1728_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = (s.arg1 << 4);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["collideRow"] = (-1);
+ r0 = (s.arg0).fields["collideCol"] = (-1);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "When";
+ s.tmp_0.arg2 = 0;
+ r0 = (32 + 8);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 722; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["debug"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_1.arg0 = globals.screen___61794;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["rid"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops.toString(s.tmp_2);
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = 30;
+ s.tmp_1.arg3 = 0;
+ s.tmp_1.arg4 = undefined;
+ s.tmp_1.arg5 = undefined;
+ s.tmp_1.arg6 = undefined;
+ s.callLocIdx = 724; s.pc = 12; return s.tmp_1;
+ case 12:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Do";
+ s.tmp_0.arg2 = 70;
+ r0 = (32 + 8);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 725; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_showRuleType__P73102_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["r"];
+ r0 = r0.fields["ruleType"];
s.tmp_0.arg1 = r0;
- r0 = (s.arg2 << 4);
+ s.tmp_2 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 727; s.pc = 15; return s.tmp_2;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 2;
+ s.tmp_0.arg4 = 4;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 728; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_makeContext__P73104_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 729; s.pc = 16; return s.tmp_0;
+ case 16:
+ r0 = s.retval;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 730; s.pc = 17; return s.tmp_2;
+ case 17:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_showRuleType__P73102_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_4 = r0;
+ r0 = s.tmp_4.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_3.arg1 = r0;
+ s.tmp_5 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 732; s.pc = 19; return s.tmp_5;
+ case 19:
+ r0 = s.retval;
+ s.tmp_3.arg2 = r0;
+ s.tmp_3.arg3 = 2;
+ s.tmp_3.arg4 = 4;
+ s.tmp_3.arg5 = true;
+ s.callLocIdx = 733; s.pc = 18; return s.tmp_3;
+ case 18:
+ r0 = s.retval;
+ case 3:
+ case 4:
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCommands__P73108_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 734; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 735; s.pc = 21; return s.tmp_2;
+ case 21:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 736; s.pc = 22; return s.tmp_3;
+ case 22:
+ r0 = s.retval;
+ s.image___73422 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.image___73422);
+ if (!r0) { step = 5; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 3;
+ s.tmp_0.arg3 = s.image___73422;
+ s.callLocIdx = 737; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ case 5:
+ case 6:
+ { step = 10; continue; }
+ case 7:
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 738; s.pc = 24; return s.tmp_2;
+ case 24:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (6 + s.tmp_1);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 17;
- s.tmp_0.arg4 = 17;
- s.tmp_0.arg5 = s.arg3;
- s.callLocIdx = 684; s.pc = 1; return s.tmp_0;
- case 1:
+ r0 = (s.tmp_1 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = 0;
+ s.tmp_3.arg2 = 3;
+ s.tmp_3.arg3 = globals.negate___63762;
+ s.callLocIdx = 739; s.pc = 25; return s.tmp_3;
+ case 25:
r0 = s.retval;
+ case 8:
+ case 9:
+ case 10:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_drawOutline__P12698.info = {"start":4635,"length":140,"line":120,"column":8,"endLine":122,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawOutline","argumentNames":["this","c","r","col"]}
+tileworld_ruleediting_RuleDisplay_update__P73103.info = {"start":4346,"length":1043,"line":101,"column":8,"endLine":123,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_RuleVisualsBase_drawOutline__P12698_mk(s) {
+function tileworld_ruleediting_RuleDisplay_update__P73103_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_drawOutline__P12698, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_update__P73103, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ image___73422: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function helpers_imageDrawRect__P1728(s) {
+function tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24667,110 +22595,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.dir___73173 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- r0 = (s.arg3 == 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 704; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.dir___73173 = (r0);
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 705; s.pc = 4; return s.tmp_2;
+ case 4:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
+ r0 = pxsim_Array__getAt(globals.buttonImages___63788, s.dir___73173);
{ step = 2; continue; }
case 1:
- r0 = (s.arg4 == 0);
+ r0 = pxsim_Array__getAt(globals.moveImages___63785, s.dir___73173);
case 2:
// jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- { step = 5; continue; }
- case 3:
- case 4:
- r0 = (s.arg3 - 1);
- s.arg3 = (r0);
- r0 = (s.arg4 - 1);
- s.arg4 = (r0);
- s.tmp_0 = helpers_imageDrawLine__P1727_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 = 94; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_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 = 95; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_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 = 96; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.tmp_0 = helpers_imageDrawLine__P1727_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 = 97; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- case 5:
- r0 = undefined;
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-helpers_imageDrawRect__P1728.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]}
+tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098.info = {"start":2005,"length":188,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDirectionImage","argumentNames":["this"]}
-function helpers_imageDrawRect__P1728_mk(s) {
+function tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imageDrawRect__P1728, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ dir___73173: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
- arg5: undefined,
} }
-function tileworld_RuleView_getCmdArg__P3655(s) {
+function tileworld_ruleediting_RuleDisplay_showCommands__P73108(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24780,102 +22659,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7577 = undefined;
- s.arg___7586 = undefined;
+ s.lr___73498 = undefined;
+ s.col___73502 = undefined;
+ s.row___73505 = undefined;
+ s.len___73508 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7577 = (r0);
- r0 = s.wd___7577.fields["commandsLen"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
s.tmp_1 = r0;
- r0 = (s.arg2 >= s.tmp_1);
+ r0 = (s.tmp_0).fields["commandLengths"] = (s.tmp_1);
+ s.lr___73498 = (0);
+ case 1:
+ r0 = (s.lr___73498 < 5);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = 255;
- { step = 7; continue; }
- case 1:
- case 2:
- r0 = s.wd___7577.fields["commands"];
- s.tmp_2 = r0;
- r0 = (s.arg2 << 1);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + 1);
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
- s.arg___7586 = (r0);
- r0 = s.arg0.fields["rid"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ if (!r0) { step = 4; continue; }
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.lr___73498;
+ s.callLocIdx = 742; s.pc = 5; return s.tmp_1;
+ case 5:
+ r0 = s.retval;
+ s.col___73502 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.lr___73498;
+ s.callLocIdx = 743; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.row___73505 = (r0);
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_active__P73105_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.col___73502;
+ s.tmp_1.arg2 = s.row___73505;
+ s.callLocIdx = 744; s.pc = 7; return s.tmp_1;
+ case 7:
+ r0 = s.retval;
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- s.tmp_3 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.arg1;
- s.tmp_3.arg2 = s.arg2;
- s.callLocIdx = 142; s.pc = 8; return s.tmp_3;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.lr___73498;
+ s.tmp_2.arg2 = s.col___73502;
+ s.tmp_2.arg3 = s.row___73505;
+ s.tmp_2.arg4 = true;
+ s.callLocIdx = 745; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == 0);
- case 4:
+ { step = 3; continue; }
+ case 2:
+ r0 = -1;
+ case 3:
// jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 5; continue; }
- s.tmp_5 = tileworld_flipRotateDir__P3621_mk(s);
- s.tmp_5.arg0 = s.arg___7586;
- r0 = s.arg0.fields["view"];
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 143; s.pc = 9; return s.tmp_5;
- case 9:
- r0 = s.retval;
- s.arg___7586 = (r0);
- case 5:
- case 6:
- r0 = s.arg___7586;
- case 7:
+ s.tmp_3 = r0;
+ s.len___73508 = (s.tmp_3);
+ r0 = s.arg0.fields["commandLengths"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.len___73508);
+ r0 = (s.lr___73498 + 1);
+ s.lr___73498 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getCmdArg__P3655.info = {"start":6955,"length":390,"line":201,"column":8,"endLine":209,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdArg","argumentNames":["this","wdid","cid"]}
+tileworld_ruleediting_RuleDisplay_showCommands__P73108.info = {"start":6317,"length":368,"line":149,"column":8,"endLine":157,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommands","argumentNames":["this"]}
-function tileworld_RuleView_getCmdArg__P3655_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showCommands__P73108_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getCmdArg__P3655, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommands__P73108, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- wd___7577: undefined,
- arg___7586: undefined,
+ lr___73498: undefined,
+ col___73502: undefined,
+ row___73505: undefined,
+ len___73508: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tileworld_flipRotateDir__P3621(s) {
+function tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -24885,47 +22762,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.kind___73598 = undefined;
+ s.img___73604 = undefined;
+ s.whendo___73633 = undefined;
+ s.whendo___73699 = undefined;
+ s.col___73705 = undefined;
+ s.tokens___73706 = undefined;
+ s.cid___73716 = 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.arg1 == 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg4);
+ if (!r0) { step = 13; continue; }
+ s.tmp_0 = tileworld_RuleView_findWitnessColRow__P63647_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg2;
+ s.tmp_0.arg2 = s.arg3;
+ s.tmp_0.arg3 = true;
+ s.callLocIdx = 749; s.pc = 28; return s.tmp_0;
+ case 28:
+ r0 = s.retval;
+ s.kind___73598 = (r0);
+ r0 = (s.kind___73598 == -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;
+ r0 = globals.genericSprite___63723;
{ step = 2; continue; }
case 1:
- r0 = (s.arg0 >= 4);
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg2;
+ s.tmp_1.arg2 = s.arg3;
+ s.callLocIdx = 750; s.pc = 29; return s.tmp_1;
+ case 29:
+ r0 = s.retval;
case 2:
// jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0;
- { step = 23; continue; }
- case 3:
- case 4:
- r0 = (s.arg1 == 1);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 9; continue; }
- r0 = (s.arg0 == 0);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 5; continue; }
- r0 = 2;
+ s.img___73604 = (s.tmp_2);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 5;
+ r0 = (s.arg1 + 2);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.img___73604;
+ s.callLocIdx = 751; s.pc = 30; return s.tmp_0;
+ case 30:
+ r0 = s.retval;
+ r0 = (s.kind___73598 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_0;
{ step = 8; continue; }
+ case 3:
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 752; s.pc = 31; return s.tmp_3;
+ case 31:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 != 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = s.tmp_1;
+ { step = 5; continue; }
+ case 4:
+ r0 = (s.arg2 != 2);
case 5:
- r0 = (s.arg0 == 2);
+ // jmp value (already in r0)
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ r0 = pxsim_numops_toBool(s.tmp_4);
if (!r0) { step = 6; continue; }
- r0 = 0;
+ r0 = s.tmp_4;
{ step = 7; continue; }
case 6:
- r0 = s.arg0;
+ r0 = (s.arg3 != 2);
case 7:
// jmp value (already in r0)
s.tmp_5 = r0;
@@ -24933,91 +22855,211 @@ switch (step) {
case 8:
// jmp value (already in r0)
s.tmp_6 = r0;
- r0 = s.tmp_6;
- { step = 23; continue; }
- { step = 22; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 9; continue; }
+ s.tmp_7 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_7.arg0 = r0;
+ s.tmp_7.arg1 = s.arg2;
+ s.tmp_7.arg2 = s.arg3;
+ s.callLocIdx = 753; s.pc = 32; return s.tmp_7;
+ case 32:
+ r0 = s.retval;
+ s.whendo___73633 = (r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 5;
+ r0 = (s.arg1 + 2);
+ s.tmp_0.arg2 = r0;
+ s.tmp_1 = r0 = globals.movedImages___63786;
+ s.tmp_3 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.whendo___73633;
+ s.callLocIdx = 754; s.pc = 34; return s.tmp_3;
+ case 34:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 755; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
case 9:
- r0 = (s.arg1 == 2);
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 14; continue; }
- r0 = (s.arg0 == 1);
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 10; continue; }
- r0 = 3;
- { step = 13; continue; }
case 10:
- r0 = (s.arg0 == 3);
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["help"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 11; continue; }
- r0 = 1;
- { step = 12; continue; }
+ s.tmp_1 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_1.arg0 = globals.screen___61794;
+ r0 = (s.arg1 + 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops.toString(s.tmp_2);
+ s.tmp_1.arg1 = r0;
+ r0 = (80 + 10);
+ s.tmp_1.arg2 = r0;
+ r0 = (2 + s.arg1);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 << 4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 13);
+ s.tmp_1.arg3 = r0;
+ s.tmp_1.arg4 = undefined;
+ s.tmp_1.arg5 = undefined;
+ s.tmp_1.arg6 = undefined;
+ s.callLocIdx = 756; s.pc = 35; return s.tmp_1;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = (s.arg1 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 10);
+ s.tmp_0.arg2 = r0;
+ r0 = (2 + s.arg3);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 << 4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 13);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 757; s.pc = 36; return s.tmp_0;
+ case 36:
+ r0 = s.retval;
case 11:
- r0 = s.arg0;
case 12:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = s.tmp_10;
case 13:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- r0 = s.tmp_11;
- { step = 23; continue; }
- { step = 21; continue; }
case 14:
- r0 = (s.arg1 == 3);
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_12);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg2;
+ s.tmp_0.arg2 = s.arg3;
+ s.callLocIdx = 758; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.whendo___73699 = (r0);
+ s.col___73705 = (6);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_startTokens__P73112_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg2;
+ s.tmp_0.arg2 = s.arg3;
+ s.callLocIdx = 759; s.pc = 38; return s.tmp_0;
+ case 38:
+ r0 = s.retval;
+ s.tokens___73706 = (r0);
+ 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 = 15; continue; }
- r0 = (s.arg0 + 3);
- s.tmp_14 = r0;
- r0 = (s.tmp_14 % 4);
- s.tmp_13 = r0;
- r0 = (s.tmp_13 | 0);
- { step = 23; continue; }
- { step = 20; continue; }
+ r0 = (s.arg0).fields["tokens"] = (s.tokens___73706);
case 15:
- r0 = (s.arg1 == 5);
- s.tmp_15 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_15);
- if (!r0) { step = 16; continue; }
- r0 = (s.arg0 + 1);
- s.tmp_17 = r0;
- r0 = (s.tmp_17 % 4);
- s.tmp_16 = r0;
- r0 = (s.tmp_16 | 0);
- { step = 23; continue; }
- { step = 19; continue; }
case 16:
- r0 = (s.arg1 == 4);
- s.tmp_18 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_18);
- if (!r0) { step = 17; continue; }
- r0 = (s.arg0 + 2);
- s.tmp_20 = r0;
- r0 = (s.tmp_20 % 4);
- s.tmp_19 = r0;
- r0 = (s.tmp_19 | 0);
- { step = 23; continue; }
+ s.cid___73716 = (0);
case 17:
+ r0 = (s.whendo___73699 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 18; continue; }
+ r0 = s.tmp_0;
+ { step = 19; continue; }
case 18:
+ s.tmp_1 = r0 = s.cid___73716;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.whendo___73699);
+ r0 = r0.fields["commandsLen"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
case 19:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 20; continue; }
+ s.tmp_6 = tileworld_ruleediting_RuleDisplay_showCommand__P73111_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.col___73705;
+ s.tmp_6.arg2 = s.arg1;
+ s.tmp_6.arg3 = s.whendo___73699;
+ s.tmp_6.arg4 = s.cid___73716;
+ s.tmp_6.arg5 = s.tokens___73706;
+ s.tmp_6.arg6 = s.arg4;
+ s.callLocIdx = 761; s.pc = 39; return s.tmp_6;
+ case 39:
+ r0 = s.retval;
+ r0 = (s.cid___73716 + 1);
+ s.cid___73716 = (r0);
+ s.tmp_0 = r0 = s.col___73705;
+ r0 = (s.tmp_0 + 1);
+ s.col___73705 = (r0);
+ r0 = s.tmp_0;
+ { step = 17; continue; }
case 20:
+ r0 = (s.whendo___73699 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 21; continue; }
+ r0 = s.tmp_0;
+ { step = 24; continue; }
case 21:
+ r0 = (s.cid___73716 < 4);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 22; continue; }
+ r0 = s.tmp_1;
+ { step = 23; continue; }
case 22:
- r0 = s.arg0;
+ r0 = pxsim_Array__length(s.tokens___73706);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 > 0);
case 23:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
+ case 24:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 25; continue; }
+ s.tmp_5 = tileworld_ruleediting_RuleDisplay_showCommand__P73111_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = s.col___73705;
+ s.tmp_5.arg2 = s.arg1;
+ s.tmp_5.arg3 = s.whendo___73699;
+ s.tmp_5.arg4 = s.cid___73716;
+ s.tmp_5.arg5 = s.tokens___73706;
+ s.tmp_5.arg6 = s.arg4;
+ s.callLocIdx = 762; s.pc = 40; return s.tmp_5;
+ case 40:
+ r0 = s.retval;
+ r0 = (s.cid___73716 + 1);
+ { step = 27; continue; }
+ case 25:
+ case 26:
+ r0 = s.cid___73716;
+ case 27:
return leave(s, r0)
default: oops()
} } }
-tileworld_flipRotateDir__P3621.info = {"start":5346,"length":790,"line":147,"column":4,"endLine":162,"endColumn":5,"fileName":"rule.ts","functionName":"flipRotateDir","argumentNames":["d","rt"]}
+tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110.info = {"start":7910,"length":1972,"line":188,"column":8,"endLine":225,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommandsAt","argumentNames":["this","crow","wcol","wrow","draw"]}
-function tileworld_flipRotateDir__P3621_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_flipRotateDir__P3621, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -25027,28 +23069,25 @@ function tileworld_flipRotateDir__P3621_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
- tmp_12: undefined,
- tmp_13: undefined,
- tmp_14: undefined,
- tmp_15: undefined,
- tmp_16: undefined,
- tmp_17: undefined,
- tmp_18: undefined,
- tmp_19: undefined,
- tmp_20: undefined,
+ kind___73598: undefined,
+ img___73604: undefined,
+ whendo___73633: undefined,
+ whendo___73699: undefined,
+ col___73705: undefined,
+ tokens___73706: undefined,
+ cid___73716: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function tileworld_RuleView_getCmdInst__P3654(s) {
+function tileworld_ruleediting_RuleDisplay_showCommand__P73111(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25058,61 +23097,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7559 = undefined;
+ s.inst___73783 = undefined;
+ s.arg___73789 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7559 = (r0);
- r0 = s.wd___7559.fields["commandsLen"];
- s.tmp_1 = r0;
- r0 = (s.arg2 >= s.tmp_1);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg3 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.arg6);
if (!r0) { step = 1; continue; }
- r0 = 255;
- { step = 3; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ r0 = (s.arg2 + 2);
+ s.tmp_1.arg2 = r0;
+ s.tmp_1.arg3 = globals.emptyTile___63718;
+ s.callLocIdx = 763; s.pc = 7; return s.tmp_1;
+ case 7:
+ r0 = s.retval;
case 1:
case 2:
- r0 = s.wd___7559.fields["commands"];
- s.tmp_2 = r0;
- r0 = (s.arg2 << 1);
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
+ { step = 6; continue; }
case 3:
+ s.tmp_0 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg3;
+ s.tmp_0.arg2 = s.arg4;
+ s.callLocIdx = 764; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.inst___73783 = (r0);
+ s.tmp_0 = tileworld_RuleView_getCmdArg__P63652_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg3;
+ s.tmp_0.arg2 = s.arg4;
+ s.callLocIdx = 765; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.arg___73789 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg6);
+ if (!r0) { step = 4; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ r0 = (s.arg2 + 2);
+ s.tmp_0.arg2 = r0;
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_instToImage__P73109_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.inst___73783;
+ s.tmp_1.arg2 = s.arg___73789;
+ s.callLocIdx = 766; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 767; s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ case 4:
+ case 5:
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_updateTokens__P73113_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg5;
+ s.tmp_0.arg2 = s.inst___73783;
+ s.callLocIdx = 768; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ r0 = (s.arg1 + 1);
+ s.arg1 = (r0);
+ case 6:
+ r0 = s.arg1;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getCmdInst__P3654.info = {"start":6744,"length":201,"line":195,"column":8,"endLine":199,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdInst","argumentNames":["this","wdid","cid"]}
+tileworld_ruleediting_RuleDisplay_showCommand__P73111.info = {"start":9892,"length":596,"line":227,"column":8,"endLine":240,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommand","argumentNames":["this","col","row","whendo","cid","tokens","draw"]}
-function tileworld_RuleView_getCmdInst__P3654_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showCommand__P73111_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getCmdInst__P3654, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommand__P73111, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- wd___7559: undefined,
+ inst___73783: undefined,
+ arg___73789: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+ arg6: undefined,
} }
-function tileworld_ruleediting_RuleEditor_attrMenu__P14522(s) {
+function tileworld_ruleediting_RuleDisplay_updateTokens__P73113(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25122,9 +23216,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.whenDo___16244 = undefined;
- s.collision22___16263 = undefined;
- s.aCol___16306 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -25132,146 +23223,37 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.whenDo___16244 = (r0);
- s.tmp_0 = r0 = s.whenDo___16244;
- s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.arg2;
- s.callLocIdx = 1151; s.pc = 9; return s.tmp_2;
- case 9:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt_ldlocRef(s.whenDo___16244);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg2 == 255);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_2 = r0 = s.whenDo___16244;
- s.tmp_4 = tileworld_RuleView_makeWhenDo__P3644_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.arg1;
- s.tmp_4.arg2 = s.arg2;
- s.callLocIdx = 1152; s.pc = 10; return s.tmp_4;
- case 10:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3);
+ { step = 5; continue; }
case 1:
case 2:
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtrt_ldlocRef(s.whenDo___16244);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1);
- r0 = s.arg0.fields["rule"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
+ r0 = pxsim_Array_.removeElement(s.arg1, s.arg2);
+ r0 = pxsim_Array_.removeElement(s.arg1, 0);
+ r0 = pxsim_Array_.removeElement(s.arg1, 3);
+ r0 = (s.arg2 == 2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_Array_.insertAt(s.arg1, 0, 0);
case 3:
- r0 = (s.arg1 == 2);
case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_3;
- { step = 6; continue; }
case 5:
- r0 = (s.arg2 == 2);
- case 6:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.collision22___16263 = (s.tmp_4);
- r0 = pxsim_pxtcore_mkAction(1, inline__P16278);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals.attrImages___3793;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1156; s.pc = 11; return s.tmp_1;
- case 11:
- r0 = s.retval;
- r0 = pxsim_pxtrt.mklocRef();
- s.aCol___16306 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.aCol___16306, 0);
- r0 = pxsim_pxtcore_mkAction(4, inline__P16311);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.collision22___16263);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.whenDo___16244);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.aCol___16306);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["allImages"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1162; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- r0 = s.arg0.fields["attrSelected"];
- 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 = tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 0;
- s.callLocIdx = 1163; s.pc = 13; return s.tmp_2;
- case 13:
- r0 = s.retval;
- case 7:
- case 8:
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["attrSelected"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.cursorOut___3724;
- s.callLocIdx = 1164; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 9;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.reset___3764;
- s.callLocIdx = 1165; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_attrMenu__P14522.info = {"start":19177,"length":1412,"line":435,"column":8,"endLine":465,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrMenu","argumentNames":["this","col","row"]}
+tileworld_ruleediting_RuleDisplay_updateTokens__P73113.info = {"start":11112,"length":474,"line":257,"column":8,"endLine":268,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"updateTokens","argumentNames":["this","tokens","inst"]}
-function tileworld_ruleediting_RuleEditor_attrMenu__P14522_mk(s) {
+function tileworld_ruleediting_RuleDisplay_updateTokens__P73113_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_attrMenu__P14522, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_updateTokens__P73113, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- whenDo___16244: undefined,
- collision22___16263: undefined,
- aCol___16306: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -25281,7 +23263,7 @@ function tileworld_ruleediting_RuleEditor_attrMenu__P14522_mk(s) {
-function inline__P16278(s) {
+function tileworld_RuleView_getCmdsLen__P63650(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25296,70 +23278,24 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["rule"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
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 > 0);
- 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 = (s.arg1 >= 3);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 5; continue; }
- { step = 7; continue; }
- case 5:
- case 6:
- s.tmp_5 = r0 = globals.screen___1799;
- s.tmp_6 = r0 = s.arg0;
- r0 = (s.arg1 << 4);
- s.tmp_8 = r0;
- r0 = (s.tmp_8 + 4);
- s.tmp_7 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_5, s.tmp_6, s.tmp_7, 10);
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1155; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- case 7:
- r0 = undefined;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ r0 = r0.fields["commandsLen"];
return leave(s, r0)
default: oops()
} } }
-inline__P16278.info = {"start":19636,"length":364,"line":443,"column":31,"endLine":451,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]}
+tileworld_RuleView_getCmdsLen__P63650.info = {"start":6639,"length":95,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdsLen","argumentNames":["this","wdid"]}
-function inline__P16278_mk(s) {
+function tileworld_RuleView_getCmdsLen__P63650_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16278, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getCmdsLen__P63650, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -25368,7 +23304,7 @@ function inline__P16278_mk(s) {
-function inline__P16311(s) {
+function tileworld_ruleediting_RuleDisplay_startTokens__P73112(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25378,104 +23314,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.a___16321 = undefined;
+ s.tokens___73813 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.caps[0];
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = s.caps[1].fields["p"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
+ s.tokens___73813 = (r0);
+ s.tmp_2 = tileworld_RuleView_findWitnessColRow__P63647_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.arg2;
+ s.tmp_2.arg3 = true;
+ s.callLocIdx = 769; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__mk();
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_Array__push(s.tmp_3, 0);
+ r0 = pxsim_Array__push(s.tmp_3, 3);
+ s.tokens___73813 = (s.tmp_3);
+ case 1:
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 3; continue; }
- { step = 5; continue; }
- case 3:
+ r0 = pxsim_Array__mk();
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, 1);
+ r0 = pxsim_Array__push(s.tmp_0, 2);
+ r0 = pxsim_Array__push(s.tmp_0, 6);
+ r0 = pxsim_Array__push(s.tmp_0, 5);
+ r0 = pxsim_Array__push(s.tmp_0, 4);
+ s.tmp_1 = helpers_arrayConcat__P60103_mk(s);
+ s.tmp_1.arg0 = s.tokens___73813;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 770; s.pc = 4; return s.tmp_1;
case 4:
- s.tmp_6 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.caps[1].fields["all"];
- s.tmp_6.arg0 = r0;
- r0 = s.caps[1].fields["rule"];
- s.tmp_6.arg1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
- s.tmp_6.arg2 = r0;
- s.tmp_6.arg3 = s.arg1;
- s.tmp_6.arg4 = 65535;
- s.callLocIdx = 1159; s.pc = 6; return s.tmp_6;
- case 6:
- r0 = s.retval;
- s.a___16321 = (r0);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.caps[1];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 1160; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.caps[1];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 1;
- s.tmp_1 = r0 = globals.attrImages___3793;
- r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.a___16321, undefined);
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 1161; s.pc = 8; return s.tmp_0;
- case 8:
r0 = s.retval;
- s.tmp_0 = r0 = s.caps[3];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[3]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- case 5:
- r0 = undefined;
+ s.tokens___73813 = (r0);
+ r0 = s.tokens___73813;
return leave(s, r0)
default: oops()
} } }
-inline__P16311.info = {"start":20070,"length":328,"line":453,"column":41,"endLine":460,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["image","i"]}
+tileworld_ruleediting_RuleDisplay_startTokens__P73112.info = {"start":10630,"length":472,"line":244,"column":8,"endLine":255,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"startTokens","argumentNames":["this","col","row"]}
-function inline__P16311_mk(s) {
+function tileworld_ruleediting_RuleDisplay_startTokens__P73112_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16311, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_startTokens__P73112, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- a___16321: undefined,
+ tokens___73813: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_selectAttr__P14523(s) {
+function helpers_arrayConcat__P60103(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25485,25 +23395,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.out___85449 = undefined;
+ s.value___85452 = undefined;
+ s.unnamed120___U2 = undefined;
+ s.unnamed121___U3 = undefined;
+ s.value___85459 = undefined;
+ s.unnamed122___U5 = undefined;
+ s.unnamed123___U6 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = (s.arg0).fields["attrSelected"] = (s.arg1);
- r0 = undefined;
+ r0 = pxsim_Array__mk();
+ s.out___85449 = (r0);
+ s.value___85452 = (undefined);
+ s.unnamed120___U2 = (s.arg0);
+ s.unnamed121___U3 = (0);
+ case 1:
+ s.tmp_0 = r0 = s.unnamed121___U3;
+ r0 = pxsim_Array__length(s.unnamed120___U2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed120___U2, s.unnamed121___U3);
+ s.value___85452 = (r0);
+ r0 = pxsim_Array__push(s.out___85449, s.value___85452);
+ r0 = (s.unnamed121___U3 + 1);
+ s.unnamed121___U3 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.unnamed120___U2 = (undefined);
+ s.value___85459 = (undefined);
+ s.unnamed122___U5 = (s.arg1);
+ s.unnamed123___U6 = (0);
+ case 3:
+ s.tmp_0 = r0 = s.unnamed123___U6;
+ r0 = pxsim_Array__length(s.unnamed122___U5);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 < s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_Array__getAt(s.unnamed122___U5, s.unnamed123___U6);
+ s.value___85459 = (r0);
+ r0 = pxsim_Array__push(s.out___85449, s.value___85459);
+ r0 = (s.unnamed123___U6 + 1);
+ s.unnamed123___U6 = (r0);
+ { step = 3; continue; }
+ case 4:
+ s.unnamed122___U5 = (undefined);
+ r0 = s.out___85449;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_selectAttr__P14523.info = {"start":20599,"length":76,"line":467,"column":8,"endLine":469,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"selectAttr","argumentNames":["this","a"]}
+helpers_arrayConcat__P60103.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 tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s) {
+function helpers_arrayConcat__P60103_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_selectAttr__P14523, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayConcat__P60103, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ out___85449: undefined,
+ value___85452: undefined,
+ unnamed120___U2: undefined,
+ unnamed121___U3: undefined,
+ value___85459: undefined,
+ unnamed122___U5: undefined,
+ unnamed123___U6: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -25512,7 +23471,7 @@ function tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s) {
-function tileworld_AllExport_getSetAttr__P3676(s) {
+function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25522,66 +23481,208 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.whenDo___73865 = undefined;
+ s.include___73876 = undefined;
+ s.include2___73880 = undefined;
+ s.exclude___73893 = undefined;
+ s.exclude2___73897 = undefined;
+ s.index___73910 = 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, tileworld_AllExport__C3671_VT)) failedCast(r0);
- s.tmp_1 = r0 = s.arg3;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 771; s.pc = 22; return s.tmp_0;
+ case 22:
+ r0 = s.retval;
+ s.whenDo___73865 = (r0);
+ r0 = (s.whenDo___73865 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_5 = tileworld_RuleView_getSetBgAttr__P3647_mk(s);
- s.tmp_5.arg0 = s.arg1;
- s.tmp_5.arg1 = s.arg2;
- s.tmp_5.arg2 = s.arg3;
- s.tmp_5.arg3 = s.arg4;
- s.callLocIdx = 163; s.pc = 3; return s.tmp_5;
+ r0 = globals.ok___63727;
+ { step = 21; continue; }
+ case 1:
+ case 2:
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P73117_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.whenDo___73865;
+ s.tmp_1.arg2 = 1;
+ s.tmp_1.arg3 = 0;
+ s.callLocIdx = 772; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ s.include___73876 = (r0);
+ r0 = (s.include___73876 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = -1;
+ { step = 4; continue; }
case 3:
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P73117_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.whenDo___73865;
+ s.tmp_1.arg2 = 1;
+ r0 = (s.include___73876 + 1);
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 773; s.pc = 24; return s.tmp_1;
+ case 24:
r0 = s.retval;
- { step = 2; continue; }
- case 1:
- s.tmp_6 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_6.arg0 = s.arg1;
- s.tmp_6.arg1 = s.arg2;
- s.tmp_7 = r0 = s.arg3;
- r0 = s.arg0.fields["p"];
- s.tmp_9 = r0;
- r0 = s.tmp_9.fields["_backgroundsI"];
- s.tmp_10 = r0;
- r0 = pxsim_Array__length(s.tmp_10);
- s.tmp_8 = r0;
- r0 = (s.tmp_7 - s.tmp_8);
- s.tmp_6.arg2 = r0;
- s.tmp_6.arg3 = s.arg4;
- s.callLocIdx = 165; s.pc = 4; return s.tmp_6;
case 4:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.include2___73880 = (s.tmp_2);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_attrIndex__P73117_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.whenDo___73865;
+ s.tmp_0.arg2 = 3;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 774; s.pc = 25; return s.tmp_0;
+ case 25:
r0 = s.retval;
- case 2:
+ s.exclude___73893 = (r0);
+ r0 = (s.exclude___73893 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = -1;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P73117_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.whenDo___73865;
+ s.tmp_1.arg2 = 3;
+ r0 = (s.exclude___73893 + 1);
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 775; s.pc = 26; return s.tmp_1;
+ case 26:
+ r0 = s.retval;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.exclude2___73897 = (s.tmp_2);
+ r0 = (s.include___73876 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = s.exclude___73893;
+ { step = 8; continue; }
+ case 7:
+ r0 = s.include___73876;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.index___73910 = (s.tmp_1);
+ r0 = (s.include___73876 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 9; continue; }
+ r0 = s.tmp_0;
+ { step = 10; continue; }
+ case 9:
+ r0 = (s.include2___73880 != -1);
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 11; continue; }
+ s.tmp_2 = tileworld_splitImage__P63537_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["allImages"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.include___73876);
+ s.tmp_2.arg0 = r0;
+ r0 = s.arg0.fields["all"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["allImages"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_6, s.include2___73880);
+ s.tmp_2.arg1 = r0;
+ s.callLocIdx = 778; s.pc = 27; return s.tmp_2;
+ case 27:
+ r0 = s.retval;
+ { step = 21; continue; }
+ { step = 20; continue; }
+ case 11:
+ r0 = (s.include___73876 == -1);
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (r0) { step = 12; continue; }
+ r0 = s.tmp_7;
+ { step = 13; continue; }
+ case 12:
+ r0 = (s.exclude___73893 != -1);
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_8);
+ if (r0) { step = 14; continue; }
+ r0 = s.tmp_8;
+ { step = 15; continue; }
+ case 14:
+ r0 = (s.exclude2___73897 != -1);
+ case 15:
// jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 16; continue; }
+ s.tmp_10 = tileworld_splitImage__P63537_mk(s);
+ r0 = s.arg0.fields["all"];
s.tmp_11 = r0;
- r0 = s.tmp_11;
+ r0 = s.tmp_11.fields["allImages"];
+ s.tmp_12 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_12, s.exclude___73893);
+ s.tmp_10.arg0 = r0;
+ r0 = s.arg0.fields["all"];
+ s.tmp_13 = r0;
+ r0 = s.tmp_13.fields["allImages"];
+ s.tmp_14 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_14, s.exclude2___73897);
+ s.tmp_10.arg1 = r0;
+ s.callLocIdx = 781; s.pc = 28; return s.tmp_10;
+ case 28:
+ r0 = s.retval;
+ { step = 21; continue; }
+ { step = 19; continue; }
+ case 16:
+ r0 = (s.index___73910 != -1);
+ s.tmp_15 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_15);
+ if (!r0) { step = 17; continue; }
+ r0 = s.arg0.fields["all"];
+ s.tmp_16 = r0;
+ r0 = s.tmp_16.fields["allImages"];
+ s.tmp_17 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_17, s.index___73910);
+ { step = 21; continue; }
+ { step = 18; continue; }
+ case 17:
+ r0 = globals.ok___63727;
+ { step = 21; continue; }
+ case 18:
+ case 19:
+ case 20:
+ r0 = undefined;
+ case 21:
return leave(s, r0)
default: oops()
} } }
-tileworld_AllExport_getSetAttr__P3676.info = {"start":1278,"length":227,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"project.ts","functionName":"getSetAttr","argumentNames":["this","rv","whendo","aid","val"]}
+tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114.info = {"start":11596,"length":1170,"line":270,"column":8,"endLine":290,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getWhenDoImage","argumentNames":["this","col","row"]}
-function tileworld_AllExport_getSetAttr__P3676_mk(s) {
+function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_AllExport_getSetAttr__P3676, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -25595,18 +23696,28 @@ function tileworld_AllExport_getSetAttr__P3676_mk(s) {
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,
+ whenDo___73865: undefined,
+ include___73876: undefined,
+ include2___73880: undefined,
+ exclude___73893: undefined,
+ exclude2___73897: undefined,
+ index___73910: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function tileworld_RuleView_getSetSpAttr__P3648(s) {
+function tileworld_AllExport_getImage__P63671(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25619,48 +23730,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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P7045_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
- r0 = r0.fields["spPred"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = s.arg3;
- s.callLocIdx = 128; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ if (!checkSubtype(r0, tileworld_AllExport__C63668_VT)) failedCast(r0);
+ r0 = s.arg0.fields["allImages"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getSetSpAttr__P3648.info = {"start":4742,"length":172,"line":138,"column":8,"endLine":140,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetSpAttr","argumentNames":["this","wdid","index","val"]}
+tileworld_AllExport_getImage__P63671.info = {"start":1008,"length":84,"line":28,"column":8,"endLine":30,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","index"]}
-function tileworld_RuleView_getSetSpAttr__P3648_mk(s) {
+function tileworld_AllExport_getImage__P63671_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getSetSpAttr__P3648, depth: s.depth + 1,
+ parent: s, fn: tileworld_AllExport_getImage__P63671, 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 tileworld_RuleView_getSetBuffAttr__P7045(s) {
+function tileworld_splitImage__P63537(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25670,77 +23766,158 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.byteIndex___7329 = undefined;
- s.byte___7332 = undefined;
- s.remainder___7337 = undefined;
- s.mask___7344 = undefined;
- s.newByte___7352 = undefined;
+ s.ret___66090 = undefined;
+ s.x___66094 = undefined;
+ s.y___66103 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = (s.arg2 >> 2);
- s.byteIndex___7329 = (r0);
- r0 = pxsim.BufferMethods.getUint8(s.arg1, s.byteIndex___7329);
- s.byte___7332 = (r0);
- s.tmp_0 = r0 = s.arg2;
- r0 = (s.byteIndex___7329 << 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 - s.tmp_1);
- s.remainder___7337 = (r0);
- r0 = (s.arg3 != 65535);
+ r0 = pxsim_ImageMethods.clone(s.arg0);
+ s.ret___66090 = (r0);
+ r0 = pxsim_ImageMethods.width(s.ret___66090);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = (s.remainder___7337 << 1);
+ r0 = (s.tmp_0 >> 1);
+ s.x___66094 = (r0);
+ case 1:
+ s.tmp_1 = r0 = s.x___66094;
+ r0 = pxsim_ImageMethods.width(s.ret___66090);
s.tmp_2 = r0;
- r0 = (3 << s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 ^ 255);
- s.mask___7344 = (r0);
- r0 = (s.byte___7332 & s.mask___7344);
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = (s.arg3 & 3);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.y___66103 = (0);
+ case 2:
+ s.tmp_1 = r0 = s.y___66103;
+ r0 = pxsim_ImageMethods.height(s.ret___66090);
s.tmp_2 = r0;
- r0 = (s.remainder___7337 << 1);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 << s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 | s.tmp_1);
- s.newByte___7352 = (r0);
- r0 = pxsim.BufferMethods.setUint8(s.arg1, s.byteIndex___7329, s.newByte___7352);
+ 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 = r0 = s.ret___66090;
+ s.tmp_4 = r0 = s.x___66094;
+ s.tmp_5 = r0 = s.y___66103;
+ r0 = pxsim_ImageMethods.getPixel(s.arg1, s.x___66094, s.y___66103);
+ s.tmp_6 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_6);
+ r0 = (s.y___66103 + 1);
+ s.y___66103 = (r0);
+ { step = 2; continue; }
+ case 3:
+ r0 = (s.x___66094 + 1);
+ s.x___66094 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = s.ret___66090;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_splitImage__P63537.info = {"start":1324,"length":323,"line":40,"column":4,"endLine":48,"endColumn":5,"fileName":"utilities.ts","functionName":"splitImage","argumentNames":["imgLeft","imgRight"]}
+
+function tileworld_splitImage__P63537_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_splitImage__P63537, depth: s.depth + 1,
+ pc: 0, retval: undefined, 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,
+ ret___66090: undefined,
+ x___66094: undefined,
+ y___66103: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_ruleediting_RuleDisplay_attrIndex__P73117(s) {
+let r0 = s.r0, 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___74172 = 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, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.i___74172 = (s.arg3);
case 1:
- case 2:
- s.tmp_1 = r0 = s.byte___7332;
- r0 = (s.remainder___7337 << 1);
+ s.tmp_1 = r0 = s.i___74172;
+ s.tmp_3 = tileworld_Project_allCnt__P63690_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 803; s.pc = 6; return s.tmp_3;
+ case 6:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_1 >> s.tmp_2);
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = (s.tmp_0 & 3);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_6 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_6.arg0 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_6.arg1 = r0;
+ s.tmp_6.arg2 = s.arg1;
+ s.tmp_6.arg3 = s.i___74172;
+ s.tmp_6.arg4 = 65535;
+ s.callLocIdx = 804; s.pc = 7; return s.tmp_6;
+ case 7:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 == s.arg2);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 2; continue; }
+ r0 = s.i___74172;
+ { step = 5; continue; }
+ case 2:
+ case 3:
+ r0 = (s.i___74172 + 1);
+ s.i___74172 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = -1;
+ case 5:
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getSetBuffAttr__P7045.info = {"start":4042,"length":508,"line":122,"column":8,"endLine":132,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBuffAttr","argumentNames":["this","buf","index","val"]}
+tileworld_ruleediting_RuleDisplay_attrIndex__P73117.info = {"start":15111,"length":272,"line":342,"column":8,"endLine":348,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"attrIndex","argumentNames":["this","whendo","a","begin"]}
-function tileworld_RuleView_getSetBuffAttr__P7045_mk(s) {
+function tileworld_ruleediting_RuleDisplay_attrIndex__P73117_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getSetBuffAttr__P7045, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_attrIndex__P73117, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- byteIndex___7329: undefined,
- byte___7332: undefined,
- remainder___7337: undefined,
- mask___7344: undefined,
- newByte___7352: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ i___74172: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -25751,7 +23928,7 @@ function tileworld_RuleView_getSetBuffAttr__P7045_mk(s) {
-function tileworld_RuleView_getSetBgAttr__P3647(s) {
+function tileworld_Project_allCnt__P63690(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25763,49 +23940,41 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P7045_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_backgroundsI"];
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
- r0 = r0.fields["bgPred"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = s.arg3;
- s.callLocIdx = 127; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = pxsim_Array__length(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["_spritesI"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getSetBgAttr__P3647.info = {"start":4560,"length":172,"line":134,"column":8,"endLine":136,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBgAttr","argumentNames":["this","wdid","index","val"]}
+tileworld_Project_allCnt__P63690.info = {"start":3271,"length":61,"line":98,"column":8,"endLine":98,"endColumn":69,"fileName":"project.ts","functionName":"allCnt","argumentNames":["this"]}
-function tileworld_RuleView_getSetBgAttr__P3647_mk(s) {
+function tileworld_Project_allCnt__P63690_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getSetBgAttr__P3647, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_allCnt__P63690, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_AllExport_getImages__P3673(s) {
+function tileworld_ruleediting_RuleDisplay_makeContext__P73104(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25815,23 +23984,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___73434 = undefined;
+ s.j___73438 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0);
- r0 = s.arg0.fields["allImages"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.i___73434 = (1);
+ case 1:
+ r0 = (s.i___73434 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.j___73438 = (1);
+ case 2:
+ r0 = (s.j___73438 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_active__P73105_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.i___73434;
+ s.tmp_2.arg2 = s.j___73438;
+ s.callLocIdx = 740; s.pc = 7; return s.tmp_2;
+ case 7:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.i___73434;
+ r0 = (s.j___73438 + 2);
+ s.tmp_3.arg2 = r0;
+ s.tmp_3.arg3 = globals.emptyTile___63718;
+ s.callLocIdx = 741; s.pc = 8; return s.tmp_3;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay__C63794_v4_4_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.i___73434;
+ s.tmp_0.arg2 = s.j___73438;
+ s.tmp_0.arg3 = true;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.showAttributes;
+ s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ case 3:
+ case 4:
+ r0 = (s.j___73438 + 1);
+ s.j___73438 = (r0);
+ { step = 2; continue; }
+ case 5:
+ r0 = (s.i___73434 + 1);
+ s.i___73434 = (r0);
+ { step = 1; continue; }
+ case 6:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_AllExport_getImages__P3673.info = {"start":934,"length":65,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"project.ts","functionName":"getImages","argumentNames":["this"]}
+tileworld_ruleediting_RuleDisplay_makeContext__P73104.info = {"start":5399,"length":342,"line":125,"column":8,"endLine":134,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"makeContext","argumentNames":["this"]}
-function tileworld_AllExport_getImages__P3673_mk(s) {
+function tileworld_ruleediting_RuleDisplay_makeContext__P73104_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_AllExport_getImages__P3673, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_makeContext__P73104, depth: s.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___73434: undefined,
+ j___73438: undefined,
arg0: undefined,
} }
@@ -25839,7 +24067,7 @@ function tileworld_AllExport_getImages__P3673_mk(s) {
-function tileworld_RuleView_makeWhenDo__P3644(s) {
+function tileworld_ruleediting_RuleDisplay_showAttributes__P73115(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25849,91 +24077,237 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7267 = undefined;
+ s.whenDo___73971 = undefined;
+ s.begin___73987 = undefined;
+ s.end___73988 = undefined;
+ s.project___73994 = undefined;
+ s.done___73999 = undefined;
+ s.x___74069 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C3603_VT);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 783; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.whenDo___73971 = (r0);
+ r0 = (s.whenDo___73971 >= 0);
s.tmp_0 = r0;
- s.tmp_1 = tileworld_WhenDo_constructor__P3604_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.arg2;
- s.tmp_1.arg3 = null;
- s.tmp_1.arg4 = null;
- s.tmp_1.arg5 = 0;
- s.tmp_1.arg6 = null;
- s.tmp_1.arg7 = 0;
- s.callLocIdx = 124; s.pc = 1; return s.tmp_1;
- case 1:
+ r0 = (s.arg2 + 2);
+ s.tmp_1.arg2 = r0;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.arg2;
+ s.callLocIdx = 784; s.pc = 15; return s.tmp_2;
+ case 15:
+ r0 = s.retval;
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 785; s.pc = 14; return s.tmp_1;
+ case 14:
r0 = s.retval;
- s.wd___7267 = (s.tmp_0);
- s.tmp_0 = r0 = s.wd___7267;
+ s.begin___73987 = (0);
+ s.tmp_1 = tileworld_Project_allCnt__P63690_mk(s);
r0 = s.arg0.fields["p"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 786; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 - 1);
+ s.end___73988 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_projectAttrs__P73116_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.whenDo___73971;
+ s.tmp_0.arg2 = s.begin___73987;
+ s.tmp_0.arg3 = s.end___73988;
+ s.callLocIdx = 787; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.project___73994 = (r0);
+ r0 = pxsim_Array__mk();
+ s.done___73999 = (r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P74003);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.project___73994;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 788; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 789; s.pc = 19; return s.tmp_2;
+ case 19:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_4 = tileworld_RuleView_findWitnessColRow__P63647_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.arg1;
+ s.tmp_4.arg2 = s.arg2;
+ s.tmp_4.arg3 = true;
+ s.callLocIdx = 790; s.pc = 20; return s.tmp_4;
+ case 20:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = pxsim.control.createBuffer(s.tmp_2);
+ r0 = (s.tmp_3 != -1);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 3; continue; }
+ s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.arg1;
+ r0 = (s.arg2 + 2);
+ s.tmp_6.arg2 = r0;
+ s.tmp_7 = r0 = globals.movedImages___63786;
+ s.tmp_9 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_9.arg0 = r0;
+ s.tmp_9.arg1 = s.whenDo___73971;
+ s.callLocIdx = 791; s.pc = 22; return s.tmp_9;
+ case 22:
+ r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8);
+ s.tmp_6.arg3 = r0;
+ s.callLocIdx = 792; s.pc = 21; return s.tmp_6;
+ case 21:
+ r0 = s.retval;
+ case 3:
+ case 4:
+ s.tmp_0 = r0 = s.arg3;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 793; s.pc = 23; return s.tmp_2;
+ case 23:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["bgPred"] = (s.tmp_1);
- s.tmp_0 = r0 = s.wd___7267;
- r0 = s.arg0.fields["p"];
+ r0 = (s.tmp_1 == s.arg1);
+ case 6:
+ // jmp value (already in r0)
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_3;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 794; s.pc = 24; return s.tmp_6;
+ case 24:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 2);
s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = pxsim.control.createBuffer(s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spPred"] = (s.tmp_1);
- r0 = (s.wd___7267).fields["commandsLen"] = (0);
- s.tmp_0 = r0 = s.wd___7267;
- r0 = pxsim.control.createBuffer(8);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["commands"] = (s.tmp_1);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.wd___7267);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__length(s.tmp_1);
+ r0 = (s.tmp_4 == s.arg2);
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 9; continue; }
+ r0 = pxsim_pxtrt.mklocRef();
+ s.x___74069 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.x___74069, 0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 22;
+ s.tmp_0.arg3 = 160;
+ s.tmp_0.arg4 = 16;
+ s.tmp_0.arg5 = 0;
+ s.callLocIdx = 795; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(3, inline__P74079);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - 1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.whenDo___73971);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.x___74069);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["allImages"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 800; s.pc = 26; return s.tmp_1;
+ case 26:
+ r0 = s.retval;
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_makeWhenDo__P3644.info = {"start":3418,"length":408,"line":104,"column":8,"endLine":112,"endColumn":9,"fileName":"ruleview.ts","functionName":"makeWhenDo","argumentNames":["this","col","row"]}
+tileworld_ruleediting_RuleDisplay_showAttributes__P73115.info = {"start":12776,"length":1668,"line":292,"column":8,"endLine":323,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]}
-function tileworld_RuleView_makeWhenDo__P3644_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showAttributes__P73115_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_makeWhenDo__P3644, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showAttributes__P73115, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- wd___7267: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ whenDo___73971: undefined,
+ begin___73987: undefined,
+ end___73988: undefined,
+ project___73994: undefined,
+ done___73999: undefined,
+ x___74069: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_WhenDo_constructor__P3604(s) {
+function inline__P74003(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25943,53 +24317,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___74005 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
- s.arg6 = (s.lambdaArgs[6]);
- s.arg7 = (s.lambdaArgs[7]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_WhenDo__C3603_VT)) failedCast(r0);
- r0 = (s.arg0).fields["col"] = (s.arg1);
- r0 = (s.arg0).fields["row"] = (s.arg2);
- r0 = (s.arg0).fields["bgPred"] = (s.arg3);
- r0 = (s.arg0).fields["spPred"] = (s.arg4);
- r0 = (s.arg0).fields["dir"] = (s.arg5);
- r0 = (s.arg0).fields["commands"] = (s.arg6);
- r0 = (s.arg0).fields["commandsLen"] = (s.arg7);
- r0 = (s.arg0).fields["dir"] = (6);
+ r0 = pxsim_Array_.indexOf(globals.attrValues___63789, s.arg0, undefined);
+ s.i___74005 = (r0);
+ s.tmp_0 = r0 = globals.screen___61794;
+ r0 = pxsim_Array__getAt(globals.attrImages___63790, s.i___74005);
+ s.tmp_1 = r0;
+ r0 = (s.caps[0] << 4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 8);
+ s.tmp_2 = r0;
+ r0 = (s.caps[1] + 2);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 << 4);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 + 6);
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_4);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_WhenDo_constructor__P3604.info = {"start":3368,"length":772,"line":101,"column":8,"endLine":111,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","col","row","bgPred","spPred","dir","commands","commandsLen"]}
+inline__P74003.info = {"start":13280,"length":192,"line":301,"column":32,"endLine":304,"endColumn":17,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["a"]}
-function tileworld_WhenDo_constructor__P3604_mk(s) {
+function inline__P74003_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_WhenDo_constructor__P3604, depth: s.depth + 1,
+ parent: s, fn: inline__P74003, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ i___74005: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
- arg5: undefined,
- arg6: undefined,
- arg7: undefined,
} }
-function tileworld_ruleediting_RuleEditor_showMainMenu__P14511(s) {
+function inline__P74079(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -25999,199 +24377,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rules___15798 = undefined;
- s.index___15800 = undefined;
+ s.a___74082 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = 11;
- s.callLocIdx = 1075; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.code___3715;
- s.callLocIdx = 1076; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.map___3712;
- s.callLocIdx = 1077; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.play___3713;
- s.callLocIdx = 1078; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 5;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.flipHoriz___3743;
- s.callLocIdx = 1079; s.pc = 13; return s.tmp_0;
- case 13:
+ s.tmp_0 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.caps[0].fields["all"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.caps[0].fields["rule"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.caps[1];
+ s.tmp_0.arg3 = s.arg1;
+ s.tmp_0.arg4 = 65535;
+ s.callLocIdx = 797; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- r0 = s.arg0.fields["rule"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["transforms"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != 0);
+ s.a___74082 = (r0);
+ r0 = (s.a___74082 != 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = 5;
- s.tmp_3.arg2 = 0;
- s.tmp_3.arg3 = globals.include2___3729;
- s.callLocIdx = 1081; s.pc = 14; return s.tmp_3;
- case 14:
- r0 = s.retval;
- case 1:
- case 2:
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 6;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.garbageCan___3718;
- s.callLocIdx = 1082; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1083; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.rules___15798 = (r0);
- r0 = s.arg0.fields["rule"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.indexOf(s.rules___15798, s.tmp_0, undefined);
- s.index___15800 = (r0);
- s.tmp_1 = r0 = s.index___15800;
- r0 = pxsim_Array__length(s.rules___15798);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = globals.rightArrow___3751;
- { step = 4; continue; }
- case 3:
- s.tmp_4 = tileworld_greyImage__P3539_mk(s);
- s.tmp_4.arg0 = globals.rightArrow___3751;
- s.callLocIdx = 1084; s.pc = 17; return s.tmp_4;
- case 17:
- r0 = s.retval;
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = 1;
+ s.tmp_1.arg3 = s.arg0;
+ s.callLocIdx = 798; s.pc = 4; return s.tmp_1;
case 4:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = 9;
- s.tmp_6.arg2 = 0;
- s.tmp_6.arg3 = s.tmp_5;
- s.callLocIdx = 1085; s.pc = 18; return s.tmp_6;
- case 18:
- r0 = s.retval;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 1086; s.pc = 19; return s.tmp_2;
- case 19:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = globals.addRule___3720;
- { step = 6; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 1;
+ s.tmp_1 = r0 = globals.attrImages___63790;
+ r0 = pxsim_Array_.indexOf(globals.attrValues___63789, s.a___74082, undefined);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 799; s.pc = 5; return s.tmp_0;
case 5:
- s.tmp_3 = tileworld_greyImage__P3539_mk(s);
- s.tmp_3.arg0 = globals.addRule___3720;
- s.callLocIdx = 1087; s.pc = 20; return s.tmp_3;
- case 20:
- r0 = s.retval;
- case 6:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.tmp_5 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = 8;
- s.tmp_5.arg2 = 0;
- s.tmp_5.arg3 = s.tmp_4;
- s.callLocIdx = 1088; s.pc = 21; return s.tmp_5;
- case 21:
r0 = s.retval;
- r0 = (s.index___15800 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = globals.leftArrow___3752;
- { step = 8; continue; }
- case 7:
- s.tmp_1 = tileworld_greyImage__P3539_mk(s);
- s.tmp_1.arg0 = globals.leftArrow___3752;
- s.callLocIdx = 1089; s.pc = 22; return s.tmp_1;
- case 22:
- r0 = s.retval;
- case 8:
- // jmp value (already in r0)
+ s.tmp_0 = r0 = s.caps[2];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
s.tmp_2 = r0;
- s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = 7;
- s.tmp_3.arg2 = 0;
- s.tmp_3.arg3 = s.tmp_2;
- s.callLocIdx = 1090; s.pc = 23; return s.tmp_3;
- case 23:
- r0 = s.retval;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_showMainMenu__P14511.info = {"start":11664,"length":850,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showMainMenu","argumentNames":["this"]}
+inline__P74079.info = {"start":14039,"length":361,"line":313,"column":49,"endLine":320,"endColumn":21,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["image","i"]}
-function tileworld_ruleediting_RuleEditor_showMainMenu__P14511_mk(s) {
+function inline__P74079_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_showMainMenu__P14511, depth: s.depth + 1,
+ parent: s, fn: inline__P74079, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- rules___15798: undefined,
- index___15800: undefined,
+ a___74082: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_greyImage__P3539(s) {
+function tileworld_ruleediting_RuleDisplay_projectAttrs__P73116(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26201,117 +24462,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ret___6051 = undefined;
- s.x___6055 = undefined;
- s.y___6062 = undefined;
- s.pix___6069 = undefined;
+ s.res___74115 = undefined;
+ s.i___74117 = undefined;
+ s.a___74123 = 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_ImageMethods.clone(s.arg0);
- s.ret___6051 = (r0);
- s.x___6055 = (0);
- case 1:
- s.tmp_1 = r0 = s.x___6055;
- r0 = pxsim_ImageMethods.width(s.ret___6051);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_1 = tileworld_RuleView_whendoTrue__P63658_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 801; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.y___6062 = (0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__mk();
+ { step = 15; continue; }
+ case 1:
case 2:
- s.tmp_1 = r0 = s.y___6062;
- r0 = pxsim_ImageMethods.height(s.ret___6051);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_Array__mk();
+ s.res___74115 = (r0);
+ s.i___74117 = (s.arg2);
+ case 3:
+ r0 = (s.i___74117 <= s.arg3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.ret___6051, s.x___6055, s.y___6062);
- s.pix___6069 = (r0);
- r0 = (s.pix___6069 == 0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_1 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_1.arg0 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.arg1;
+ s.tmp_1.arg3 = s.i___74117;
+ s.tmp_1.arg4 = 65535;
+ s.callLocIdx = 802; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ s.a___74123 = (r0);
+ r0 = (s.a___74123 != 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = 0;
- { step = 4; continue; }
- case 3:
- r0 = 12;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 4; continue; }
+ r0 = s.tmp_0;
+ { step = 5; continue; }
case 4:
+ r0 = pxsim_Array_.indexOf(s.res___74115, s.a___74123, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 6; continue; }
+ r0 = pxsim_Array__push(s.res___74115, s.a___74123);
+ case 6:
+ case 7:
+ r0 = (s.i___74117 + 1);
+ s.i___74117 = (r0);
+ { step = 3; continue; }
+ case 8:
+ r0 = pxsim_Array__length(s.res___74115);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ r0 = pxsim_Array__length(s.res___74115);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 9; continue; }
+ r0 = s.tmp_2;
+ { step = 10; continue; }
+ case 9:
+ r0 = pxsim_Array_.indexOf(s.res___74115, 3, undefined);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 != -1);
+ case 10:
// jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.ret___6051, s.x___6055, s.y___6062, s.tmp_1);
- r0 = (s.y___6062 + 1);
- s.y___6062 = (r0);
- { step = 2; continue; }
- case 5:
- r0 = (s.x___6055 + 1);
- s.x___6055 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = s.ret___6051;
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 11; continue; }
+ r0 = pxsim_Array__mk();
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__push(s.tmp_6, 3);
+ r0 = s.tmp_6;
+ { step = 15; continue; }
+ { step = 12; continue; }
+ case 11:
+ r0 = pxsim_Array__mk();
+ { step = 15; continue; }
+ case 12:
+ case 13:
+ case 14:
+ r0 = s.res___74115;
+ case 15:
return leave(s, r0)
default: oops()
} } }
-tileworld_greyImage__P3539.info = {"start":995,"length":327,"line":29,"column":4,"endLine":38,"endColumn":5,"fileName":"utilities.ts","functionName":"greyImage","argumentNames":["img"]}
+tileworld_ruleediting_RuleDisplay_projectAttrs__P73116.info = {"start":14454,"length":647,"line":325,"column":8,"endLine":340,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"projectAttrs","argumentNames":["this","whendo","begin","end"]}
-function tileworld_greyImage__P3539_mk(s) {
+function tileworld_ruleediting_RuleDisplay_projectAttrs__P73116_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_greyImage__P3539, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_projectAttrs__P73116, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- ret___6051: undefined,
- x___6055: undefined,
- y___6062: undefined,
- pix___6069: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleView_getTransforms__P3635(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["transforms"];
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleView_getTransforms__P3635.info = {"start":1545,"length":72,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"ruleview.ts","functionName":"getTransforms","argumentNames":["this"]}
-
-function tileworld_RuleView_getTransforms__P3635_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleView_getTransforms__P3635, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ res___74115: undefined,
+ i___74117: undefined,
+ a___74123: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_RuleVisualsBase_fillTile__P12699(s) {
+function tileworld_RuleView_whendoTrue__P63658(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26321,59 +24607,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.wd___67765 = 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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = (s.arg1 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 1);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_3 = r0;
- r0 = (6 + s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 15;
- s.tmp_0.arg4 = 15;
- s.tmp_0.arg5 = s.arg3;
- s.callLocIdx = 685; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67765 = (r0);
+ s.tmp_0 = tileworld_isWhenDoTrue__P63621_mk(s);
+ s.tmp_0.arg0 = s.wd___67765;
+ s.callLocIdx = 150; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_fillTile__P12699.info = {"start":4785,"length":138,"line":124,"column":8,"endLine":126,"endColumn":9,"fileName":"rulesBase.ts","functionName":"fillTile","argumentNames":["this","c","r","col"]}
+tileworld_RuleView_whendoTrue__P63658.info = {"start":9153,"length":126,"line":262,"column":8,"endLine":265,"endColumn":9,"fileName":"ruleview.ts","functionName":"whendoTrue","argumentNames":["this","whendo"]}
-function tileworld_RuleVisualsBase_fillTile__P12699_mk(s) {
+function tileworld_RuleView_whendoTrue__P63658_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_fillTile__P12699, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_whendoTrue__P63658, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
+ wd___67765: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_update__P13111(s) {
+function tileworld_isWhenDoTrue__P63621(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26383,186 +24655,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.image___13430 = undefined;
+ s.i___66599 = undefined;
+ s.i___66613 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg0).fields["collideRow"] = (-1);
- r0 = (s.arg0).fields["collideCol"] = (-1);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "When";
- s.tmp_0.arg2 = 0;
- r0 = (32 + 8);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 720; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["debug"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = helpers_imagePrint__P1757_mk(s);
- s.tmp_1.arg0 = globals.screen___1799;
- r0 = s.arg0.fields["rule"];
+ s.i___66599 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___66599;
+ r0 = s.arg0.fields["bgPred"];
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["rid"];
+ r0 = pxsim.BufferMethods.length(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_numops.toString(s.tmp_2);
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = 30;
- s.tmp_1.arg3 = 0;
- s.tmp_1.arg4 = undefined;
- s.tmp_1.arg5 = undefined;
- s.tmp_1.arg6 = undefined;
- s.callLocIdx = 722; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- case 1:
- case 2:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Do";
- s.tmp_0.arg2 = 70;
- r0 = (32 + 8);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 723; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["rule"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_0.arg1 = r0;
- s.tmp_2 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 725; s.pc = 15; return s.tmp_2;
- case 15:
- r0 = s.retval;
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 2;
- s.tmp_0.arg4 = 4;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 726; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_makeContext__P13112_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 727; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 728; s.pc = 17; return s.tmp_2;
- case 17:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != 3);
+ 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 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s);
- s.tmp_3.arg0 = s.arg0;
- r0 = s.arg0.fields["rule"];
+ if (!r0) { step = 4; continue; }
+ r0 = s.arg0.fields["bgPred"];
+ s.tmp_5 = r0;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___66599);
s.tmp_4 = r0;
- r0 = s.tmp_4.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_3.arg1 = r0;
- s.tmp_5 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 730; s.pc = 19; return s.tmp_5;
- case 19:
- r0 = s.retval;
- s.tmp_3.arg2 = r0;
- s.tmp_3.arg3 = 2;
- s.tmp_3.arg4 = 4;
- s.tmp_3.arg5 = true;
- s.callLocIdx = 731; s.pc = 18; return s.tmp_3;
- case 18:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 2; continue; }
+ r0 = false;
+ { step = 9; continue; }
+ case 2:
case 3:
+ r0 = (s.i___66599 + 1);
+ s.i___66599 = (r0);
+ { step = 1; continue; }
case 4:
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCommands__P13116_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 732; s.pc = 20; return s.tmp_0;
- case 20:
- r0 = s.retval;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 733; s.pc = 21; return s.tmp_2;
- case 21:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 734; s.pc = 22; return s.tmp_3;
- case 22:
- r0 = s.retval;
- s.image___13430 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.image___13430);
- if (!r0) { step = 5; continue; }
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 3;
- s.tmp_0.arg3 = s.image___13430;
- s.callLocIdx = 735; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
+ s.i___66613 = (0);
case 5:
- case 6:
- { step = 10; continue; }
- case 7:
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 736; s.pc = 24; return s.tmp_2;
- case 24:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
+ s.tmp_1 = r0 = s.i___66613;
+ r0 = s.arg0.fields["spPred"];
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.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 = 8; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = 0;
- s.tmp_3.arg2 = 3;
- s.tmp_3.arg3 = globals.negate___3765;
- s.callLocIdx = 737; s.pc = 25; return s.tmp_3;
- case 25:
- r0 = s.retval;
+ r0 = s.arg0.fields["spPred"];
+ s.tmp_5 = r0;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___66613);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 6; continue; }
+ r0 = false;
+ { step = 9; continue; }
+ case 6:
+ case 7:
+ r0 = (s.i___66613 + 1);
+ s.i___66613 = (r0);
+ { step = 5; continue; }
case 8:
+ r0 = true;
case 9:
- case 10:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_update__P13111.info = {"start":4346,"length":1043,"line":101,"column":8,"endLine":123,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"update","argumentNames":["this"]}
+tileworld_isWhenDoTrue__P63621.info = {"start":7342,"length":299,"line":194,"column":4,"endLine":202,"endColumn":5,"fileName":"rule.ts","functionName":"isWhenDoTrue","argumentNames":["wd"]}
-function tileworld_ruleediting_RuleDisplay_update__P13111_mk(s) {
+function tileworld_isWhenDoTrue__P63621_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_update__P13111, depth: s.depth + 1,
+ parent: s, fn: tileworld_isWhenDoTrue__P63621, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -26570,7 +24729,8 @@ function tileworld_ruleediting_RuleDisplay_update__P13111_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- image___13430: undefined,
+ i___66599: undefined,
+ i___66613: undefined,
arg0: undefined,
} }
@@ -26578,7 +24738,7 @@ function tileworld_ruleediting_RuleDisplay_update__P13111_mk(s) {
-function tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106(s) {
+function tileworld_RuleView_getDirFromRule__P63639(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26588,53 +24748,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.dir___13181 = undefined;
+ s.rt___67170 = undefined;
+ s.wd___67179 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 702; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.dir___13181 = (r0);
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 703; s.pc = 4; return s.tmp_2;
- case 4:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.rt___67170 = (r0);
+ r0 = (s.rt___67170 == 2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__getAt(globals.buttonImages___3791, s.dir___13181);
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = pxsim_Array__getAt(globals.moveImages___3788, s.dir___13181);
+ r0 = (s.rt___67170 == 1);
case 2:
// jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = 2;
+ s.tmp_2.arg2 = 2;
+ s.callLocIdx = 117; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
+ s.wd___67179 = (r0);
+ r0 = (s.wd___67179 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = 6;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_1 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.wd___67179;
+ s.callLocIdx = 118; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
+ { step = 9; continue; }
+ { step = 8; continue; }
+ case 5:
+ r0 = (s.rt___67170 == 0);
s.tmp_3 = r0;
- r0 = s.tmp_3;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 6; continue; }
+ s.tmp_4 = tileworld_RuleView_getRuleArg__P63637_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 119; s.pc = 12; return s.tmp_4;
+ case 12:
+ r0 = s.retval;
+ { step = 9; continue; }
+ case 6:
+ case 7:
+ case 8:
+ r0 = 6;
+ case 9:
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106.info = {"start":2005,"length":188,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDirectionImage","argumentNames":["this"]}
+tileworld_RuleView_getDirFromRule__P63639.info = {"start":2246,"length":408,"line":74,"column":8,"endLine":83,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDirFromRule","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106_mk(s) {
+function tileworld_RuleView_getDirFromRule__P63639_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getDirFromRule__P63639, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- dir___13181: undefined,
+ tmp_4: undefined,
+ rt___67170: undefined,
+ wd___67179: undefined,
arg0: undefined,
} }
@@ -26642,7 +24839,7 @@ function tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106_mk(s) {
-function tileworld_ruleediting_RuleDisplay_showCommands__P13116(s) {
+function tileworld_RuleView_getRuleArg__P63637(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26652,92 +24849,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.lr___13506 = undefined;
- s.col___13510 = undefined;
- s.row___13513 = undefined;
- s.len___13516 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["rid"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["commandLengths"] = (s.tmp_1);
- s.lr___13506 = (0);
- case 1:
- r0 = (s.lr___13506 < 5);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.lr___13506;
- s.callLocIdx = 740; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.col___13510 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.lr___13506;
- s.callLocIdx = 741; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.row___13513 = (r0);
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.col___13510;
- s.tmp_1.arg2 = s.row___13513;
- s.callLocIdx = 742; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
+ r0 = (s.tmp_1 != -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleArg"];
+ { step = 4; continue; }
+ case 1:
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 2; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.lr___13506;
- s.tmp_2.arg2 = s.col___13510;
- s.tmp_2.arg3 = s.row___13513;
- s.tmp_2.arg4 = true;
- s.callLocIdx = 743; s.pc = 8; return s.tmp_2;
- case 8:
+ s.tmp_4 = tileworld_flipRotateDir__P63618_mk(s);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleArg"];
+ s.tmp_4.arg0 = r0;
+ r0 = s.arg0.fields["view"];
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 115; s.pc = 5; return s.tmp_4;
+ case 5:
r0 = s.retval;
{ step = 3; continue; }
case 2:
- r0 = -1;
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleArg"];
case 3:
// jmp value (already in r0)
- s.tmp_3 = r0;
- s.len___13516 = (s.tmp_3);
- r0 = s.arg0.fields["commandLengths"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.len___13516);
- r0 = (s.lr___13506 + 1);
- s.lr___13506 = (r0);
- { step = 1; continue; }
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
case 4:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = s.tmp_6;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showCommands__P13116.info = {"start":6317,"length":368,"line":149,"column":8,"endLine":157,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommands","argumentNames":["this"]}
+tileworld_RuleView_getRuleArg__P63637.info = {"start":1949,"length":202,"line":65,"column":8,"endLine":68,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleArg","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_showCommands__P13116_mk(s) {
+function tileworld_RuleView_getRuleArg__P63637_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommands__P13116, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getRuleArg__P63637, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- lr___13506: undefined,
- col___13510: undefined,
- row___13513: undefined,
- len___13516: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
arg0: undefined,
} }
@@ -26745,7 +24917,7 @@ function tileworld_ruleediting_RuleDisplay_showCommands__P13116_mk(s) {
-function tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118(s) {
+function tileworld_ruleediting_RuleDisplay_showRuleType__P73102(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -26755,332 +24927,168 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.kind___13606 = undefined;
- s.img___13612 = undefined;
- s.whendo___13641 = undefined;
- s.whendo___13707 = undefined;
- s.col___13713 = undefined;
- s.tokens___13714 = undefined;
- s.cid___13724 = undefined;
+ s.selCol___73294 = undefined;
+ s.ax___73311 = undefined;
+ s.ay___73320 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg4);
- if (!r0) { step = 13; continue; }
- s.tmp_0 = tileworld_RuleView_findWitnessColRow__P3650_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg2;
- s.tmp_0.arg2 = s.arg3;
- s.tmp_0.arg3 = true;
- s.callLocIdx = 747; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- s.kind___13606 = (r0);
- r0 = (s.kind___13606 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.selCol___73294 = (11);
+ r0 = pxsim_numops_toBoolDecr(s.arg5);
if (!r0) { step = 1; continue; }
- r0 = globals.genericSprite___3726;
- { step = 2; continue; }
- case 1:
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg2;
- s.tmp_1.arg2 = s.arg3;
- s.callLocIdx = 748; s.pc = 29; return s.tmp_1;
- case 29:
- r0 = s.retval;
- case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.img___13612 = (s.tmp_2);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 5;
- r0 = (s.arg1 + 2);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.img___13612;
- s.callLocIdx = 749; s.pc = 30; return s.tmp_0;
- case 30:
- r0 = s.retval;
- r0 = (s.kind___13606 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 3:
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 750; s.pc = 31; return s.tmp_3;
- case 31:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 != 2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 4; continue; }
- r0 = s.tmp_1;
- { step = 5; continue; }
- case 4:
- r0 = (s.arg2 != 2);
- case 5:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (!r0) { step = 6; continue; }
- r0 = s.tmp_4;
- { step = 7; continue; }
- case 6:
- r0 = (s.arg3 != 2);
- case 7:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
- case 8:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 9; continue; }
- s.tmp_7 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_7.arg0 = r0;
- s.tmp_7.arg1 = s.arg2;
- s.tmp_7.arg2 = s.arg3;
- s.callLocIdx = 751; s.pc = 32; return s.tmp_7;
- case 32:
- r0 = s.retval;
- s.whendo___13641 = (r0);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 5;
- r0 = (s.arg1 + 2);
- s.tmp_0.arg2 = r0;
- s.tmp_1 = r0 = globals.movedImages___3789;
- s.tmp_3 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.whendo___13641;
- s.callLocIdx = 752; s.pc = 34; return s.tmp_3;
- case 34:
+ s.tmp_0.arg1 = s.arg3;
+ s.tmp_0.arg2 = s.arg4;
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay__C63794_v3_1_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage;
+ s.pc = 18; return s.tmp_1;
+ case 18:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
s.tmp_0.arg3 = r0;
- s.callLocIdx = 753; s.pc = 33; return s.tmp_0;
- case 33:
+ s.callLocIdx = 718; s.pc = 17; return s.tmp_0;
+ case 17:
r0 = s.retval;
- case 9:
- case 10:
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["help"];
+ case 1:
+ case 2:
+ r0 = (s.arg1 == 1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = helpers_imagePrint__P1757_mk(s);
- s.tmp_1.arg0 = globals.screen___1799;
- r0 = (s.arg1 + 1);
- s.tmp_2 = r0;
- r0 = pxsim_numops.toString(s.tmp_2);
- s.tmp_1.arg1 = r0;
- r0 = (80 + 10);
- s.tmp_1.arg2 = r0;
- r0 = (2 + s.arg1);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 << 4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 13);
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg3;
+ s.tmp_1.arg2 = s.arg4;
+ r0 = pxsim_Array__getAt(globals.movedImages___63786, s.arg2);
s.tmp_1.arg3 = r0;
- s.tmp_1.arg4 = undefined;
- s.tmp_1.arg5 = undefined;
- s.tmp_1.arg6 = undefined;
- s.callLocIdx = 754; s.pc = 35; return s.tmp_1;
- case 35:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = (s.arg1 + 1);
- s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.tmp_1);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 10);
- s.tmp_0.arg2 = r0;
- r0 = (2 + s.arg3);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 << 4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 13);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 755; s.pc = 36; return s.tmp_0;
- case 36:
- r0 = s.retval;
- case 11:
- case 12:
- case 13:
- case 14:
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg2;
- s.tmp_0.arg2 = s.arg3;
- s.callLocIdx = 756; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.whendo___13707 = (r0);
- s.col___13713 = (6);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_startTokens__P13120_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg2;
- s.tmp_0.arg2 = s.arg3;
- s.callLocIdx = 757; s.pc = 38; return s.tmp_0;
- case 38:
- r0 = s.retval;
- s.tokens___13714 = (r0);
- 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 = 15; continue; }
- r0 = (s.arg0).fields["tokens"] = (s.tokens___13714);
- case 15:
- case 16:
- s.cid___13724 = (0);
- case 17:
- r0 = (s.whendo___13707 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 18; continue; }
- r0 = s.tmp_0;
- { step = 19; continue; }
- case 18:
- s.tmp_1 = r0 = s.cid___13724;
- r0 = s.arg0.fields["rule"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.whendo___13707);
- r0 = r0.fields["commandsLen"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ s.callLocIdx = 719; s.pc = 19; return s.tmp_1;
case 19:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 20; continue; }
- s.tmp_6 = tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.col___13713;
- s.tmp_6.arg2 = s.arg1;
- s.tmp_6.arg3 = s.whendo___13707;
- s.tmp_6.arg4 = s.cid___13724;
- s.tmp_6.arg5 = s.tokens___13714;
- s.tmp_6.arg6 = s.arg4;
- s.callLocIdx = 759; s.pc = 39; return s.tmp_6;
- case 39:
r0 = s.retval;
- r0 = (s.cid___13724 + 1);
- s.cid___13724 = (r0);
- s.tmp_0 = r0 = s.col___13713;
- r0 = (s.tmp_0 + 1);
- s.col___13713 = (r0);
- r0 = s.tmp_0;
- { step = 17; continue; }
- case 20:
- r0 = (s.whendo___13707 == -1);
+ { step = 16; continue; }
+ case 3:
+ r0 = (s.arg1 == 2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 21; continue; }
- r0 = s.tmp_0;
- { step = 24; continue; }
- case 21:
- r0 = (s.cid___13724 < 4);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ r0 = (s.arg2 == 0);
s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 22; continue; }
- r0 = s.tmp_1;
- { step = 23; continue; }
- case 22:
- r0 = pxsim_Array__length(s.tokens___13714);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = 1;
+ { step = 7; continue; }
+ case 4:
+ r0 = (s.arg2 == 2);
s.tmp_2 = r0;
- r0 = (s.tmp_2 > 0);
- case 23:
+ r0 = pxsim_numops_toBoolDecr(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_3 = r0;
r0 = s.tmp_3;
- case 24:
+ case 7:
// jmp value (already in r0)
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 25; continue; }
- s.tmp_5 = tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.col___13713;
- s.tmp_5.arg2 = s.arg1;
- s.tmp_5.arg3 = s.whendo___13707;
- s.tmp_5.arg4 = s.cid___13724;
- s.tmp_5.arg5 = s.tokens___13714;
- s.tmp_5.arg6 = s.arg4;
- s.callLocIdx = 760; s.pc = 40; return s.tmp_5;
- case 40:
+ s.ax___73311 = (s.tmp_4);
+ r0 = (s.arg2 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ r0 = -1;
+ { step = 11; continue; }
+ case 8:
+ r0 = (s.arg2 == 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 9; continue; }
+ r0 = 1;
+ { step = 10; continue; }
+ case 9:
+ r0 = 0;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.ay___73320 = (s.tmp_3);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCollision__P73101_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg3 - s.ax___73311);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg4 - s.ay___73320);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.arg2;
+ r0 = pxsim_Array__getAt(globals.moveImages___63785, s.arg2);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = s.arg1;
+ s.callLocIdx = 720; s.pc = 20; return s.tmp_0;
+ case 20:
r0 = s.retval;
- r0 = (s.cid___13724 + 1);
- { step = 27; continue; }
- case 25:
- case 26:
- r0 = s.cid___13724;
- case 27:
+ { step = 15; continue; }
+ case 12:
+ r0 = (s.arg1 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg3;
+ s.tmp_1.arg2 = s.arg4;
+ s.tmp_1.arg3 = globals.negate___63762;
+ s.callLocIdx = 721; s.pc = 21; return s.tmp_1;
+ case 21:
+ r0 = s.retval;
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118.info = {"start":7910,"length":1972,"line":188,"column":8,"endLine":225,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommandsAt","argumentNames":["this","crow","wcol","wrow","draw"]}
+tileworld_ruleediting_RuleDisplay_showRuleType__P73102.info = {"start":3598,"length":730,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showRuleType","argumentNames":["this","rt","rd","x","y","center"]}
-function tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showRuleType__P73102_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showRuleType__P73102, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- kind___13606: undefined,
- img___13612: undefined,
- whendo___13641: undefined,
- whendo___13707: undefined,
- col___13713: undefined,
- tokens___13714: undefined,
- cid___13724: undefined,
+ selCol___73294: undefined,
+ ax___73311: undefined,
+ ay___73320: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
arg4: undefined,
+ arg5: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_showCommand__P13119(s) {
+function tileworld_ruleediting_RuleDisplay_showCollision__P73101(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27090,8 +25098,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.inst___13791 = undefined;
- s.arg___13797 = undefined;
+ s.x___73256 = undefined;
+ s.y___73265 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -27099,107 +25107,115 @@ switch (step) {
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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg3 == -1);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["collideCol"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg2 - 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["collideRow"] = (s.tmp_1);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = globals.collisionSprite___63722;
+ s.callLocIdx = 716; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ r0 = (s.arg3 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_numops_toBoolDecr(s.arg6);
if (!r0) { step = 1; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- r0 = (s.arg2 + 2);
- s.tmp_1.arg2 = r0;
- s.tmp_1.arg3 = globals.emptyTile___3721;
- s.callLocIdx = 761; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
+ r0 = 7;
+ { step = 4; continue; }
case 1:
+ r0 = (s.arg3 == 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = -7;
+ { step = 3; continue; }
case 2:
- { step = 6; continue; }
+ r0 = 0;
case 3:
- s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg3;
- s.tmp_0.arg2 = s.arg4;
- s.callLocIdx = 762; s.pc = 8; return s.tmp_0;
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.x___73256 = (s.tmp_3);
+ r0 = (s.arg3 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = 7;
+ { step = 8; continue; }
+ case 5:
+ r0 = (s.arg3 == 3);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 6; continue; }
+ r0 = -7;
+ { step = 7; continue; }
+ case 6:
+ r0 = 0;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
case 8:
- r0 = s.retval;
- s.inst___13791 = (r0);
- s.tmp_0 = tileworld_RuleView_getCmdArg__P3655_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg3;
- s.tmp_0.arg2 = s.arg4;
- s.callLocIdx = 763; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.arg___13797 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg6);
- if (!r0) { step = 4; continue; }
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.y___73265 = (s.tmp_3);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImageAbs__P72689_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- r0 = (s.arg2 + 2);
+ r0 = (s.arg1 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + s.x___73256);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 6);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.y___73265);
s.tmp_0.arg2 = r0;
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.inst___13791;
- s.tmp_1.arg2 = s.arg___13797;
- s.callLocIdx = 764; s.pc = 11; return s.tmp_1;
- case 11:
- r0 = s.retval;
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 765; s.pc = 10; return s.tmp_0;
+ s.tmp_0.arg3 = s.arg4;
+ s.callLocIdx = 717; s.pc = 10; return s.tmp_0;
case 10:
r0 = s.retval;
- case 4:
- case 5:
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_updateTokens__P13121_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg5;
- s.tmp_0.arg2 = s.inst___13791;
- s.callLocIdx = 766; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- r0 = (s.arg1 + 1);
- s.arg1 = (r0);
- case 6:
- r0 = s.arg1;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showCommand__P13119.info = {"start":9892,"length":596,"line":227,"column":8,"endLine":240,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommand","argumentNames":["this","col","row","whendo","cid","tokens","draw"]}
+tileworld_ruleediting_RuleDisplay_showCollision__P73101.info = {"start":3076,"length":512,"line":78,"column":8,"endLine":85,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCollision","argumentNames":["this","col","row","dir","arrowImg","rt"]}
-function tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s) {
+function tileworld_ruleediting_RuleDisplay_showCollision__P73101_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommand__P13119, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_showCollision__P73101, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- inst___13791: undefined,
- arg___13797: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ x___73256: undefined,
+ y___73265: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
arg4: undefined,
arg5: undefined,
- arg6: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_updateTokens__P13121(s) {
+function tileworld_RuleVisualsBase_drawImageAbs__P72689(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27213,50 +25229,34 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg2 == 255);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
- case 1:
- case 2:
- r0 = pxsim_Array_.removeElement(s.arg1, s.arg2);
- r0 = pxsim_Array_.removeElement(s.arg1, 0);
- r0 = pxsim_Array_.removeElement(s.arg1, 3);
- r0 = (s.arg2 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_Array_.insertAt(s.arg1, 0, 0);
- case 3:
- case 4:
- case 5:
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___61794, s.arg3, s.arg1, s.arg2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_updateTokens__P13121.info = {"start":11112,"length":474,"line":257,"column":8,"endLine":268,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"updateTokens","argumentNames":["this","tokens","inst"]}
+tileworld_RuleVisualsBase_drawImageAbs__P72689.info = {"start":4505,"length":120,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImageAbs","argumentNames":["this","x","y","img"]}
-function tileworld_ruleediting_RuleDisplay_updateTokens__P13121_mk(s) {
+function tileworld_RuleVisualsBase_drawImageAbs__P72689_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_updateTokens__P13121, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_drawImageAbs__P72689, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_RuleView_getCmdsLen__P3653(s) {
+function tileworld_ruleediting_RuleDisplay_centerImage__P73097(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27268,36 +25268,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- r0 = r0.fields["commandsLen"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = globals.ok___63727;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getCmdsLen__P3653.info = {"start":6639,"length":95,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdsLen","argumentNames":["this","wdid"]}
+tileworld_ruleediting_RuleDisplay_centerImage__P73097.info = {"start":1937,"length":58,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"centerImage","argumentNames":["this"]}
-function tileworld_RuleView_getCmdsLen__P3653_mk(s) {
+function tileworld_ruleediting_RuleDisplay_centerImage__P73097_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getCmdsLen__P3653, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_centerImage__P73097, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_startTokens__P13120(s) {
+function tileworld_ruleediting_RuleEditor_saveAndPop__P74498(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27307,78 +25300,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tokens___13821 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.tokens___13821 = (r0);
- s.tmp_2 = tileworld_RuleView_findWitnessColRow__P3650_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0.arg0 = r0;
r0 = s.arg0.fields["rule"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.arg2;
- s.tmp_2.arg3 = true;
- s.callLocIdx = 767; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, 0);
- r0 = pxsim_Array__push(s.tmp_3, 3);
- s.tokens___13821 = (s.tmp_3);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1024; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1025; s.pc = 2; return s.tmp_0;
case 2:
- r0 = pxsim_Array__mk();
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, 1);
- r0 = pxsim_Array__push(s.tmp_0, 2);
- r0 = pxsim_Array__push(s.tmp_0, 6);
- r0 = pxsim_Array__push(s.tmp_0, 5);
- r0 = pxsim_Array__push(s.tmp_0, 4);
- s.tmp_1 = helpers_arrayConcat__P108_mk(s);
- s.tmp_1.arg0 = s.tokens___13821;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 768; s.pc = 4; return s.tmp_1;
- case 4:
r0 = s.retval;
- s.tokens___13821 = (r0);
- r0 = s.tokens___13821;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_startTokens__P13120.info = {"start":10630,"length":472,"line":244,"column":8,"endLine":255,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"startTokens","argumentNames":["this","col","row"]}
+tileworld_ruleediting_RuleEditor_saveAndPop__P74498.info = {"start":8532,"length":101,"line":179,"column":8,"endLine":182,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"saveAndPop","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_startTokens__P13120_mk(s) {
+function tileworld_ruleediting_RuleEditor_saveAndPop__P74498_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_startTokens__P13120, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_saveAndPop__P74498, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tokens___13821: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function helpers_arrayConcat__P108(s) {
+function tileworld_RuleView_getWitnessDirection__P63648(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27388,74 +25347,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.out___25463 = undefined;
- s.value___25466 = undefined;
- s.unnamed40___U2 = undefined;
- s.unnamed41___U3 = undefined;
- s.value___25473 = undefined;
- s.unnamed42___U5 = undefined;
- s.unnamed43___U6 = undefined;
+ s.dir___67509 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array__mk();
- s.out___25463 = (r0);
- s.value___25466 = (undefined);
- s.unnamed40___U2 = (s.arg0);
- s.unnamed41___U3 = (0);
- case 1:
- s.tmp_0 = r0 = s.unnamed41___U3;
- r0 = pxsim_Array__length(s.unnamed40___U2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ r0 = r0.fields["dir"];
+ s.dir___67509 = (r0);
+ r0 = s.arg0.fields["rid"];
s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_Array__getAt(s.unnamed40___U2, s.unnamed41___U3);
- s.value___25466 = (r0);
- r0 = pxsim_Array__push(s.out___25463, s.value___25466);
- r0 = (s.unnamed41___U3 + 1);
- s.unnamed41___U3 = (r0);
- { step = 1; continue; }
+ r0 = (s.tmp_1 != -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.dir___67509 >= 4);
case 2:
- s.unnamed40___U2 = (undefined);
- s.value___25473 = (undefined);
- s.unnamed42___U5 = (s.arg1);
- s.unnamed43___U6 = (0);
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ r0 = s.dir___67509;
+ { step = 4; continue; }
case 3:
- s.tmp_0 = r0 = s.unnamed43___U6;
- r0 = pxsim_Array__length(s.unnamed42___U5);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 < s.tmp_1);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_Array__getAt(s.unnamed42___U5, s.unnamed43___U6);
- s.value___25473 = (r0);
- r0 = pxsim_Array__push(s.out___25463, s.value___25473);
- r0 = (s.unnamed43___U6 + 1);
- s.unnamed43___U6 = (r0);
- { step = 3; continue; }
+ s.tmp_3 = tileworld_flipRotateDir__P63618_mk(s);
+ s.tmp_3.arg0 = s.dir___67509;
+ r0 = s.arg0.fields["view"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 142; s.pc = 5; return s.tmp_3;
+ case 5:
+ r0 = s.retval;
case 4:
- s.unnamed42___U5 = (undefined);
- r0 = s.out___25463;
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
return leave(s, r0)
default: oops()
} } }
-helpers_arrayConcat__P108.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"]}
+tileworld_RuleView_getWitnessDirection__P63648.info = {"start":6320,"length":192,"line":182,"column":8,"endLine":185,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWitnessDirection","argumentNames":["this","wdid"]}
-function helpers_arrayConcat__P108_mk(s) {
+function tileworld_RuleView_getWitnessDirection__P63648_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayConcat__P108, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getWitnessDirection__P63648, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- out___25463: undefined,
- value___25466: undefined,
- unnamed40___U2: undefined,
- unnamed41___U3: undefined,
- value___25473: undefined,
- unnamed42___U5: undefined,
- unnamed43___U6: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ dir___67509: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -27464,7 +25414,7 @@ function helpers_arrayConcat__P108_mk(s) {
-function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122(s) {
+function tileworld_RuleView_getWhenDo__P63640(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27474,12 +25424,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.whenDo___13873 = undefined;
- s.include___13884 = undefined;
- s.include2___13888 = undefined;
- s.exclude___13901 = undefined;
- s.exclude2___13905 = undefined;
- s.index___13918 = undefined;
+ s.ncol___67214 = undefined;
+ s.nrow___67219 = undefined;
+ s.whendo___67228 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -27487,195 +25434,155 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 769; s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- s.whenDo___13873 = (r0);
- r0 = (s.whenDo___13873 == -1);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = pxsim_pxtrt.mklocRef();
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1);
+ s.arg1 = (s.tmp_0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.arg2);
+ s.arg2 = (s.tmp_1);
+ r0 = s.arg0.fields["rid"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == -1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 1; continue; }
- r0 = globals.ok___3730;
- { step = 21; continue; }
+ s.tmp_4 = tileworld_transformCol__P63619_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.arg1);
+ s.tmp_4.arg0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_4.arg1 = r0;
+ s.tmp_5 = tileworld_RuleView_rawView__P67036_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.callLocIdx = 120; s.pc = 7; return s.tmp_5;
+ case 7:
+ r0 = s.retval;
+ s.tmp_4.arg2 = r0;
+ s.callLocIdx = 121; s.pc = 6; return s.tmp_4;
+ case 6:
+ r0 = s.retval;
+ s.ncol___67214 = (r0);
+ s.tmp_0 = tileworld_transformRow__P63620_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_0.arg0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.arg1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_1 = tileworld_RuleView_rawView__P67036_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.callLocIdx = 122; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 123; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.nrow___67219 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.arg1, s.ncol___67214);
+ r0 = pxsim_pxtrt_stlocRef(s.arg2, s.nrow___67219);
case 1:
case 2:
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.whenDo___13873;
- s.tmp_1.arg2 = 1;
- s.tmp_1.arg3 = 0;
- s.callLocIdx = 770; s.pc = 23; return s.tmp_1;
- case 23:
+ r0 = pxsim_pxtcore_mkAction(2, inline__P67233);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
+ s.tmp_1 = helpers_arrayFind__P60101_mk(s);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 124; s.pc = 10; return s.tmp_1;
+ case 10:
r0 = s.retval;
- s.include___13884 = (r0);
- r0 = (s.include___13884 == -1);
+ s.whendo___67228 = (r0);
+ r0 = (s.whendo___67228 == null);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
r0 = -1;
+ { step = 5; continue; }
{ step = 4; continue; }
case 3:
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.whenDo___13873;
- s.tmp_1.arg2 = 1;
- r0 = (s.include___13884 + 1);
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 771; s.pc = 24; return s.tmp_1;
- case 24:
- r0 = s.retval;
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_1, s.whendo___67228, undefined);
+ { step = 5; continue; }
case 4:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.include2___13888 = (s.tmp_2);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.whenDo___13873;
- s.tmp_0.arg2 = 3;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 772; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.exclude___13901 = (r0);
- r0 = (s.exclude___13901 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = -1;
- { step = 6; continue; }
+ r0 = undefined;
case 5:
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.whenDo___13873;
- s.tmp_1.arg2 = 3;
- r0 = (s.exclude___13901 + 1);
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 773; s.pc = 26; return s.tmp_1;
- case 26:
- r0 = s.retval;
- case 6:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.exclude2___13905 = (s.tmp_2);
- r0 = (s.include___13884 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = s.exclude___13901;
- { step = 8; continue; }
- case 7:
- r0 = s.include___13884;
- case 8:
- // jmp value (already in r0)
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleView_getWhenDo__P63640.info = {"start":2903,"length":505,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDo","argumentNames":["this","col","row"]}
+
+function tileworld_RuleView_getWhenDo__P63640_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_getWhenDo__P63640, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ ncol___67214: undefined,
+ nrow___67219: undefined,
+ whendo___67228: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function inline__P67233(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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["col"];
s.tmp_1 = r0;
- s.index___13918 = (s.tmp_1);
- r0 = (s.include___13884 != -1);
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 == s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 9; continue; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 10; continue; }
- case 9:
- r0 = (s.include2___13888 != -1);
- case 10:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 11; continue; }
- s.tmp_2 = tileworld_splitImage__P3540_mk(s);
- r0 = s.arg0.fields["all"];
+ { step = 2; continue; }
+ case 1:
+ r0 = s.arg0.fields["row"];
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["allImages"];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.include___13884);
- s.tmp_2.arg0 = r0;
- r0 = s.arg0.fields["all"];
- s.tmp_5 = r0;
- r0 = s.tmp_5.fields["allImages"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__getAt(s.tmp_6, s.include2___13888);
- s.tmp_2.arg1 = r0;
- s.callLocIdx = 776; s.pc = 27; return s.tmp_2;
- case 27:
- r0 = s.retval;
- { step = 21; continue; }
- { step = 20; continue; }
- case 11:
- r0 = (s.include___13884 == -1);
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (r0) { step = 12; continue; }
- r0 = s.tmp_7;
- { step = 13; continue; }
- case 12:
- r0 = (s.exclude___13901 != -1);
- case 13:
- // jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBool(s.tmp_8);
- if (r0) { step = 14; continue; }
- r0 = s.tmp_8;
- { step = 15; continue; }
- case 14:
- r0 = (s.exclude2___13905 != -1);
- case 15:
- // jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
- if (!r0) { step = 16; continue; }
- s.tmp_10 = tileworld_splitImage__P3540_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_11 = r0;
- r0 = s.tmp_11.fields["allImages"];
- s.tmp_12 = r0;
- r0 = pxsim_Array__getAt(s.tmp_12, s.exclude___13901);
- s.tmp_10.arg0 = r0;
- r0 = s.arg0.fields["all"];
- s.tmp_13 = r0;
- r0 = s.tmp_13.fields["allImages"];
- s.tmp_14 = r0;
- r0 = pxsim_Array__getAt(s.tmp_14, s.exclude2___13905);
- s.tmp_10.arg1 = r0;
- s.callLocIdx = 779; s.pc = 28; return s.tmp_10;
- case 28:
- r0 = s.retval;
- { step = 21; continue; }
- { step = 19; continue; }
- case 16:
- r0 = (s.index___13918 != -1);
- s.tmp_15 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_15);
- if (!r0) { step = 17; continue; }
- r0 = s.arg0.fields["all"];
- s.tmp_16 = r0;
- r0 = s.tmp_16.fields["allImages"];
- s.tmp_17 = r0;
- r0 = pxsim_Array__getAt(s.tmp_17, s.index___13918);
- { step = 21; continue; }
- { step = 18; continue; }
- case 17:
- r0 = globals.ok___3730;
- { step = 21; continue; }
- case 18:
- case 19:
- case 20:
- r0 = undefined;
- case 21:
+ r0 = (s.tmp_3 == s.tmp_4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122.info = {"start":11596,"length":1170,"line":270,"column":8,"endLine":290,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getWhenDoImage","argumentNames":["this","col","row"]}
+inline__P67233.info = {"start":3230,"length":36,"line":97,"column":44,"endLine":97,"endColumn":80,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["wd"]}
-function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s) {
+function inline__P67233_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, depth: s.depth + 1,
+ parent: s, fn: inline__P67233, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -27683,34 +25590,14 @@ function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_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,
- whenDo___13873: undefined,
- include___13884: undefined,
- include2___13888: undefined,
- exclude___13901: undefined,
- exclude2___13905: undefined,
- index___13918: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tileworld_AllExport_getImage__P3674(s) {
+function helpers_arrayFind__P60101(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27720,27 +25607,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.len___87477 = undefined;
+ s.i___87480 = undefined;
+ s.v___87485 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0);
- r0 = s.arg0.fields["allImages"];
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___87477 = (r0);
+ s.i___87480 = (0);
+ case 1:
+ r0 = (s.i___87480 < s.len___87477);
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_Array__getAt(s.arg0, s.i___87480);
+ s.v___87485 = (r0);
+ s.tmp_1 = lambda_3_mk(s);
+ s.tmp_1.argL = s.arg1;
+ s.tmp_1.arg0 = s.v___87485;
+ s.tmp_1.arg1 = s.i___87480;
+ setupLambda(s.tmp_1, s.tmp_1.argL);
+ s.callLocIdx = 8; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ r0 = s.v___87485;
+ { step = 5; continue; }
+ case 2:
+ case 3:
+ r0 = (s.i___87480 + 1);
+ s.i___87480 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = undefined;
+ case 5:
return leave(s, r0)
default: oops()
} } }
-tileworld_AllExport_getImage__P3674.info = {"start":1008,"length":84,"line":28,"column":8,"endLine":30,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","index"]}
+helpers_arrayFind__P60101.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]}
-function tileworld_AllExport_getImage__P3674_mk(s) {
+function helpers_arrayFind__P60101_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_AllExport_getImage__P3674, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayFind__P60101, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ len___87477: undefined,
+ i___87480: undefined,
+ v___87485: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -27749,7 +25669,7 @@ function tileworld_AllExport_getImage__P3674_mk(s) {
-function tileworld_splitImage__P3540(s) {
+function tileworld_transformRow__P63620(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27759,61 +25679,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ret___6089 = undefined;
- s.x___6093 = undefined;
- s.y___6104 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = pxsim_ImageMethods.clone(s.arg0);
- s.ret___6089 = (r0);
- r0 = pxsim_ImageMethods.width(s.ret___6089);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 1);
- s.x___6093 = (r0);
- case 1:
- s.tmp_1 = r0 = s.x___6093;
- r0 = pxsim_ImageMethods.width(s.ret___6089);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.arg2 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.y___6104 = (0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0;
+ { step = 13; continue; }
+ { step = 12; continue; }
+ case 1:
+ r0 = (s.arg2 == 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = s.tmp_1;
+ { step = 3; continue; }
case 2:
- s.tmp_1 = r0 = s.y___6104;
- r0 = pxsim_ImageMethods.height(s.ret___6089);
+ r0 = (s.arg2 == 2);
+ case 3:
+ // jmp value (already in r0)
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 6; continue; }
+ r0 = (s.arg2 == 1);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 4; continue; }
+ r0 = s.arg0;
+ { step = 5; continue; }
+ case 4:
+ r0 = (4 - s.arg0);
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ { step = 13; continue; }
+ { step = 11; continue; }
+ case 6:
+ r0 = (s.arg1 - 2);
+ s.arg1 = (r0);
+ r0 = (s.arg0 - 2);
+ s.arg0 = (r0);
+ r0 = (s.arg2 == 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_3 = r0 = s.ret___6089;
- s.tmp_4 = r0 = s.x___6093;
- s.tmp_5 = r0 = s.y___6104;
- r0 = pxsim_ImageMethods.getPixel(s.arg1, s.x___6093, s.y___6104);
- s.tmp_6 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_6);
- r0 = (s.y___6104 + 1);
- s.y___6104 = (r0);
- { step = 2; continue; }
- case 3:
- r0 = (s.x___6093 + 1);
- s.x___6093 = (r0);
- { step = 1; continue; }
- case 4:
- r0 = s.ret___6089;
+ if (!r0) { step = 7; continue; }
+ r0 = (0 - s.arg1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 2);
+ { step = 10; continue; }
+ case 7:
+ r0 = (s.arg2 == 5);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 8; continue; }
+ r0 = (s.arg1 + 2);
+ { step = 9; continue; }
+ case 8:
+ r0 = (0 - s.arg0);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 2);
+ case 9:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
+ { step = 13; continue; }
+ case 11:
+ case 12:
+ r0 = undefined;
+ case 13:
return leave(s, r0)
default: oops()
} } }
-tileworld_splitImage__P3540.info = {"start":1328,"length":329,"line":40,"column":4,"endLine":48,"endColumn":5,"fileName":"utilities.ts","functionName":"splitImage","argumentNames":["imgLeft","imgRight"]}
+tileworld_transformRow__P63620.info = {"start":6710,"length":519,"line":178,"column":4,"endLine":189,"endColumn":5,"fileName":"rule.ts","functionName":"transformRow","argumentNames":["row","col","rt"]}
-function tileworld_splitImage__P3540_mk(s) {
+function tileworld_transformRow__P63620_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_splitImage__P3540, depth: s.depth + 1,
+ parent: s, fn: tileworld_transformRow__P63620, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -27821,19 +25773,16 @@ function tileworld_splitImage__P3540_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- ret___6089: undefined,
- x___6093: undefined,
- y___6104: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_attrIndex__P13125(s) {
+function tileworld_RuleView_rawView__P67036(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27843,65 +25792,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___14180 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.i___14180 = (s.arg3);
- case 1:
- s.tmp_1 = r0 = s.i___14180;
- s.tmp_3 = tileworld_Project_allCnt__P3693_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 801; s.pc = 6; return s.tmp_3;
- case 6:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["view"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_6 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_6.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_6.arg1 = r0;
- s.tmp_6.arg2 = s.arg1;
- s.tmp_6.arg3 = s.i___14180;
- s.tmp_6.arg4 = 65535;
- s.callLocIdx = 802; s.pc = 7; return s.tmp_6;
- case 7:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 == s.arg2);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 1; continue; }
+ r0 = 5;
+ { step = 4; continue; }
+ case 1:
+ r0 = s.arg0.fields["view"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 5);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 2; continue; }
- r0 = s.i___14180;
- { step = 5; continue; }
+ r0 = 3;
+ { step = 3; continue; }
case 2:
+ r0 = s.arg0.fields["view"];
case 3:
- r0 = (s.i___14180 + 1);
- s.i___14180 = (r0);
- { step = 1; continue; }
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
case 4:
- r0 = -1;
- case 5:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_attrIndex__P13125.info = {"start":15111,"length":272,"line":342,"column":8,"endLine":348,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"attrIndex","argumentNames":["this","whendo","a","begin"]}
+tileworld_RuleView_rawView__P67036.info = {"start":2672,"length":221,"line":85,"column":8,"endLine":88,"endColumn":9,"fileName":"ruleview.ts","functionName":"rawView","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s) {
+function tileworld_RuleView_rawView__P67036_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_attrIndex__P13125, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_rawView__P67036, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -27909,19 +25841,14 @@ function tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- i___14180: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_Project_allCnt__P3693(s) {
+function tileworld_transformCol__P63619(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27933,33 +25860,135 @@ 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.arg2 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_backgroundsI"];
+ { step = 13; continue; }
+ { step = 12; continue; }
+ case 1:
+ r0 = (s.arg2 == 1);
s.tmp_1 = r0;
- r0 = pxsim_Array__length(s.tmp_1);
- s.tmp_0 = r0;
- r0 = s.arg0.fields["_spritesI"];
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = s.tmp_1;
+ { step = 3; continue; }
+ case 2:
+ r0 = (s.arg2 == 2);
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 6; continue; }
+ r0 = (s.arg2 == 1);
s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 4; continue; }
+ r0 = (4 - s.arg0);
+ { step = 5; continue; }
+ case 4:
+ r0 = s.arg0;
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ { step = 13; continue; }
+ { step = 11; continue; }
+ case 6:
+ r0 = (s.arg1 - 2);
+ s.arg1 = (r0);
+ r0 = (s.arg0 - 2);
+ s.arg0 = (r0);
+ r0 = (s.arg2 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = (s.arg1 + 2);
+ { step = 10; continue; }
+ case 7:
+ r0 = (s.arg2 == 5);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 8; continue; }
+ r0 = (0 - s.arg1);
s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
+ r0 = (s.tmp_2 + 2);
+ { step = 9; continue; }
+ case 8:
+ r0 = (0 - s.arg0);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 2);
+ case 9:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
+ { step = 13; continue; }
+ case 11:
+ case 12:
+ r0 = undefined;
+ case 13:
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_allCnt__P3693.info = {"start":3271,"length":61,"line":98,"column":8,"endLine":98,"endColumn":69,"fileName":"project.ts","functionName":"allCnt","argumentNames":["this"]}
+tileworld_transformCol__P63619.info = {"start":6142,"length":562,"line":164,"column":4,"endLine":176,"endColumn":5,"fileName":"rule.ts","functionName":"transformCol","argumentNames":["col","row","rt"]}
-function tileworld_Project_allCnt__P3693_mk(s) {
+function tileworld_transformCol__P63619_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_allCnt__P3693, depth: s.depth + 1,
+ parent: s, fn: tileworld_transformCol__P63619, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_RuleView_getRuleType__P63635(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleView_getRuleType__P63635.info = {"start":1783,"length":68,"line":57,"column":8,"endLine":59,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleType","argumentNames":["this"]}
+
+function tileworld_RuleView_getRuleType__P63635_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_getRuleType__P63635, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -27967,7 +25996,7 @@ function tileworld_Project_allCnt__P3693_mk(s) {
-function tileworld_ruleediting_RuleDisplay_makeContext__P13112(s) {
+function tileworld_RuleView_findWitnessColRow__P63647(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -27977,90 +26006,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___13442 = undefined;
- s.j___13446 = undefined;
+ s.whendo___67485 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.i___13442 = (1);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg3;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
- r0 = (s.i___13442 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.j___13446 = (1);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 3);
case 2:
- r0 = (s.j___13446 <= 3);
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ r0 = -1;
+ { step = 9; continue; }
+ case 3:
+ case 4:
+ s.tmp_3 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.arg1;
+ s.tmp_3.arg2 = s.arg2;
+ s.callLocIdx = 139; s.pc = 10; return s.tmp_3;
+ case 10:
+ r0 = s.retval;
+ s.whendo___67485 = (r0);
+ r0 = (s.whendo___67485 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.i___13442;
- s.tmp_2.arg2 = s.j___13446;
- s.callLocIdx = 738; s.pc = 7; return s.tmp_2;
- case 7:
+ r0 = -1;
+ { step = 9; continue; }
+ case 5:
+ case 6:
+ s.tmp_3 = tileworld_RuleView_attrBgIndex__P67038_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.whendo___67485;
+ s.tmp_3.arg2 = 1;
+ s.callLocIdx = 140; s.pc = 11; return s.tmp_3;
+ case 11:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 != -1);
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.i___13442;
- r0 = (s.j___13446 + 2);
- s.tmp_3.arg2 = r0;
- s.tmp_3.arg3 = globals.emptyTile___3721;
- s.callLocIdx = 739; s.pc = 8; return s.tmp_3;
+ if (!r0) { step = 7; continue; }
+ r0 = -1;
+ { step = 9; continue; }
+ case 7:
case 8:
+ s.tmp_4 = tileworld_RuleView_attrSpIndex__P67039_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = s.whendo___67485;
+ s.tmp_4.arg2 = 1;
+ s.callLocIdx = 141; s.pc = 12; return s.tmp_4;
+ case 12:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleDisplay__C3797_v4_4_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.i___13442;
- s.tmp_0.arg2 = s.j___13446;
- s.tmp_0.arg3 = true;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.showAttributes;
- s.pc = 9; return s.tmp_0;
case 9:
- r0 = s.retval;
- case 3:
- case 4:
- r0 = (s.j___13446 + 1);
- s.j___13446 = (r0);
- { step = 2; continue; }
- case 5:
- r0 = (s.i___13442 + 1);
- s.i___13442 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_makeContext__P13112.info = {"start":5399,"length":342,"line":125,"column":8,"endLine":134,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"makeContext","argumentNames":["this"]}
+tileworld_RuleView_findWitnessColRow__P63647.info = {"start":5853,"length":457,"line":171,"column":8,"endLine":180,"endColumn":9,"fileName":"ruleview.ts","functionName":"findWitnessColRow","argumentNames":["this","col","row","editor"]}
-function tileworld_ruleediting_RuleDisplay_makeContext__P13112_mk(s) {
+function tileworld_RuleView_findWitnessColRow__P63647_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_makeContext__P13112, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_findWitnessColRow__P63647, depth: s.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___13442: undefined,
- j___13446: undefined,
+ tmp_4: undefined,
+ whendo___67485: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_showAttributes__P13123(s) {
+function tileworld_RuleView_attrSpIndex__P67039(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28070,209 +26111,143 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.whenDo___13979 = undefined;
- s.begin___13995 = undefined;
- s.end___13996 = undefined;
- s.project___14002 = undefined;
- s.done___14007 = undefined;
- s.x___14077 = undefined;
+ s.i___67455 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 781; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.whenDo___13979 = (r0);
- r0 = (s.whenDo___13979 >= 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- r0 = (s.arg2 + 2);
- s.tmp_1.arg2 = r0;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.arg2;
- s.callLocIdx = 782; s.pc = 15; return s.tmp_2;
- case 15:
- r0 = s.retval;
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 783; s.pc = 14; return s.tmp_1;
- case 14:
- r0 = s.retval;
- s.begin___13995 = (0);
- s.tmp_1 = tileworld_Project_allCnt__P3693_mk(s);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.i___67455 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___67455;
r0 = s.arg0.fields["p"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 784; s.pc = 16; return s.tmp_1;
- case 16:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 - 1);
- s.end___13996 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_projectAttrs__P13124_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.whenDo___13979;
- s.tmp_0.arg2 = s.begin___13995;
- s.tmp_0.arg3 = s.end___13996;
- s.callLocIdx = 785; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.project___14002 = (r0);
- r0 = pxsim_Array__mk();
- s.done___14007 = (r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P14011);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = s.project___14002;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 786; s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 787; s.pc = 19; return s.tmp_2;
- case 19:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != 2);
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_4 = tileworld_RuleView_findWitnessColRow__P3650_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.arg1;
- s.tmp_4.arg2 = s.arg2;
- s.tmp_4.arg3 = true;
- s.callLocIdx = 788; s.pc = 20; return s.tmp_4;
- case 20:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_7 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.arg1;
+ s.tmp_7.arg2 = s.i___67455;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 137; s.pc = 6; return s.tmp_7;
+ case 6:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 != -1);
- case 2:
- // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 == s.arg2);
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 3; continue; }
- s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.arg1;
- r0 = (s.arg2 + 2);
- s.tmp_6.arg2 = r0;
- s.tmp_7 = r0 = globals.movedImages___3789;
- s.tmp_9 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_9.arg0 = r0;
- s.tmp_9.arg1 = s.whenDo___13979;
- s.callLocIdx = 789; s.pc = 22; return s.tmp_9;
- case 22:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8);
- s.tmp_6.arg3 = r0;
- s.callLocIdx = 790; s.pc = 21; return s.tmp_6;
- case 21:
- r0 = s.retval;
+ if (!r0) { step = 2; continue; }
+ r0 = s.i___67455;
+ { step = 5; continue; }
+ case 2:
case 3:
+ r0 = (s.i___67455 + 1);
+ s.i___67455 = (r0);
+ { step = 1; continue; }
case 4:
- s.tmp_0 = r0 = s.arg3;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
+ r0 = -1;
case 5:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 791; s.pc = 23; return s.tmp_2;
- case 23:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.arg1);
- 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:
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = true;
- s.callLocIdx = 792; s.pc = 24; return s.tmp_6;
- case 24:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 2);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleView_attrSpIndex__P67039.info = {"start":5602,"length":241,"line":163,"column":8,"endLine":169,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrSpIndex","argumentNames":["this","whendo","a"]}
+
+function tileworld_RuleView_attrSpIndex__P67039_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_attrSpIndex__P67039, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ i___67455: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleView_attrBgIndex__P67038(s) {
+let r0 = s.r0, 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___67434 = 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, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.i___67434 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___67434;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 == s.arg2);
- case 8:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_pxtrt.mklocRef();
- s.x___14077 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.x___14077, 0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 22;
- s.tmp_0.arg3 = 160;
- s.tmp_0.arg4 = 16;
- s.tmp_0.arg5 = 0;
- s.callLocIdx = 793; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(3, inline__P14087);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.whenDo___13979);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.x___14077);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["all"];
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = s.tmp_2.fields["allImages"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 798; s.pc = 26; return s.tmp_1;
- case 26:
+ 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_7 = tileworld_RuleView_getSetBgAttr__P63644_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.arg1;
+ s.tmp_7.arg2 = s.i___67434;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 135; s.pc = 6; return s.tmp_7;
+ case 6:
r0 = s.retval;
- case 9:
- case 10:
- case 11:
- case 12:
- r0 = undefined;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 == s.arg2);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 2; continue; }
+ r0 = s.i___67434;
+ { step = 5; continue; }
+ case 2:
+ case 3:
+ r0 = (s.i___67434 + 1);
+ s.i___67434 = (r0);
+ { step = 1; continue; }
+ case 4:
+ r0 = -1;
+ case 5:
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showAttributes__P13123.info = {"start":12776,"length":1668,"line":292,"column":8,"endLine":323,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]}
+tileworld_RuleView_attrBgIndex__P67038.info = {"start":5353,"length":239,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrBgIndex","argumentNames":["this","whendo","a"]}
-function tileworld_ruleediting_RuleDisplay_showAttributes__P13123_mk(s) {
+function tileworld_RuleView_attrBgIndex__P67038_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showAttributes__P13123, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_attrBgIndex__P67038, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -28282,25 +26257,17 @@ function tileworld_ruleediting_RuleDisplay_showAttributes__P13123_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- whenDo___13979: undefined,
- begin___13995: undefined,
- end___13996: undefined,
- project___14002: undefined,
- done___14007: undefined,
- x___14077: undefined,
+ i___67434: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
- arg3: undefined,
} }
-function inline__P14011(s) {
+function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28310,57 +26277,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___14013 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.arg0, undefined);
- s.i___14013 = (r0);
- s.tmp_0 = r0 = globals.screen___1799;
- r0 = pxsim_Array__getAt(globals.attrImages___3793, s.i___14013);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = 1;
+ { step = 4; continue; }
+ case 1:
+ r0 = (s.arg1 == 4);
s.tmp_1 = r0;
- r0 = (s.caps[0] << 4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 8);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = 3;
+ { step = 3; continue; }
+ case 2:
+ r0 = 2;
+ case 3:
+ // jmp value (already in r0)
s.tmp_2 = r0;
- r0 = (s.caps[1] + 2);
- s.tmp_7 = r0;
- r0 = (s.tmp_7 << 4);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 8);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + 6);
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_4);
- r0 = undefined;
+ r0 = s.tmp_2;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-inline__P14011.info = {"start":13280,"length":192,"line":301,"column":32,"endLine":304,"endColumn":17,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["a"]}
+tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107.info = {"start":6121,"length":79,"line":145,"column":8,"endLine":145,"endColumn":87,"fileName":"ruledisplay.ts","functionName":"rowToRowCoord","argumentNames":["this","lr"]}
-function inline__P14011_mk(s) {
+function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14011, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- i___14013: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P14087(s) {
+function tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28370,73 +26339,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.a___14090 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.caps[0].fields["all"];
- s.tmp_0.arg0 = r0;
- r0 = s.caps[0].fields["rule"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.caps[1];
- s.tmp_0.arg3 = s.arg1;
- s.tmp_0.arg4 = 65535;
- s.callLocIdx = 795; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.a___14090 = (r0);
- r0 = (s.a___14090 != 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg1 % 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = 1;
- s.tmp_1.arg3 = s.arg0;
- s.callLocIdx = 796; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 1;
- s.tmp_1 = r0 = globals.attrImages___3793;
- r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.a___14090, undefined);
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 797; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = r0 = s.caps[2];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = 2;
+ { step = 2; continue; }
case 1:
+ r0 = s.arg1;
case 2:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
return leave(s, r0)
default: oops()
} } }
-inline__P14087.info = {"start":14039,"length":361,"line":313,"column":49,"endLine":320,"endColumn":21,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["image","i"]}
+tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106.info = {"start":6044,"length":68,"line":144,"column":8,"endLine":144,"endColumn":76,"fileName":"ruledisplay.ts","functionName":"rowToColCoord","argumentNames":["this","lr"]}
-function inline__P14087_mk(s) {
+function tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14087, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- a___14090: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -28445,7 +26381,7 @@ function inline__P14087_mk(s) {
-function tileworld_ruleediting_RuleDisplay_projectAttrs__P13124(s) {
+function tileworld_ruleediting_RuleEditor_tryEditCommand__P74504(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28455,120 +26391,211 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.res___14123 = undefined;
- s.i___14125 = undefined;
- s.a___14131 = undefined;
+ s.row___75820 = undefined;
+ s.cmd___75827 = undefined;
+ s.len___75831 = undefined;
+ s.newCol___75854 = undefined;
+ s.newRow___75857 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_1 = tileworld_RuleView_whendoTrue__P3661_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 799; s.pc = 16; return s.tmp_1;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_1 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = true;
+ s.callLocIdx = 1092; s.pc = 16; return s.tmp_1;
case 16:
r0 = s.retval;
s.tmp_0 = r0;
+ r0 = (s.tmp_0 - 2);
+ s.row___75820 = (r0);
+ r0 = (s.row___75820 > 4);
+ s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
+ r0 = false;
{ step = 15; continue; }
case 1:
case 2:
- r0 = pxsim_Array__mk();
- s.res___14123 = (r0);
- s.i___14125 = (s.arg2);
- case 3:
- r0 = (s.i___14125 <= s.arg3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_1 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_1.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.arg1;
- s.tmp_1.arg3 = s.i___14125;
- s.tmp_1.arg4 = 65535;
- s.callLocIdx = 800; s.pc = 17; return s.tmp_1;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1093; s.pc = 17; return s.tmp_2;
case 17:
r0 = s.retval;
- s.a___14131 = (r0);
- r0 = (s.a___14131 != 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 6);
+ s.cmd___75827 = (r0);
+ r0 = s.arg0.fields["commandLengths"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.row___75820);
+ s.len___75831 = (r0);
+ r0 = (s.len___75831 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 4; continue; }
+ if (!r0) { step = 3; continue; }
r0 = s.tmp_0;
- { step = 5; continue; }
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.cmd___75827 >= s.len___75831);
case 4:
- r0 = pxsim_Array_.indexOf(s.res___14123, s.a___14131, undefined);
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 5; continue; }
+ r0 = false;
+ { step = 15; continue; }
case 5:
- // jmp value (already in r0)
+ case 6:
+ r0 = (s.arg0).fields["menu"] = (3);
+ r0 = s.arg0.fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.row___75820;
+ s.callLocIdx = 1094; s.pc = 18; return s.tmp_0;
+ case 18:
+ r0 = s.retval;
+ s.newCol___75854 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.row___75820;
+ s.callLocIdx = 1095; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.newRow___75857 = (r0);
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P73105_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.newCol___75854;
+ s.tmp_3.arg2 = s.newRow___75857;
+ s.callLocIdx = 1096; s.pc = 20; return s.tmp_3;
+ case 20:
+ r0 = s.retval;
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 6; continue; }
- r0 = pxsim_Array__push(s.res___14123, s.a___14131);
- case 6:
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = false;
+ { step = 15; continue; }
case 7:
- r0 = (s.i___14125 + 1);
- s.i___14125 = (r0);
- { step = 3; continue; }
case 8:
- r0 = pxsim_Array__length(s.res___14123);
+ s.tmp_4 = r0 = s.arg0;
+ s.tmp_6 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_6.arg0 = r0;
+ s.tmp_6.arg1 = s.newCol___75854;
+ s.tmp_6.arg2 = s.newRow___75857;
+ s.callLocIdx = 1097; s.pc = 21; return s.tmp_6;
+ case 21:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["whenDo"] = (s.tmp_5);
+ r0 = s.arg0.fields["whenDo"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- r0 = pxsim_Array__length(s.res___14123);
+ if (!r0) { step = 9; continue; }
+ s.tmp_2 = r0 = s.arg0;
+ s.tmp_4 = tileworld_RuleView_makeWhenDo__P63641_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.newCol___75854;
+ s.tmp_4.arg2 = s.newRow___75857;
+ s.callLocIdx = 1098; s.pc = 22; return s.tmp_4;
+ case 22:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 == 1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 9; continue; }
- r0 = s.tmp_2;
- { step = 10; continue; }
+ r0 = (s.tmp_2).fields["whenDo"] = (s.tmp_3);
case 9:
- r0 = pxsim_Array_.indexOf(s.res___14123, 3, undefined);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 != -1);
case 10:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1099; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["currentCommand"] = (s.cmd___75827);
+ s.tmp_2 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = s.cmd___75827;
+ s.callLocIdx = 1100; s.pc = 24; return s.tmp_2;
+ case 24:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 255);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.row___75820;
+ s.tmp_3.arg2 = s.newCol___75854;
+ s.tmp_3.arg3 = s.newRow___75857;
+ s.tmp_3.arg4 = false;
+ s.callLocIdx = 1101; s.pc = 25; return s.tmp_3;
+ case 25:
+ r0 = s.retval;
+ r0 = s.arg0.fields["tokens"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__length(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 11; continue; }
- r0 = pxsim_Array__mk();
- s.tmp_6 = r0;
- r0 = pxsim_Array__push(s.tmp_6, 3);
- r0 = s.tmp_6;
- { step = 15; continue; }
+ r0 = s.arg0.fields["tokens"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_3, 0);
{ step = 12; continue; }
case 11:
- r0 = pxsim_Array__mk();
- { step = 15; continue; }
+ r0 = 255;
case 12:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.tmp_5 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = s.tmp_4;
+ s.tmp_5.arg2 = 255;
+ s.tmp_5.arg3 = true;
+ s.callLocIdx = 1102; s.pc = 26; return s.tmp_5;
+ case 26:
+ r0 = s.retval;
+ { step = 14; continue; }
case 13:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["tokens"] = (s.tmp_1);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1103; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
case 14:
- r0 = s.res___14123;
+ r0 = true;
case 15:
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_projectAttrs__P13124.info = {"start":14454,"length":647,"line":325,"column":8,"endLine":340,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"projectAttrs","argumentNames":["this","whendo","begin","end"]}
+tileworld_ruleediting_RuleEditor_tryEditCommand__P74504.info = {"start":12542,"length":1435,"line":269,"column":8,"endLine":301,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"tryEditCommand","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_projectAttrs__P13124_mk(s) {
+function tileworld_ruleediting_RuleEditor_tryEditCommand__P74504_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_tryEditCommand__P74504, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -28577,20 +26604,19 @@ function tileworld_ruleediting_RuleDisplay_projectAttrs__P13124_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- res___14123: undefined,
- i___14125: undefined,
- a___14131: undefined,
+ row___75820: undefined,
+ cmd___75827: undefined,
+ len___75831: undefined,
+ newCol___75854: undefined,
+ newRow___75857: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_RuleView_whendoTrue__P3661(s) {
+function tileworld_ruleediting_RuleViewDisplay_constructor__P63799(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28600,45 +26626,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7773 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7773 = (r0);
- s.tmp_0 = tileworld_isWhenDoTrue__P3624_mk(s);
- s.tmp_0.arg0 = s.wd___7773;
- s.callLocIdx = 149; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["baseRule"] = (s.arg2);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P63795_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 805; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 806; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 807; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = tileworld_RuleView_getDerivedRules__P63630_mk(s);
+ r0 = s.arg0.fields["baseRule"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 808; s.pc = 4; return s.tmp_2;
+ case 4:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["ruleViews"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P74232);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 815; s.pc = 5; return s.tmp_1;
+ case 5:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P74259);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 818; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_whendoTrue__P3661.info = {"start":9153,"length":126,"line":262,"column":8,"endLine":265,"endColumn":9,"fileName":"ruleview.ts","functionName":"whendoTrue","argumentNames":["this","whendo"]}
+tileworld_ruleediting_RuleViewDisplay_constructor__P63799.info = {"start":450,"length":736,"line":8,"column":8,"endLine":24,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["this","p","baseRule"]}
-function tileworld_RuleView_whendoTrue__P3661_mk(s) {
+function tileworld_ruleediting_RuleViewDisplay_constructor__P63799_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_whendoTrue__P3661, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleViewDisplay_constructor__P63799, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- wd___7773: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_isWhenDoTrue__P3624(s) {
+function inline__P74232(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28648,73 +26716,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___6607 = undefined;
- s.i___6621 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.i___6607 = (0);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 809; s.pc = 7; return s.tmp_2;
+ case 7:
+ r0 = s.retval;
+ 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:
- s.tmp_1 = r0 = s.i___6607;
- r0 = s.arg0.fields["bgPred"];
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 810; s.pc = 8; return s.tmp_4;
+ case 8:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.length(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- r0 = s.arg0.fields["bgPred"];
- s.tmp_5 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___6607);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 2; continue; }
- r0 = false;
- { step = 9; continue; }
+ r0 = (s.tmp_3 >= 1);
case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_5;
+ { step = 4; continue; }
case 3:
- r0 = (s.i___6607 + 1);
- s.i___6607 = (r0);
- { step = 1; continue; }
+ s.tmp_7 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_7.arg0 = s.caps[0];
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 811; s.pc = 9; return s.tmp_7;
+ case 9:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 <= 6);
case 4:
- s.i___6621 = (0);
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 5; continue; }
+ s.tmp_9 = tileworld_RuleView_setTransforms__P63633_mk(s);
+ r0 = s.caps[0].fields["baseRule"];
+ s.tmp_9.arg0 = r0;
+ s.tmp_10 = r0 = globals.transformMap___74201;
+ s.tmp_13 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_13.arg0 = s.caps[0];
+ s.tmp_13.arg1 = true;
+ s.callLocIdx = 812; s.pc = 11; return s.tmp_13;
+ case 11:
+ r0 = s.retval;
+ s.tmp_12 = r0;
+ r0 = (s.tmp_12 - 1);
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_10, s.tmp_11);
+ s.tmp_9.arg1 = r0;
+ s.callLocIdx = 813; s.pc = 10; return s.tmp_9;
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.caps[0];
+ s.tmp_2 = tileworld_RuleView_getDerivedRules__P63630_mk(s);
+ r0 = s.caps[0].fields["baseRule"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 814; s.pc = 12; return s.tmp_2;
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["ruleViews"] = (s.tmp_1);
case 5:
- s.tmp_1 = r0 = s.i___6621;
- r0 = s.arg0.fields["spPred"];
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.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 = 8; continue; }
- r0 = s.arg0.fields["spPred"];
- s.tmp_5 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___6621);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 6; continue; }
- r0 = false;
- { step = 9; continue; }
case 6:
- case 7:
- r0 = (s.i___6621 + 1);
- s.i___6621 = (r0);
- { step = 5; continue; }
- case 8:
- r0 = true;
- case 9:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_isWhenDoTrue__P3624.info = {"start":7342,"length":299,"line":194,"column":4,"endLine":202,"endColumn":5,"fileName":"rule.ts","functionName":"isWhenDoTrue","argumentNames":["wd"]}
+inline__P74232.info = {"start":719,"length":262,"line":13,"column":64,"endLine":18,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]}
-function tileworld_isWhenDoTrue__P3624_mk(s) {
+function inline__P74232_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_isWhenDoTrue__P3624, depth: s.depth + 1,
+ parent: s, fn: inline__P74232, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -28722,16 +26805,21 @@ function tileworld_isWhenDoTrue__P3624_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- i___6607: undefined,
- i___6621: undefined,
- arg0: 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,
} }
-function tileworld_RuleView_getDirFromRule__P3642(s) {
+function inline__P74259(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28741,98 +26829,77 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rt___7178 = undefined;
- s.wd___7187 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
- s.rt___7178 = (r0);
- r0 = (s.rt___7178 == 2);
- 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 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.caps[0].fields["baseRule"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 816; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.rt___7178 == 1);
- case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 5; continue; }
- s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 2;
- s.tmp_2.arg2 = 2;
- s.callLocIdx = 116; s.pc = 10; return s.tmp_2;
- case 10:
- r0 = s.retval;
- s.wd___7187 = (r0);
- r0 = (s.wd___7187 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = 6;
- { step = 4; continue; }
- case 3:
- s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.wd___7187;
- s.callLocIdx = 117; s.pc = 11; return s.tmp_1;
- case 11:
r0 = s.retval;
- case 4:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- { step = 9; continue; }
- { step = 8; continue; }
- case 5:
- r0 = (s.rt___7178 == 0);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 6; continue; }
- s.tmp_4 = tileworld_RuleView_getRuleArg__P3640_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 118; s.pc = 12; return s.tmp_4;
- case 12:
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 817; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
- { step = 9; continue; }
- case 6:
- case 7:
- case 8:
- r0 = 6;
- case 9:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P74259.info = {"start":1048,"length":126,"line":19,"column":64,"endLine":23,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P74259_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P74259, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleView_setTransforms__P63633(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["transforms"] = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getDirFromRule__P3642.info = {"start":2246,"length":408,"line":74,"column":8,"endLine":83,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDirFromRule","argumentNames":["this"]}
+tileworld_RuleView_setTransforms__P63633.info = {"start":1627,"length":77,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruleview.ts","functionName":"setTransforms","argumentNames":["this","n"]}
-function tileworld_RuleView_getDirFromRule__P3642_mk(s) {
+function tileworld_RuleView_setTransforms__P63633_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getDirFromRule__P3642, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_setTransforms__P63633, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- rt___7178: undefined,
- wd___7187: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_RuleView_getRuleArg__P3640(s) {
+function tileworld_RuleView_getDerivedRules__P63630(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28842,67 +26909,101 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ret___67053 = undefined;
+ s.rv___67064 = undefined;
+ s.t___67082 = undefined;
+ s.rv___67088 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["rid"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
+ s.ret___67053 = (r0);
r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleArg"];
- { step = 4; continue; }
+ r0 = r0.fields["transforms"];
+ s.tmp_0 = r0;
+ 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(5, s.tmp_0);
+ if (r0) { step = 4; continue; }
+ r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
case 1:
+ case 2:
+ case 3:
+ case 4:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C63627_VT);
+ s.tmp_1 = r0;
+ s.tmp_2 = tileworld_RuleView_constructor__P63628_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = -1;
r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 0);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 2; continue; }
- s.tmp_4 = tileworld_flipRotateDir__P3621_mk(s);
+ s.tmp_2.arg3 = r0;
+ s.callLocIdx = 113; s.pc = 9; return s.tmp_2;
+ case 9:
+ r0 = s.retval;
+ s.rv___67064 = (s.tmp_1);
r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleArg"];
- s.tmp_4.arg0 = r0;
- r0 = s.arg0.fields["view"];
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 114; s.pc = 5; return s.tmp_4;
+ r0 = r0.fields["transforms"];
+ s.tmp_0 = r0;
+ r0 = (s.rv___67064).fields["view"] = (s.tmp_0);
+ r0 = pxsim_Array__push(s.ret___67053, s.rv___67064);
+ { step = 8; continue; }
case 5:
- r0 = s.retval;
- { step = 3; continue; }
- case 2:
+ s.t___67082 = (3);
+ case 6:
+ r0 = (s.t___67082 != 6);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C63627_VT);
+ s.tmp_1 = r0;
+ s.tmp_2 = tileworld_RuleView_constructor__P63628_mk(s);
+ s.tmp_2.arg0 = s.tmp_1;
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = -1;
r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleArg"];
- case 3:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
- case 4:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = s.tmp_6;
+ s.tmp_2.arg3 = r0;
+ s.callLocIdx = 114; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
+ s.rv___67088 = (s.tmp_1);
+ r0 = (s.rv___67088).fields["view"] = (s.t___67082);
+ r0 = pxsim_Array__push(s.ret___67053, s.rv___67088);
+ r0 = (s.t___67082 + 1);
+ s.t___67082 = (r0);
+ { step = 6; continue; }
+ case 7:
+ case 8:
+ r0 = s.ret___67053;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getRuleArg__P3640.info = {"start":1949,"length":202,"line":65,"column":8,"endLine":68,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleArg","argumentNames":["this"]}
+tileworld_RuleView_getDerivedRules__P63630.info = {"start":479,"length":920,"line":14,"column":8,"endLine":37,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDerivedRules","argumentNames":["this"]}
-function tileworld_RuleView_getRuleArg__P3640_mk(s) {
+function tileworld_RuleView_getDerivedRules__P63630_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getRuleArg__P3640, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getDerivedRules__P63630, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ ret___67053: undefined,
+ rv___67064: undefined,
+ t___67082: undefined,
+ rv___67088: undefined,
arg0: undefined,
} }
@@ -28910,7 +27011,7 @@ function tileworld_RuleView_getRuleArg__P3640_mk(s) {
-function tileworld_ruleediting_RuleDisplay_showRuleType__P13110(s) {
+function tileworld_RuleView_constructor__P63628(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -28920,168 +27021,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.selCol___13302 = undefined;
- s.ax___13319 = undefined;
- s.ay___13328 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.selCol___13302 = (11);
- r0 = pxsim_numops_toBoolDecr(s.arg5);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg3;
- s.tmp_0.arg2 = s.arg4;
- s.tmp_1 = tileworld_ruleediting_RuleDisplay__C3797_v3_1_mk(s);
- s.tmp_1.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage;
- s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 716; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- case 1:
- case 2:
- r0 = (s.arg1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg3;
- s.tmp_1.arg2 = s.arg4;
- r0 = pxsim_Array__getAt(globals.movedImages___3789, s.arg2);
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 717; s.pc = 19; return s.tmp_1;
- case 19:
- r0 = s.retval;
- { step = 16; continue; }
- case 3:
- r0 = (s.arg1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- r0 = (s.arg2 == 0);
- 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.arg2 == 2);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(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_3 = r0;
- r0 = s.tmp_3;
- case 7:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.ax___13319 = (s.tmp_4);
- r0 = (s.arg2 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- r0 = -1;
- { step = 11; continue; }
- case 8:
- r0 = (s.arg2 == 1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 9; continue; }
- r0 = 1;
- { step = 10; continue; }
- case 9:
- r0 = 0;
- case 10:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- case 11:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.ay___13328 = (s.tmp_3);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCollision__P13109_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg3 - s.ax___13319);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg4 - s.ay___13328);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg2;
- r0 = pxsim_Array__getAt(globals.moveImages___3788, s.arg2);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = s.arg1;
- s.callLocIdx = 718; s.pc = 20; return s.tmp_0;
- case 20:
- r0 = s.retval;
- { step = 15; continue; }
- case 12:
- r0 = (s.arg1 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg3;
- s.tmp_1.arg2 = s.arg4;
- s.tmp_1.arg3 = globals.negate___3765;
- s.callLocIdx = 719; s.pc = 21; return s.tmp_1;
- case 21:
- r0 = s.retval;
- case 13:
- case 14:
- case 15:
- case 16:
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ r0 = (s.arg0).fields["rid"] = (s.arg2);
+ r0 = (s.arg0).fields["r"] = (s.arg3);
+ r0 = (s.arg0).fields["view"] = (0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showRuleType__P13110.info = {"start":3598,"length":730,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showRuleType","argumentNames":["this","rt","rd","x","y","center"]}
+tileworld_RuleView_constructor__P63628.info = {"start":319,"length":81,"line":7,"column":8,"endLine":8,"endColumn":9,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["this","p","rid","r"]}
-function tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s) {
+function tileworld_RuleView_constructor__P63628_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showRuleType__P13110, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_constructor__P63628, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- selCol___13302: undefined,
- ax___13319: undefined,
- ay___13328: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
- arg4: undefined,
- arg5: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_showCollision__P13109(s) {
+function tileworld_Project_saveRule__P63697(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29091,124 +27065,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.x___13264 = undefined;
- s.y___13273 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg0).fields["collideCol"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg2 - 2);
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg1.fields["rid"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["collideRow"] = (s.tmp_1);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = globals.collisionSprite___3725;
- s.callLocIdx = 714; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- r0 = (s.arg3 == 0);
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = 7;
- { step = 4; continue; }
- case 1:
- r0 = (s.arg3 == 2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = -7;
{ step = 3; continue; }
+ case 1:
case 2:
- r0 = 0;
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
+ s.tmp_2 = tileworld_Project_storeRule__P68102_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ r0 = s.arg0.fields["prefix"];
+ s.tmp_2.arg1 = r0;
+ r0 = s.arg1.fields["rid"];
+ s.tmp_2.arg2 = r0;
+ r0 = s.arg1.fields["r"];
+ s.tmp_2.arg3 = r0;
+ s.callLocIdx = 178; s.pc = 4; return s.tmp_2;
case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.x___13264 = (s.tmp_3);
- r0 = (s.arg3 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = 7;
- { step = 8; continue; }
- case 5:
- r0 = (s.arg3 == 3);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 6; continue; }
- r0 = -7;
- { step = 7; continue; }
- case 6:
- r0 = 0;
- case 7:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- case 8:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.y___13273 = (s.tmp_3);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImageAbs__P12697_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + s.x___13264);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 6);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.y___13273);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg4;
- s.callLocIdx = 715; s.pc = 10; return s.tmp_0;
- case 10:
r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_showCollision__P13109.info = {"start":3076,"length":512,"line":78,"column":8,"endLine":85,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCollision","argumentNames":["this","col","row","dir","arrowImg","rt"]}
+tileworld_Project_saveRule__P63697.info = {"start":4061,"length":178,"line":118,"column":8,"endLine":122,"endColumn":9,"fileName":"project.ts","functionName":"saveRule","argumentNames":["this","rv"]}
-function tileworld_ruleediting_RuleDisplay_showCollision__P13109_mk(s) {
+function tileworld_Project_saveRule__P63697_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_showCollision__P13109, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_saveRule__P63697, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- x___13264: undefined,
- y___13273: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
- arg5: undefined,
} }
-function tileworld_RuleVisualsBase_drawImageAbs__P12697(s) {
+function tileworld_RuleView_getBaseRule__P63629(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29220,36 +27127,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, s.arg3, s.arg1, s.arg2);
- r0 = undefined;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_drawImageAbs__P12697.info = {"start":4505,"length":120,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImageAbs","argumentNames":["this","x","y","img"]}
+tileworld_RuleView_getBaseRule__P63629.info = {"start":410,"length":59,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"ruleview.ts","functionName":"getBaseRule","argumentNames":["this"]}
-function tileworld_RuleVisualsBase_drawImageAbs__P12697_mk(s) {
+function tileworld_RuleView_getBaseRule__P63629_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_drawImageAbs__P12697, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getBaseRule__P63629, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_centerImage__P13105(s) {
+function tileworld_Project_storeRule__P68102(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29259,31 +27159,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___68363 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = globals.ok___3730;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_packRule__P63624_mk(s);
+ s.tmp_0.arg0 = s.arg3;
+ r0 = s.arg0.fields["_backgroundsI"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__length(s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ r0 = s.arg0.fields["_spritesI"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__length(s.tmp_2);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 197; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.buf___68363 = (r0);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 3);
+ pxsim_String__stringConv(s.arg1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg1) + ""; }
+ case 3:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ if ((globals.RuleKey___68296) && (globals.RuleKey___68296).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(globals.RuleKey___68296);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.RuleKey___68296) + ""; }
+ case 4:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 5:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.arg2);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_5);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.buf___68363;
+ s.callLocIdx = 198; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = s.buf___68363;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_centerImage__P13105.info = {"start":1937,"length":58,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"centerImage","argumentNames":["this"]}
+tileworld_Project_storeRule__P68102.info = {"start":5832,"length":240,"line":166,"column":8,"endLine":170,"endColumn":9,"fileName":"project.ts","functionName":"storeRule","argumentNames":["this","prefix","rid","rule"]}
-function tileworld_ruleediting_RuleDisplay_centerImage__P13105_mk(s) {
+function tileworld_Project_storeRule__P68102_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_centerImage__P13105, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_storeRule__P68102, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ buf___68363: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_ruleediting_RuleEditor_saveAndPop__P14506(s) {
+function tileworld_packRule__P63624(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29293,44 +27269,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.wds___66847 = undefined;
+ s.bytes___66862 = undefined;
+ s.i___66877 = 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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.arg0.fields["p"];
+ s.tmp_0 = helpers_arrayFilter__P60100_mk(s);
+ r0 = s.arg0.fields["whenDo"];
s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1023; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0.arg1 = inline__P66851;
+ s.callLocIdx = 85; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1024; s.pc = 2; return s.tmp_0;
+ s.wds___66847 = (r0);
+ globals.bitIndex___66709 = (0);
+ r0 = pxsim_Array__length(s.wds___66847);
+ s.tmp_1 = r0;
+ r0 = (s.arg1 >> 2);
+ s.tmp_4 = r0;
+ r0 = (2 + s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.arg2 >> 2);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_3 + s.tmp_5);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 * s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = (2 + s.tmp_0);
+ s.bytes___66862 = (r0);
+ s.i___66877 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___66877;
+ r0 = pxsim_Array__length(s.wds___66847);
+ 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 = s.bytes___66862;
+ r0 = pxsim_Array__getAt(s.wds___66847, s.i___66877);
+ r0 = r0.fields["commandsLen"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 << 1);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 + s.tmp_4);
+ s.bytes___66862 = (r0);
+ r0 = (s.i___66877 + 1);
+ s.i___66877 = (r0);
+ { step = 1; continue; }
case 2:
+ r0 = pxsim.control.createBuffer(s.bytes___66862);
+ globals.ruleBuf___66707 = (r0);
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["ruleType"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 86; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["ruleArg"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 87; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["transforms"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 88; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = pxsim_Array__length(s.wds___66847);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 89; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(2, inline__P66912);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.wds___66847;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 96; s.pc = 8; return s.tmp_1;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = s.wds___66847;
+ s.tmp_0.arg1 = inline__P66938;
+ s.callLocIdx = 98; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ r0 = globals.ruleBuf___66707;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_saveAndPop__P14506.info = {"start":8514,"length":101,"line":179,"column":8,"endLine":182,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"saveAndPop","argumentNames":["this"]}
+tileworld_packRule__P63624.info = {"start":10502,"length":1227,"line":297,"column":4,"endLine":325,"endColumn":5,"fileName":"rule.ts","functionName":"packRule","argumentNames":["r","bgLen","spLen"]}
-function tileworld_ruleediting_RuleEditor_saveAndPop__P14506_mk(s) {
+function tileworld_packRule__P63624_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_saveAndPop__P14506, depth: s.depth + 1,
+ parent: s, fn: tileworld_packRule__P63624, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ wds___66847: undefined,
+ bytes___66862: undefined,
+ i___66877: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_RuleView_getWitnessDirection__P3651(s) {
+function inline__P66851(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29340,74 +27407,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.dir___7517 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- r0 = r0.fields["dir"];
- s.dir___7517 = (r0);
- r0 = s.arg0.fields["rid"];
+ r0 = s.arg0.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
+ r0 = (s.tmp_1 > 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = (s.dir___7517 >= 4);
- case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- r0 = s.dir___7517;
- { step = 4; continue; }
+ s.tmp_4 = tileworld_isWhenDoTrue__P63621_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 84; s.pc = 3; return s.tmp_4;
case 3:
- s.tmp_3 = tileworld_flipRotateDir__P3621_mk(s);
- s.tmp_3.arg0 = s.dir___7517;
- r0 = s.arg0.fields["view"];
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 141; s.pc = 5; return s.tmp_3;
- case 5:
r0 = s.retval;
- case 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_4 = r0;
- r0 = s.tmp_4;
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getWitnessDirection__P3651.info = {"start":6320,"length":192,"line":182,"column":8,"endLine":185,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWitnessDirection","argumentNames":["this","wdid"]}
+inline__P66851.info = {"start":10674,"length":45,"line":299,"column":34,"endLine":299,"endColumn":79,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
-function tileworld_RuleView_getWitnessDirection__P3651_mk(s) {
+function inline__P66851_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getWitnessDirection__P3651, depth: s.depth + 1,
+ parent: s, fn: inline__P66851, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- dir___7517: undefined,
+ tmp_5: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_RuleView_getWhenDo__P3643(s) {
+function inline__P66912(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29417,123 +27466,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ncol___7222 = undefined;
- s.nrow___7227 = undefined;
- s.whendo___7236 = 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, tileworld_RuleView__C3630_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);
- r0 = pxsim_pxtrt.mklocRef();
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.arg2);
- s.arg2 = (s.tmp_1);
- r0 = s.arg0.fields["rid"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == -1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_4 = tileworld_transformCol__P3622_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.arg1);
- s.tmp_4.arg0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_4.arg1 = r0;
- s.tmp_5 = tileworld_RuleView_rawView__P7044_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 119; s.pc = 7; return s.tmp_5;
- case 7:
- r0 = s.retval;
- s.tmp_4.arg2 = r0;
- s.callLocIdx = 120; s.pc = 6; return s.tmp_4;
- case 6:
- r0 = s.retval;
- s.ncol___7222 = (r0);
- s.tmp_0 = tileworld_transformRow__P3623_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["col"];
s.tmp_0.arg0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.arg1);
- s.tmp_0.arg1 = r0;
- s.tmp_1 = tileworld_RuleView_rawView__P7044_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 121; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 122; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.nrow___7227 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.arg1, s.ncol___7222);
- r0 = pxsim_pxtrt_stlocRef(s.arg2, s.nrow___7227);
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 90; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["row"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 91; s.pc = 2; return s.tmp_0;
case 2:
- r0 = pxsim_pxtcore_mkAction(2, inline__P7241);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
- s.tmp_1 = helpers_arrayFind__P106_mk(s);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 123; s.pc = 10; return s.tmp_1;
- case 10:
r0 = s.retval;
- s.whendo___7236 = (r0);
- r0 = (s.whendo___7236 == null);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = -1;
- { step = 5; continue; }
- { step = 4; continue; }
+ s.tmp_0 = tileworld_writeBufRaw__P66805_mk(s);
+ r0 = s.arg0.fields["bgPred"];
+ s.tmp_0.arg0 = r0;
+ r0 = (s.caps[0] >> 2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 92; s.pc = 3; return s.tmp_0;
case 3:
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_1 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_1, s.whendo___7236, undefined);
- { step = 5; continue; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBufRaw__P66805_mk(s);
+ r0 = s.arg0.fields["spPred"];
+ s.tmp_0.arg0 = r0;
+ r0 = (s.caps[1] >> 2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 93; s.pc = 4; return s.tmp_0;
case 4:
- r0 = undefined;
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["dir"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 94; s.pc = 5; return s.tmp_0;
case 5:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_writeBuf__P66799_mk(s);
+ r0 = s.arg0.fields["commandsLen"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 95; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getWhenDo__P3643.info = {"start":2903,"length":505,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDo","argumentNames":["this","col","row"]}
+inline__P66912.info = {"start":11133,"length":370,"line":310,"column":20,"endLine":317,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
-function tileworld_RuleView_getWhenDo__P3643_mk(s) {
+function inline__P66912_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getWhenDo__P3643, depth: s.depth + 1,
+ parent: s, fn: inline__P66912, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- ncol___7222: undefined,
- nrow___7227: undefined,
- whendo___7236: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function inline__P7241(s) {
+function inline__P66938(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29547,42 +27547,39 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["col"];
+ r0 = s.arg0.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 == s.tmp_2);
+ 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 = s.arg0.fields["row"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = tileworld_writeBufRaw__P66805_mk(s);
+ r0 = s.arg0.fields["commands"];
+ s.tmp_2.arg0 = r0;
+ r0 = s.arg0.fields["commandsLen"];
s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_4 = r0;
- r0 = (s.tmp_3 == s.tmp_4);
+ r0 = (s.tmp_3 << 1);
+ s.tmp_2.arg1 = r0;
+ s.callLocIdx = 97; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ case 1:
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P7241.info = {"start":3230,"length":36,"line":97,"column":44,"endLine":97,"endColumn":80,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["wd"]}
+inline__P66938.info = {"start":11565,"length":132,"line":319,"column":20,"endLine":323,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
-function inline__P7241_mk(s) {
+function inline__P66938_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P7241, depth: s.depth + 1,
+ parent: s, fn: inline__P66938, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -29590,7 +27587,7 @@ function inline__P7241_mk(s) {
-function helpers_arrayFind__P106(s) {
+function tileworld_writeBufRaw__P66805(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29600,60 +27597,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___27491 = undefined;
- s.i___27494 = undefined;
- s.v___27499 = undefined;
+ s.i___66808 = 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___27491 = (r0);
- s.i___27494 = (0);
+ s.i___66808 = (0);
case 1:
- r0 = (s.i___27494 < s.len___27491);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_Array__getAt(s.arg0, s.i___27494);
- s.v___27499 = (r0);
- s.tmp_1 = lambda_3_mk(s);
- s.tmp_1.argL = s.arg1;
- s.tmp_1.arg0 = s.v___27499;
- s.tmp_1.arg1 = s.i___27494;
- setupLambda(s.tmp_1, s.tmp_1.argL);
- s.callLocIdx = 8; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
+ r0 = (s.i___66808 < s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 2; continue; }
- r0 = s.v___27499;
- { step = 5; continue; }
- case 2:
+ s.tmp_1 = tileworld_writeBuf__P66799_mk(s);
+ r0 = pxsim.BufferMethods.getUint8(s.arg0, s.i___66808);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = 8;
+ s.callLocIdx = 81; s.pc = 3; return s.tmp_1;
case 3:
- r0 = (s.i___27494 + 1);
- s.i___27494 = (r0);
+ r0 = s.retval;
+ r0 = (s.i___66808 + 1);
+ s.i___66808 = (r0);
{ step = 1; continue; }
- case 4:
+ case 2:
r0 = undefined;
- case 5:
return leave(s, r0)
default: oops()
} } }
-helpers_arrayFind__P106.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]}
+tileworld_writeBufRaw__P66805.info = {"start":9945,"length":141,"line":277,"column":4,"endLine":281,"endColumn":5,"fileName":"rule.ts","functionName":"writeBufRaw","argumentNames":["b","cnt"]}
-function helpers_arrayFind__P106_mk(s) {
+function tileworld_writeBufRaw__P66805_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayFind__P106, depth: s.depth + 1,
+ parent: s, fn: tileworld_writeBufRaw__P66805, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- len___27491: undefined,
- i___27494: undefined,
- v___27499: undefined,
+ i___66808: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_writeBuf__P66799(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = tileworld_readWriteBuf__P66710_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 80; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_writeBuf__P66799.info = {"start":9798,"length":87,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"rule.ts","functionName":"writeBuf","argumentNames":["v","bits"]}
+
+function tileworld_writeBuf__P66799_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_writeBuf__P66799, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -29662,7 +27684,7 @@ function helpers_arrayFind__P106_mk(s) {
-function tileworld_transformRow__P3623(s) {
+function tileworld_readWriteBuf__P66710(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29672,100 +27694,132 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.byteIndex___66714 = undefined;
+ s.shift___66722 = undefined;
+ s.byte___66732 = undefined;
+ s.mask___66737 = undefined;
+ s.i___66738 = undefined;
+ s.writeMask___66759 = undefined;
+ s.newVal___66763 = undefined;
+ s.ret___66786 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = (s.arg2 == 0);
+ r0 = (globals.bitIndex___66709 >> 3);
+ s.byteIndex___66714 = (r0);
+ s.tmp_1 = r0 = s.byteIndex___66714;
+ r0 = pxsim.BufferMethods.length(globals.ruleBuf___66707);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >= s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.arg0;
- { step = 13; continue; }
- { step = 12; continue; }
+ s.tmp_3 = control_assert__P60314_mk(s);
+ s.tmp_3.arg0 = false;
+ s.tmp_3.arg1 = 43;
+ s.callLocIdx = 77; s.pc = 11; return s.tmp_3;
+ case 11:
+ r0 = s.retval;
case 1:
- r0 = (s.arg2 == 1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = s.tmp_1;
- { step = 3; continue; }
case 2:
- r0 = (s.arg2 == 2);
+ s.tmp_0 = r0 = globals.bitIndex___66709;
+ r0 = (s.byteIndex___66714 << 3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 - s.tmp_1);
+ s.shift___66722 = (r0);
+ r0 = (s.shift___66722 + s.arg1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 8);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = control_assert__P60314_mk(s);
+ s.tmp_2.arg0 = false;
+ s.tmp_2.arg1 = 44;
+ s.callLocIdx = 78; s.pc = 12; return s.tmp_2;
+ case 12:
+ r0 = s.retval;
case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 6; continue; }
- r0 = (s.arg2 == 1);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 4; continue; }
- r0 = s.arg0;
- { step = 5; continue; }
case 4:
- r0 = (4 - s.arg0);
+ r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___66707, s.byteIndex___66714);
+ s.byte___66732 = (r0);
+ s.mask___66737 = (0);
+ s.i___66738 = (0);
case 5:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- { step = 13; continue; }
- { step = 11; continue; }
- case 6:
- r0 = (s.arg1 - 2);
- s.arg1 = (r0);
- r0 = (s.arg0 - 2);
- s.arg0 = (r0);
- r0 = (s.arg2 == 3);
+ r0 = (s.i___66738 < s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ r0 = (s.mask___66737 << 1);
+ s.tmp_1 = r0;
+ r0 = (1 | s.tmp_1);
+ s.mask___66737 = (r0);
+ r0 = (s.i___66738 + 1);
+ s.i___66738 = (r0);
+ { step = 5; continue; }
+ case 6:
+ r0 = (s.arg0 & s.mask___66737);
+ s.arg0 = (r0);
+ r0 = (s.mask___66737 << s.shift___66722);
+ s.mask___66737 = (r0);
+ r0 = (s.mask___66737 ^ 4294967295);
+ s.writeMask___66759 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
if (!r0) { step = 7; continue; }
- r0 = (0 - s.arg1);
+ r0 = (s.byte___66732 & s.writeMask___66759);
+ s.tmp_0 = r0;
+ r0 = (s.arg0 << s.shift___66722);
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 2);
- { step = 10; continue; }
+ r0 = (s.tmp_0 | s.tmp_1);
+ s.newVal___66763 = (r0);
+ r0 = pxsim.BufferMethods.setUint8(globals.ruleBuf___66707, s.byteIndex___66714, s.newVal___66763);
case 7:
- r0 = (s.arg2 == 5);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 8; continue; }
- r0 = (s.arg1 + 2);
- { step = 9; continue; }
case 8:
- r0 = (0 - s.arg0);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 2);
+ r0 = (globals.bitIndex___66709 + s.arg1);
+ globals.bitIndex___66709 = (r0);
+ r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___66707, s.byteIndex___66714);
+ s.byte___66732 = (r0);
+ r0 = (s.byte___66732 & s.mask___66737);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> s.shift___66722);
+ s.ret___66786 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 9; continue; }
+ s.tmp_0 = control_assert__P60314_mk(s);
+ r0 = (s.ret___66786 == s.arg0);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 42;
+ s.callLocIdx = 79; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
case 9:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
case 10:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
- { step = 13; continue; }
- case 11:
- case 12:
- r0 = undefined;
- case 13:
+ r0 = s.ret___66786;
return leave(s, r0)
default: oops()
} } }
-tileworld_transformRow__P3623.info = {"start":6710,"length":519,"line":178,"column":4,"endLine":189,"endColumn":5,"fileName":"rule.ts","functionName":"transformRow","argumentNames":["row","col","rt"]}
+tileworld_readWriteBuf__P66710.info = {"start":8703,"length":1089,"line":238,"column":4,"endLine":270,"endColumn":5,"fileName":"rule.ts","functionName":"readWriteBuf","argumentNames":["v","bits","write"]}
-function tileworld_transformRow__P3623_mk(s) {
+function tileworld_readWriteBuf__P66710_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_transformRow__P3623, depth: s.depth + 1,
+ parent: s, fn: tileworld_readWriteBuf__P66710, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
+ byteIndex___66714: undefined,
+ shift___66722: undefined,
+ byte___66732: undefined,
+ mask___66737: undefined,
+ i___66738: undefined,
+ writeMask___66759: undefined,
+ newVal___66763: undefined,
+ ret___66786: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -29775,7 +27829,7 @@ function tileworld_transformRow__P3623_mk(s) {
-function tileworld_RuleView_rawView__P7044(s) {
+function control_assert__P60314(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29787,61 +27841,56 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["view"];
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = 5;
- { step = 4; continue; }
- case 1:
- r0 = s.arg0.fields["view"];
+ s.tmp_2 = control_fail__P60315_mk(s);
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg1) + ""; }
+ case 4:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 == 5);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 2; continue; }
- r0 = 3;
- { step = 3; continue; }
- case 2:
- r0 = s.arg0.fields["view"];
+ r0 = pxsim_String__concat("Assertion failed, code=", s.tmp_3);
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 25; s.pc = 3; return s.tmp_2;
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;
- r0 = s.tmp_5;
+ r0 = s.retval;
+ case 1:
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_rawView__P7044.info = {"start":2672,"length":221,"line":85,"column":8,"endLine":88,"endColumn":9,"fileName":"ruleview.ts","functionName":"rawView","argumentNames":["this"]}
+control_assert__P60314.info = {"start":2509,"length":141,"line":83,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"assert","argumentNames":["cond","code"]}
-function tileworld_RuleView_rawView__P7044_mk(s) {
+function control_assert__P60314_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_rawView__P7044, depth: s.depth + 1,
+ parent: s, fn: control_assert__P60314, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_transformCol__P3622(s) {
+function control_fail__P60315(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29853,108 +27902,40 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = (s.arg2 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0;
- { step = 13; continue; }
- { step = 12; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ s.tmp_0.arg0 = "Fatal failure: ";
+ s.callLocIdx = 26; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.arg2 == 1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = s.tmp_1;
- { step = 3; continue; }
+ r0 = s.retval;
+ s.tmp_0 = console_log__P60361_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 27; s.pc = 2; return s.tmp_0;
case 2:
- r0 = (s.arg2 == 2);
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 6; continue; }
- r0 = (s.arg2 == 1);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 4; continue; }
- r0 = (4 - s.arg0);
- { step = 5; continue; }
- case 4:
- r0 = s.arg0;
- case 5:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- { step = 13; continue; }
- { step = 11; continue; }
- case 6:
- r0 = (s.arg1 - 2);
- s.arg1 = (r0);
- r0 = (s.arg0 - 2);
- s.arg0 = (r0);
- r0 = (s.arg2 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = (s.arg1 + 2);
- { step = 10; continue; }
- case 7:
- r0 = (s.arg2 == 5);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 8; continue; }
- r0 = (0 - s.arg1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 2);
- { step = 9; continue; }
- case 8:
- r0 = (0 - s.arg0);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 2);
- case 9:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- case 10:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
- { step = 13; continue; }
- case 11:
- case 12:
+ r0 = s.retval;
+ r0 = pxsim.control.dmesg(s.arg0);
+ r0 = pxsim_pxtrt.panic(108);
r0 = undefined;
- case 13:
return leave(s, r0)
default: oops()
} } }
-tileworld_transformCol__P3622.info = {"start":6142,"length":562,"line":164,"column":4,"endLine":176,"endColumn":5,"fileName":"rule.ts","functionName":"transformCol","argumentNames":["col","row","rt"]}
+control_fail__P60315.info = {"start":2656,"length":155,"line":89,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"fail","argumentNames":["message"]}
-function tileworld_transformCol__P3622_mk(s) {
+function control_fail__P60315_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_transformCol__P3622, depth: s.depth + 1,
+ parent: s, fn: control_fail__P60315, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_RuleView_getRuleType__P3638(s) {
+function console_log__P60361(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29968,20 +27949,24 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
+ s.tmp_0 = console_add__P60357_mk(s);
+ s.tmp_0.arg0 = 1;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 38; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getRuleType__P3638.info = {"start":1783,"length":68,"line":57,"column":8,"endLine":59,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleType","argumentNames":["this"]}
+console_log__P60361.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]}
-function tileworld_RuleView_getRuleType__P3638_mk(s) {
+function console_log__P60361_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getRuleType__P3638, depth: s.depth + 1,
+ parent: s, fn: console_log__P60361, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
} }
@@ -29989,7 +27974,7 @@ function tileworld_RuleView_getRuleType__P3638_mk(s) {
-function tileworld_RuleView_findWitnessColRow__P3650(s) {
+function console_add__P60357(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -29999,102 +27984,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.whendo___7493 = undefined;
+ s.text___87402 = undefined;
+ s.i___87411 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg3;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = (s.arg0 < globals.minPriority___60356);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 5; continue; }
case 1:
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- r0 = -1;
- { step = 9; continue; }
- case 3:
- case 4:
- s.tmp_3 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.arg1;
- s.tmp_3.arg2 = s.arg2;
- s.callLocIdx = 138; s.pc = 10; return s.tmp_3;
- case 10:
+ s.tmp_1 = console_inspect__P60363_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.tmp_1.arg1 = 20;
+ s.callLocIdx = 36; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ s.text___87402 = (r0);
+ if ((s.text___87402) && (s.text___87402).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.text___87402);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.text___87402) + ""; }
+ case 7:
r0 = s.retval;
- s.whendo___7493 = (r0);
- r0 = (s.whendo___7493 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "\n");
+ s.text___87402 = (r0);
+ s.i___87411 = (0);
+ case 3:
+ s.tmp_1 = r0 = s.i___87411;
+ r0 = pxsim_Array__length(globals.listeners___63936);
+ 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 = -1;
- { step = 9; continue; }
- case 5:
- case 6:
- s.tmp_3 = tileworld_RuleView_attrBgIndex__P7046_mk(s);
+ if (!r0) { step = 4; continue; }
+ s.tmp_3 = lambda_3_mk(s);
+ r0 = pxsim_Array__getAt(globals.listeners___63936, s.i___87411);
+ s.tmp_3.argL = r0;
s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.whendo___7493;
- s.tmp_3.arg2 = 1;
- s.callLocIdx = 139; s.pc = 11; return s.tmp_3;
- case 11:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 != -1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 7; continue; }
- r0 = -1;
- { step = 9; continue; }
- case 7:
+ s.tmp_3.arg1 = s.text___87402;
+ setupLambda(s.tmp_3, s.tmp_3.argL);
+ s.callLocIdx = 37; s.pc = 8; return s.tmp_3;
case 8:
- s.tmp_4 = tileworld_RuleView_attrSpIndex__P7047_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = s.whendo___7493;
- s.tmp_4.arg2 = 1;
- s.callLocIdx = 140; s.pc = 12; return s.tmp_4;
- case 12:
r0 = s.retval;
- case 9:
+ r0 = (s.i___87411 + 1);
+ s.i___87411 = (r0);
+ { step = 3; continue; }
+ case 4:
+ case 5:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_findWitnessColRow__P3650.info = {"start":5853,"length":457,"line":171,"column":8,"endLine":180,"endColumn":9,"fileName":"ruleview.ts","functionName":"findWitnessColRow","argumentNames":["this","col","row","editor"]}
+console_add__P60357.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 tileworld_RuleView_findWitnessColRow__P3650_mk(s) {
+function console_add__P60357_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_findWitnessColRow__P3650, depth: s.depth + 1,
+ parent: s, fn: console_add__P60357, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
- whendo___7493: undefined,
+ text___87402: undefined,
+ i___87411: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_RuleView_attrSpIndex__P7047(s) {
+function inline__P63935(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30104,60 +28074,249 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___7463 = 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.__log(s.arg0, s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P63935.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]}
+
+function inline__P63935_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P63935, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function console_inspect__P60363(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.asArr___82469 = undefined;
+ s.asString___82487 = undefined;
+ s.keys___82499 = undefined;
+ s.snipped___82503 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_pxtcore.typeOf(s.arg0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == "string");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.i___7463 = (0);
+ { step = 17; continue; }
+ { step = 16; continue; }
case 1:
- s.tmp_1 = r0 = s.i___7463;
- r0 = s.arg0.fields["p"];
+ r0 = pxsim_pxtcore.typeOf(s.arg0);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == "number");
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 2; continue; }
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_4 = r0;
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 18);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 18:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
+ { step = 17; continue; }
+ { step = 15; continue; }
+ case 2:
+ r0 = pxsim_Array_.isArray(s.arg0);
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 5; continue; }
+ s.asArr___82469 = (s.arg0);
+ r0 = pxsim_Array__length(s.asArr___82469);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 <= s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = helpers_arrayJoin__P60093_mk(s);
+ s.tmp_2.arg0 = s.asArr___82469;
+ s.tmp_2.arg1 = ",";
+ s.callLocIdx = 39; s.pc = 19; return s.tmp_2;
+ case 19:
+ r0 = s.retval;
+ { step = 17; continue; }
+ { step = 4; continue; }
+ case 3:
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_4 = r0;
+ s.tmp_7 = helpers_arrayJoin__P60093_mk(s);
+ s.tmp_8 = helpers_arraySlice__P60104_mk(s);
+ s.tmp_8.arg0 = s.asArr___82469;
+ s.tmp_8.arg1 = 0;
+ s.tmp_8.arg2 = s.arg1;
+ s.callLocIdx = 40; s.pc = 21; return s.tmp_8;
+ case 21:
+ r0 = s.retval;
+ s.tmp_7.arg0 = r0;
+ s.tmp_7.arg1 = ",";
+ s.callLocIdx = 41; s.pc = 20; return s.tmp_7;
+ case 20:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_String__concat(s.tmp_3, "...");
+ { step = 17; continue; }
+ case 4:
+ { step = 14; continue; }
+ case 5:
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 23);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 23:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_10 = r0;
+ r0 = pxsim_String__concat(s.tmp_9, s.tmp_10);
+ s.asString___82487 = (r0);
+ r0 = (s.asString___82487 != "[object Object]");
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.arg1;
- s.tmp_7.arg2 = s.i___7463;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 136; s.pc = 6; return s.tmp_7;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 6; continue; }
+ r0 = s.tmp_0;
+ { step = 7; continue; }
case 6:
+ r0 = (s.asString___82487 != "[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___82487;
+ { step = 17; continue; }
+ case 8:
+ case 9:
+ r0 = pxsim_pxtrt.keysOf(s.arg0);
+ s.keys___82499 = (r0);
+ r0 = pxsim_Array__length(s.keys___82499);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 > s.arg1);
+ s.snipped___82503 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.snipped___82503);
+ if (!r0) { step = 10; continue; }
+ s.tmp_0 = helpers_arraySlice__P60104_mk(s);
+ s.tmp_0.arg0 = s.keys___82499;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 42; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.keys___82499 = (r0);
+ case 10:
+ case 11:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P82520);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.snipped___82503);
+ if (!r0) { step = 12; continue; }
+ r0 = "\n ...";
+ { step = 13; continue; }
+ case 12:
+ r0 = pxsim_String_.mkEmpty();
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.tmp_7 = helpers_arrayReduce__P60102_mk(s);
+ s.tmp_7.arg0 = s.keys___82499;
+ s.tmp_7.arg1 = s.tmp_0;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_7.arg2 = r0;
+ s.callLocIdx = 43; s.pc = 25; return s.tmp_7;
+ case 25:
r0 = s.retval;
s.tmp_6 = r0;
- r0 = (s.tmp_6 == s.arg2);
+ 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;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 2; continue; }
- r0 = s.i___7463;
- { step = 5; continue; }
- case 2:
- case 3:
- r0 = (s.i___7463 + 1);
- s.i___7463 = (r0);
- { step = 1; continue; }
- case 4:
- r0 = -1;
- case 5:
+ 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()
} } }
-tileworld_RuleView_attrSpIndex__P7047.info = {"start":5602,"length":241,"line":163,"column":8,"endLine":169,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrSpIndex","argumentNames":["this","whendo","a"]}
+console_inspect__P60363.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 tileworld_RuleView_attrSpIndex__P7047_mk(s) {
+function console_inspect__P60363_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_attrSpIndex__P7047, depth: s.depth + 1,
+ parent: s, fn: console_inspect__P60363, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -30167,17 +28326,22 @@ function tileworld_RuleView_attrSpIndex__P7047_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- i___7463: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ asArr___82469: undefined,
+ asString___82487: undefined,
+ keys___82499: undefined,
+ snipped___82503: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_RuleView_attrBgIndex__P7046(s) {
+function inline__P82520(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30187,60 +28351,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___7442 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.i___7442 = (0);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 1);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 1:
- s.tmp_1 = r0 = s.i___7442;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.retval;
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.arg1;
- s.tmp_7.arg2 = s.i___7442;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 134; s.pc = 6; return s.tmp_7;
- case 6:
+ 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_6 = r0;
- r0 = (s.tmp_6 == s.arg2);
s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 2; continue; }
- r0 = s.i___7442;
- { step = 5; continue; }
- case 2:
+ 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.i___7442 + 1);
- s.i___7442 = (r0);
- { step = 1; continue; }
+ 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 = -1;
- case 5:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_attrBgIndex__P7046.info = {"start":5353,"length":239,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrBgIndex","argumentNames":["this","whendo","a"]}
+inline__P82520.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 tileworld_RuleView_attrBgIndex__P7046_mk(s) {
+function inline__P82520_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_attrBgIndex__P7046, depth: s.depth + 1,
+ parent: s, fn: inline__P82520, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -30250,17 +28419,15 @@ function tileworld_RuleView_attrBgIndex__P7046_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- i___7442: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115(s) {
+function helpers_arrayReduce__P60102(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30270,59 +28437,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.len___82547 = undefined;
+ s.i___82550 = 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg1 == 0);
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___82547 = (r0);
+ s.i___82550 = (0);
+ case 1:
+ r0 = (s.i___82550 < s.len___82547);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = 1;
- { step = 4; continue; }
- case 1:
- r0 = (s.arg1 == 4);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 2; continue; }
- r0 = 3;
- { step = 3; continue; }
- case 2:
- r0 = 2;
+ 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___82550);
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.i___82550;
+ setupLambda(s.tmp_1, s.tmp_1.argL);
+ s.callLocIdx = 9; s.pc = 3; return s.tmp_1;
case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
+ r0 = s.retval;
+ s.arg2 = (r0);
+ r0 = (s.i___82550 + 1);
+ s.i___82550 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = s.arg2;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115.info = {"start":6121,"length":79,"line":145,"column":8,"endLine":145,"endColumn":87,"fileName":"ruledisplay.ts","functionName":"rowToRowCoord","argumentNames":["this","lr"]}
+helpers_arrayReduce__P60102.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 tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s) {
+function helpers_arrayReduce__P60102_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayReduce__P60102, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
+ len___82547: undefined,
+ i___82550: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114(s) {
+function helpers_arrayJoin__P60093(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30332,263 +28502,133 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.r___87351 = undefined;
+ s.len___87352 = undefined;
+ s.i___87355 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg1 % 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ 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; }
- r0 = 2;
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = s.arg1;
+ r0 = (s.arg1 === null);
case 2:
// jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114.info = {"start":6044,"length":68,"line":144,"column":8,"endLine":144,"endColumn":76,"fileName":"ruledisplay.ts","functionName":"rowToColCoord","argumentNames":["this","lr"]}
-
-function tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, 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 tileworld_ruleediting_RuleEditor_tryEditCommand__P14512(s) {
-let r0 = s.r0, 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.row___15832 = undefined;
- s.cmd___15839 = undefined;
- s.len___15843 = undefined;
- s.newCol___15866 = undefined;
- s.newRow___15869 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_1 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = true;
- s.callLocIdx = 1091; s.pc = 16; return s.tmp_1;
- case 16:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 - 2);
- s.row___15832 = (r0);
- r0 = (s.row___15832 > 4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = false;
- { step = 15; continue; }
- case 1:
- case 2:
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1092; s.pc = 17; return s.tmp_2;
- case 17:
- r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 - 6);
- s.cmd___15839 = (r0);
- r0 = s.arg0.fields["commandLengths"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.row___15832);
- s.len___15843 = (r0);
- r0 = (s.len___15843 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ s.arg1 = (",");
case 3:
- r0 = (s.cmd___15839 >= s.len___15843);
case 4:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 5; continue; }
- r0 = false;
- { step = 15; continue; }
+ r0 = pxsim_String_.mkEmpty();
+ s.r___87351 = (r0);
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___87352 = (r0);
+ s.i___87355 = (0);
case 5:
- case 6:
- r0 = (s.arg0).fields["menu"] = (3);
- r0 = s.arg0.fields["ruleTypeMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- r0 = s.arg0.fields["dirMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.row___15832;
- s.callLocIdx = 1093; s.pc = 18; return s.tmp_0;
- case 18:
- r0 = s.retval;
- s.newCol___15866 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.row___15832;
- s.callLocIdx = 1094; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.newRow___15869 = (r0);
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.newCol___15866;
- s.tmp_3.arg2 = s.newRow___15869;
- s.callLocIdx = 1095; s.pc = 20; return s.tmp_3;
- case 20:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.i___87355 < s.len___87352);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = false;
- { step = 15; continue; }
- case 7:
- case 8:
- s.tmp_4 = r0 = s.arg0;
- s.tmp_6 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_6.arg0 = r0;
- s.tmp_6.arg1 = s.newCol___15866;
- s.tmp_6.arg2 = s.newRow___15869;
- s.callLocIdx = 1096; s.pc = 21; return s.tmp_6;
- case 21:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["whenDo"] = (s.tmp_5);
- r0 = s.arg0.fields["whenDo"];
+ if (!r0) { step = 14; continue; }
+ r0 = (s.i___87355 > 0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.tmp_2 = r0 = s.arg0;
- s.tmp_4 = tileworld_RuleView_makeWhenDo__P3644_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.newCol___15866;
- s.tmp_4.arg2 = s.newRow___15869;
- s.callLocIdx = 1097; s.pc = 22; return s.tmp_4;
- case 22:
+ 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___87351) && (s.r___87351).vtable) {
+ setupResume(s, 15);
+ pxsim_String__stringConv(s.r___87351);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___87351) + ""; }
+ case 15:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_2).fields["whenDo"] = (s.tmp_3);
- case 9:
- case 10:
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1098; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- r0 = (s.arg0).fields["currentCommand"] = (s.cmd___15839);
- s.tmp_2 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_2.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = s.cmd___15839;
- s.callLocIdx = 1099; s.pc = 24; return s.tmp_2;
- case 24:
+ 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___87351 = (r0);
+ case 8:
+ case 9:
+ r0 = pxsim_Array__getAt(s.arg0, s.i___87355);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 255);
+ r0 = (s.tmp_1 === undefined);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.row___15832;
- s.tmp_3.arg2 = s.newCol___15866;
- s.tmp_3.arg3 = s.newRow___15869;
- s.tmp_3.arg4 = false;
- s.callLocIdx = 1100; s.pc = 25; return s.tmp_3;
- case 25:
- r0 = s.retval;
- r0 = s.arg0.fields["tokens"];
+ 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___87355);
s.tmp_2 = r0;
- r0 = pxsim_Array__length(s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = s.arg0.fields["tokens"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__getAt(s.tmp_3, 0);
- { step = 12; continue; }
+ r0 = (s.tmp_2 === null);
case 11:
- r0 = 255;
+ // 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___87355);
+ case 13:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.tmp_5 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.tmp_4;
- s.tmp_5.arg2 = 255;
- s.tmp_5.arg3 = true;
- s.callLocIdx = 1101; s.pc = 26; return s.tmp_5;
- case 26:
+ if ((s.r___87351) && (s.r___87351).vtable) {
+ setupResume(s, 17);
+ pxsim_String__stringConv(s.r___87351);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___87351) + ""; }
+ case 17:
r0 = s.retval;
- { step = 14; continue; }
- case 13:
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["tokens"] = (s.tmp_1);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1102; s.pc = 27; return s.tmp_0;
- case 27:
+ 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___87351 = (r0);
+ r0 = (s.i___87355 + 1);
+ s.i___87355 = (r0);
+ { step = 5; continue; }
case 14:
- r0 = true;
- case 15:
+ r0 = s.r___87351;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_tryEditCommand__P14512.info = {"start":12524,"length":1435,"line":269,"column":8,"endLine":301,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"tryEditCommand","argumentNames":["this"]}
+helpers_arrayJoin__P60093.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 tileworld_ruleediting_RuleEditor_tryEditCommand__P14512_mk(s) {
+function helpers_arrayJoin__P60093_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_tryEditCommand__P14512, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayJoin__P60093, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -30597,109 +28637,18 @@ function tileworld_ruleediting_RuleEditor_tryEditCommand__P14512_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- row___15832: undefined,
- cmd___15839: undefined,
- len___15843: undefined,
- newCol___15866: undefined,
- newRow___15869: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_ruleediting_RuleViewDisplay_constructor__P3802(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0);
- r0 = (s.arg0).fields["baseRule"] = (s.arg2);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 803; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 804; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 805; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = tileworld_RuleView_getDerivedRules__P3633_mk(s);
- r0 = s.arg0.fields["baseRule"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 806; s.pc = 4; return s.tmp_2;
- case 4:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ruleViews"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P14240);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 813; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P14267);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 816; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_ruleediting_RuleViewDisplay_constructor__P3802.info = {"start":450,"length":736,"line":8,"column":8,"endLine":24,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["this","p","baseRule"]}
-
-function tileworld_ruleediting_RuleViewDisplay_constructor__P3802_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_ruleediting_RuleViewDisplay_constructor__P3802, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
+ r___87351: undefined,
+ len___87352: undefined,
+ i___87355: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function inline__P14240(s) {
+function tileworld_ruleediting_RuleDisplay_getKind__P73096(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30709,110 +28658,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 807; s.pc = 7; return s.tmp_2;
- case 7:
+ s.kinds___73160 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getSpriteKinds__P63656_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 703; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
+ s.kinds___73160 = (r0);
+ r0 = pxsim_Array__length(s.kinds___73160);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ 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; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__getAt(s.kinds___73160, 0);
+ { step = 3; continue; }
case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 808; s.pc = 8; return s.tmp_4;
- case 8:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >= 1);
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_5;
- { step = 4; continue; }
+ r0 = -1;
case 3:
- s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_7.arg0 = s.caps[0];
- s.tmp_7.arg1 = true;
- s.callLocIdx = 809; s.pc = 9; return s.tmp_7;
- case 9:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 <= 6);
- case 4:
- // jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 5; continue; }
- s.tmp_9 = tileworld_RuleView_setTransforms__P3636_mk(s);
- r0 = s.caps[0].fields["baseRule"];
- s.tmp_9.arg0 = r0;
- s.tmp_10 = r0 = globals.transformMap___14209;
- s.tmp_13 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_13.arg0 = s.caps[0];
- s.tmp_13.arg1 = true;
- s.callLocIdx = 810; s.pc = 11; return s.tmp_13;
- case 11:
- r0 = s.retval;
- s.tmp_12 = r0;
- r0 = (s.tmp_12 - 1);
- s.tmp_11 = r0;
- r0 = pxsim_Array__getAt(s.tmp_10, s.tmp_11);
- s.tmp_9.arg1 = r0;
- s.callLocIdx = 811; s.pc = 10; return s.tmp_9;
- case 10:
- r0 = s.retval;
- s.tmp_0 = r0 = s.caps[0];
- s.tmp_2 = tileworld_RuleView_getDerivedRules__P3633_mk(s);
- r0 = s.caps[0].fields["baseRule"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 812; s.pc = 12; return s.tmp_2;
- case 12:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ruleViews"] = (s.tmp_1);
- case 5:
- case 6:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P14240.info = {"start":719,"length":262,"line":13,"column":64,"endLine":18,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]}
+tileworld_ruleediting_RuleDisplay_getKind__P73096.info = {"start":1754,"length":173,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getKind","argumentNames":["this"]}
-function inline__P14240_mk(s) {
+function tileworld_ruleediting_RuleDisplay_getKind__P73096_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14240, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_getKind__P73096, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ kinds___73160: undefined,
+ arg0: undefined,
} }
-function inline__P14267(s) {
+function tileworld_RuleView_getSpriteKinds__P63656(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30822,37 +28714,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.caps[0].fields["baseRule"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 814; s.pc = 1; return s.tmp_0;
+ s.wd___67720 = undefined;
+ s.ret___67722 = undefined;
+ s.i___67724 = undefined;
+ s.at___67731 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 2;
+ s.callLocIdx = 145; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.wd___67720 = (r0);
+ r0 = pxsim_Array__mk();
+ s.ret___67722 = (r0);
+ s.i___67724 = (0);
case 1:
+ s.tmp_1 = r0 = s.i___67724;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_5 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = s.wd___67720;
+ s.tmp_5.arg2 = s.i___67724;
+ s.tmp_5.arg3 = 65535;
+ s.callLocIdx = 147; s.pc = 8; return s.tmp_5;
+ case 8:
r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 815; s.pc = 2; return s.tmp_0;
+ s.at___67731 = (r0);
+ r0 = (s.at___67731 == 1);
+ 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.retval;
- r0 = undefined;
+ r0 = (s.at___67731 == 2);
+ 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.ret___67722, s.i___67724);
+ case 4:
+ case 5:
+ r0 = (s.i___67724 + 1);
+ s.i___67724 = (r0);
+ { step = 1; continue; }
+ case 6:
+ r0 = s.ret___67722;
return leave(s, r0)
default: oops()
} } }
-inline__P14267.info = {"start":1048,"length":126,"line":19,"column":64,"endLine":23,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]}
+tileworld_RuleView_getSpriteKinds__P63656.info = {"start":8504,"length":410,"line":244,"column":8,"endLine":254,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSpriteKinds","argumentNames":["this"]}
-function inline__P14267_mk(s) {
+function tileworld_RuleView_getSpriteKinds__P63656_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14267, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getSpriteKinds__P63656, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ wd___67720: undefined,
+ ret___67722: undefined,
+ i___67724: undefined,
+ at___67731: undefined,
+ arg0: undefined,
} }
-function tileworld_RuleView_setTransforms__P3636(s) {
+function tileworld_ruleediting_RuleDisplay_getDir__P73094(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30864,35 +28816,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["transforms"] = (s.arg1);
- r0 = undefined;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 701; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_setTransforms__P3636.info = {"start":1627,"length":77,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruleview.ts","functionName":"setTransforms","argumentNames":["this","n"]}
+tileworld_ruleediting_RuleDisplay_getDir__P73094.info = {"start":1582,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDir","argumentNames":["this"]}
-function tileworld_RuleView_setTransforms__P3636_mk(s) {
+function tileworld_ruleediting_RuleDisplay_getDir__P73094_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_setTransforms__P3636, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_getDir__P73094, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_RuleView_getDerivedRules__P3633(s) {
+function tileworld_ruleediting_RuleDisplay_getType__P73095(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -30902,101 +28854,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ret___7061 = undefined;
- s.rv___7072 = undefined;
- s.t___7090 = undefined;
- s.rv___7096 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.ret___7061 = (r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["transforms"];
- s.tmp_0 = r0;
- 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(5, s.tmp_0);
- if (r0) { step = 4; continue; }
- r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 1:
- case 2:
- case 3:
- case 4:
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT);
- s.tmp_1 = r0;
- s.tmp_2 = tileworld_RuleView_constructor__P3631_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = -1;
- r0 = s.arg0.fields["r"];
- s.tmp_2.arg3 = r0;
- s.callLocIdx = 112; s.pc = 9; return s.tmp_2;
- case 9:
- r0 = s.retval;
- s.rv___7072 = (s.tmp_1);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["transforms"];
- s.tmp_0 = r0;
- r0 = (s.rv___7072).fields["view"] = (s.tmp_0);
- r0 = pxsim_Array__push(s.ret___7061, s.rv___7072);
- { step = 8; continue; }
- case 5:
- s.t___7090 = (3);
- case 6:
- r0 = (s.t___7090 != 6);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = s.arg0.fields["rule"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT);
- s.tmp_1 = r0;
- s.tmp_2 = tileworld_RuleView_constructor__P3631_mk(s);
- s.tmp_2.arg0 = s.tmp_1;
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = -1;
- r0 = s.arg0.fields["r"];
- s.tmp_2.arg3 = r0;
- s.callLocIdx = 113; s.pc = 10; return s.tmp_2;
- case 10:
- r0 = s.retval;
- s.rv___7096 = (s.tmp_1);
- r0 = (s.rv___7096).fields["view"] = (s.t___7090);
- r0 = pxsim_Array__push(s.ret___7061, s.rv___7096);
- r0 = (s.t___7090 + 1);
- s.t___7090 = (r0);
- { step = 6; continue; }
- case 7:
- case 8:
- r0 = s.ret___7061;
+ r0 = s.tmp_0.fields["r"];
+ r0 = r0.fields["ruleType"];
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getDerivedRules__P3633.info = {"start":479,"length":920,"line":14,"column":8,"endLine":37,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDerivedRules","argumentNames":["this"]}
+tileworld_ruleediting_RuleDisplay_getType__P73095.info = {"start":1669,"length":75,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getType","argumentNames":["this"]}
-function tileworld_RuleView_getDerivedRules__P3633_mk(s) {
+function tileworld_ruleediting_RuleDisplay_getType__P73095_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getDerivedRules__P3633, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_getType__P73095, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- ret___7061: undefined,
- rv___7072: undefined,
- t___7090: undefined,
- rv___7096: undefined,
arg0: undefined,
} }
@@ -31004,7 +28882,7 @@ function tileworld_RuleView_getDerivedRules__P3633_mk(s) {
-function tileworld_RuleView_constructor__P3631(s) {
+function tileworld_ruleediting_RuleEditor_changeRule__P74496(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31017,38 +28895,45 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- r0 = (s.arg0).fields["rid"] = (s.arg2);
- r0 = (s.arg0).fields["r"] = (s.arg3);
- r0 = (s.arg0).fields["view"] = (0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_Project_saveRule__P63697_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1022; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_resetRule__P74497_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1023; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_constructor__P3631.info = {"start":319,"length":81,"line":7,"column":8,"endLine":8,"endColumn":9,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["this","p","rid","r"]}
+tileworld_ruleediting_RuleEditor_changeRule__P74496.info = {"start":8318,"length":116,"line":170,"column":8,"endLine":173,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"changeRule","argumentNames":["this","rv"]}
-function tileworld_RuleView_constructor__P3631_mk(s) {
+function tileworld_ruleediting_RuleEditor_changeRule__P74496_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_constructor__P3631, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_changeRule__P74496, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_Project_saveRule__P3700(s) {
+function tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31060,55 +28945,117 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg1.fields["rid"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1192; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ r0 = (s.tmp_1 != 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1193; s.pc = 11; return s.tmp_4;
+ case 11:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 6);
case 2:
- s.tmp_2 = tileworld_Project_storeRule__P8110_mk(s);
- s.tmp_2.arg0 = s.arg0;
- r0 = s.arg0.fields["prefix"];
- s.tmp_2.arg1 = r0;
- r0 = s.arg1.fields["rid"];
- s.tmp_2.arg2 = r0;
- r0 = s.arg1.fields["r"];
- s.tmp_2.arg3 = r0;
- s.callLocIdx = 177; s.pc = 4; return s.tmp_2;
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 3; continue; }
+ { step = 9; continue; }
+ case 3:
case 4:
+ r0 = s.arg0.fields["rule"];
+ s.tmp_8 = r0;
+ r0 = s.tmp_8.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == 2);
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_6);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_6;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_10 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_10.arg0 = s.arg0;
+ s.tmp_10.arg1 = true;
+ s.callLocIdx = 1195; s.pc = 12; return s.tmp_10;
+ case 12:
r0 = s.retval;
- case 3:
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 < 4);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_11);
+ if (!r0) { step = 7; continue; }
+ { step = 9; continue; }
+ case 7:
+ case 8:
+ s.tmp_12 = tileworld_RuleView_setWitnessDirection__P63649_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_12.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_12.arg1 = r0;
+ s.tmp_13 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_13.arg0 = s.arg0;
+ s.tmp_13.arg1 = true;
+ s.callLocIdx = 1196; s.pc = 14; return s.tmp_13;
+ case 14:
+ r0 = s.retval;
+ s.tmp_12.arg2 = r0;
+ s.callLocIdx = 1197; s.pc = 13; return s.tmp_12;
+ case 13:
+ r0 = s.retval;
+ case 9:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_saveRule__P3700.info = {"start":4061,"length":178,"line":118,"column":8,"endLine":122,"endColumn":9,"fileName":"project.ts","functionName":"saveRule","argumentNames":["this","rv"]}
+tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519.info = {"start":22442,"length":293,"line":511,"column":8,"endLine":517,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprUpdate","argumentNames":["this"]}
-function tileworld_Project_saveRule__P3700_mk(s) {
+function tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_saveRule__P3700, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_RuleView_getBaseRule__P3632(s) {
+function tileworld_RuleView_setWitnessDirection__P63649(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31120,29 +29067,41 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["dir"] = (s.arg2);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getBaseRule__P3632.info = {"start":410,"length":59,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"ruleview.ts","functionName":"getBaseRule","argumentNames":["this"]}
+tileworld_RuleView_setWitnessDirection__P63649.info = {"start":6522,"length":107,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"ruleview.ts","functionName":"setWitnessDirection","argumentNames":["this","wdid","val"]}
-function tileworld_RuleView_getBaseRule__P3632_mk(s) {
+function tileworld_RuleView_setWitnessDirection__P63649_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getBaseRule__P3632, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_setWitnessDirection__P63649, 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 tileworld_Project_storeRule__P8110(s) {
+function tileworld_ruleediting_RuleEditor_commandUpdate__P74511(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31152,87 +29111,292 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8366 = undefined;
+ s.tok___76097 = undefined;
+ s.arg___76104 = undefined;
+ s.inst___76111 = undefined;
+ s.len___76130 = 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, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = tileworld_packRule__P3627_mk(s);
- s.tmp_0.arg0 = s.arg3;
- r0 = s.arg0.fields["_backgroundsI"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = s.arg0.fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1128; s.pc = 27; return s.tmp_2;
+ case 27:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_Array__length(s.tmp_1);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1129; s.pc = 28; return s.tmp_4;
+ case 28:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.tok___76097 = (r0);
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1130; s.pc = 29; return s.tmp_2;
+ case 29:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1131; s.pc = 30; return s.tmp_4;
+ case 30:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.arg___76104 = (r0);
+ s.tmp_0 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["_spritesI"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__length(s.tmp_2);
+ r0 = s.arg0.fields["currentCommand"];
s.tmp_0.arg2 = r0;
- s.callLocIdx = 195; s.pc = 1; return s.tmp_0;
- case 1:
+ s.callLocIdx = 1132; s.pc = 31; return s.tmp_0;
+ case 31:
r0 = s.retval;
- s.buf___8366 = (r0);
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 3);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
+ s.inst___76111 = (r0);
+ r0 = (s.tok___76097 == 100);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["help"];
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = Sprite_say__P62066_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = "delete command";
+ s.tmp_2.arg2 = undefined;
+ s.tmp_2.arg3 = 15;
+ s.tmp_2.arg4 = 1;
+ s.callLocIdx = 1133; s.pc = 32; return s.tmp_2;
+ case 32:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ { step = 4; continue; }
case 3:
+ s.tmp_0 = tileworld_RuleView_removeCommand__P63655_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1134; s.pc = 33; return s.tmp_0;
+ case 33:
r0 = s.retval;
- s.tmp_3 = r0;
- if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(globals.RuleKey___8299);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.RuleKey___8299) + ""; }
- case 4:
+ s.len___76130 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1135; s.pc = 34; return s.tmp_0;
+ case 34:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
+ case 4:
+ { step = 26; continue; }
case 5:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1136; s.pc = 35; return s.tmp_2;
+ case 35:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.arg2);
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
+ r0 = (s.tmp_1 == 0);
+ 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.tok___76097 != 15);
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 14; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 10; continue; }
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["help"];
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 8; continue; }
+ s.tmp_5 = Sprite_say__P62066_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_5.arg0 = r0;
+ r0 = pxsim_Array__getAt(globals.categoryText___75105, s.tok___76097);
+ s.tmp_5.arg1 = r0;
+ s.tmp_5.arg2 = undefined;
+ s.tmp_5.arg3 = 15;
+ s.tmp_5.arg4 = 1;
+ s.callLocIdx = 1137; s.pc = 36; return s.tmp_5;
+ case 36:
+ r0 = s.retval;
+ case 8:
+ case 9:
+ { step = 13; continue; }
+ case 10:
+ r0 = (s.tok___76097 != s.inst___76111);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_setCommand__P74512_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tok___76097;
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_instToStartArg__P74507_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.tok___76097;
+ s.callLocIdx = 1138; s.pc = 38; return s.tmp_2;
+ case 38:
+ r0 = s.retval;
+ s.tmp_1.arg2 = r0;
+ s.callLocIdx = 1139; s.pc = 37; return s.tmp_1;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1140; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 1141; s.pc = 40; return s.tmp_0;
+ case 40:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_say__P62066_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = null;
+ s.tmp_0.arg2 = undefined;
+ s.tmp_0.arg3 = 15;
+ s.tmp_0.arg4 = 1;
+ s.callLocIdx = 1142; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ case 11:
+ case 12:
+ case 13:
+ { step = 25; continue; }
+ case 14:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1143; s.pc = 42; return s.tmp_2;
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 15; continue; }
+ r0 = s.tmp_0;
+ { step = 16; continue; }
+ case 15:
+ r0 = (s.arg___76104 != 15);
+ case 16:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 19; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 17; continue; }
+ s.tmp_4 = Sprite_say__P62066_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_6 = tileworld_ruleediting_RuleEditor_instToArgText__P74508_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.inst___76111;
+ s.callLocIdx = 1144; s.pc = 44; return s.tmp_6;
+ case 44:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.arg___76104);
+ s.tmp_4.arg1 = r0;
+ s.tmp_4.arg2 = undefined;
+ s.tmp_4.arg3 = 15;
+ s.tmp_4.arg4 = 1;
+ s.callLocIdx = 1145; s.pc = 43; return s.tmp_4;
+ case 43:
+ r0 = s.retval;
+ { step = 18; continue; }
+ case 17:
+ s.tmp_0 = tileworld_RuleView_setCmdArg__P63654_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.arg___76104;
+ s.callLocIdx = 1146; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ case 18:
+ { step = 24; continue; }
+ case 19:
+ 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 = 20; continue; }
+ r0 = s.tmp_0;
+ { step = 21; continue; }
+ case 20:
+ s.tmp_3 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 1147; s.pc = 46; return s.tmp_3;
+ case 46:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_5);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.buf___8366;
- s.callLocIdx = 196; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 > 1);
+ case 21:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 22; continue; }
+ s.tmp_5 = tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.callLocIdx = 1148; s.pc = 47; return s.tmp_5;
+ case 47:
r0 = s.retval;
- r0 = s.buf___8366;
+ case 22:
+ case 23:
+ case 24:
+ case 25:
+ case 26:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_storeRule__P8110.info = {"start":5677,"length":240,"line":162,"column":8,"endLine":166,"endColumn":9,"fileName":"project.ts","functionName":"storeRule","argumentNames":["this","prefix","rid","rule"]}
+tileworld_ruleediting_RuleEditor_commandUpdate__P74511.info = {"start":17215,"length":1445,"line":388,"column":8,"endLine":419,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"commandUpdate","argumentNames":["this","hover"]}
-function tileworld_Project_storeRule__P8110_mk(s) {
+function tileworld_ruleediting_RuleEditor_commandUpdate__P74511_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_storeRule__P8110, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_commandUpdate__P74511, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -31241,18 +29405,19 @@ function tileworld_Project_storeRule__P8110_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- buf___8366: undefined,
+ tok___76097: undefined,
+ arg___76104: undefined,
+ inst___76111: undefined,
+ len___76130: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_packRule__P3627(s) {
+function tileworld_RuleView_setCmdArg__P63654(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31262,115 +29427,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wds___6855 = undefined;
- s.bytes___6870 = undefined;
- s.i___6885 = undefined;
+ s.wd___67640 = 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 = helpers_arrayFilter__P105_mk(s);
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P6859;
- s.callLocIdx = 84; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.wds___6855 = (r0);
- globals.bitIndex___6717 = (0);
- r0 = pxsim_Array__length(s.wds___6855);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67640 = (r0);
+ r0 = s.wd___67640.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = (s.arg1 >> 2);
- s.tmp_4 = r0;
- r0 = (2 + s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.arg2 >> 2);
- s.tmp_5 = r0;
- r0 = (s.tmp_3 + s.tmp_5);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 * s.tmp_2);
+ r0 = (s.arg2 > s.tmp_1);
s.tmp_0 = r0;
- r0 = (2 + s.tmp_0);
- s.bytes___6870 = (r0);
- s.i___6885 = (0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = 255;
+ { step = 5; continue; }
case 1:
- s.tmp_1 = r0 = s.i___6885;
- r0 = pxsim_Array__length(s.wds___6855);
+ case 2:
+ r0 = s.wd___67640.fields["commandsLen"];
+ s.tmp_3 = r0;
+ r0 = (s.arg2 == 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_3 = r0 = s.bytes___6870;
- r0 = pxsim_Array__getAt(s.wds___6855, s.i___6885);
- r0 = r0.fields["commandsLen"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = r0 = s.wd___67640;
+ r0 = s.tmp_4.fields["commandsLen"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 1);
s.tmp_5 = r0;
- r0 = (s.tmp_5 << 1);
- s.tmp_4 = r0;
- r0 = (s.tmp_3 + s.tmp_4);
- s.bytes___6870 = (r0);
- r0 = (s.i___6885 + 1);
- s.i___6885 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = pxsim.control.createBuffer(s.bytes___6870);
- globals.ruleBuf___6715 = (r0);
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["ruleType"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 85; s.pc = 4; return s.tmp_0;
+ r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5);
+ case 3:
case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["ruleArg"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 86; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["transforms"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 87; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = pxsim_Array__length(s.wds___6855);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 88; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(2, inline__P6920);
+ r0 = s.wd___67640.fields["commands"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = s.wds___6855;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 95; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = s.wds___6855;
- s.tmp_0.arg1 = inline__P6946;
- s.callLocIdx = 97; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- r0 = globals.ruleBuf___6715;
+ r0 = (s.arg2 << 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = (s.arg3 & 255);
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.tmp_3);
+ r0 = (s.arg3 & 255);
+ case 5:
return leave(s, r0)
default: oops()
} } }
-tileworld_packRule__P3627.info = {"start":10502,"length":1227,"line":297,"column":4,"endLine":325,"endColumn":5,"fileName":"rule.ts","functionName":"packRule","argumentNames":["r","bgLen","spLen"]}
+tileworld_RuleView_setCmdArg__P63654.info = {"start":7697,"length":335,"line":221,"column":8,"endLine":229,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdArg","argumentNames":["this","wdid","cid","n"]}
-function tileworld_packRule__P3627_mk(s) {
+function tileworld_RuleView_setCmdArg__P63654_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_packRule__P3627, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_setCmdArg__P63654, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -31378,19 +29493,19 @@ function tileworld_packRule__P3627_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- wds___6855: undefined,
- bytes___6870: undefined,
- i___6885: undefined,
+ tmp_6: undefined,
+ wd___67640: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function inline__P6859(s) {
+function tileworld_ruleediting_RuleEditor_instToArgText__P74508(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31402,54 +29517,47 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["commandsLen"];
- 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.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg1;
+ r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
+ if (r0) { step = 2; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
+ { step = 3; continue; }
case 1:
- s.tmp_4 = tileworld_isWhenDoTrue__P3624_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 83; s.pc = 3; return s.tmp_4;
- case 3:
- 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);
+ r0 = globals.moveText___63787;
+ { step = 4; continue; }
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ r0 = globals.gameText___63792;
+ { step = 4; continue; }
+ case 3:
+ r0 = pxsim_Array__mk();
+ case 4:
return leave(s, r0)
default: oops()
} } }
-inline__P6859.info = {"start":10674,"length":45,"line":299,"column":34,"endLine":299,"endColumn":79,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
+tileworld_ruleediting_RuleEditor_instToArgText__P74508.info = {"start":15627,"length":266,"line":346,"column":8,"endLine":353,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToArgText","argumentNames":["this","inst"]}
-function inline__P6859_mk(s) {
+function tileworld_ruleediting_RuleEditor_instToArgText__P74508_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P6859, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_instToArgText__P74508, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P6920(s) {
+function tileworld_ruleediting_RuleEditor_setCommand__P74512(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31461,72 +29569,56 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["col"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 89; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["row"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 90; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBufRaw__P6813_mk(s);
- r0 = s.arg0.fields["bgPred"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_setCmdInst__P63653_mk(s);
+ r0 = s.arg0.fields["rule"];
s.tmp_0.arg0 = r0;
- r0 = (s.caps[0] >> 2);
+ r0 = s.arg0.fields["whenDo"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 91; s.pc = 3; return s.tmp_0;
- case 3:
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.arg1;
+ s.callLocIdx = 1149; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.tmp_0 = tileworld_writeBufRaw__P6813_mk(s);
- r0 = s.arg0.fields["spPred"];
+ s.tmp_0 = tileworld_RuleView_setCmdArg__P63654_mk(s);
+ r0 = s.arg0.fields["rule"];
s.tmp_0.arg0 = r0;
- r0 = (s.caps[1] >> 2);
+ r0 = s.arg0.fields["whenDo"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 92; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["dir"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 93; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = tileworld_writeBuf__P6807_mk(s);
- r0 = s.arg0.fields["commandsLen"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 94; s.pc = 6; return s.tmp_0;
- case 6:
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.arg2;
+ s.callLocIdx = 1150; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P6920.info = {"start":11133,"length":370,"line":310,"column":20,"endLine":317,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
+tileworld_ruleediting_RuleEditor_setCommand__P74512.info = {"start":18670,"length":203,"line":421,"column":8,"endLine":424,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setCommand","argumentNames":["this","inst","arg"]}
-function inline__P6920_mk(s) {
+function tileworld_ruleediting_RuleEditor_setCommand__P74512_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P6920, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_setCommand__P74512, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P6946(s) {
+function tileworld_RuleView_setCmdInst__P63653(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31536,51 +29628,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.wd___67610 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["commandsLen"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67610 = (r0);
+ r0 = s.wd___67610.fields["commandsLen"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
+ r0 = (s.arg2 > s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_2 = tileworld_writeBufRaw__P6813_mk(s);
- r0 = s.arg0.fields["commands"];
- s.tmp_2.arg0 = r0;
- r0 = s.arg0.fields["commandsLen"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 << 1);
- s.tmp_2.arg1 = r0;
- s.callLocIdx = 96; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
+ r0 = 255;
+ { step = 5; continue; }
case 1:
case 2:
- r0 = undefined;
+ r0 = s.wd___67610.fields["commandsLen"];
+ s.tmp_3 = r0;
+ r0 = (s.arg2 == s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = r0 = s.wd___67610;
+ r0 = s.tmp_4.fields["commandsLen"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5);
+ case 3:
+ case 4:
+ r0 = s.wd___67610.fields["commands"];
+ s.tmp_0 = r0;
+ r0 = (s.arg2 << 1);
+ s.tmp_1 = r0;
+ r0 = (s.arg3 & 255);
+ s.tmp_2 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.tmp_2);
+ r0 = (s.arg3 & 255);
+ case 5:
return leave(s, r0)
default: oops()
} } }
-inline__P6946.info = {"start":11565,"length":132,"line":319,"column":20,"endLine":323,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
+tileworld_RuleView_setCmdInst__P63653.info = {"start":7355,"length":332,"line":211,"column":8,"endLine":219,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdInst","argumentNames":["this","wdid","cid","n"]}
-function inline__P6946_mk(s) {
+function tileworld_RuleView_setCmdInst__P63653_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P6946, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_setCmdInst__P63653, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ wd___67610: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_writeBufRaw__P6813(s) {
+function tileworld_RuleView_removeCommand__P63655(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31590,94 +29714,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___6816 = undefined;
+ s.wd___67672 = undefined;
+ s.i___67687 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.i___6816 = (0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.wd___67672 = (r0);
+ r0 = s.wd___67672.fields["commandsLen"];
+ 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 = (s.i___6816 < s.arg1);
+ r0 = s.wd___67672.fields["commandsLen"];
+ s.tmp_2 = r0;
+ r0 = (s.arg2 >= 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.wd___67672.fields["commandsLen"];
+ { step = 7; continue; }
+ case 3:
+ case 4:
+ r0 = (s.arg2 << 1);
+ s.i___67687 = (r0);
+ case 5:
+ s.tmp_1 = r0 = s.i___67687;
+ r0 = (3 << 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 <= s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = tileworld_writeBuf__P6807_mk(s);
- r0 = pxsim.BufferMethods.getUint8(s.arg0, s.i___6816);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = 8;
- s.callLocIdx = 80; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- r0 = (s.i___6816 + 1);
- s.i___6816 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = undefined;
+ if (!r0) { step = 6; continue; }
+ r0 = s.wd___67672.fields["commands"];
+ s.tmp_4 = r0;
+ s.tmp_5 = r0 = s.i___67687;
+ r0 = s.wd___67672.fields["commands"];
+ s.tmp_7 = r0;
+ r0 = (s.i___67687 + 2);
+ s.tmp_8 = r0;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_7, s.tmp_8);
+ s.tmp_6 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_4, s.tmp_5, s.tmp_6);
+ r0 = (s.i___67687 + 1);
+ s.i___67687 = (r0);
+ { step = 5; continue; }
+ case 6:
+ s.tmp_0 = r0 = s.wd___67672;
+ r0 = s.tmp_0.fields["commandsLen"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1);
+ r0 = s.wd___67672.fields["commandsLen"];
+ case 7:
return leave(s, r0)
default: oops()
} } }
-tileworld_writeBufRaw__P6813.info = {"start":9945,"length":141,"line":277,"column":4,"endLine":281,"endColumn":5,"fileName":"rule.ts","functionName":"writeBufRaw","argumentNames":["b","cnt"]}
+tileworld_RuleView_removeCommand__P63655.info = {"start":8042,"length":419,"line":231,"column":8,"endLine":240,"endColumn":9,"fileName":"ruleview.ts","functionName":"removeCommand","argumentNames":["this","wdid","cid"]}
-function tileworld_writeBufRaw__P6813_mk(s) {
+function tileworld_RuleView_removeCommand__P63655_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_writeBufRaw__P6813, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_removeCommand__P63655, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- i___6816: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_writeBuf__P6807(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = tileworld_readWriteBuf__P6718_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 79; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_writeBuf__P6807.info = {"start":9798,"length":87,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"rule.ts","functionName":"writeBuf","argumentNames":["v","bits"]}
-
-function tileworld_writeBuf__P6807_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_writeBuf__P6807, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ wd___67672: undefined,
+ i___67687: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_readWriteBuf__P6718(s) {
+function tileworld_ruleediting_RuleEditor_attrUpdate__P74516(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31687,279 +29824,307 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.byteIndex___6722 = undefined;
- s.shift___6730 = undefined;
- s.byte___6740 = undefined;
- s.mask___6745 = undefined;
- s.i___6746 = undefined;
- s.writeMask___6767 = undefined;
- s.newVal___6771 = undefined;
- s.ret___6794 = undefined;
+ s.collision22___76348 = undefined;
+ s.a___76371 = undefined;
+ s.i___76380 = undefined;
+ s.m___76408 = undefined;
+ s.val___76436 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = (globals.bitIndex___6717 >> 3);
- s.byteIndex___6722 = (r0);
- s.tmp_1 = r0 = s.byteIndex___6722;
- r0 = pxsim.BufferMethods.length(globals.ruleBuf___6715);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = s.arg0.fields["rule"];
s.tmp_2 = r0;
- r0 = (s.tmp_1 >= s.tmp_2);
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_3 = control_assert__P319_mk(s);
- s.tmp_3.arg0 = false;
- s.tmp_3.arg1 = 43;
- s.callLocIdx = 76; s.pc = 11; return s.tmp_3;
- case 11:
- r0 = s.retval;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ r0 = s.arg0.fields["rule"];
+ s.tmp_4 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_4.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_5);
+ r0 = r0.fields["col"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 2);
case 2:
- s.tmp_0 = r0 = globals.bitIndex___6717;
- r0 = (s.byteIndex___6722 << 3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 - s.tmp_1);
- s.shift___6730 = (r0);
- r0 = (s.shift___6730 + s.arg1);
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_7;
+ { step = 4; continue; }
+ case 3:
+ r0 = s.arg0.fields["rule"];
+ s.tmp_9 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_10 = r0;
+ r0 = s.tmp_9.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_10);
+ r0 = r0.fields["row"];
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 == 2);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ s.collision22___76348 = (s.tmp_12);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1170; s.pc = 32; return s.tmp_2;
+ case 32:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 > 8);
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = control_assert__P319_mk(s);
- s.tmp_2.arg0 = false;
- s.tmp_2.arg1 = 44;
- s.callLocIdx = 77; s.pc = 12; return s.tmp_2;
- case 12:
+ if (!r0) { step = 5; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 1171; s.pc = 33; return s.tmp_3;
+ case 33:
r0 = s.retval;
- case 3:
- case 4:
- r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___6715, s.byteIndex___6722);
- s.byte___6740 = (r0);
- s.mask___6745 = (0);
- s.i___6746 = (0);
+ { step = 6; continue; }
case 5:
- r0 = (s.i___6746 < s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- r0 = (s.mask___6745 << 1);
- s.tmp_1 = r0;
- r0 = (1 | s.tmp_1);
- s.mask___6745 = (r0);
- r0 = (s.i___6746 + 1);
- s.i___6746 = (r0);
- { step = 5; continue; }
+ r0 = -1;
case 6:
- r0 = (s.arg0 & s.mask___6745);
- s.arg0 = (r0);
- r0 = (s.mask___6745 << s.shift___6730);
- s.mask___6745 = (r0);
- r0 = (s.mask___6745 ^ 4294967295);
- s.writeMask___6767 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 7; continue; }
- r0 = (s.byte___6740 & s.writeMask___6767);
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.a___76371 = (s.tmp_4);
+ r0 = (s.a___76371 == 9);
s.tmp_0 = r0;
- r0 = (s.arg0 << s.shift___6730);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 | s.tmp_1);
- s.newVal___6771 = (r0);
- r0 = pxsim.BufferMethods.setUint8(globals.ruleBuf___6715, s.byteIndex___6722, s.newVal___6771);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ s.i___76380 = (0);
case 7:
+ s.tmp_1 = r0 = s.i___76380;
+ s.tmp_3 = tileworld_Project_allCnt__P63690_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 1172; s.pc = 34; return s.tmp_3;
+ case 34:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_4 = tileworld_ruleediting_RuleEditor_setAttr__P74517_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = s.i___76380;
+ s.tmp_4.arg2 = 0;
+ s.tmp_4.arg3 = false;
+ s.callLocIdx = 1173; s.pc = 35; return s.tmp_4;
+ case 35:
+ r0 = s.retval;
+ r0 = (s.i___76380 + 1);
+ s.i___76380 = (r0);
+ { step = 7; continue; }
case 8:
- r0 = (globals.bitIndex___6717 + s.arg1);
- globals.bitIndex___6717 = (r0);
- r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___6715, s.byteIndex___6722);
- s.byte___6740 = (r0);
- r0 = (s.byte___6740 & s.mask___6745);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> s.shift___6730);
- s.ret___6794 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 9; continue; }
- s.tmp_0 = control_assert__P319_mk(s);
- r0 = (s.ret___6794 == s.arg0);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 42;
- s.callLocIdx = 78; s.pc = 13; return s.tmp_0;
+ { step = 31; continue; }
+ case 9:
+ case 10:
+ r0 = (s.a___76371 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 11; continue; }
+ r0 = s.tmp_0;
+ { step = 12; continue; }
+ case 11:
+ r0 = (s.a___76371 < 3);
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_1;
+ { step = 14; continue; }
case 13:
+ r0 = s.arg0.fields["rule"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 != 2);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 15; continue; }
+ s.tmp_5 = tileworld_ruleediting_RuleEditor_selectAttr__P74515_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = s.a___76371;
+ s.callLocIdx = 1175; s.pc = 36; return s.tmp_5;
+ case 36:
+ r0 = s.retval;
+ { step = 31; continue; }
+ case 15:
+ case 16:
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1176; s.pc = 37; return s.tmp_2;
+ case 37:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 17; continue; }
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = true;
+ s.callLocIdx = 1177; s.pc = 38; return s.tmp_3;
+ case 38:
+ r0 = s.retval;
+ { step = 18; continue; }
+ case 17:
+ r0 = -1;
+ case 18:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.m___76408 = (s.tmp_4);
+ r0 = (s.m___76408 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 19; continue; }
+ r0 = s.tmp_0;
+ { step = 26; continue; }
+ case 19:
+ r0 = pxsim_numops_toBoolDecr(s.collision22___76348);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 20; continue; }
+ r0 = s.tmp_1;
+ { step = 21; continue; }
+ case 20:
+ s.tmp_3 = r0 = s.m___76408;
+ s.tmp_5 = tileworld_Project_allCnt__P63690_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 1178; s.pc = 39; return s.tmp_5;
+ case 39:
r0 = s.retval;
- case 9:
- case 10:
- r0 = s.ret___6794;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_readWriteBuf__P6718.info = {"start":8703,"length":1089,"line":238,"column":4,"endLine":270,"endColumn":5,"fileName":"rule.ts","functionName":"readWriteBuf","argumentNames":["v","bits","write"]}
-
-function tileworld_readWriteBuf__P6718_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_readWriteBuf__P6718, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- byteIndex___6722: undefined,
- shift___6730: undefined,
- byte___6740: undefined,
- mask___6745: undefined,
- i___6746: undefined,
- writeMask___6767: undefined,
- newVal___6771: undefined,
- ret___6794: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
-} }
-
-
-
-
-
-function control_assert__P319(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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_4 = r0;
+ r0 = (s.tmp_3 < s.tmp_4);
+ case 21:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_6);
+ if (!r0) { step = 22; continue; }
+ r0 = s.tmp_6;
+ { step = 25; continue; }
+ case 22:
+ s.tmp_7 = r0 = s.collision22___76348;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (r0) { step = 23; continue; }
+ r0 = s.tmp_7;
+ { step = 24; continue; }
+ case 23:
+ s.tmp_8 = r0 = s.m___76408;
+ r0 = s.arg0.fields["p"];
+ s.tmp_10 = r0;
+ r0 = s.tmp_10.fields["_backgroundsI"];
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__length(s.tmp_11);
+ s.tmp_9 = r0;
+ r0 = (s.tmp_8 < s.tmp_9);
+ case 24:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ r0 = s.tmp_12;
+ case 25:
+ // jmp value (already in r0)
+ s.tmp_13 = r0;
+ r0 = s.tmp_13;
+ case 26:
+ // jmp value (already in r0)
+ s.tmp_14 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_14);
+ if (!r0) { step = 29; continue; }
+ r0 = s.arg0.fields["attrSelected"];
+ s.tmp_15 = r0;
+ r0 = pxsim_Array__getAt(globals.attrValues___63789, s.tmp_15);
+ s.val___76436 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.collision22___76348);
s.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 = control_fail__P320_mk(s);
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
- case 4:
- r0 = s.retval;
+ if (!r0) { step = 27; continue; }
+ r0 = s.m___76408;
+ { step = 28; continue; }
+ case 27:
+ s.tmp_2 = r0 = s.m___76408;
+ r0 = s.arg0.fields["p"];
+ s.tmp_4 = r0;
+ r0 = s.tmp_4.fields["_backgroundsI"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__length(s.tmp_5);
s.tmp_3 = r0;
- r0 = pxsim_String__concat("Assertion failed, code=", s.tmp_3);
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 25; s.pc = 3; return s.tmp_2;
- case 3:
+ r0 = (s.tmp_2 + s.tmp_3);
+ case 28:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ s.tmp_7 = tileworld_ruleediting_RuleEditor_setAttr__P74517_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.tmp_6;
+ s.tmp_7.arg2 = s.val___76436;
+ s.tmp_7.arg3 = true;
+ s.callLocIdx = 1181; s.pc = 40; return s.tmp_7;
+ case 40:
r0 = s.retval;
- case 1:
- case 2:
+ case 29:
+ case 30:
+ case 31:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control_assert__P319.info = {"start":2509,"length":141,"line":83,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"assert","argumentNames":["cond","code"]}
+tileworld_ruleediting_RuleEditor_attrUpdate__P74516.info = {"start":20703,"length":967,"line":471,"column":8,"endLine":491,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrUpdate","argumentNames":["this"]}
-function control_assert__P319_mk(s) {
+function tileworld_ruleediting_RuleEditor_attrUpdate__P74516_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_assert__P319, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_attrUpdate__P74516, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function control_fail__P320(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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_log__P366_mk(s);
- s.tmp_0.arg0 = "Fatal failure: ";
- s.callLocIdx = 26; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 27; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- r0 = pxsim.control.dmesg(s.arg0);
- r0 = pxsim_pxtrt.panic(108);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-control_fail__P320.info = {"start":2656,"length":155,"line":89,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"fail","argumentNames":["message"]}
-
-function control_fail__P320_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: control_fail__P320, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function console_log__P366(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__P362_mk(s);
- s.tmp_0.arg0 = 1;
- s.tmp_0.arg1 = s.arg0;
- s.callLocIdx = 38; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-console_log__P366.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]}
-
-function console_log__P366_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: console_log__P366, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: 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,
+ collision22___76348: undefined,
+ a___76371: undefined,
+ i___76380: undefined,
+ m___76408: undefined,
+ val___76436: undefined,
arg0: undefined,
} }
@@ -31967,7 +30132,7 @@ function console_log__P366_mk(s) {
-function console_add__P362(s) {
+function tileworld_ruleediting_RuleEditor_setAttr__P74517(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -31977,87 +30142,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.text___27416 = undefined;
- s.i___27425 = undefined;
+ s.whenDo___76455 = 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 < globals.minPriority___361);
- 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__P368_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.tmp_1.arg1 = 20;
- s.callLocIdx = 36; s.pc = 6; return s.tmp_1;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = false;
+ s.callLocIdx = 1182; s.pc = 6; return s.tmp_1;
case 6:
r0 = s.retval;
- s.text___27416 = (r0);
- if ((s.text___27416) && (s.text___27416).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.text___27416);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.text___27416) + ""; }
+ s.tmp_0.arg1 = r0;
+ s.tmp_3 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = false;
+ s.callLocIdx = 1183; s.pc = 7; return s.tmp_3;
case 7:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "\n");
- s.text___27416 = (r0);
- s.i___27425 = (0);
- case 3:
- s.tmp_1 = r0 = s.i___27425;
- r0 = pxsim_Array__length(globals.listeners___3939);
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___3939, s.i___27425);
- s.tmp_3.argL = r0;
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.text___27416;
- setupLambda(s.tmp_3, s.tmp_3.argL);
- s.callLocIdx = 37; s.pc = 8; return s.tmp_3;
+ r0 = (s.tmp_2 - 2);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1184; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.whenDo___76455 = (r0);
+ s.tmp_0 = r0 = s.arg3;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_2 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_2.arg0 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_2.arg1 = r0;
+ s.tmp_2.arg2 = s.whenDo___76455;
+ s.tmp_2.arg3 = s.arg1;
+ s.tmp_2.arg4 = 65535;
+ s.callLocIdx = 1185; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
- r0 = (s.i___27425 + 1);
- s.i___27425 = (r0);
- { step = 3; continue; }
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.arg2);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ s.arg2 = (0);
+ case 3:
case 4:
- case 5:
+ s.tmp_0 = tileworld_AllExport_getSetAttr__P63673_mk(s);
+ r0 = s.arg0.fields["all"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.whenDo___76455;
+ s.tmp_0.arg3 = s.arg1;
+ s.tmp_0.arg4 = s.arg2;
+ s.callLocIdx = 1186; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-console_add__P362.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]}
+tileworld_ruleediting_RuleEditor_setAttr__P74517.info = {"start":21680,"length":336,"line":493,"column":8,"endLine":498,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setAttr","argumentNames":["this","m","val","toggle"]}
-function console_add__P362_mk(s) {
+function tileworld_ruleediting_RuleEditor_setAttr__P74517_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: console_add__P362, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_setAttr__P74517, depth: s.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___27416: undefined,
- i___27425: undefined,
+ whenDo___76455: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function inline__P3938(s) {
+function tileworld_RuleView_getWhenDoRow__P63643(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32072,18 +30254,24 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim.control.__log(s.arg0, s.arg1);
- r0 = undefined;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ r0 = r0.fields["row"];
return leave(s, r0)
default: oops()
} } }
-inline__P3938.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]}
+tileworld_RuleView_getWhenDoRow__P63643.info = {"start":3939,"length":93,"line":118,"column":8,"endLine":120,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoRow","argumentNames":["this","whendo"]}
-function inline__P3938_mk(s) {
+function tileworld_RuleView_getWhenDoRow__P63643_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P3938, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getWhenDoRow__P63643, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -32092,7 +30280,7 @@ function inline__P3938_mk(s) {
-function console_inspect__P368(s) {
+function tileworld_RuleView_getWhenDoCol__P63642(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32102,230 +30290,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.asArr___22483 = undefined;
- s.asString___22501 = undefined;
- s.keys___22513 = undefined;
- s.snipped___22517 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore.typeOf(s.arg0);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == "string");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
r0 = s.arg0;
- { step = 17; continue; }
- { step = 16; continue; }
- case 1:
- r0 = pxsim_pxtcore.typeOf(s.arg0);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == "number");
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 2; continue; }
- r0 = pxsim_String_.mkEmpty();
- s.tmp_4 = r0;
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 18);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 18:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
- { step = 17; continue; }
- { step = 15; continue; }
- case 2:
- r0 = pxsim_Array_.isArray(s.arg0);
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 5; continue; }
- s.asArr___22483 = (s.arg0);
- r0 = pxsim_Array__length(s.asArr___22483);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 <= s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = helpers_arrayJoin__P98_mk(s);
- s.tmp_2.arg0 = s.asArr___22483;
- s.tmp_2.arg1 = ",";
- s.callLocIdx = 39; s.pc = 19; return s.tmp_2;
- case 19:
- r0 = s.retval;
- { step = 17; continue; }
- { step = 4; continue; }
- case 3:
- r0 = pxsim_String_.mkEmpty();
- s.tmp_4 = r0;
- s.tmp_7 = helpers_arrayJoin__P98_mk(s);
- s.tmp_8 = helpers_arraySlice__P109_mk(s);
- s.tmp_8.arg0 = s.asArr___22483;
- s.tmp_8.arg1 = 0;
- s.tmp_8.arg2 = s.arg1;
- s.callLocIdx = 40; s.pc = 21; return s.tmp_8;
- case 21:
- r0 = s.retval;
- s.tmp_7.arg0 = r0;
- s.tmp_7.arg1 = ",";
- s.callLocIdx = 41; s.pc = 20; return s.tmp_7;
- case 20:
- r0 = s.retval;
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_3, "...");
- { step = 17; continue; }
- case 4:
- { step = 14; continue; }
- case 5:
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 23);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 23:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_10 = r0;
- r0 = pxsim_String__concat(s.tmp_9, s.tmp_10);
- s.asString___22501 = (r0);
- r0 = (s.asString___22501 != "[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___22501 != "[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___22501;
- { step = 17; continue; }
- case 8:
- case 9:
- r0 = pxsim_pxtrt.keysOf(s.arg0);
- s.keys___22513 = (r0);
- r0 = pxsim_Array__length(s.keys___22513);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 > s.arg1);
- s.snipped___22517 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.snipped___22517);
- if (!r0) { step = 10; continue; }
- s.tmp_0 = helpers_arraySlice__P109_mk(s);
- s.tmp_0.arg0 = s.keys___22513;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 42; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- s.keys___22513 = (r0);
- case 10:
- case 11:
- r0 = pxsim_pxtcore_mkAction(1, inline__P22534);
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_numops_toBoolDecr(s.snipped___22517);
- if (!r0) { step = 12; continue; }
- r0 = "\n ...";
- { step = 13; continue; }
- case 12:
- r0 = pxsim_String_.mkEmpty();
- case 13:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.tmp_7 = helpers_arrayReduce__P107_mk(s);
- s.tmp_7.arg0 = s.keys___22513;
- s.tmp_7.arg1 = s.tmp_0;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_7.arg2 = r0;
- s.callLocIdx = 43; s.pc = 25; return s.tmp_7;
- case 25:
- r0 = s.retval;
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_5 = r0;
- if ((s.tmp_1) && (s.tmp_1).vtable) {
- setupResume(s, 27);
- pxsim_String__stringConv(s.tmp_1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_1) + ""; }
- case 27:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_String__concat(s.tmp_5, s.tmp_8);
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 28);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 28:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat("{", s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_2, "\n}");
- { step = 17; continue; }
- case 14:
- case 15:
- case 16:
- r0 = undefined;
- case 17:
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ r0 = r0.fields["col"];
return leave(s, r0)
default: oops()
} } }
-console_inspect__P368.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]}
+tileworld_RuleView_getWhenDoCol__P63642.info = {"start":3836,"length":93,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoCol","argumentNames":["this","whendo"]}
-function console_inspect__P368_mk(s) {
+function tileworld_RuleView_getWhenDoCol__P63642_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: console_inspect__P368, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getWhenDoCol__P63642, depth: s.depth + 1,
pc: 0, retval: undefined, 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___22483: undefined,
- asString___22501: undefined,
- keys___22513: undefined,
- snipped___22517: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -32334,7 +30321,7 @@ function console_inspect__P368_mk(s) {
-function inline__P22534(s) {
+function tileworld_ruleediting_RuleDisplay_active__P73105(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32347,62 +30334,67 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
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, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = s.arg0.fields["collideCol"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != -1);
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);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = (s.arg1 == 2);
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_2;
+ { step = 2; continue; }
+ case 1:
+ r0 = (s.arg2 == 2);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_3;
+ { step = 6; continue; }
+ case 3:
+ r0 = s.arg0.fields["collideCol"];
+ s.tmp_5 = r0;
+ r0 = (s.arg1 == s.tmp_5);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 4; continue; }
+ r0 = s.tmp_4;
+ { step = 5; continue; }
case 4:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ r0 = s.arg0.fields["collideRow"];
+ s.tmp_6 = r0;
+ r0 = (s.arg2 == 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 = s.tmp_8;
+ { step = 9; continue; }
+ case 7:
+ case 8:
+ r0 = true;
+ case 9:
return leave(s, r0)
default: oops()
} } }
-inline__P22534.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]}
+tileworld_ruleediting_RuleDisplay_active__P73105.info = {"start":5751,"length":231,"line":136,"column":8,"endLine":141,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"active","argumentNames":["this","col","row"]}
-function inline__P22534_mk(s) {
+function tileworld_ruleediting_RuleDisplay_active__P73105_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P22534, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_active__P73105, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -32412,15 +30404,17 @@ function inline__P22534_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
+ tmp_8: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function helpers_arrayReduce__P107(s) {
+function tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32430,62 +30424,106 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___22561 = undefined;
- s.i___22564 = 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___22561 = (r0);
- s.i___22564 = (0);
- case 1:
- r0 = (s.i___22564 < s.len___22561);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1056; s.pc = 7; return s.tmp_2;
+ case 7:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (1 <= s.tmp_1);
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___22564);
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.i___22564;
- setupLambda(s.tmp_1, s.tmp_1.argL);
- s.callLocIdx = 9; s.pc = 3; return s.tmp_1;
- case 3:
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1057; s.pc = 8; return s.tmp_4;
+ case 8:
r0 = s.retval;
- s.arg2 = (r0);
- r0 = (s.i___22564 + 1);
- s.i___22564 = (r0);
- { step = 1; continue; }
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 <= 3);
case 2:
- r0 = s.arg2;
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_5;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_8 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.tmp_8.arg1 = true;
+ s.callLocIdx = 1058; s.pc = 9; return s.tmp_8;
+ case 9:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 2);
+ s.tmp_6 = r0;
+ r0 = (1 <= s.tmp_6);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_9);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_9;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_12 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_12.arg0 = s.arg0;
+ s.tmp_12.arg1 = true;
+ s.callLocIdx = 1059; s.pc = 10; return s.tmp_12;
+ case 10:
+ r0 = s.retval;
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 - 2);
+ s.tmp_10 = r0;
+ r0 = (s.tmp_10 <= 3);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_13 = r0;
+ r0 = s.tmp_13;
return leave(s, r0)
default: oops()
} } }
-helpers_arrayReduce__P107.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"]}
+tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501.info = {"start":10238,"length":176,"line":218,"column":8,"endLine":221,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inWhenPredicate","argumentNames":["this"]}
-function helpers_arrayReduce__P107_mk(s) {
+function tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayReduce__P107, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- len___22561: undefined,
- i___22564: 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,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function helpers_arrayJoin__P98(s) {
+function tileworld_ruleediting_RuleEditor_resetRule__P74497(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32495,144 +30533,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.r___27365 = undefined;
- s.len___27366 = undefined;
- s.i___27369 = 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___27365 = (r0);
- r0 = pxsim_Array__length(s.arg0);
- s.len___27366 = (r0);
- s.i___27369 = (0);
- case 5:
- r0 = (s.i___27369 < s.len___27366);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- r0 = (s.i___27369 > 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___27365) && (s.r___27365).vtable) {
- setupResume(s, 15);
- pxsim_String__stringConv(s.r___27365);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___27365) + ""; }
- 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___27365 = (r0);
- case 8:
- case 9:
- r0 = pxsim_Array__getAt(s.arg0, s.i___27369);
- 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___27369);
- 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___27369);
- case 13:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- if ((s.r___27365) && (s.r___27365).vtable) {
- setupResume(s, 17);
- pxsim_String__stringConv(s.r___27365);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___27365) + ""; }
- 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___27365 = (r0);
- r0 = (s.i___27369 + 1);
- s.i___27369 = (r0);
- { step = 5; continue; }
- case 14:
- r0 = s.r___27365;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["rule"] = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_arrayJoin__P98.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"]}
+tileworld_ruleediting_RuleEditor_resetRule__P74497.info = {"start":8444,"length":78,"line":175,"column":8,"endLine":177,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"resetRule","argumentNames":["this","rv"]}
-function helpers_arrayJoin__P98_mk(s) {
+function tileworld_ruleediting_RuleEditor_resetRule__P74497_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayJoin__P98, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_resetRule__P74497, depth: s.depth + 1,
pc: 0, retval: undefined, 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___27365: undefined,
- len___27366: undefined,
- i___27369: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -32641,7 +30560,7 @@ function helpers_arrayJoin__P98_mk(s) {
-function tileworld_ruleediting_RuleDisplay_getKind__P13104(s) {
+function tileworld_RuleView_getRuleId__P63634(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32651,45 +30570,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.kinds___13168 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getSpriteKinds__P3659_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 701; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.kinds___13168 = (r0);
- r0 = pxsim_Array__length(s.kinds___13168);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__getAt(s.kinds___13168, 0);
- { step = 3; continue; }
- case 1:
- case 2:
- r0 = -1;
- case 3:
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ r0 = s.arg0.fields["rid"];
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_getKind__P13104.info = {"start":1754,"length":173,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getKind","argumentNames":["this"]}
+tileworld_RuleView_getRuleId__P63634.info = {"start":1714,"length":59,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleId","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_getKind__P13104_mk(s) {
+function tileworld_RuleView_getRuleId__P63634_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_getKind__P13104, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_getRuleId__P63634, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- kinds___13168: undefined,
arg0: undefined,
} }
@@ -32697,7 +30594,7 @@ function tileworld_ruleediting_RuleDisplay_getKind__P13104_mk(s) {
-function tileworld_RuleView_getSpriteKinds__P3659(s) {
+function tileworld_Project_removeRule__P63699(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32707,78 +30604,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7728 = undefined;
- s.ret___7730 = undefined;
- s.i___7732 = undefined;
- s.at___7739 = undefined;
+ s.r___68271 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 2;
- s.callLocIdx = 144; s.pc = 7; return s.tmp_0;
- case 7:
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68275);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ s.tmp_1 = helpers_arrayFind__P60101_mk(s);
+ r0 = s.arg0.fields["rules"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 187; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- s.wd___7728 = (r0);
- r0 = pxsim_Array__mk();
- s.ret___7730 = (r0);
- s.i___7732 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___7732;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
+ s.r___68271 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.r___68271);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0.fields["rules"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.removeElement(s.tmp_0, s.r___68271);
+ s.tmp_0 = settings_remove__P61828_mk(s);
+ r0 = s.arg0.fields["prefix"];
s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 5:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ if ((globals.RuleKey___68296) && (globals.RuleKey___68296).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(globals.RuleKey___68296);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.RuleKey___68296) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_5 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.wd___7728;
- s.tmp_5.arg2 = s.i___7732;
- s.tmp_5.arg3 = 65535;
- s.callLocIdx = 146; s.pc = 8; return s.tmp_5;
- case 8:
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 7:
r0 = s.retval;
- s.at___7739 = (r0);
- r0 = (s.at___7739 == 1);
- 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.at___7739 == 2);
- 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.ret___7730, s.i___7732);
+ r0 = pxsim_numops.toString(s.arg1);
+ s.tmp_7 = r0;
+ if ((s.tmp_7) && (s.tmp_7).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.tmp_7);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_7) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_6);
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 188; s.pc = 4; return s.tmp_0;
case 4:
- case 5:
- r0 = (s.i___7732 + 1);
- s.i___7732 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = s.ret___7730;
+ r0 = s.retval;
+ case 1:
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getSpriteKinds__P3659.info = {"start":8504,"length":410,"line":244,"column":8,"endLine":254,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSpriteKinds","argumentNames":["this"]}
+tileworld_Project_removeRule__P63699.info = {"start":4966,"length":259,"line":142,"column":8,"endLine":148,"endColumn":9,"fileName":"project.ts","functionName":"removeRule","argumentNames":["this","rid"]}
-function tileworld_RuleView_getSpriteKinds__P3659_mk(s) {
+function tileworld_Project_removeRule__P63699_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getSpriteKinds__P3659, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_removeRule__P63699, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -32786,18 +30695,18 @@ function tileworld_RuleView_getSpriteKinds__P3659_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- wd___7728: undefined,
- ret___7730: undefined,
- i___7732: undefined,
- at___7739: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ r___68271: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_getDir__P13102(s) {
+function inline__P68275(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32811,23 +30720,18 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 699; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0.fields["rid"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 == s.caps[0]);
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_getDir__P13102.info = {"start":1582,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDir","argumentNames":["this"]}
+inline__P68275.info = {"start":5035,"length":25,"line":143,"column":36,"endLine":143,"endColumn":61,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
-function tileworld_ruleediting_RuleDisplay_getDir__P13102_mk(s) {
+function inline__P68275_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_getDir__P13102, depth: s.depth + 1,
+ parent: s, fn: inline__P68275, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -32837,7 +30741,7 @@ function tileworld_ruleediting_RuleDisplay_getDir__P13102_mk(s) {
-function tileworld_ruleediting_RuleDisplay_getType__P13103(s) {
+function tileworld_ruleediting_RuleEditor_currentRules__P74499(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32852,20 +30756,24 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = s.arg0.fields["rule"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["r"];
- r0 = r0.fields["ruleType"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_Project_getRulesForSpriteKind__P63705_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1026; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_getType__P13103.info = {"start":1669,"length":75,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getType","argumentNames":["this"]}
+tileworld_ruleediting_RuleEditor_currentRules__P74499.info = {"start":8643,"length":163,"line":184,"column":8,"endLine":187,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"currentRules","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s) {
+function tileworld_ruleediting_RuleEditor_currentRules__P74499_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_getType__P13103, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_currentRules__P74499, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -32875,7 +30783,7 @@ function tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s) {
-function tileworld_ruleediting_RuleEditor_changeRule__P14504(s) {
+function Sprite_say__P62066(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -32885,147 +30793,468 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.textToDisplay___81377 = undefined;
+ s.SAYKEY___81385 = undefined;
+ s.key___81387 = undefined;
+ s.pixelsOffset___81409 = undefined;
+ s.holdTextSeconds___81410 = undefined;
+ s.bubblePadding___81411 = undefined;
+ s.maxTextWidth___81412 = undefined;
+ s.font___81413 = undefined;
+ s.startX___81416 = undefined;
+ s.startY___81417 = undefined;
+ s.bubbleWidth___81418 = undefined;
+ s.maxOffset___81426 = undefined;
+ s.bubbleOffset___81434 = undefined;
+ s.needsRedraw___81439 = undefined;
+ s.speed___81440 = undefined;
+ s.currentScene___81441 = undefined;
+ s.imgh___81488 = undefined;
+ s.sayImg___81510 = 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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1021; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg2);
+ s.arg2 = (s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ 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 = 3; continue; }
+ r0 = (s.arg0).fields["updateSay"] = (undefined);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = Sprite_destroy__P62079_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = undefined;
+ s.tmp_1.arg2 = undefined;
+ s.callLocIdx = 297; s.pc = 28; return s.tmp_1;
+ case 28:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["sayBubbleSprite"] = (undefined);
case 1:
+ case 2:
+ { step = 27; continue; }
+ case 3:
+ case 4:
+ s.tmp_0 = helpers_arrayJoin__P60093_mk(s);
+ s.tmp_1 = helpers_stringSplit__P60109_mk(s);
+ s.tmp_2 = console_inspect__P60363_mk(s);
+ s.tmp_2.arg0 = s.arg1;
+ s.tmp_2.arg1 = 20;
+ s.callLocIdx = 298; s.pc = 31; return s.tmp_2;
+ case 31:
+ r0 = s.retval;
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = "\n";
+ s.tmp_1.arg2 = undefined;
+ s.callLocIdx = 299; s.pc = 30; return s.tmp_1;
+ case 30:
+ r0 = s.retval;
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = " ";
+ s.callLocIdx = 300; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.textToDisplay___81377 = (r0);
+ s.SAYKEY___81385 = ("__saykey");
+ r0 = pxsim_pxtrt.mkMap();
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___81377);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textColor", s.arg3);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textBoxColor", s.arg4);
+ s.tmp_1 = JSON_stringify__P60368_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = null;
+ s.tmp_1.arg2 = 0;
+ s.callLocIdx = 301; s.pc = 32; return s.tmp_1;
+ case 32:
+ r0 = s.retval;
+ s.key___81387 = (r0);
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 === undefined);
+ 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["sayBubbleSprite"];
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_2;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_5 = Sprite_data__P62033_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 302; s.pc = 33; return s.tmp_5;
+ case 33:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___81385);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == s.key___81387);
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 9; continue; }
+ { step = 27; continue; }
+ case 9:
+ case 10:
+ r0 = pxsim_pxtrt.mklocRef();
+ s.pixelsOffset___81409 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___81409, 0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.holdTextSeconds___81410 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___81410, 1.5);
+ s.bubblePadding___81411 = (4);
+ s.maxTextWidth___81412 = (100);
+ s.tmp_0 = image_getFontForText__P61739_mk(s);
+ s.tmp_0.arg0 = s.textToDisplay___81377;
+ s.callLocIdx = 303; s.pc = 34; return s.tmp_0;
+ case 34:
+ r0 = s.retval;
+ s.font___81413 = (r0);
+ s.startX___81416 = (2);
+ s.startY___81417 = (2);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.bubbleWidth___81418 = (r0);
+ s.tmp_0 = r0 = s.bubbleWidth___81418;
+ r0 = pxsim_String_.length(s.textToDisplay___81377);
+ s.tmp_3 = r0;
+ s.tmp_5 = if_charWidth_1_mk(s);
+ s.tmp_5.arg0 = s.font___81413;
+ if (!s.tmp_5.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth");
+ } else {
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"];
+ if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; }
+ else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
+ else { s.callLocIdx = 304; s.pc = 35; return s.tmp_5; }
+ }
+ case 35:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 * s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.bubblePadding___81411);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.maxOffset___81426 = (r0);
+ s.tmp_0 = r0 = s.maxOffset___81426;
+ r0 = pxsim_String_.length(s.textToDisplay___81377);
+ s.tmp_3 = r0;
+ s.tmp_5 = if_charWidth_1_mk(s);
+ s.tmp_5.arg0 = s.font___81413;
+ if (!s.tmp_5.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth");
+ } else {
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"];
+ if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; }
+ else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
+ else { s.callLocIdx = 305; s.pc = 36; return s.tmp_5; }
+ }
+ case 36:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 * s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - s.maxTextWidth___81412);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = s.arg0.fields["_hitbox"];
+ r0 = r0.fields["oy"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + 128);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >> 8);
+ s.bubbleOffset___81434 = (r0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.needsRedraw___81439 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___81439, true);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.speed___81440 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.speed___81440, 45);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 307; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.currentScene___81441 = (r0);
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 11; continue; }
+ r0 = s.tmp_0;
+ { step = 12; continue; }
+ case 11:
+ r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___81426);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 13; continue; }
+ s.tmp_3 = r0 = s.speed___81440;
+ r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___81426);
+ s.tmp_6 = r0;
+ r0 = (2 * s.maxTextWidth___81412);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 + s.tmp_7);
+ s.tmp_5 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 / 1000);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_5 / s.tmp_8);
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
+ s.tmp_0 = r0 = s.speed___81440;
+ s.tmp_2 = Math_max__P60117_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.speed___81440);
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = 45;
+ s.callLocIdx = 308; s.pc = 38; return s.tmp_2;
+ case 38:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1022; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_0 = r0 = s.holdTextSeconds___81410;
+ s.tmp_2 = r0 = s.maxTextWidth___81412;
+ r0 = pxsim_pxtrt_ldlocRef(s.speed___81440);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 / s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_0 = r0 = s.holdTextSeconds___81410;
+ s.tmp_2 = Math_min__P60118_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___81410);
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = 1.5;
+ s.callLocIdx = 309; s.pc = 39; return s.tmp_2;
+ case 39:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_ruleediting_RuleEditor_changeRule__P14504.info = {"start":8300,"length":116,"line":170,"column":8,"endLine":173,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"changeRule","argumentNames":["this","rv"]}
-
-function tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_changeRule__P14504, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ case 13:
+ case 14:
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_1 = r0 = s.arg2;
+ r0 = pxsim_pxtrt_ldlocRef(s.arg2);
+ s.tmp_3 = r0;
+ r0 = s.currentScene___81441.fields["_millis"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 + s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2);
+ case 15:
+ case 16:
+ r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___81418);
+ s.tmp_1 = r0;
+ r0 = (s.maxTextWidth___81412 + s.bubblePadding___81411);
+ 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 = 17; continue; }
+ s.tmp_3 = r0 = s.bubbleWidth___81418;
+ r0 = (s.maxTextWidth___81412 + s.bubblePadding___81411);
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
+ { step = 18; continue; }
+ case 17:
+ r0 = pxsim_pxtrt_stlocRef(s.maxOffset___81426, -1);
+ case 18:
+ s.tmp_1 = if_charHeight_1_mk(s);
+ s.tmp_1.arg0 = s.font___81413;
+ 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 = 311; s.pc = 40; return s.tmp_1; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1191; s.pc = 10; return s.tmp_2;
- case 10:
+ case 40:
r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + s.bubblePadding___81411);
+ s.imgh___81488 = (r0);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_2 = r0;
+ 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 = 19; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1192; s.pc = 11; return s.tmp_4;
- case 11:
- r0 = s.retval;
+ { step = 20; continue; }
+ case 19:
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["_image"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.width(s.tmp_4);
s.tmp_3 = r0;
- r0 = (s.tmp_3 > 6);
- case 2:
+ r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___81418);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_3 != s.tmp_6);
+ case 20:
// jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 3; continue; }
- { step = 9; continue; }
- case 3:
- case 4:
- r0 = s.arg0.fields["rule"];
- s.tmp_8 = r0;
- r0 = s.tmp_8.fields["r"];
- r0 = r0.fields["ruleType"];
s.tmp_7 = r0;
- r0 = (s.tmp_7 == 2);
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBool(s.tmp_6);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_6;
- { step = 6; continue; }
- case 5:
- s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_10.arg0 = s.arg0;
- s.tmp_10.arg1 = true;
- s.callLocIdx = 1194; s.pc = 12; return s.tmp_10;
- case 12:
- r0 = s.retval;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (!r0) { step = 21; continue; }
+ r0 = s.tmp_7;
+ { step = 22; continue; }
+ case 21:
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_10 = r0;
+ r0 = s.tmp_10.fields["_image"];
s.tmp_9 = r0;
- r0 = (s.tmp_9 < 4);
- case 6:
+ r0 = pxsim_ImageMethods.height(s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 != s.imgh___81488);
+ case 22:
// jmp value (already in r0)
s.tmp_11 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_11);
- if (!r0) { step = 7; continue; }
- { step = 9; continue; }
- case 7:
- case 8:
- s.tmp_12 = tileworld_RuleView_setWitnessDirection__P3652_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_12.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_12.arg1 = r0;
- s.tmp_13 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_13.arg0 = s.arg0;
- s.tmp_13.arg1 = true;
- s.callLocIdx = 1195; s.pc = 14; return s.tmp_13;
- case 14:
+ if (!r0) { step = 25; continue; }
+ r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___81418);
+ s.tmp_12 = r0;
+ r0 = pxsim.image.create(s.tmp_12, s.imgh___81488);
+ s.sayImg___81510 = (r0);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 23; continue; }
+ s.tmp_1 = Sprite_setImage__P62048_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.sayImg___81510;
+ s.callLocIdx = 314; s.pc = 41; return s.tmp_1;
+ case 41:
r0 = s.retval;
- s.tmp_12.arg2 = r0;
- s.callLocIdx = 1196; s.pc = 13; return s.tmp_12;
- case 13:
+ { step = 24; continue; }
+ case 23:
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = s.sayImg___81510;
+ s.tmp_2.arg1 = -1;
+ s.callLocIdx = 315; s.pc = 42; return s.tmp_2;
+ case 42:
r0 = s.retval;
- case 9:
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["sayBubbleSprite"] = (s.tmp_1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 316; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 512;
+ r0 = s.arg0.fields["flags"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 & 512);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 317; s.pc = 44; return s.tmp_0;
+ case 44:
+ r0 = s.retval;
+ case 24:
+ case 25:
+ case 26:
+ s.tmp_1 = Sprite_data__P62033_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 318; s.pc = 45; return s.tmp_1;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___81385, s.key___81387);
+ r0 = pxsim_pxtcore_mkAction(18, inline__P81550);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bubbleOffset___81434);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.font___81413);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.bubblePadding___81411);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg2);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.currentScene___81441);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.holdTextSeconds___81410);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.pixelsOffset___81409);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxTextWidth___81412);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.speed___81440);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.needsRedraw___81439);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.maxOffset___81426);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.arg4);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___81377);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___81416);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___81417);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 16, s.arg3);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___81418);
+ r0 = (s.arg0).fields["updateSay"] = (s.tmp_0);
+ s.tmp_0 = if_updateSay_3_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ r0 = s.currentScene___81441.fields["camera"];
+ s.tmp_0.arg2 = r0;
+ if (!s.tmp_0.arg0.vtable.iface) {
+ setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "updateSay"), 3);
+ s.callLocIdx = 357; s.pc = 46; return s.tmp_0;
+ } else {
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["updateSay"];
+ if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["updateSay"], 3); s.callLocIdx = 357; s.pc = 46; return s.tmp_0; }
+ else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 357; s.pc = 46; return s.tmp_0;; }
+ else { s.callLocIdx = 357; s.pc = 46; return s.tmp_0; }
+ }
+ case 46:
+ r0 = s.retval;
+ case 27:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527.info = {"start":22424,"length":293,"line":511,"column":8,"endLine":517,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprUpdate","argumentNames":["this"]}
+Sprite_say__P62066.info = {"start":13031,"length":6828,"line":467,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"say","argumentNames":["this","text","timeOnScreen","textColor","textBoxColor"]}
-function tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527_mk(s) {
+function Sprite_say__P62066_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527, depth: s.depth + 1,
+ parent: s, fn: Sprite_say__P62066, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -33040,61 +31269,36 @@ function tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527_mk(s) {
tmp_10: undefined,
tmp_11: undefined,
tmp_12: undefined,
- tmp_13: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleView_setWitnessDirection__P3652(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["dir"] = (s.arg2);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleView_setWitnessDirection__P3652.info = {"start":6522,"length":107,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"ruleview.ts","functionName":"setWitnessDirection","argumentNames":["this","wdid","val"]}
-
-function tileworld_RuleView_setWitnessDirection__P3652_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleView_setWitnessDirection__P3652, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
+ textToDisplay___81377: undefined,
+ SAYKEY___81385: undefined,
+ key___81387: undefined,
+ pixelsOffset___81409: undefined,
+ holdTextSeconds___81410: undefined,
+ bubblePadding___81411: undefined,
+ maxTextWidth___81412: undefined,
+ font___81413: undefined,
+ startX___81416: undefined,
+ startY___81417: undefined,
+ bubbleWidth___81418: undefined,
+ maxOffset___81426: undefined,
+ bubbleOffset___81434: undefined,
+ needsRedraw___81439: undefined,
+ speed___81440: undefined,
+ currentScene___81441: undefined,
+ imgh___81488: undefined,
+ sayImg___81510: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function tileworld_ruleediting_RuleEditor_commandUpdate__P14519(s) {
+function inline__P81550(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -33104,292 +31308,501 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tok___16109 = undefined;
- s.arg___16116 = undefined;
- s.inst___16123 = undefined;
- s.len___16142 = undefined;
+ s.ox___81588 = undefined;
+ s.oy___81591 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = s.arg0.fields["ruleTypeMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1127; s.pc = 27; return s.tmp_2;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_4 = Sprite_top__P62058_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.callLocIdx = 319; s.pc = 26; return s.tmp_4;
+ case 26:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + s.caps[1]);
+ s.tmp_2 = r0;
+ s.tmp_8 = if_charHeight_1_mk(s);
+ s.tmp_8.arg0 = s.caps[2];
+ 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 = 320; s.pc = 27; return s.tmp_8; }
+ }
case 27:
r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + s.caps[3]);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 >> 1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_2 - s.tmp_5);
s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1128; s.pc = 28; return s.tmp_4;
- case 28:
+ r0 = (s.tmp_1 - 2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 321; s.pc = 25; return s.tmp_0;
+ case 25:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.tok___16109 = (r0);
- r0 = s.arg0.fields["dirMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1129; s.pc = 29; return s.tmp_2;
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ s.callLocIdx = 322; s.pc = 29; return s.tmp_1;
case 29:
r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1130; s.pc = 30; return s.tmp_4;
- case 30:
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 323; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.arg___16116 = (r0);
- s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg0.fields["rule"];
+ s.tmp_0 = if_z_2_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1131; s.pc = 31; return s.tmp_0;
+ s.tmp_2 = if_z_1_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ 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 = 324; s.pc = 31; return s.tmp_2; }
+ }
case 31:
r0 = s.retval;
- s.inst___16123 = (r0);
- r0 = (s.tok___16109 == 100);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["help"];
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = Sprite_say__P2071_mk(s);
- r0 = s.arg0.fields["helpCursor"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = "delete command";
- s.tmp_2.arg2 = undefined;
- s.tmp_2.arg3 = 15;
- s.tmp_2.arg4 = 1;
- s.callLocIdx = 1132; s.pc = 32; return s.tmp_2;
- case 32:
+ r0 = (s.tmp_1 + 1);
+ s.tmp_0.arg1 = r0;
+ 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 = 325; s.pc = 30; return s.tmp_0; }
+ }
+ case 30:
r0 = s.retval;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
+ s.tmp_3 = r0;
+ r0 = s.caps[5].fields["_millis"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 > s.tmp_4);
case 2:
- { step = 4; continue; }
- case 3:
- s.tmp_0 = tileworld_RuleView_removeCommand__P3658_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1133; s.pc = 33; return s.tmp_0;
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 23; continue; }
+ s.tmp_9 = Sprite__C62008_v4_2_mk(s);
+ s.tmp_9.arg0 = s.caps[0];
+ s.tmp_9.arg1 = s.arg1;
+ if (!checkSubtype(s.tmp_9.arg0, Sprite__C62008_VT)) failedCast(s.tmp_9.arg0);
+ s.tmp_9.fn = s.tmp_9.arg0.vtable.methods.isOutOfScreen;
+ s.pc = 32; return s.tmp_9;
+ case 32:
+ r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ s.tmp_7 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_7);
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 9; continue; }
+ r0 = s.arg1.fields["_offsetX"];
+ s.ox___81588 = (r0);
+ r0 = s.arg1.fields["_offsetY"];
+ s.oy___81591 = (r0);
+ s.tmp_3 = Sprite_left__P62054_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 329; s.pc = 33; return s.tmp_3;
case 33:
r0 = s.retval;
- s.len___16142 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1134; s.pc = 34; return s.tmp_0;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - s.ox___81588);
+ 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; }
+ s.tmp_4 = Sprite_left__P62055_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = 0;
+ s.callLocIdx = 330; s.pc = 34; return s.tmp_4;
case 34:
r0 = s.retval;
+ case 3:
case 4:
- { step = 26; continue; }
- case 5:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1135; s.pc = 35; return s.tmp_2;
+ s.tmp_3 = Sprite_right__P62056_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 331; s.pc = 35; return s.tmp_3;
case 35:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - s.ox___81588);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- 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.tok___16109 != 15);
- case 7:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 14; continue; }
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 10; continue; }
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["help"];
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 8; continue; }
- s.tmp_5 = Sprite_say__P2071_mk(s);
- r0 = s.arg0.fields["helpCursor"];
+ r0 = (s.tmp_1 > s.tmp_4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_5 = Sprite_right__P62057_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
s.tmp_5.arg0 = r0;
- r0 = pxsim_Array__getAt(globals.categoryText___15113, s.tok___16109);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_5.arg1 = r0;
- s.tmp_5.arg2 = undefined;
- s.tmp_5.arg3 = 15;
- s.tmp_5.arg4 = 1;
- s.callLocIdx = 1136; s.pc = 36; return s.tmp_5;
+ s.callLocIdx = 332; s.pc = 36; return s.tmp_5;
case 36:
r0 = s.retval;
- case 8:
- case 9:
- { step = 13; continue; }
- case 10:
- r0 = (s.tok___16109 != s.inst___16123);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = tileworld_ruleediting_RuleEditor_setCommand__P14520_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tok___16109;
- s.tmp_2 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.tok___16109;
- s.callLocIdx = 1137; s.pc = 38; return s.tmp_2;
- case 38:
- r0 = s.retval;
- s.tmp_1.arg2 = r0;
- s.callLocIdx = 1138; s.pc = 37; return s.tmp_1;
+ case 5:
+ case 6:
+ s.tmp_3 = Sprite_top__P62058_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 333; s.pc = 37; return s.tmp_3;
case 37:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1139; s.pc = 39; return s.tmp_0;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - s.oy___81591);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_4 = Sprite_y__P62020_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_7 = Sprite_y__P62019_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_7.arg0 = r0;
+ s.callLocIdx = 334; s.pc = 39; return s.tmp_7;
case 39:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 1140; s.pc = 40; return s.tmp_0;
+ s.tmp_6 = r0;
+ s.tmp_10 = Sprite_y__P62019_mk(s);
+ s.tmp_10.arg0 = s.caps[0];
+ s.callLocIdx = 335; s.pc = 40; return s.tmp_10;
case 40:
r0 = s.retval;
- s.tmp_0 = Sprite_say__P2071_mk(s);
- r0 = s.arg0.fields["helpCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = null;
- s.tmp_0.arg2 = undefined;
- s.tmp_0.arg3 = 15;
- s.tmp_0.arg4 = 1;
- s.callLocIdx = 1141; s.pc = 41; return s.tmp_0;
+ s.tmp_9 = r0;
+ r0 = (2 * s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_6 - s.tmp_8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 * -1);
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 336; s.pc = 38; return s.tmp_4;
+ case 38:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_2 = r0 = s.caps[6];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
+ s.tmp_4 = r0;
+ s.tmp_7 = game_eventContext__P62524_mk(s);
+ s.callLocIdx = 337; s.pc = 41; return s.tmp_7;
case 41:
r0 = s.retval;
- case 11:
- case 12:
- case 13:
- { step = 25; continue; }
- case 14:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1142; s.pc = 42; return s.tmp_2;
- case 42:
- r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = s.tmp_6.fields["deltaTimeMillis"];
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 / 1000);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 - s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3);
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
+ r0 = (s.tmp_1 <= 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 15; continue; }
+ if (r0) { step = 11; continue; }
r0 = s.tmp_0;
- { step = 16; continue; }
- case 15:
- r0 = (s.arg___16116 != 15);
- case 16:
+ { step = 12; continue; }
+ case 11:
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 > 0);
+ case 12:
// jmp value (already in r0)
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 13; continue; }
+ r0 = pxsim_pxtrt_stlocRef(s.caps[7], 0);
+ s.tmp_0 = r0 = s.caps[6];
+ s.tmp_2 = r0 = s.caps[8];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 / s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt_stlocRef(s.caps[10], true);
+ case 13:
+ case 14:
+ { step = 18; continue; }
+ case 15:
+ s.tmp_0 = r0 = s.caps[7];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ s.tmp_2 = r0;
+ s.tmp_4 = r0 = s.arg0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 * s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = pxsim_pxtrt_stlocRef(s.caps[10], true);
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >= s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ s.tmp_3 = r0 = s.caps[7];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
+ s.tmp_0 = r0 = s.caps[6];
+ s.tmp_2 = r0 = s.caps[8];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 / s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ case 16:
+ case 17:
+ case 18:
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[10]);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 21; continue; }
+ r0 = pxsim_pxtrt_stlocRef(s.caps[10], false);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, s.caps[12]);
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 19; continue; }
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 17; continue; }
- s.tmp_4 = Sprite_say__P2071_mk(s);
- r0 = s.arg0.fields["helpCursor"];
- s.tmp_4.arg0 = r0;
- s.tmp_6 = tileworld_ruleediting_RuleEditor_instToArgText__P14516_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.inst___16123;
- s.callLocIdx = 1143; s.pc = 44; return s.tmp_6;
- case 44:
+ s.tmp_2 = helpers_imagePrint__P61752_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_image"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.caps[13];
+ s.tmp_2.arg2 = s.caps[14];
+ s.tmp_2.arg3 = s.caps[15];
+ s.tmp_2.arg4 = s.caps[16];
+ s.tmp_2.arg5 = s.caps[2];
+ s.tmp_2.arg6 = undefined;
+ s.callLocIdx = 341; s.pc = 42; return s.tmp_2;
+ case 42:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.arg___16116);
- s.tmp_4.arg1 = r0;
- s.tmp_4.arg2 = undefined;
- s.tmp_4.arg3 = 15;
- s.tmp_4.arg4 = 1;
- s.callLocIdx = 1144; s.pc = 43; return s.tmp_4;
+ { step = 20; continue; }
+ case 19:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.caps[13];
+ s.tmp_2 = r0 = s.caps[14];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 - s.tmp_3);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.caps[15];
+ s.tmp_0.arg4 = s.caps[16];
+ s.tmp_0.arg5 = s.caps[2];
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 343; s.pc = 43; return s.tmp_0;
case 43:
r0 = s.retval;
- { step = 18; continue; }
- case 17:
- s.tmp_0 = tileworld_RuleView_setCmdArg__P3657_mk(s);
- r0 = s.arg0.fields["rule"];
+ case 20:
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg___16116;
- s.callLocIdx = 1145; s.pc = 45; return s.tmp_0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.caps[3] >> 1);
+ s.tmp_0.arg3 = r0;
+ s.tmp_3 = if_charHeight_1_mk(s);
+ s.tmp_3.arg0 = s.caps[2];
+ 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 = 345; s.pc = 45; return s.tmp_3; }
+ }
case 45:
r0 = s.retval;
- case 18:
- { step = 24; continue; }
- case 19:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.caps[3]);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = s.caps[12];
+ s.callLocIdx = 346; s.pc = 44; return s.tmp_0;
+ case 44:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
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 = 20; continue; }
- r0 = s.tmp_0;
- { step = 21; continue; }
- case 20:
- s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = true;
- s.callLocIdx = 1146; s.pc = 46; return s.tmp_3;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0.arg0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
+ s.tmp_2 = r0;
+ r0 = (s.caps[3] >> 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 - s.tmp_3);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.caps[3] >> 1);
+ s.tmp_0.arg3 = r0;
+ s.tmp_5 = if_charHeight_1_mk(s);
+ s.tmp_5.arg0 = s.caps[2];
+ if (!s.tmp_5.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight");
+ } else {
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"];
+ if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; }
+ else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
+ else { s.callLocIdx = 348; s.pc = 47; return s.tmp_5; }
+ }
+ case 47:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 + s.caps[3]);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = s.caps[12];
+ s.callLocIdx = 349; s.pc = 46; return s.tmp_0;
case 46:
r0 = s.retval;
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, 0, 0);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
s.tmp_2 = r0;
- r0 = (s.tmp_2 > 1);
- case 21:
- // jmp value (already in r0)
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_2, 0, 0);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0 = r0;
+ s.tmp_5 = if_charHeight_1_mk(s);
+ s.tmp_5.arg0 = s.caps[2];
+ if (!s.tmp_5.arg0.vtable.iface) {
+ s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight");
+ } else {
+ s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"];
+ if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; }
+ else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
+ else { s.callLocIdx = 353; s.pc = 48; return s.tmp_5; }
+ }
+ case 48:
+ r0 = s.retval;
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 22; continue; }
- s.tmp_5 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 1147; s.pc = 47; return s.tmp_5;
- case 47:
+ r0 = (s.tmp_4 + s.caps[3]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, s.tmp_2, 0);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_image"];
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ s.tmp_7 = if_charHeight_1_mk(s);
+ s.tmp_7.arg0 = s.caps[2];
+ 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 = 355; s.pc = 49; return s.tmp_7; }
+ }
+ case 49:
r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + s.caps[3]);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 1);
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_2, s.tmp_4, 0);
+ case 21:
case 22:
+ { step = 24; continue; }
case 23:
+ r0 = (s.caps[0]).fields["updateSay"] = (undefined);
+ s.tmp_0 = Sprite_destroy__P62079_mk(s);
+ r0 = s.caps[0].fields["sayBubbleSprite"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = undefined;
+ s.tmp_0.arg2 = undefined;
+ s.callLocIdx = 356; s.pc = 50; return s.tmp_0;
+ case 50:
+ r0 = s.retval;
+ r0 = (s.caps[0]).fields["sayBubbleSprite"] = (undefined);
case 24:
- case 25:
- case 26:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_commandUpdate__P14519.info = {"start":17197,"length":1445,"line":388,"column":8,"endLine":419,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"commandUpdate","argumentNames":["this","hover"]}
+inline__P81550.info = {"start":16001,"length":3804,"line":542,"column":25,"endLine":616,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]}
-function tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s) {
+function inline__P81550_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_commandUpdate__P14519, depth: s.depth + 1,
+ parent: s, fn: inline__P81550, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -33398,10 +31811,12 @@ function tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- tok___16109: undefined,
- arg___16116: undefined,
- inst___16123: undefined,
- len___16142: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ ox___81588: undefined,
+ oy___81591: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -33410,7 +31825,7 @@ function tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s) {
-function tileworld_RuleView_setCmdArg__P3657(s) {
+function Sprite_destroy__P62079(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -33420,188 +31835,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7648 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7648 = (r0);
- r0 = s.wd___7648.fields["commandsLen"];
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
- r0 = (s.arg2 > s.tmp_1);
+ r0 = (s.tmp_1 & 2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = 255;
{ step = 5; continue; }
case 1:
case 2:
- r0 = s.wd___7648.fields["commandsLen"];
+ 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.arg2 == s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = (s.tmp_2).fields["flags"] = (s.tmp_3);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
if (!r0) { step = 3; continue; }
- s.tmp_4 = r0 = s.wd___7648;
- r0 = s.tmp_4.fields["commandsLen"];
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 1);
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5);
+ s.tmp_0 = effects_ParticleEffect_destroy__P62781_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;
+ case 6:
+ r0 = s.retval;
+ { step = 4; continue; }
case 3:
+ s.tmp_0 = Sprite__destroyCore__P62080_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 438; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
case 4:
- r0 = s.wd___7648.fields["commands"];
- s.tmp_0 = r0;
- r0 = (s.arg2 << 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = (s.arg3 & 255);
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.tmp_3);
- r0 = (s.arg3 & 255);
case 5:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_setCmdArg__P3657.info = {"start":7697,"length":335,"line":221,"column":8,"endLine":229,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdArg","argumentNames":["this","wdid","cid","n"]}
+Sprite_destroy__P62079.info = {"start":28323,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
-function tileworld_RuleView_setCmdArg__P3657_mk(s) {
+function Sprite_destroy__P62079_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_setCmdArg__P3657, depth: s.depth + 1,
+ parent: s, fn: Sprite_destroy__P62079, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- wd___7648: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
-} }
-
-
-
-
-
-function tileworld_ruleediting_RuleEditor_instToArgText__P14516(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg1;
- r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_0;
- { step = 3; continue; }
- case 1:
- r0 = globals.moveText___3790;
- { step = 4; continue; }
- case 2:
- r0 = globals.gameText___3795;
- { step = 4; continue; }
- case 3:
- r0 = pxsim_Array__mk();
- case 4:
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_ruleediting_RuleEditor_instToArgText__P14516.info = {"start":15609,"length":266,"line":346,"column":8,"endLine":353,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToArgText","argumentNames":["this","inst"]}
-
-function tileworld_ruleediting_RuleEditor_instToArgText__P14516_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_instToArgText__P14516, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_ruleediting_RuleEditor_setCommand__P14520(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_setCmdInst__P3656_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg1;
- s.callLocIdx = 1148; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleView_setCmdArg__P3657_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg2;
- s.callLocIdx = 1149; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_ruleediting_RuleEditor_setCommand__P14520.info = {"start":18652,"length":203,"line":421,"column":8,"endLine":424,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setCommand","argumentNames":["this","inst","arg"]}
-
-function tileworld_ruleediting_RuleEditor_setCommand__P14520_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_setCommand__P14520, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -33611,7 +31902,7 @@ function tileworld_ruleediting_RuleEditor_setCommand__P14520_mk(s) {
-function tileworld_RuleView_setCmdInst__P3656(s) {
+function effects_ParticleEffect_destroy__P62781(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -33621,7 +31912,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7618 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -33630,54 +31920,62 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7618 = (r0);
- r0 = s.wd___7618.fields["commandsLen"];
- s.tmp_1 = r0;
- r0 = (s.arg2 > s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = 255;
- { step = 5; continue; }
- case 1:
- case 2:
- r0 = s.wd___7618.fields["commandsLen"];
+ if (!checkSubtype(r0, effects_ParticleEffect__C62778_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 1182; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = effects_ParticleEffect_start__P62780_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 = (s.arg2 == s.tmp_3);
+ r0 = pxsim_Boolean__bang(s.tmp_3);
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = r0 = s.wd___7618;
- r0 = s.tmp_4.fields["commandsLen"];
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 1);
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5);
- case 3:
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0.arg4 = r0;
+ s.callLocIdx = 1183; s.pc = 4; return s.tmp_0;
case 4:
- r0 = s.wd___7618.fields["commands"];
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg2;
+ { step = 2; continue; }
+ case 1:
+ r0 = s.arg0.fields["defaultLifespan"];
s.tmp_0 = r0;
- r0 = (s.arg2 << 1);
- s.tmp_1 = r0;
- r0 = (s.arg3 & 255);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.tmp_2);
- r0 = (s.arg3 & 255);
+ 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__P62807_mk(s);
+ s.tmp_0.arg0 = globals.dissolve___62810;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1184; s.pc = 5; return s.tmp_0;
case 5:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_setCmdInst__P3656.info = {"start":7355,"length":332,"line":211,"column":8,"endLine":219,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdInst","argumentNames":["this","wdid","cid","n"]}
+effects_ParticleEffect_destroy__P62781.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 tileworld_RuleView_setCmdInst__P3656_mk(s) {
+function effects_ParticleEffect_destroy__P62781_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_setCmdInst__P3656, depth: s.depth + 1,
+ parent: s, fn: effects_ParticleEffect_destroy__P62781, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -33685,8 +31983,6 @@ function tileworld_RuleView_setCmdInst__P3656_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- wd___7618: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -33697,7 +31993,7 @@ function tileworld_RuleView_setCmdInst__P3656_mk(s) {
-function tileworld_RuleView_removeCommand__P3658(s) {
+function inline__P85793(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -33707,107 +32003,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7680 = undefined;
- s.i___7695 = undefined;
+ s.i___85796 = undefined;
+ s.x___85807 = undefined;
+ s.y___85813 = undefined;
+ s.w___85819 = undefined;
+ s.h___85823 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.wd___7680 = (r0);
- r0 = s.wd___7680.fields["commandsLen"];
+ r0 = pxsim_ImageMethods.width(s.arg0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ r0 = pxsim_ImageMethods.height(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 * s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = (s.tmp_0 >> 5);
+ s.i___85796 = (r0);
case 1:
- r0 = s.wd___7680.fields["commandsLen"];
- s.tmp_2 = r0;
- r0 = (s.arg2 >= 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.wd___7680.fields["commandsLen"];
- { step = 7; continue; }
+ r0 = (s.i___85796 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = Math_FastRandom_randomRange__P62579_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 = 39; s.pc = 3; return s.tmp_1;
case 3:
+ r0 = s.retval;
+ s.x___85807 = (r0);
+ s.tmp_0 = Math_FastRandom_randomRange__P62579_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 = 40; s.pc = 4; return s.tmp_0;
case 4:
- r0 = (s.arg2 << 1);
- s.i___7695 = (r0);
+ r0 = s.retval;
+ s.y___85813 = (r0);
+ s.tmp_0 = Math_FastRandom_randomRange__P62579_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 3;
+ s.callLocIdx = 41; s.pc = 5; return s.tmp_0;
case 5:
- s.tmp_1 = r0 = s.i___7695;
- r0 = (3 << 1);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 <= s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- r0 = s.wd___7680.fields["commands"];
- s.tmp_4 = r0;
- s.tmp_5 = r0 = s.i___7695;
- r0 = s.wd___7680.fields["commands"];
- s.tmp_7 = r0;
- r0 = (s.i___7695 + 2);
- s.tmp_8 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_7, s.tmp_8);
- s.tmp_6 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_4, s.tmp_5, s.tmp_6);
- r0 = (s.i___7695 + 1);
- s.i___7695 = (r0);
- { step = 5; continue; }
+ r0 = s.retval;
+ s.w___85819 = (r0);
+ s.tmp_0 = Math_FastRandom_randomRange__P62579_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 3;
+ s.callLocIdx = 42; s.pc = 6; return s.tmp_0;
case 6:
- s.tmp_0 = r0 = s.wd___7680;
- r0 = s.tmp_0.fields["commandsLen"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1);
- r0 = s.wd___7680.fields["commandsLen"];
+ r0 = s.retval;
+ s.h___85823 = (r0);
+ s.tmp_0 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.x___85807;
+ s.tmp_0.arg2 = s.y___85813;
+ s.tmp_0.arg3 = s.w___85819;
+ s.tmp_0.arg4 = s.h___85823;
+ s.tmp_0.arg5 = 0;
+ s.callLocIdx = 43; s.pc = 7; return s.tmp_0;
case 7:
+ r0 = s.retval;
+ r0 = (s.i___85796 - 1);
+ s.i___85796 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_removeCommand__P3658.info = {"start":8042,"length":419,"line":231,"column":8,"endLine":240,"endColumn":9,"fileName":"ruleview.ts","functionName":"removeCommand","argumentNames":["this","wdid","cid"]}
+inline__P85793.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 tileworld_RuleView_removeCommand__P3658_mk(s) {
+function inline__P85793_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_removeCommand__P3658, depth: s.depth + 1,
+ parent: s, fn: inline__P85793, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- wd___7680: undefined,
- i___7695: undefined,
+ i___85796: undefined,
+ x___85807: undefined,
+ y___85813: undefined,
+ w___85819: undefined,
+ h___85823: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_attrUpdate__P14524(s) {
+function effects_ImageEffect_applyTo__P62807(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -33817,285 +32111,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.collision22___16360 = undefined;
- s.a___16383 = undefined;
- s.i___16392 = undefined;
- s.m___16420 = undefined;
- s.val___16448 = undefined;
+ s.clonedImage___85844 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = s.arg0.fields["rule"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
+ if (!checkSubtype(r0, effects_ImageEffect__C62805_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
+ 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.arg0.fields["rule"];
- s.tmp_4 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_5 = r0;
- r0 = s.tmp_4.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_5);
- r0 = r0.fields["col"];
+ r0 = s.arg1.fields["_image"];
s.tmp_3 = r0;
- r0 = (s.tmp_3 == 2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
case 2:
// jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_7;
- { step = 4; continue; }
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 3; continue; }
+ { step = 5; continue; }
case 3:
- r0 = s.arg0.fields["rule"];
- s.tmp_9 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_10 = r0;
- r0 = s.tmp_9.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_11 = r0;
- r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_10);
- r0 = r0.fields["row"];
- s.tmp_8 = r0;
- r0 = (s.tmp_8 == 2);
case 4:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- s.collision22___16360 = (s.tmp_12);
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1169; s.pc = 32; return s.tmp_2;
- case 32:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = true;
- s.callLocIdx = 1170; s.pc = 33; return s.tmp_3;
- case 33:
- r0 = s.retval;
- { step = 6; continue; }
- case 5:
- r0 = -1;
+ r0 = s.arg1.fields["_image"];
+ s.tmp_5 = r0;
+ r0 = pxsim_ImageMethods.clone(s.tmp_5);
+ s.clonedImage___85844 = (r0);
+ s.tmp_0 = effects_ImageEffect_change__P62808_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.clonedImage___85844;
+ s.callLocIdx = 1195; s.pc = 6; return s.tmp_0;
case 6:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.a___16383 = (s.tmp_4);
- r0 = (s.a___16383 == 9);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.i___16392 = (0);
- case 7:
- s.tmp_1 = r0 = s.i___16392;
- s.tmp_3 = tileworld_Project_allCnt__P3693_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 1171; s.pc = 34; return s.tmp_3;
- case 34:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_4 = tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = s.i___16392;
- s.tmp_4.arg2 = 0;
- s.tmp_4.arg3 = false;
- s.callLocIdx = 1172; s.pc = 35; return s.tmp_4;
- case 35:
- r0 = s.retval;
- r0 = (s.i___16392 + 1);
- s.i___16392 = (r0);
- { step = 7; continue; }
- case 8:
- { step = 31; continue; }
- case 9:
- case 10:
- r0 = (s.a___16383 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 11; continue; }
- r0 = s.tmp_0;
- { step = 12; continue; }
- case 11:
- r0 = (s.a___16383 < 3);
- case 12:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_1;
- { step = 14; continue; }
- case 13:
- r0 = s.arg0.fields["rule"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 != 2);
- case 14:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 15; continue; }
- s.tmp_5 = tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.a___16383;
- s.callLocIdx = 1174; s.pc = 36; return s.tmp_5;
- case 36:
- r0 = s.retval;
- { step = 31; continue; }
- case 15:
- case 16:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1175; s.pc = 37; return s.tmp_2;
- case 37:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = true;
- s.callLocIdx = 1176; s.pc = 38; return s.tmp_3;
- case 38:
- r0 = s.retval;
- { step = 18; continue; }
- case 17:
- r0 = -1;
- case 18:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.m___16420 = (s.tmp_4);
- r0 = (s.m___16420 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 19; continue; }
- r0 = s.tmp_0;
- { step = 26; continue; }
- case 19:
- r0 = pxsim_numops_toBoolDecr(s.collision22___16360);
- s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 20; continue; }
- r0 = s.tmp_1;
- { step = 21; continue; }
- case 20:
- s.tmp_3 = r0 = s.m___16420;
- s.tmp_5 = tileworld_Project_allCnt__P3693_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 1177; s.pc = 39; return s.tmp_5;
- case 39:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_3 < s.tmp_4);
- case 21:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBool(s.tmp_6);
- if (!r0) { step = 22; continue; }
- r0 = s.tmp_6;
- { step = 25; continue; }
- case 22:
- s.tmp_7 = r0 = s.collision22___16360;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (r0) { step = 23; continue; }
- r0 = s.tmp_7;
- { step = 24; continue; }
- case 23:
- s.tmp_8 = r0 = s.m___16420;
- r0 = s.arg0.fields["p"];
- s.tmp_10 = r0;
- r0 = s.tmp_10.fields["_backgroundsI"];
- s.tmp_11 = r0;
- r0 = pxsim_Array__length(s.tmp_11);
- s.tmp_9 = r0;
- r0 = (s.tmp_8 < s.tmp_9);
- case 24:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = s.tmp_12;
- case 25:
- // jmp value (already in r0)
- s.tmp_13 = r0;
- r0 = s.tmp_13;
- case 26:
- // jmp value (already in r0)
- s.tmp_14 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_14);
- if (!r0) { step = 29; continue; }
- r0 = s.arg0.fields["attrSelected"];
- s.tmp_15 = r0;
- r0 = pxsim_Array__getAt(globals.attrValues___3792, s.tmp_15);
- s.val___16448 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.collision22___16360);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 27; continue; }
- r0 = s.m___16420;
- { step = 28; continue; }
- case 27:
- s.tmp_2 = r0 = s.m___16420;
- r0 = s.arg0.fields["p"];
- s.tmp_4 = r0;
- r0 = s.tmp_4.fields["_backgroundsI"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__length(s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- case 28:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- s.tmp_7 = tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.tmp_6;
- s.tmp_7.arg2 = s.val___16448;
- s.tmp_7.arg3 = true;
- s.callLocIdx = 1180; s.pc = 40; return s.tmp_7;
- case 40:
+ s.tmp_0 = Sprite_setImage__P62048_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = s.clonedImage___85844;
+ s.callLocIdx = 1196; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- case 29:
- case 30:
- case 31:
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_attrUpdate__P14524.info = {"start":20685,"length":967,"line":471,"column":8,"endLine":491,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrUpdate","argumentNames":["this"]}
+effects_ImageEffect_applyTo__P62807.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 tileworld_ruleediting_RuleEditor_attrUpdate__P14524_mk(s) {
+function effects_ImageEffect_applyTo__P62807_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_attrUpdate__P14524, depth: s.depth + 1,
+ parent: s, fn: effects_ImageEffect_applyTo__P62807, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -34103,29 +32175,16 @@ function tileworld_ruleediting_RuleEditor_attrUpdate__P14524_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,
- collision22___16360: undefined,
- a___16383: undefined,
- i___16392: undefined,
- m___16420: undefined,
- val___16448: undefined,
+ clonedImage___85844: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_ruleediting_RuleEditor_setAttr__P14525(s) {
+function effects_ImageEffect_change__P62808(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34135,104 +32194,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.whenDo___16467 = 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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = false;
- s.callLocIdx = 1181; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = false;
- s.callLocIdx = 1182; s.pc = 7; return s.tmp_3;
- case 7:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 2);
+ if (!checkSubtype(r0, effects_ImageEffect__C62805_VT)) failedCast(r0);
+ s.tmp_0 = if_effect_3_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ r0 = s.arg0.fields["fastRandom"];
s.tmp_0.arg2 = r0;
- s.callLocIdx = 1183; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.whenDo___16467 = (r0);
- s.tmp_0 = r0 = s.arg3;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ if (!s.tmp_0.arg0.vtable.iface) {
+ setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3);
+ s.callLocIdx = 1197; 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 = 1197; s.pc = 1; return s.tmp_0; }
+ else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1197; s.pc = 1; return s.tmp_0;; }
+ else { s.callLocIdx = 1197; s.pc = 1; return s.tmp_0; }
+ }
case 1:
- s.tmp_2 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_2.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_2.arg1 = r0;
- s.tmp_2.arg2 = s.whenDo___16467;
- s.tmp_2.arg3 = s.arg1;
- s.tmp_2.arg4 = 65535;
- s.callLocIdx = 1184; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.arg2);
- case 2:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 3; continue; }
- s.arg2 = (0);
- case 3:
- case 4:
- s.tmp_0 = tileworld_AllExport_getSetAttr__P3676_mk(s);
- r0 = s.arg0.fields["all"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.whenDo___16467;
- s.tmp_0.arg3 = s.arg1;
- s.tmp_0.arg4 = s.arg2;
- s.callLocIdx = 1185; s.pc = 9; return s.tmp_0;
- case 9:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_setAttr__P14525.info = {"start":21662,"length":336,"line":493,"column":8,"endLine":498,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setAttr","argumentNames":["this","m","val","toggle"]}
+effects_ImageEffect_change__P62808.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 tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s) {
+function effects_ImageEffect_change__P62808_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_setAttr__P14525, depth: s.depth + 1,
+ parent: s, fn: effects_ImageEffect_change__P62808, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- whenDo___16467: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_RuleView_getWhenDoRow__P3646(s) {
+function effects_ParticleEffect_start__P62780(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34242,79 +32247,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.src___85868 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
+ if (!checkSubtype(r0, effects_ParticleEffect__C62778_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_Array__getAt(s.tmp_0, s.arg1);
- r0 = r0.fields["row"];
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleView_getWhenDoRow__P3646.info = {"start":3939,"length":93,"line":118,"column":8,"endLine":120,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoRow","argumentNames":["this","whendo"]}
-
-function tileworld_RuleView_getWhenDoRow__P3646_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleView_getWhenDoRow__P3646, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleView_getWhenDoCol__P3645(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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.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 = 1180; 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 = 1180; s.pc = 10; return s.tmp_4; }
+ else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1180; s.pc = 10; return s.tmp_4;; }
+ else { s.callLocIdx = 1180; s.pc = 10; return s.tmp_4; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
+ case 10:
+ r0 = s.retval;
+ s.src___85868 = (r0);
+ s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P62678_mk(s);
+ s.tmp_0.arg0 = s.src___85868;
+ 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 = 1181; 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_Array__getAt(s.tmp_0, s.arg1);
- r0 = r0.fields["col"];
+ 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___85868).fields["lifespan"] = (s.tmp_1);
+ case 7:
+ case 8:
+ case 9:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getWhenDoCol__P3645.info = {"start":3836,"length":93,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoCol","argumentNames":["this","whendo"]}
+effects_ParticleEffect_start__P62780.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 tileworld_RuleView_getWhenDoCol__P3645_mk(s) {
+function effects_ParticleEffect_start__P62780_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getWhenDoCol__P3645, depth: s.depth + 1,
+ parent: s, fn: effects_ParticleEffect_start__P62780, depth: s.depth + 1,
pc: 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___85868: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function tileworld_ruleediting_RuleDisplay_active__P13113(s) {
+function particles_ParticleSource_setRelativeToCamera__P62678(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34327,87 +32365,56 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = s.arg0.fields["collideCol"];
- 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; }
- r0 = (s.arg1 == 2);
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["pFlags"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_2;
+ r0 = (s.tmp_2 | 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
{ step = 2; continue; }
case 1:
- r0 = (s.arg2 == 2);
- case 2:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_3;
- { step = 6; continue; }
- case 3:
- r0 = s.arg0.fields["collideCol"];
- s.tmp_5 = r0;
- r0 = (s.arg1 == s.tmp_5);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["pFlags"];
s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 4; continue; }
- r0 = s.tmp_4;
- { step = 5; continue; }
- case 4:
- r0 = s.arg0.fields["collideRow"];
- s.tmp_6 = r0;
- r0 = (s.arg2 == 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 = s.tmp_8;
- { step = 9; continue; }
- case 7:
- case 8:
- r0 = true;
- case 9:
+ r0 = (~ s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 | 4);
+ s.tmp_2 = r0;
+ r0 = (~ s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_active__P13113.info = {"start":5751,"length":231,"line":136,"column":8,"endLine":141,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"active","argumentNames":["this","col","row"]}
+particles_ParticleSource_setRelativeToCamera__P62678.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]}
-function tileworld_ruleediting_RuleDisplay_active__P13113_mk(s) {
+function particles_ParticleSource_setRelativeToCamera__P62678_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_active__P13113, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_setRelativeToCamera__P62678, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509(s) {
+function Sprite__destroyCore__P62080(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34417,83 +32424,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___85698 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1055; s.pc = 7; return s.tmp_2;
- case 7:
- r0 = s.retval;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["flags"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 2);
s.tmp_1 = r0;
- r0 = (1 <= s.tmp_1);
+ r0 = (s.tmp_0).fields["flags"] = (s.tmp_1);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 439; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.scene___85698 = (r0);
+ r0 = s.arg0.fields["sayBubbleSprite"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1056; s.pc = 8; return s.tmp_4;
- case 8:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = Sprite_destroy__P62079_mk(s);
+ r0 = s.arg0.fields["sayBubbleSprite"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = undefined;
+ s.tmp_1.arg2 = undefined;
+ s.callLocIdx = 440; s.pc = 10; return s.tmp_1;
+ case 10:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 <= 3);
+ case 1:
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
+ r0 = s.scene___85698.fields["allSprites"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >= 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 3; continue; }
- r0 = s.tmp_5;
+ r0 = s.tmp_0;
{ step = 4; continue; }
case 3:
- s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.tmp_8.arg1 = true;
- s.callLocIdx = 1057; s.pc = 9; return s.tmp_8;
- case 9:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 2);
- s.tmp_6 = r0;
- r0 = (1 <= s.tmp_6);
+ r0 = s.scene___85698.fields["spritesByKind"];
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3);
case 4:
// jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBool(s.tmp_9);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_9;
- { step = 6; continue; }
- case 5:
- s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_12.arg0 = s.arg0;
- s.tmp_12.arg1 = true;
- s.callLocIdx = 1058; s.pc = 10; return s.tmp_12;
- case 10:
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 5; continue; }
+ s.tmp_5 = sprites_SpriteSet_remove__P62110_mk(s);
+ r0 = s.scene___85698.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 = 444; s.pc = 11; return s.tmp_5;
+ case 11:
r0 = s.retval;
- s.tmp_11 = r0;
- r0 = (s.tmp_11 - 2);
- s.tmp_10 = r0;
- r0 = (s.tmp_10 <= 3);
+ case 5:
case 6:
- // jmp value (already in r0)
- s.tmp_13 = r0;
- r0 = s.tmp_13;
+ s.tmp_0 = PhysicsEngine__C62151_v1_2_mk(s);
+ r0 = s.scene___85698.fields["physicsEngine"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite;
+ s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ r0 = s.arg0.fields["destroyHandler"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_1 = if_destroyHandler_1_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ if (!s.tmp_1.arg0.vtable.iface) {
+ setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1);
+ s.callLocIdx = 445; s.pc = 13; return s.tmp_1;
+ } else {
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"];
+ if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 445; s.pc = 13; return s.tmp_1; }
+ else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 445; s.pc = 13; return s.tmp_1;; }
+ else { s.callLocIdx = 445; s.pc = 13; return s.tmp_1; }
+ }
+ case 13:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85734);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85740);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
+ s.tmp_2 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_3 = helpers_arrayFilter__P60100_mk(s);
+ r0 = s.scene___85698.fields["destroyedHandlers"];
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.tmp_0;
+ s.callLocIdx = 447; s.pc = 15; return s.tmp_3;
+ case 15:
+ r0 = s.retval;
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 449; s.pc = 14; return s.tmp_2;
+ case 14:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509.info = {"start":10220,"length":176,"line":218,"column":8,"endLine":221,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inWhenPredicate","argumentNames":["this"]}
+Sprite__destroyCore__P62080.info = {"start":28622,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
-function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s) {
+function Sprite__destroyCore__P62080_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509, depth: s.depth + 1,
+ parent: s, fn: Sprite__destroyCore__P62080, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -34503,12 +32557,7 @@ function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
- tmp_12: undefined,
- tmp_13: undefined,
+ scene___85698: undefined,
arg0: undefined,
} }
@@ -34516,7 +32565,7 @@ function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s) {
-function tileworld_ruleediting_RuleEditor_resetRule__P14505(s) {
+function inline__P85734(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34528,32 +32577,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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = (s.arg0).fields["rule"] = (s.arg1);
- r0 = undefined;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_0 = r0;
+ r0 = s.caps[0].fields["_kind"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 == s.tmp_1);
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_resetRule__P14505.info = {"start":8426,"length":78,"line":175,"column":8,"endLine":177,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"resetRule","argumentNames":["this","rv"]}
+inline__P85734.info = {"start":29238,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s) {
+function inline__P85734_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_resetRule__P14505, depth: s.depth + 1,
+ parent: s, fn: inline__P85734, 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 tileworld_RuleView_getRuleId__P3637(s) {
+function inline__P85740(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34567,19 +32617,32 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- r0 = s.arg0.fields["rid"];
+ 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 = 448; 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 = 448; s.pc = 1; return s.tmp_0; }
+ else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 448; s.pc = 1; return s.tmp_0;; }
+ else { s.callLocIdx = 448; s.pc = 1; return s.tmp_0; }
+ }
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_getRuleId__P3637.info = {"start":1714,"length":59,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleId","argumentNames":["this"]}
+inline__P85740.info = {"start":29287,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function tileworld_RuleView_getRuleId__P3637_mk(s) {
+function inline__P85740_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_getRuleId__P3637, depth: s.depth + 1,
+ parent: s, fn: inline__P85740, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
} }
@@ -34587,7 +32650,7 @@ function tileworld_RuleView_getRuleId__P3637_mk(s) {
-function tileworld_Project_removeRule__P3702(s) {
+function PhysicsEngine_removeSprite__P62154(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34597,100 +32660,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.r___8274 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P8278);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- s.tmp_1 = helpers_arrayFind__P106_mk(s);
- r0 = s.arg0.fields["rules"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 185; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- s.r___8274 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.r___8274);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["rules"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.removeElement(s.tmp_0, s.r___8274);
- s.tmp_0 = settings_remove__P1833_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 5:
- r0 = s.retval;
- s.tmp_3 = r0;
- if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(globals.RuleKey___8299);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.RuleKey___8299) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 7:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.arg1);
- s.tmp_7 = r0;
- if ((s.tmp_7) && (s.tmp_7).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.tmp_7);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_7) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_6);
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 186; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- case 1:
- case 2:
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_removeRule__P3702.info = {"start":4811,"length":259,"line":138,"column":8,"endLine":144,"endColumn":9,"fileName":"project.ts","functionName":"removeRule","argumentNames":["this","rid"]}
+PhysicsEngine_removeSprite__P62154.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 tileworld_Project_removeRule__P3702_mk(s) {
+function PhysicsEngine_removeSprite__P62154_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_removeRule__P3702, depth: s.depth + 1,
+ parent: s, fn: PhysicsEngine_removeSprite__P62154, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- r___8274: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -34699,7 +32686,7 @@ function tileworld_Project_removeRule__P3702_mk(s) {
-function inline__P8278(s) {
+function sprites_SpriteSet_remove__P62110(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34709,32 +32696,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___85748 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["rid"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_sprites"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 == s.caps[0]);
+ r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined);
+ s.i___85748 = (r0);
+ r0 = (s.i___85748 > -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = helpers_arraySplice__P60090_mk(s);
+ r0 = s.arg0.fields["_sprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.i___85748;
+ s.tmp_1.arg2 = 1;
+ s.callLocIdx = 493; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ r0 = true;
+ { step = 3; continue; }
+ case 1:
+ case 2:
+ r0 = false;
+ case 3:
return leave(s, r0)
default: oops()
} } }
-inline__P8278.info = {"start":4880,"length":25,"line":139,"column":36,"endLine":139,"endColumn":61,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
+sprites_SpriteSet_remove__P62110.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]}
-function inline__P8278_mk(s) {
+function sprites_SpriteSet_remove__P62110_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8278, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_remove__P62110, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ i___85748: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_ruleediting_RuleEditor_currentRules__P14507(s) {
+function Sprite_kind__P62062(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34749,26 +32762,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1025; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_kind"];
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_currentRules__P14507.info = {"start":8625,"length":163,"line":184,"column":8,"endLine":187,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"currentRules","argumentNames":["this"]}
+Sprite_kind__P62062.info = {"start":10604,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]}
-function tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s) {
+function Sprite_kind__P62062_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_currentRules__P14507, depth: s.depth + 1,
+ parent: s, fn: Sprite_kind__P62062, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
} }
@@ -34776,7 +32781,7 @@ function tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s) {
-function Sprite_say__P2071(s) {
+function Sprite_isOutOfScreen__P62068(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -34786,468 +32791,118 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.textToDisplay___21391 = undefined;
- s.SAYKEY___21399 = undefined;
- s.key___21401 = undefined;
- s.pixelsOffset___21423 = undefined;
- s.holdTextSeconds___21424 = undefined;
- s.bubblePadding___21425 = undefined;
- s.maxTextWidth___21426 = undefined;
- s.font___21427 = undefined;
- s.startX___21430 = undefined;
- s.startY___21431 = undefined;
- s.bubbleWidth___21432 = undefined;
- s.maxOffset___21440 = undefined;
- s.bubbleOffset___21448 = undefined;
- s.needsRedraw___21453 = undefined;
- s.speed___21454 = undefined;
- s.currentScene___21455 = undefined;
- s.imgh___21502 = undefined;
- s.sayImg___21524 = undefined;
+ s.ox___81819 = undefined;
+ s.oy___81827 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg2);
- s.arg2 = (s.tmp_0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 3; continue; }
- r0 = (s.arg0).fields["updateSay"] = (undefined);
- r0 = s.arg0.fields["sayBubbleSprite"];
+ r0 = (s.tmp_1 & 512);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = Sprite_destroy__P2084_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = undefined;
- s.tmp_1.arg2 = undefined;
- s.callLocIdx = 297; s.pc = 28; return s.tmp_1;
- case 28:
- r0 = s.retval;
- r0 = (s.arg0).fields["sayBubbleSprite"] = (undefined);
+ r0 = 0;
+ { step = 2; continue; }
case 1:
+ r0 = s.arg1.fields["drawOffsetX"];
case 2:
- { step = 27; continue; }
- case 3:
- case 4:
- s.tmp_0 = helpers_arrayJoin__P98_mk(s);
- s.tmp_1 = helpers_stringSplit__P114_mk(s);
- s.tmp_2 = console_inspect__P368_mk(s);
- s.tmp_2.arg0 = s.arg1;
- s.tmp_2.arg1 = 20;
- s.callLocIdx = 298; s.pc = 31; return s.tmp_2;
- case 31:
- r0 = s.retval;
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = "\n";
- s.tmp_1.arg2 = undefined;
- s.callLocIdx = 299; s.pc = 30; return s.tmp_1;
- case 30:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = " ";
- s.callLocIdx = 300; s.pc = 29; return s.tmp_0;
- case 29:
- r0 = s.retval;
- s.textToDisplay___21391 = (r0);
- s.SAYKEY___21399 = ("__saykey");
- r0 = pxsim_pxtrt.mkMap();
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___21391);
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textColor", s.arg3);
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textBoxColor", s.arg4);
- s.tmp_1 = JSON_stringify__P373_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = null;
- s.tmp_1.arg2 = 0;
- s.callLocIdx = 301; s.pc = 32; return s.tmp_1;
- case 32:
- r0 = s.retval;
- s.key___21401 = (r0);
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 === undefined);
- 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["sayBubbleSprite"];
- case 6:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_2;
- { step = 8; continue; }
- case 7:
- s.tmp_5 = Sprite_data__P2038_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 302; s.pc = 33; return s.tmp_5;
- case 33:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___21399);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.key___21401);
- case 8:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 9; continue; }
- { step = 27; continue; }
- case 9:
- case 10:
- r0 = pxsim_pxtrt.mklocRef();
- s.pixelsOffset___21423 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___21423, 0);
- r0 = pxsim_pxtrt.mklocRef();
- s.holdTextSeconds___21424 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___21424, 1.5);
- s.bubblePadding___21425 = (4);
- s.maxTextWidth___21426 = (100);
- s.tmp_0 = image_getFontForText__P1744_mk(s);
- s.tmp_0.arg0 = s.textToDisplay___21391;
- s.callLocIdx = 303; s.pc = 34; return s.tmp_0;
- case 34:
- r0 = s.retval;
- s.font___21427 = (r0);
- s.startX___21430 = (2);
- s.startY___21431 = (2);
- r0 = pxsim_pxtrt.mklocRef();
- s.bubbleWidth___21432 = (r0);
- s.tmp_0 = r0 = s.bubbleWidth___21432;
- r0 = pxsim_String_.length(s.textToDisplay___21391);
- s.tmp_3 = r0;
- s.tmp_5 = if_charWidth_1_mk(s);
- s.tmp_5.arg0 = s.font___21427;
- if (!s.tmp_5.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth");
- } else {
- s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"];
- if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; }
- else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 304; s.pc = 35; return s.tmp_5; }
- }
- case 35:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_3 * s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.bubblePadding___21425);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt.mklocRef();
- s.maxOffset___21440 = (r0);
- s.tmp_0 = r0 = s.maxOffset___21440;
- r0 = pxsim_String_.length(s.textToDisplay___21391);
- s.tmp_3 = r0;
- s.tmp_5 = if_charWidth_1_mk(s);
- s.tmp_5.arg0 = s.font___21427;
- if (!s.tmp_5.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth");
- } else {
- s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"];
- if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; }
- else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 305; s.pc = 36; return s.tmp_5; }
- }
- case 36:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_3 * s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.maxTextWidth___21426);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = s.arg0.fields["_hitbox"];
- r0 = r0.fields["oy"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + 128);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >> 8);
- s.bubbleOffset___21448 = (r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.needsRedraw___21453 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___21453, true);
- r0 = pxsim_pxtrt.mklocRef();
- s.speed___21454 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.speed___21454, 45);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 307; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.currentScene___21455 = (r0);
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 11; continue; }
- r0 = s.tmp_0;
- { step = 12; continue; }
- case 11:
- r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___21440);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- case 12:
// jmp value (already in r0)
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 13; continue; }
- s.tmp_3 = r0 = s.speed___21454;
- r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___21440);
- s.tmp_6 = r0;
- r0 = (2 * s.maxTextWidth___21426);
- s.tmp_7 = r0;
- r0 = (s.tmp_6 + s.tmp_7);
- s.tmp_5 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_9 = r0;
- r0 = (s.tmp_9 / 1000);
- s.tmp_8 = r0;
- r0 = (s.tmp_5 / s.tmp_8);
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
- s.tmp_0 = r0 = s.speed___21454;
- s.tmp_2 = Math_max__P122_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.speed___21454);
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = 45;
- s.callLocIdx = 308; s.pc = 38; return s.tmp_2;
- case 38:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- s.tmp_0 = r0 = s.holdTextSeconds___21424;
- s.tmp_2 = r0 = s.maxTextWidth___21426;
- r0 = pxsim_pxtrt_ldlocRef(s.speed___21454);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 / s.tmp_3);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- s.tmp_0 = r0 = s.holdTextSeconds___21424;
- s.tmp_2 = Math_min__P123_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___21424);
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = 1.5;
- s.callLocIdx = 309; s.pc = 39; return s.tmp_2;
- case 39:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- case 13:
- case 14:
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_1 = r0 = s.arg2;
- r0 = pxsim_pxtrt_ldlocRef(s.arg2);
- s.tmp_3 = r0;
- r0 = s.currentScene___21455.fields["_millis"];
- s.tmp_4 = r0;
- r0 = (s.tmp_3 + s.tmp_4);
- s.tmp_2 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2);
- case 15:
- case 16:
- r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432);
+ s.ox___81819 = (s.tmp_2);
+ r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
- r0 = (s.maxTextWidth___21426 + s.bubblePadding___21425);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 > s.tmp_2);
+ r0 = (s.tmp_1 & 512);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- s.tmp_3 = r0 = s.bubbleWidth___21432;
- r0 = (s.maxTextWidth___21426 + s.bubblePadding___21425);
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
- { step = 18; continue; }
- case 17:
- r0 = pxsim_pxtrt_stlocRef(s.maxOffset___21440, -1);
- case 18:
- s.tmp_1 = if_charHeight_1_mk(s);
- s.tmp_1.arg0 = s.font___21427;
- 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 = 311; s.pc = 40; return s.tmp_1; }
- }
- case 40:
+ if (!r0) { step = 3; continue; }
+ r0 = 0;
+ { step = 4; continue; }
+ case 3:
+ r0 = s.arg1.fields["drawOffsetY"];
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.oy___81827 = (s.tmp_2);
+ s.tmp_3 = Sprite_right__P62056_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 358; s.pc = 11; return s.tmp_3;
+ case 11:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.bubblePadding___21425);
- s.imgh___21502 = (r0);
- r0 = s.arg0.fields["sayBubbleSprite"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = (s.tmp_2 - s.ox___81819);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 < 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 19; continue; }
+ if (!r0) { step = 5; continue; }
r0 = s.tmp_0;
- { step = 20; continue; }
- case 19:
- r0 = s.arg0.fields["sayBubbleSprite"];
+ { step = 6; continue; }
+ case 5:
+ s.tmp_6 = Sprite_bottom__P62060_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.callLocIdx = 359; s.pc = 12; return s.tmp_6;
+ case 12:
+ r0 = s.retval;
s.tmp_5 = r0;
- r0 = s.tmp_5.fields["_image"];
+ r0 = (s.tmp_5 - s.oy___81827);
s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_4);
- s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432);
- s.tmp_6 = r0;
- r0 = (s.tmp_3 != s.tmp_6);
- case 20:
+ r0 = (s.tmp_4 < 0);
+ case 6:
// jmp value (already in r0)
s.tmp_7 = r0;
r0 = pxsim_numops_toBool(s.tmp_7);
- if (!r0) { step = 21; continue; }
+ if (!r0) { step = 7; continue; }
r0 = s.tmp_7;
- { step = 22; continue; }
- case 21:
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_10 = r0;
- r0 = s.tmp_10.fields["_image"];
+ { step = 8; continue; }
+ case 7:
+ s.tmp_10 = Sprite_left__P62054_mk(s);
+ s.tmp_10.arg0 = s.arg0;
+ s.callLocIdx = 360; s.pc = 13; return s.tmp_10;
+ case 13:
+ r0 = s.retval;
s.tmp_9 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_9);
+ r0 = (s.tmp_9 - s.ox___81819);
s.tmp_8 = r0;
- r0 = (s.tmp_8 != s.imgh___21502);
- case 22:
- // jmp value (already in r0)
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_11 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_11);
- if (!r0) { step = 25; continue; }
- r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432);
+ r0 = (s.tmp_8 > s.tmp_11);
+ case 8:
+ // jmp value (already in r0)
s.tmp_12 = r0;
- r0 = pxsim.image.create(s.tmp_12, s.imgh___21502);
- s.sayImg___21524 = (r0);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 23; continue; }
- s.tmp_1 = Sprite_setImage__P2053_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.sayImg___21524;
- s.callLocIdx = 314; s.pc = 41; return s.tmp_1;
- case 41:
- r0 = s.retval;
- { step = 24; continue; }
- case 23:
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = s.sayImg___21524;
- s.tmp_2.arg1 = -1;
- s.callLocIdx = 315; s.pc = 42; return s.tmp_2;
- case 42:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["sayBubbleSprite"] = (s.tmp_1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 316; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 512;
- r0 = s.arg0.fields["flags"];
- s.tmp_5 = r0;
- r0 = (s.tmp_5 & 512);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- s.tmp_3 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 317; s.pc = 44; return s.tmp_0;
- case 44:
- r0 = s.retval;
- case 24:
- case 25:
- case 26:
- s.tmp_1 = Sprite_data__P2038_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 318; s.pc = 45; return s.tmp_1;
- case 45:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___21399, s.key___21401);
- r0 = pxsim_pxtcore_mkAction(18, inline__P21564);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bubbleOffset___21448);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.font___21427);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.bubblePadding___21425);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg2);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.currentScene___21455);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.holdTextSeconds___21424);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.pixelsOffset___21423);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxTextWidth___21426);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.speed___21454);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.needsRedraw___21453);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.maxOffset___21440);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.arg4);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___21391);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___21430);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___21431);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 16, s.arg3);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___21432);
- r0 = (s.arg0).fields["updateSay"] = (s.tmp_0);
- s.tmp_0 = if_updateSay_3_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- r0 = s.currentScene___21455.fields["camera"];
- s.tmp_0.arg2 = r0;
- if (!s.tmp_0.arg0.vtable.iface) {
- setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "updateSay"), 3);
- s.callLocIdx = 357; s.pc = 46; return s.tmp_0;
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["updateSay"];
- if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["updateSay"], 3); s.callLocIdx = 357; s.pc = 46; return s.tmp_0; }
- else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 357; s.pc = 46; return s.tmp_0;; }
- else { s.callLocIdx = 357; s.pc = 46; return s.tmp_0; }
- }
- case 46:
+ r0 = pxsim_numops_toBool(s.tmp_12);
+ if (!r0) { step = 9; continue; }
+ r0 = s.tmp_12;
+ { step = 10; continue; }
+ case 9:
+ s.tmp_15 = Sprite_top__P62058_mk(s);
+ s.tmp_15.arg0 = s.arg0;
+ s.callLocIdx = 361; s.pc = 14; return s.tmp_15;
+ case 14:
r0 = s.retval;
- case 27:
- r0 = undefined;
+ s.tmp_14 = r0;
+ r0 = (s.tmp_14 - s.oy___81827);
+ s.tmp_13 = r0;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
+ s.tmp_16 = r0;
+ r0 = (s.tmp_13 > s.tmp_16);
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_17 = r0;
+ r0 = s.tmp_17;
return leave(s, r0)
default: oops()
} } }
-Sprite_say__P2071.info = {"start":13058,"length":6828,"line":467,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"say","argumentNames":["this","text","timeOnScreen","textColor","textBoxColor"]}
+Sprite_isOutOfScreen__P62068.info = {"start":20411,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]}
-function Sprite_say__P2071_mk(s) {
+function Sprite_isOutOfScreen__P62068_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_say__P2071, depth: s.depth + 1,
+ parent: s, fn: Sprite_isOutOfScreen__P62068, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -35262,36 +32917,22 @@ function Sprite_say__P2071_mk(s) {
tmp_10: undefined,
tmp_11: undefined,
tmp_12: undefined,
- textToDisplay___21391: undefined,
- SAYKEY___21399: undefined,
- key___21401: undefined,
- pixelsOffset___21423: undefined,
- holdTextSeconds___21424: undefined,
- bubblePadding___21425: undefined,
- maxTextWidth___21426: undefined,
- font___21427: undefined,
- startX___21430: undefined,
- startY___21431: undefined,
- bubbleWidth___21432: undefined,
- maxOffset___21440: undefined,
- bubbleOffset___21448: undefined,
- needsRedraw___21453: undefined,
- speed___21454: undefined,
- currentScene___21455: undefined,
- imgh___21502: undefined,
- sayImg___21524: undefined,
+ tmp_13: undefined,
+ tmp_14: undefined,
+ tmp_15: undefined,
+ tmp_16: undefined,
+ tmp_17: undefined,
+ ox___81819: undefined,
+ oy___81827: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function inline__P21564(s) {
+function Sprite_bottom__P62060(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -35301,524 +32942,445 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___21602 = undefined;
- s.oy___21605 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_4 = Sprite_top__P2063_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.callLocIdx = 319; s.pc = 26; return s.tmp_4;
- case 26:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_1 = Sprite_top__P62058_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.callLocIdx = 288; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["_image"];
s.tmp_3 = r0;
- r0 = (s.tmp_3 + s.caps[1]);
+ r0 = pxsim_ImageMethods.height(s.tmp_3);
s.tmp_2 = r0;
- s.tmp_8 = if_charHeight_1_mk(s);
- s.tmp_8.arg0 = s.caps[2];
- 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 = 320; s.pc = 27; return s.tmp_8; }
- }
- case 27:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + s.caps[3]);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 >> 1);
- s.tmp_5 = r0;
- r0 = (s.tmp_2 - s.tmp_5);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 2);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 321; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_x__P2022_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- s.callLocIdx = 322; s.pc = 29; return s.tmp_1;
- case 29:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 323; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- s.tmp_0 = if_z_2_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_2 = if_z_1_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- 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 = 324; s.pc = 31; return s.tmp_2; }
- }
- case 31:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 1);
- s.tmp_0.arg1 = r0;
- 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 = 325; s.pc = 30; return s.tmp_0; }
+ r0 = (s.tmp_0 + s.tmp_2);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_bottom__P62060.info = {"start":10083,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]}
+Sprite_bottom__P62060.isGetter = true;
+
+function Sprite_bottom__P62060_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_bottom__P62060, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_height__P62053(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
}
- case 30:
- r0 = s.retval;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_image"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = pxsim_pxtrt_ldlocRef(s.caps[4]);
+ r0 = pxsim_ImageMethods.height(s.tmp_0);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_height__P62053.info = {"start":8639,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]}
+Sprite_height__P62053.isGetter = true;
+
+function Sprite_height__P62053_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_height__P62053, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_right__P62057(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_left__P62055_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_image"];
s.tmp_3 = r0;
- r0 = s.caps[5].fields["_millis"];
- 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 = 23; continue; }
- s.tmp_9 = Sprite__C2013_v4_2_mk(s);
- s.tmp_9.arg0 = s.caps[0];
- s.tmp_9.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_9.arg0, Sprite__C2013_VT)) failedCast(s.tmp_9.arg0);
- s.tmp_9.fn = s.tmp_9.arg0.vtable.methods.isOutOfScreen;
- s.pc = 32; return s.tmp_9;
- case 32:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- s.tmp_7 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_7);
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 9; continue; }
- r0 = s.arg1.fields["_offsetX"];
- s.ox___21602 = (r0);
- r0 = s.arg1.fields["_offsetY"];
- s.oy___21605 = (r0);
- s.tmp_3 = Sprite_left__P2059_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 329; s.pc = 33; return s.tmp_3;
- case 33:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.ox___21602);
- 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; }
- s.tmp_4 = Sprite_left__P2060_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = 0;
- s.callLocIdx = 330; s.pc = 34; return s.tmp_4;
- case 34:
- r0 = s.retval;
- case 3:
- case 4:
- s.tmp_3 = Sprite_right__P2061_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 331; s.pc = 35; return s.tmp_3;
- case 35:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.ox___21602);
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_4 = r0;
- r0 = (s.tmp_1 > s.tmp_4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_5 = Sprite_right__P2062_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_5.arg0 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 332; s.pc = 36; return s.tmp_5;
- case 36:
- r0 = s.retval;
- case 5:
- case 6:
- s.tmp_3 = Sprite_top__P2063_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 333; s.pc = 37; return s.tmp_3;
- case 37:
- r0 = s.retval;
+ r0 = pxsim_ImageMethods.width(s.tmp_3);
s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.oy___21605);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_4 = Sprite_y__P2025_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_4.arg0 = r0;
- s.tmp_7 = Sprite_y__P2024_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_7.arg0 = r0;
- s.callLocIdx = 334; s.pc = 39; return s.tmp_7;
- case 39:
- r0 = s.retval;
- s.tmp_6 = r0;
- s.tmp_10 = Sprite_y__P2024_mk(s);
- s.tmp_10.arg0 = s.caps[0];
- s.callLocIdx = 335; s.pc = 40; return s.tmp_10;
- case 40:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (2 * s.tmp_9);
- s.tmp_8 = r0;
- r0 = (s.tmp_6 - s.tmp_8);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 * -1);
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 336; s.pc = 38; return s.tmp_4;
- case 38:
+ r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 283; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- case 7:
- case 8:
- case 9:
- case 10:
- r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+Sprite_right__P62057.info = {"start":9428,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]}
+
+function Sprite_right__P62057_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_right__P62057, depth: s.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_width__P62052(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_image"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_2 = r0 = s.caps[6];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
- s.tmp_4 = r0;
- s.tmp_7 = game_eventContext__P2527_mk(s);
- s.callLocIdx = 337; s.pc = 41; return s.tmp_7;
- case 41:
+ r0 = pxsim_ImageMethods.width(s.tmp_0);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_width__P62052.info = {"start":8494,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]}
+Sprite_width__P62052.isGetter = true;
+
+function Sprite_width__P62052_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_width__P62052, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_right__P62056(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_1 = Sprite_left__P62054_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.callLocIdx = 280; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- s.tmp_6 = r0;
- r0 = s.tmp_6.fields["deltaTimeMillis"];
- s.tmp_8 = r0;
- r0 = (s.tmp_8 / 1000);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 - s.tmp_5);
- s.tmp_3 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3);
- r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 <= 0);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 11; continue; }
- r0 = s.tmp_0;
- { step = 12; continue; }
- case 11:
- r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 > 0);
- case 12:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 13; continue; }
- r0 = pxsim_pxtrt_stlocRef(s.caps[7], 0);
- s.tmp_0 = r0 = s.caps[6];
- s.tmp_2 = r0 = s.caps[8];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
+ r0 = s.arg0.fields["_image"];
s.tmp_3 = r0;
- r0 = (s.tmp_2 / s.tmp_3);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt_stlocRef(s.caps[10], true);
- case 13:
- case 14:
- { step = 18; continue; }
- case 15:
- s.tmp_0 = r0 = s.caps[7];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ r0 = pxsim_ImageMethods.width(s.tmp_3);
s.tmp_2 = r0;
- s.tmp_4 = r0 = s.arg0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 * s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtrt_stlocRef(s.caps[10], true);
- r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ r0 = (s.tmp_0 + s.tmp_2);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_right__P62056.info = {"start":9279,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]}
+Sprite_right__P62056.isGetter = true;
+
+function Sprite_right__P62056_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_right__P62056, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_setImage__P62048(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 >= s.tmp_2);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- s.tmp_3 = r0 = s.caps[7];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4);
- s.tmp_0 = r0 = s.caps[6];
- s.tmp_2 = r0 = s.caps[8];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 / s.tmp_3);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
+ case 2:
+ r0 = (s.arg0).fields["_image"] = (s.arg1);
+ s.tmp_0 = Sprite_setHitbox__P62049_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 258; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ case 3:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+Sprite_setImage__P62048.info = {"start":6825,"length":133,"line":252,"column":4,"endLine":256,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]}
+
+function Sprite_setImage__P62048_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_setImage__P62048, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function Sprite_setHitbox__P62049(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.newHitBox___81867 = undefined;
+ s.oMinX___81875 = undefined;
+ s.oMinY___81879 = undefined;
+ s.oMaxX___81883 = undefined;
+ s.oMaxY___81890 = undefined;
+ s.nMinX___81897 = undefined;
+ s.nMinY___81900 = undefined;
+ s.nMaxX___81903 = undefined;
+ s.nMaxY___81909 = undefined;
+ s.xDiff___81915 = undefined;
+ s.yDiff___81926 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = game_calculateHitBox__P61962_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 259; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.newHitBox___81867 = (r0);
+ r0 = s.arg0.fields["_hitbox"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- case 16:
- case 17:
- case 18:
- r0 = pxsim_pxtrt_ldlocRef(s.caps[10]);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 21; continue; }
- r0 = pxsim_pxtrt_stlocRef(s.caps[10], false);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
+ if (!r0) { step = 1; continue; }
+ r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___81867);
+ { step = 7; continue; }
+ case 1:
+ case 2:
+ r0 = s.arg0.fields["_hitbox"];
+ r0 = r0.fields["ox"];
+ s.oMinX___81875 = (r0);
+ r0 = s.arg0.fields["_hitbox"];
+ r0 = r0.fields["oy"];
+ s.oMinY___81879 = (r0);
+ r0 = s.arg0.fields["_hitbox"];
+ r0 = r0.fields["width"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, s.caps[12]);
- r0 = pxsim_pxtrt_ldlocRef(s.caps[11]);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 0);
+ r0 = (s.oMinX___81875 + s.tmp_0);
+ s.oMaxX___81883 = (r0);
+ r0 = s.arg0.fields["_hitbox"];
+ r0 = r0.fields["height"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 19; continue; }
- s.tmp_2 = helpers_imagePrint__P1757_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_image"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.caps[13];
- s.tmp_2.arg2 = s.caps[14];
- s.tmp_2.arg3 = s.caps[15];
- s.tmp_2.arg4 = s.caps[16];
- s.tmp_2.arg5 = s.caps[2];
- s.tmp_2.arg6 = undefined;
- s.callLocIdx = 341; s.pc = 42; return s.tmp_2;
- case 42:
- r0 = s.retval;
- { step = 20; continue; }
- case 19:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.caps[13];
- s.tmp_2 = r0 = s.caps[14];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.caps[15];
- s.tmp_0.arg4 = s.caps[16];
- s.tmp_0.arg5 = s.caps[2];
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 343; s.pc = 43; return s.tmp_0;
- case 43:
- r0 = s.retval;
- case 20:
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 0;
- r0 = (s.caps[3] >> 1);
- s.tmp_0.arg3 = r0;
- s.tmp_3 = if_charHeight_1_mk(s);
- s.tmp_3.arg0 = s.caps[2];
- 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 = 345; s.pc = 45; return s.tmp_3; }
- }
- case 45:
+ r0 = (s.oMinY___81879 + s.tmp_0);
+ s.oMaxY___81890 = (r0);
+ r0 = s.newHitBox___81867.fields["ox"];
+ s.nMinX___81897 = (r0);
+ r0 = s.newHitBox___81867.fields["oy"];
+ s.nMinY___81900 = (r0);
+ r0 = s.newHitBox___81867.fields["width"];
+ s.tmp_0 = r0;
+ r0 = (s.nMinX___81897 + s.tmp_0);
+ s.nMaxX___81903 = (r0);
+ r0 = s.newHitBox___81867.fields["height"];
+ s.tmp_0 = r0;
+ r0 = (s.nMinY___81900 + s.tmp_0);
+ s.nMaxY___81909 = (r0);
+ s.tmp_1 = Fx_abs__P60152_mk(s);
+ r0 = (s.oMinX___81875 - s.nMinX___81897);
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 265; s.pc = 9; return s.tmp_1;
+ case 9:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.caps[3]);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = s.caps[12];
- s.callLocIdx = 346; s.pc = 44; return s.tmp_0;
- case 44:
+ s.tmp_0 = r0;
+ s.tmp_3 = Fx_abs__P60152_mk(s);
+ r0 = (s.oMaxX___81883 - s.nMaxX___81903);
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 267; s.pc = 10; return s.tmp_3;
+ case 10:
r0 = s.retval;
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
- s.tmp_0.arg0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
s.tmp_2 = r0;
- r0 = (s.caps[3] >> 1);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 0;
- r0 = (s.caps[3] >> 1);
- s.tmp_0.arg3 = r0;
- s.tmp_5 = if_charHeight_1_mk(s);
- s.tmp_5.arg0 = s.caps[2];
- if (!s.tmp_5.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight");
- } else {
- s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"];
- if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; }
- else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 348; s.pc = 47; return s.tmp_5; }
- }
- case 47:
+ r0 = (s.tmp_0 + s.tmp_2);
+ s.xDiff___81915 = (r0);
+ s.tmp_1 = Fx_abs__P60152_mk(s);
+ r0 = (s.oMinY___81879 - s.nMinY___81900);
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 270; s.pc = 11; return s.tmp_1;
+ case 11:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + s.caps[3]);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = s.caps[12];
- s.callLocIdx = 349; s.pc = 46; return s.tmp_0;
- case 46:
+ s.tmp_0 = r0;
+ s.tmp_3 = Fx_abs__P60152_mk(s);
+ r0 = (s.oMaxY___81890 - s.nMaxY___81909);
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 272; s.pc = 12; return s.tmp_3;
+ case 12:
r0 = s.retval;
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ s.yDiff___81926 = (r0);
+ r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___81867);
+ r0 = (s.xDiff___81915 <= 512);
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, 0, 0);
- r0 = s.caps[0].fields["sayBubbleSprite"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["_hitbox"];
s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
+ r0 = (s.tmp_1).fields["ox"] = (s.oMinX___81875);
+ r0 = s.arg0.fields["_hitbox"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_2, 0, 0);
- r0 = s.caps[0].fields["sayBubbleSprite"];
+ r0 = (s.oMaxX___81883 - s.oMinX___81875);
s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
+ r0 = (s.tmp_0).fields["width"] = (s.tmp_1);
+ case 3:
+ case 4:
+ r0 = (s.yDiff___81926 <= 512);
s.tmp_0 = r0;
- s.tmp_5 = if_charHeight_1_mk(s);
- s.tmp_5.arg0 = s.caps[2];
- if (!s.tmp_5.arg0.vtable.iface) {
- s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight");
- } else {
- s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"];
- if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; }
- else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); }
- else { s.callLocIdx = 353; s.pc = 48; return s.tmp_5; }
- }
- case 48:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + s.caps[3]);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, s.tmp_2, 0);
- r0 = s.caps[0].fields["sayBubbleSprite"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.arg0.fields["_hitbox"];
s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_image"];
+ r0 = (s.tmp_1).fields["oy"] = (s.oMinY___81879);
+ r0 = s.arg0.fields["_hitbox"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[17]);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- s.tmp_7 = if_charHeight_1_mk(s);
- s.tmp_7.arg0 = s.caps[2];
- 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 = 355; s.pc = 49; return s.tmp_7; }
- }
- case 49:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + s.caps[3]);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 1);
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_2, s.tmp_4, 0);
- case 21:
- case 22:
- { step = 24; continue; }
- case 23:
- r0 = (s.caps[0]).fields["updateSay"] = (undefined);
- s.tmp_0 = Sprite_destroy__P2084_mk(s);
- r0 = s.caps[0].fields["sayBubbleSprite"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = undefined;
- s.tmp_0.arg2 = undefined;
- s.callLocIdx = 356; s.pc = 50; return s.tmp_0;
- case 50:
- r0 = s.retval;
- r0 = (s.caps[0]).fields["sayBubbleSprite"] = (undefined);
- case 24:
+ r0 = (s.oMaxY___81890 - s.oMinY___81879);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["height"] = (s.tmp_1);
+ case 5:
+ case 6:
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P21564.info = {"start":16028,"length":3804,"line":542,"column":25,"endLine":616,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]}
+Sprite_setHitbox__P62049.info = {"start":6964,"length":1296,"line":258,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]}
-function inline__P21564_mk(s) {
+function Sprite_setHitbox__P62049_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P21564, depth: s.depth + 1,
+ parent: s, fn: Sprite_setHitbox__P62049, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- ox___21602: undefined,
- oy___21605: undefined,
+ newHitBox___81867: undefined,
+ oMinX___81875: undefined,
+ oMinY___81879: undefined,
+ oMaxX___81883: undefined,
+ oMaxY___81890: undefined,
+ nMinX___81897: undefined,
+ nMinY___81900: undefined,
+ nMaxX___81903: undefined,
+ nMaxY___81909: undefined,
+ xDiff___81915: undefined,
+ yDiff___81926: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function Sprite_destroy__P2084(s) {
+function game_calculateHitBox__P61962(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -35828,74 +33390,140 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___81975 = undefined;
+ s.minX___81978 = undefined;
+ s.minY___81981 = undefined;
+ s.maxX___81984 = undefined;
+ s.maxY___81985 = undefined;
+ s.c___81986 = undefined;
+ s.r___81992 = undefined;
+ s.width___82023 = undefined;
+ s.height___82029 = 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__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["flags"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 & 2);
+ r0 = s.arg0.fields["_image"];
+ s.i___81975 = (r0);
+ r0 = pxsim_ImageMethods.width(s.i___81975);
+ s.minX___81978 = (r0);
+ r0 = pxsim_ImageMethods.height(s.i___81975);
+ s.minY___81981 = (r0);
+ s.maxX___81984 = (0);
+ s.maxY___81985 = (0);
+ s.c___81986 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.c___81986;
+ r0 = pxsim_ImageMethods.width(s.i___81975);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
- case 1:
+ if (!r0) { step = 6; continue; }
+ s.r___81992 = (0);
case 2:
- s.tmp_2 = r0 = s.arg0;
- r0 = s.tmp_2.fields["flags"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 2);
+ s.tmp_1 = r0 = s.r___81992;
+ r0 = pxsim_ImageMethods.height(s.i___81975);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.i___81975, s.c___81986, s.r___81992);
s.tmp_3 = r0;
- r0 = (s.tmp_2).fields["flags"] = (s.tmp_3);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 3; continue; }
- s.tmp_0 = effects_ParticleEffect_destroy__P2784_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;
- case 6:
- r0 = s.retval;
- { step = 4; continue; }
- case 3:
- s.tmp_0 = Sprite__destroyCore__P2085_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 438; s.pc = 7; return s.tmp_0;
+ s.tmp_4 = Math_min__P60118_mk(s);
+ s.tmp_4.arg0 = s.minX___81978;
+ s.tmp_4.arg1 = s.c___81986;
+ s.callLocIdx = 218; s.pc = 7; return s.tmp_4;
case 7:
r0 = s.retval;
+ s.minX___81978 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
+ s.tmp_0.arg0 = s.minY___81981;
+ s.tmp_0.arg1 = s.r___81992;
+ s.callLocIdx = 219; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.minY___81981 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
+ s.tmp_0.arg0 = s.maxX___81984;
+ s.tmp_0.arg1 = s.c___81986;
+ s.callLocIdx = 220; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.maxX___81984 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
+ s.tmp_0.arg0 = s.maxY___81985;
+ s.tmp_0.arg1 = s.r___81992;
+ s.callLocIdx = 221; s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ s.maxY___81985 = (r0);
+ case 3:
case 4:
+ r0 = (s.r___81992 + 1);
+ s.r___81992 = (r0);
+ { step = 2; continue; }
case 5:
- r0 = undefined;
+ r0 = (s.c___81986 + 1);
+ s.c___81986 = (r0);
+ { step = 1; continue; }
+ case 6:
+ r0 = (s.maxX___81984 - s.minX___81978);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + 1);
+ s.width___82023 = (r0);
+ r0 = (s.maxY___81985 - s.minY___81981);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + 1);
+ s.height___82029 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C61951_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = game_Hitbox_constructor__P61957_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.width___82023;
+ s.tmp_1.arg3 = s.height___82029;
+ s.tmp_1.arg4 = s.minX___81978;
+ s.tmp_1.arg5 = s.minY___81981;
+ s.callLocIdx = 222; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-Sprite_destroy__P2084.info = {"start":28350,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
+game_calculateHitBox__P61962.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]}
-function Sprite_destroy__P2084_mk(s) {
+function game_calculateHitBox__P61962_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_destroy__P2084, depth: s.depth + 1,
+ parent: s, fn: game_calculateHitBox__P61962, depth: s.depth + 1,
pc: 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___81975: undefined,
+ minX___81978: undefined,
+ minY___81981: undefined,
+ maxX___81984: undefined,
+ maxY___81985: undefined,
+ c___81986: undefined,
+ r___81992: undefined,
+ width___82023: undefined,
+ height___82029: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function effects_ParticleEffect_destroy__P2784(s) {
+function game_Hitbox_constructor__P61957(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -35910,83 +33538,109 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, effects_ParticleEffect__C2781_VT)) failedCast(r0);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 1176; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = effects_ParticleEffect_start__P2783_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);
+ if (!checkSubtype(r0, game_Hitbox__C61951_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["parent"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg2 * 256);
s.tmp_2 = r0;
- r0 = 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.arg4 = r0;
- s.callLocIdx = 1177; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 1; continue; }
- r0 = s.arg2;
- { step = 2; continue; }
- case 1:
- r0 = s.arg0.fields["defaultLifespan"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 2);
- case 2:
- // jmp value (already in r0)
+ r0 = (s.tmp_0).fields["width"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg3 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
s.tmp_1 = r0;
- r0 = (s.arg1).fields["lifespan"] = (s.tmp_1);
- s.tmp_0 = effects_ImageEffect_applyTo__P2810_mk(s);
- s.tmp_0.arg0 = globals.dissolve___2813;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1178; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
+ r0 = (s.tmp_0).fields["height"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg4 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["ox"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg5 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["oy"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-effects_ParticleEffect_destroy__P2784.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"]}
+game_Hitbox_constructor__P61957.info = {"start":151,"length":266,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]}
-function effects_ParticleEffect_destroy__P2784_mk(s) {
+function game_Hitbox_constructor__P61957_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ParticleEffect_destroy__P2784, depth: s.depth + 1,
+ parent: s, fn: game_Hitbox_constructor__P61957, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+} }
+
+
+
+
+
+function Fx_abs__P60152(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__P60152.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__P60152_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Fx_abs__P60152, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
} }
-function inline__P25807(s) {
+function Sprite_image__P62047(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -35996,105 +33650,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___25810 = undefined;
- s.x___25821 = undefined;
- s.y___25827 = undefined;
- s.w___25833 = undefined;
- s.h___25837 = 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___25810 = (r0);
- case 1:
- r0 = (s.i___25810 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = Math_FastRandom_randomRange__P2582_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 = 38; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- s.x___25821 = (r0);
- s.tmp_0 = Math_FastRandom_randomRange__P2582_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 = 39; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.y___25827 = (r0);
- s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 3;
- s.callLocIdx = 40; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.w___25833 = (r0);
- s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 3;
- s.callLocIdx = 41; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.h___25837 = (r0);
- s.tmp_0 = helpers_imageDrawRect__P1728_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.x___25821;
- s.tmp_0.arg2 = s.y___25827;
- s.tmp_0.arg3 = s.w___25833;
- s.tmp_0.arg4 = s.h___25837;
- s.tmp_0.arg5 = 0;
- s.callLocIdx = 42; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- r0 = (s.i___25810 - 1);
- s.i___25810 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = undefined;
- return leave(s, r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_image"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-inline__P25807.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]}
+Sprite_image__P62047.info = {"start":6549,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]}
+Sprite_image__P62047.isGetter = true;
-function inline__P25807_mk(s) {
+function Sprite_image__P62047_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25807, depth: s.depth + 1,
+ parent: s, fn: Sprite_image__P62047, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- i___25810: undefined,
- x___25821: undefined,
- y___25827: undefined,
- w___25833: undefined,
- h___25837: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function effects_ImageEffect_applyTo__P2810(s) {
+function Sprite_data__P62033(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36104,80 +33685,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.clonedImage___25858 = 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__C2808_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_data"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ s.tmp_3 = r0 = s.arg0;
+ r0 = pxsim_pxtrt.mkMap();
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3).fields["_data"] = (s.tmp_4);
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___25858 = (r0);
- s.tmp_0 = effects_ImageEffect_change__P2811_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.clonedImage___25858;
- s.callLocIdx = 1189; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = Sprite_setImage__P2053_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = s.clonedImage___25858;
- s.callLocIdx = 1190; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- case 5:
- r0 = undefined;
- return leave(s, r0)
+ r0 = s.arg0.fields["_data"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-effects_ImageEffect_applyTo__P2810.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]}
+Sprite_data__P62033.info = {"start":4194,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]}
+Sprite_data__P62033.isGetter = true;
-function effects_ImageEffect_applyTo__P2810_mk(s) {
+function Sprite_data__P62033_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ImageEffect_applyTo__P2810, depth: s.depth + 1,
+ parent: s, fn: Sprite_data__P62033, depth: s.depth + 1,
pc: 0, retval: undefined, 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___25858: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function effects_ImageEffect_change__P2811(s) {
+function JSON_stringify__P60368(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36187,50 +33739,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ss___82111 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, effects_ImageEffect__C2808_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 = 1191; 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 = 1191; s.pc = 1; return s.tmp_0; }
- else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1191; s.pc = 1; return s.tmp_0;; }
- else { s.callLocIdx = 1191; s.pc = 1; return s.tmp_0; }
- }
+ r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C63947_VT);
+ s.ss___82111 = (r0);
+ s.tmp_0 = r0 = s.ss___82111;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1);
+ r0 = (s.arg2 | 0);
+ s.arg2 = (r0);
+ r0 = (s.arg2 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.arg2 = (0);
case 1:
+ case 2:
+ r0 = (s.arg2 > 10);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.arg2 = (10);
+ case 3:
+ case 4:
+ s.tmp_0 = r0 = s.ss___82111;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.ss___82111;
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1);
+ r0 = (s.ss___82111).fields["indent"] = (s.arg2);
+ case 5:
+ s.tmp_0 = r0 = s.arg2;
+ r0 = (s.tmp_0 - 1);
+ s.arg2 = (r0);
+ r0 = (s.tmp_0 > 0);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 6; continue; }
+ s.tmp_2 = r0 = s.ss___82111;
+ r0 = s.tmp_2.fields["indentStep"];
+ s.tmp_5 = r0;
+ if ((s.tmp_5) && (s.tmp_5).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.tmp_5);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_5) + ""; }
+ case 7:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, " ");
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3);
+ { step = 5; continue; }
+ case 6:
+ s.tmp_0 = JSON_Stringifier_go__P63949_mk(s);
+ s.tmp_0.arg0 = s.ss___82111;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 50; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-effects_ImageEffect_change__P2811.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]}
+JSON_stringify__P60368.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]}
-function effects_ImageEffect_change__P2811_mk(s) {
+function JSON_stringify__P60368_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: effects_ImageEffect_change__P2811, depth: s.depth + 1,
+ parent: s, fn: JSON_stringify__P60368, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ ss___82111: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function effects_ParticleEffect_start__P2783(s) {
+function JSON_Stringifier_go__P63949(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36240,165 +33844,593 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.src___25882 = undefined;
+ s.t___82152 = undefined;
+ s.arr___82176 = undefined;
+ s.r___82182 = undefined;
+ s.i___82199 = undefined;
+ s.keys___82263 = undefined;
+ s.r___82270 = undefined;
+ s.i___82287 = undefined;
+ s.k___82293 = 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__C2781_VT)) failedCast(r0);
- r0 = s.arg0.fields["sourceFactory"];
+ if (!checkSubtype(r0, JSON_Stringifier__C63947_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore.typeOf(s.arg1);
+ s.t___82152 = (r0);
+ r0 = (s.t___82152 == "string");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = JSON_Stringifier_doString__P63948_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 44; s.pc = 38; return s.tmp_1;
+ case 38:
+ r0 = s.retval;
+ { step = 37; continue; }
+ { step = 36; continue; }
+ case 1:
+ r0 = (s.t___82152 == "boolean");
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (!r0) { step = 2; continue; }
+ r0 = s.tmp_2;
+ { step = 3; continue; }
+ case 2:
+ r0 = (s.t___82152 == "number");
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 4; continue; }
+ r0 = s.tmp_3;
+ { step = 5; continue; }
+ case 4:
+ r0 = (s.arg1 == null);
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 6; continue; }
+ r0 = pxsim_String_.mkEmpty();
+ s.tmp_5 = r0;
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 39);
+ pxsim_String__stringConv(s.arg1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg1) + ""; }
+ case 39:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, s.tmp_6);
+ { step = 37; continue; }
+ { step = 35; continue; }
+ case 6:
+ r0 = pxsim_Array_.isArray(s.arg1);
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 19; continue; }
+ s.arr___82176 = (s.arg1);
+ r0 = pxsim_Array__length(s.arr___82176);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = "[]";
+ { step = 37; continue; }
+ { step = 18; continue; }
+ case 7:
+ s.r___82182 = ("[");
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_1 = r0 = s.arg0;
+ r0 = s.tmp_1.fields["currIndent"];
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["indentStep"];
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 41);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 41:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
+ if ((s.r___82182) && (s.r___82182).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.r___82182);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82182) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "\n");
+ s.r___82182 = (r0);
+ case 8:
+ case 9:
+ s.i___82199 = (0);
+ case 10:
+ s.tmp_1 = r0 = s.i___82199;
+ r0 = pxsim_Array__length(s.arr___82176);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ if ((s.r___82182) && (s.r___82182).vtable) {
+ setupResume(s, 43);
+ pxsim_String__stringConv(s.r___82182);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82182) + ""; }
+ case 43:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["currIndent"];
+ s.tmp_7 = r0;
+ if ((s.tmp_7) && (s.tmp_7).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.tmp_7);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_7) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ s.tmp_10 = JSON_Stringifier_go__P63949_mk(s);
+ s.tmp_10.arg0 = s.arg0;
+ r0 = pxsim_Array__getAt(s.arr___82176, s.i___82199);
+ s.tmp_10.arg1 = r0;
+ s.callLocIdx = 45; s.pc = 45; return s.tmp_10;
+ case 45:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ if ((s.tmp_9) && (s.tmp_9).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.tmp_9);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_9) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = pxsim_String__concat(s.tmp_6, s.tmp_8);
+ s.tmp_5 = r0;
+ if ((s.tmp_5) && (s.tmp_5).vtable) {
+ setupResume(s, 47);
+ pxsim_String__stringConv(s.tmp_5);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_5) + ""; }
+ case 47:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
+ s.r___82182 = (r0);
+ s.tmp_1 = r0 = s.i___82199;
+ r0 = pxsim_Array__length(s.arr___82176);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 != s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ if ((s.r___82182) && (s.r___82182).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.r___82182);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82182) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, ",");
+ s.r___82182 = (r0);
+ case 11:
+ case 12:
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ if ((s.r___82182) && (s.r___82182).vtable) {
+ setupResume(s, 49);
+ pxsim_String__stringConv(s.r___82182);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82182) + ""; }
+ case 49:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "\n");
+ s.r___82182 = (r0);
+ case 13:
+ case 14:
+ r0 = (s.i___82199 + 1);
+ s.i___82199 = (r0);
+ { step = 10; continue; }
+ case 15:
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ s.tmp_1 = r0 = s.arg0;
+ s.tmp_3 = helpers_stringSlice__P60107_mk(s);
+ r0 = s.arg0.fields["currIndent"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.arg0.fields["indent"];
+ s.tmp_3.arg1 = r0;
+ s.tmp_3.arg2 = undefined;
+ s.callLocIdx = 46; s.pc = 50; return s.tmp_3;
+ case 50:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
+ case 16:
+ case 17:
+ if ((s.r___82182) && (s.r___82182).vtable) {
+ setupResume(s, 51);
+ pxsim_String__stringConv(s.r___82182);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82182) + ""; }
+ case 51:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["currIndent"];
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 52);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 52:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, "]");
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 53);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 53:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.r___82182 = (r0);
+ r0 = s.r___82182;
+ { step = 37; continue; }
+ case 18:
+ { step = 34; continue; }
+ case 19:
+ r0 = pxsim_pxtrt.keysOf(s.arg1);
+ s.keys___82263 = (r0);
+ r0 = pxsim_Array__length(s.keys___82263);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 20; continue; }
+ r0 = "{}";
+ { step = 37; continue; }
+ case 20:
+ case 21:
+ s.r___82270 = ("{");
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 22; continue; }
+ s.tmp_1 = r0 = s.arg0;
+ r0 = s.tmp_1.fields["currIndent"];
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 54);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 54:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["indentStep"];
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 55);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 55:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 56);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 56:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "\n");
+ s.r___82270 = (r0);
+ case 22:
+ case 23:
+ s.i___82287 = (0);
+ case 24:
+ s.tmp_1 = r0 = s.i___82287;
+ r0 = pxsim_Array__length(s.keys___82263);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 31; continue; }
+ r0 = pxsim_Array__getAt(s.keys___82263, s.i___82287);
+ s.k___82293 = (r0);
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 57);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 57:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["currIndent"];
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 58);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 58:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ s.tmp_7 = JSON_Stringifier_doString__P63948_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.k___82293;
+ s.callLocIdx = 47; s.pc = 59; return s.tmp_7;
+ case 59:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 60);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 60:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 61);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 61:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.r___82270 = (r0);
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 25; continue; }
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 62);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 62:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ": ");
+ s.r___82270 = (r0);
+ { step = 26; continue; }
+ case 25:
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 63);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 63:
+ r0 = s.retval;
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 = 1174; 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 = 1174; s.pc = 10; return s.tmp_4; }
- else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1174; s.pc = 10; return s.tmp_4;; }
- else { s.callLocIdx = 1174; s.pc = 10; return s.tmp_4; }
- }
- case 10:
+ r0 = pxsim_String__concat(s.tmp_0, ":");
+ s.r___82270 = (r0);
+ case 26:
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 64);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 64:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ s.tmp_3 = JSON_Stringifier_go__P63949_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___82293);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 48; s.pc = 65; return s.tmp_3;
+ case 65:
r0 = s.retval;
- s.src___25882 = (r0);
- s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P2681_mk(s);
- s.tmp_0.arg0 = s.src___25882;
- 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);
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 66);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 66:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1175; s.pc = 11; return s.tmp_0;
- case 11:
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.r___82270 = (r0);
+ s.tmp_1 = r0 = s.i___82287;
+ r0 = pxsim_Array__length(s.keys___82263);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 != s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 27; continue; }
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 67);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 67:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 7; continue; }
- r0 = (s.arg2 > 0);
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, ",");
+ s.r___82270 = (r0);
+ case 27:
+ case 28:
+ r0 = s.arg0.fields["indent"];
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)
+ if (!r0) { step = 29; continue; }
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 68);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 68:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.src___25882).fields["lifespan"] = (s.tmp_1);
- case 7:
- case 8:
- case 9:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-effects_ParticleEffect_start__P2783.info = {"start":967,"length":452,"line":26,"column":8,"endLine":32,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"start","argumentNames":["this","anchor","duration","particlesPerSecond","relativeToCamera"]}
-
-function effects_ParticleEffect_start__P2783_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: effects_ParticleEffect_start__P2783, depth: s.depth + 1,
- pc: 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___25882: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
-} }
-
-
-
-
-
-function particles_ParticleSource_setRelativeToCamera__P2681(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["pFlags"];
+ r0 = pxsim_String__concat(s.tmp_1, "\n");
+ s.r___82270 = (r0);
+ case 29:
+ case 30:
+ r0 = (s.i___82287 + 1);
+ s.i___82287 = (r0);
+ { step = 24; continue; }
+ case 31:
+ r0 = s.arg0.fields["indent"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 32; continue; }
+ s.tmp_1 = r0 = s.arg0;
+ s.tmp_3 = helpers_stringSlice__P60107_mk(s);
+ r0 = s.arg0.fields["currIndent"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.arg0.fields["indent"];
+ s.tmp_3.arg1 = r0;
+ s.tmp_3.arg2 = undefined;
+ s.callLocIdx = 49; s.pc = 69; return s.tmp_3;
+ case 69:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
- { step = 2; continue; }
- case 1:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["pFlags"];
+ r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
+ case 32:
+ case 33:
+ if ((s.r___82270) && (s.r___82270).vtable) {
+ setupResume(s, 70);
+ pxsim_String__stringConv(s.r___82270);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82270) + ""; }
+ case 70:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["currIndent"];
s.tmp_4 = r0;
- r0 = (~ s.tmp_4);
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 71);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 71:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 | 4);
+ r0 = pxsim_String__concat(s.tmp_3, "}");
s.tmp_2 = r0;
- r0 = (~ s.tmp_2);
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 72);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 72:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1);
- case 2:
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.r___82270 = (r0);
+ r0 = s.r___82270;
+ { step = 37; continue; }
+ case 34:
+ case 35:
+ case 36:
r0 = undefined;
+ case 37:
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_setRelativeToCamera__P2681.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]}
+JSON_Stringifier_go__P63949.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]}
-function particles_ParticleSource_setRelativeToCamera__P2681_mk(s) {
+function JSON_Stringifier_go__P63949_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_setRelativeToCamera__P2681, depth: s.depth + 1,
+ parent: s, fn: JSON_Stringifier_go__P63949, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ t___82152: undefined,
+ arr___82176: undefined,
+ r___82182: undefined,
+ i___82199: undefined,
+ keys___82263: undefined,
+ r___82270: undefined,
+ i___82287: undefined,
+ k___82293: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -36407,7 +34439,7 @@ function particles_ParticleSource_setRelativeToCamera__P2681_mk(s) {
-function Sprite__destroyCore__P2085(s) {
+function JSON_Stringifier_doString__P63948(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36417,364 +34449,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___25712 = undefined;
+ s.r___82410 = undefined;
+ s.i___82411 = undefined;
+ s.c___82417 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["flags"];
+ if (!checkSubtype(r0, JSON_Stringifier__C63947_VT)) failedCast(r0);
+ s.r___82410 = ("\"");
+ s.i___82411 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___82411;
+ r0 = pxsim_String_.length(s.arg1);
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__P2524_mk(s);
- s.callLocIdx = 439; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.scene___25712 = (r0);
- r0 = s.arg0.fields["sayBubbleSprite"];
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = Sprite_destroy__P2084_mk(s);
- r0 = s.arg0.fields["sayBubbleSprite"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = undefined;
- s.tmp_1.arg2 = undefined;
- s.callLocIdx = 440; s.pc = 10; return s.tmp_1;
- case 10:
- r0 = s.retval;
- case 1:
- case 2:
- r0 = s.scene___25712.fields["allSprites"];
+ if (!r0) { step = 14; continue; }
+ r0 = pxsim_String_.charAt(s.arg1, s.i___82411);
+ s.c___82417 = (r0);
+ r0 = (s.c___82417 == "\n");
s.tmp_0 = r0;
- r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
- r0 = s.arg0.fields["_kind"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >= 0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.c___82417 = ("\\n");
+ { step = 13; continue; }
+ case 2:
+ r0 = (s.c___82417 == "\r");
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.c___82417 = ("\\r");
+ { step = 12; continue; }
case 3:
- r0 = s.scene___25712.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);
+ r0 = (s.c___82417 == "\t");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.c___82417 = ("\\t");
+ { step = 11; continue; }
case 4:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ r0 = (s.c___82417 == "\b");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_5 = sprites_SpriteSet_remove__P2115_mk(s);
- r0 = s.scene___25712.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 = 444; s.pc = 11; return s.tmp_5;
- case 11:
- r0 = s.retval;
+ s.c___82417 = ("\\b");
+ { step = 10; continue; }
case 5:
+ r0 = (s.c___82417 == "\\");
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.c___82417 = ("\\\\");
+ { step = 9; continue; }
case 6:
- s.tmp_0 = PhysicsEngine__C2156_v1_2_mk(s);
- r0 = s.scene___25712.fields["physicsEngine"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite;
- s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- r0 = s.arg0.fields["destroyHandler"];
+ r0 = (s.c___82417 == "\"");
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- s.tmp_1 = if_destroyHandler_1_mk(s);
- s.tmp_1.arg0 = s.arg0;
- if (!s.tmp_1.arg0.vtable.iface) {
- setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1);
- s.callLocIdx = 445; s.pc = 13; return s.tmp_1;
- } else {
- s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"];
- if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 445; s.pc = 13; return s.tmp_1; }
- else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 445; s.pc = 13; return s.tmp_1;; }
- else { s.callLocIdx = 445; s.pc = 13; return s.tmp_1; }
- }
- case 13:
- r0 = s.retval;
+ s.c___82417 = ("\\\"");
case 7:
case 8:
- r0 = pxsim_pxtcore_mkAction(1, inline__P25748);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P25754);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
- s.tmp_2 = helpers_arrayForEach__P104_mk(s);
- s.tmp_3 = helpers_arrayFilter__P105_mk(s);
- r0 = s.scene___25712.fields["destroyedHandlers"];
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.tmp_0;
- s.callLocIdx = 447; s.pc = 15; return s.tmp_3;
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ if ((s.r___82410) && (s.r___82410).vtable) {
+ setupResume(s, 15);
+ pxsim_String__stringConv(s.r___82410);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82410) + ""; }
case 15:
r0 = s.retval;
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 449; s.pc = 14; return s.tmp_2;
- case 14:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-Sprite__destroyCore__P2085.info = {"start":28649,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
-
-function Sprite__destroyCore__P2085_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Sprite__destroyCore__P2085, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- scene___25712: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P25748(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0.fields["kind"];
s.tmp_0 = r0;
- r0 = s.caps[0].fields["_kind"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0 == s.tmp_1);
- return leave(s, r0)
- default: oops()
-} } }
-inline__P25748.info = {"start":29265,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-
-function inline__P25748_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P25748, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P25754(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = if_handler_2_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.caps[0];
- if (!s.tmp_0.arg0.vtable.iface) {
- setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2);
- s.callLocIdx = 448; 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 = 448; s.pc = 1; return s.tmp_0; }
- else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 448; s.pc = 1; return s.tmp_0;; }
- else { s.callLocIdx = 448; s.pc = 1; return s.tmp_0; }
- }
- case 1:
+ if ((s.c___82417) && (s.c___82417).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.c___82417);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.c___82417) + ""; }
+ case 16:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P25754.info = {"start":29314,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-
-function inline__P25754_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P25754, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function PhysicsEngine_removeSprite__P2159(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2156_VT)) failedCast(r0);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-PhysicsEngine_removeSprite__P2159.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__P2159_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: PhysicsEngine_removeSprite__P2159, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function sprites_SpriteSet_remove__P2115(s) {
-let r0 = s.r0, 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___25762 = 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__C2108_VT)) failedCast(r0);
- r0 = s.arg0.fields["_sprites"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined);
- s.i___25762 = (r0);
- r0 = (s.i___25762 > -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = helpers_arraySplice__P95_mk(s);
- r0 = s.arg0.fields["_sprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.i___25762;
- s.tmp_1.arg2 = 1;
- s.callLocIdx = 493; s.pc = 4; return s.tmp_1;
- case 4:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.r___82410 = (r0);
+ r0 = (s.i___82411 + 1);
+ s.i___82411 = (r0);
+ { step = 1; continue; }
+ case 14:
+ if ((s.r___82410) && (s.r___82410).vtable) {
+ setupResume(s, 17);
+ pxsim_String__stringConv(s.r___82410);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.r___82410) + ""; }
+ case 17:
r0 = s.retval;
- r0 = true;
- { step = 3; continue; }
- case 1:
- case 2:
- r0 = false;
- case 3:
- return leave(s, r0)
- default: oops()
-} } }
-sprites_SpriteSet_remove__P2115.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]}
-
-function sprites_SpriteSet_remove__P2115_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: sprites_SpriteSet_remove__P2115, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- i___25762: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function Sprite_kind__P2067(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_kind"];
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "\"");
return leave(s, r0)
default: oops()
} } }
-Sprite_kind__P2067.info = {"start":10631,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]}
+JSON_Stringifier_doString__P63948.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]}
-function Sprite_kind__P2067_mk(s) {
+function JSON_Stringifier_doString__P63948_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_kind__P2067, depth: s.depth + 1,
+ parent: s, fn: JSON_Stringifier_doString__P63948, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ r___82410: undefined,
+ i___82411: undefined,
+ c___82417: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function Sprite_isOutOfScreen__P2073(s) {
+function tileworld_ruleediting_RuleEditor_mainMenu__P74493(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36784,118 +34586,109 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___21833 = undefined;
- s.oy___21841 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["flags"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = s.arg0.fields["menu"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 & 512);
+ r0 = (s.tmp_1 == 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = 0;
- { step = 2; continue; }
- case 1:
- r0 = s.arg1.fields["drawOffsetX"];
- case 2:
- // jmp value (already in r0)
+ if (!r0) { step = 7; continue; }
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["rule"];
+ s.tmp_5 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_6 = r0;
+ r0 = s.tmp_5.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_7 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_6);
+ r0 = r0.fields["commandsLen"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_3 < s.tmp_4);
s.tmp_2 = r0;
- s.ox___21833 = (s.tmp_2);
- r0 = s.arg0.fields["flags"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 & 512);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = 0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_2;
{ step = 4; continue; }
+ case 1:
+ s.tmp_10 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_10.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_10.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_10.arg2 = r0;
+ s.callLocIdx = 1012; s.pc = 9; return s.tmp_10;
+ case 9:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 == 255);
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_8);
+ if (!r0) { step = 2; continue; }
+ r0 = s.tmp_8;
+ { step = 3; continue; }
+ case 2:
+ s.tmp_12 = tileworld_RuleView_getCmdArg__P63652_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_12.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_12.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_12.arg2 = r0;
+ s.callLocIdx = 1013; s.pc = 10; return s.tmp_12;
+ case 10:
+ r0 = s.retval;
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 == 255);
case 3:
- r0 = s.arg1.fields["drawOffsetY"];
+ // jmp value (already in r0)
+ s.tmp_13 = r0;
+ r0 = s.tmp_13;
case 4:
// jmp value (already in r0)
- s.tmp_2 = r0;
- s.oy___21841 = (s.tmp_2);
- s.tmp_3 = Sprite_right__P2061_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 358; s.pc = 11; return s.tmp_3;
+ s.tmp_14 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_14);
+ if (!r0) { step = 5; continue; }
+ s.tmp_15 = tileworld_RuleView_removeCommand__P63655_mk(s);
+ r0 = s.arg0.fields["rule"];
+ s.tmp_15.arg0 = r0;
+ r0 = s.arg0.fields["whenDo"];
+ s.tmp_15.arg1 = r0;
+ r0 = s.arg0.fields["currentCommand"];
+ s.tmp_15.arg2 = r0;
+ s.callLocIdx = 1014; s.pc = 11; return s.tmp_15;
case 11:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.ox___21833);
- 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:
- s.tmp_6 = Sprite_bottom__P2065_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 359; s.pc = 12; return s.tmp_6;
- case 12:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - s.oy___21841);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 < 0);
case 6:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (!r0) { step = 7; continue; }
- r0 = s.tmp_7;
- { step = 8; continue; }
case 7:
- s.tmp_10 = Sprite_left__P2059_mk(s);
- s.tmp_10.arg0 = s.arg0;
- s.callLocIdx = 360; s.pc = 13; return s.tmp_10;
- case 13:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 - s.ox___21833);
- s.tmp_8 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_11 = r0;
- r0 = (s.tmp_8 > s.tmp_11);
case 8:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBool(s.tmp_12);
- if (!r0) { step = 9; continue; }
- r0 = s.tmp_12;
- { step = 10; continue; }
- case 9:
- s.tmp_15 = Sprite_top__P2063_mk(s);
- s.tmp_15.arg0 = s.arg0;
- s.callLocIdx = 361; s.pc = 14; return s.tmp_15;
- case 14:
+ r0 = (s.arg0).fields["whenDo"] = (-1);
+ r0 = (s.arg0).fields["currentCommand"] = (-1);
+ r0 = (s.arg0).fields["attrSelected"] = (-1);
+ r0 = (s.arg0).fields["menu"] = (0);
+ s.tmp_0 = tileworld_ruleediting_RuleEditor_restoreCursor__P74495_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1015; s.pc = 12; return s.tmp_0;
+ case 12:
r0 = s.retval;
- s.tmp_14 = r0;
- r0 = (s.tmp_14 - s.oy___21841);
- s.tmp_13 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
- s.tmp_16 = r0;
- r0 = (s.tmp_13 > s.tmp_16);
- case 10:
- // jmp value (already in r0)
- s.tmp_17 = r0;
- r0 = s.tmp_17;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_isOutOfScreen__P2073.info = {"start":20438,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]}
+tileworld_ruleediting_RuleEditor_mainMenu__P74493.info = {"start":7160,"length":789,"line":140,"column":8,"endLine":156,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"mainMenu","argumentNames":["this"]}
-function Sprite_isOutOfScreen__P2073_mk(s) {
+function tileworld_ruleediting_RuleEditor_mainMenu__P74493_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_isOutOfScreen__P2073, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_mainMenu__P74493, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -36913,19 +34706,14 @@ function Sprite_isOutOfScreen__P2073_mk(s) {
tmp_13: undefined,
tmp_14: undefined,
tmp_15: undefined,
- tmp_16: undefined,
- tmp_17: undefined,
- ox___21833: undefined,
- oy___21841: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function Sprite_bottom__P2065(s) {
+function tileworld_ruleediting_RuleEditor_restoreCursor__P74495(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36940,33 +34728,74 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_1 = Sprite_top__P2063_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 288; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.arg0.fields["_image"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ r0 = s.arg0.fields["tileSaved"];
+ r0 = r0.fields["flags"];
s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_3);
+ r0 = (s.tmp_3 & 128);
s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- return leaveAccessor(s, r0)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_4 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_6 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_6.arg0 = r0;
+ s.callLocIdx = 1017; s.pc = 4; return s.tmp_6;
+ case 4:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 >> 4);
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 1018; s.pc = 3; return s.tmp_4;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1019; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >> 4);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1020; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 1021; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_bottom__P2065.info = {"start":10110,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]}
-Sprite_bottom__P2065.isGetter = true;
+tileworld_ruleediting_RuleEditor_restoreCursor__P74495.info = {"start":8049,"length":259,"line":162,"column":8,"endLine":168,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"restoreCursor","argumentNames":["this"]}
-function Sprite_bottom__P2065_mk(s) {
+function tileworld_ruleediting_RuleEditor_restoreCursor__P74495_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_bottom__P2065, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_restoreCursor__P74495, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -36974,7 +34803,7 @@ function Sprite_bottom__P2065_mk(s) {
-function Sprite_height__P2058(s) {
+function tileworld_RuleVisualsBase_isTileSaved__P72693(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -36989,22 +34818,28 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_image"];
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = s.arg0.fields["tileSaved"];
+ r0 = r0.fields["flags"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 & 128);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_0);
- return leaveAccessor(s, r0)
+ r0 = pxsim_Boolean__bang(s.tmp_0);
+ return leave(s, r0)
default: oops()
} } }
-Sprite_height__P2058.info = {"start":8666,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]}
-Sprite_height__P2058.isGetter = true;
+tileworld_RuleVisualsBase_isTileSaved__P72693.info = {"start":5172,"length":102,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"rulesBase.ts","functionName":"isTileSaved","argumentNames":["this"]}
-function Sprite_height__P2058_mk(s) {
+function tileworld_RuleVisualsBase_isTileSaved__P72693_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_height__P2058, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_isTileSaved__P72693, 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,
} }
@@ -37012,7 +34847,7 @@ function Sprite_height__P2058_mk(s) {
-function Sprite_right__P2062(s) {
+function tileworld_Project_makeRule__P63698(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37022,49 +34857,119 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.rv___68235 = undefined;
+ s.wd___68242 = 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, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = Sprite_left__P2060_mk(s);
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_Project_wrapRule__P68103_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_image"];
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
+ s.tmp_1 = tileworld_makeNewRule__P63614_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.tmp_1.arg1 = s.arg2;
+ s.callLocIdx = 179; s.pc = 10; return s.tmp_1;
+ case 10:
+ r0 = s.retval;
s.tmp_0.arg1 = r0;
- s.callLocIdx = 283; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 180; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.rv___68235 = (r0);
+ r0 = (s.arg3 != 65535);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_1 = tileworld_RuleView_makeWhenDo__P63641_mk(s);
+ s.tmp_1.arg0 = s.rv___68235;
+ s.tmp_1.arg1 = 2;
+ s.tmp_1.arg2 = 2;
+ s.callLocIdx = 181; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ s.wd___68242 = (r0);
+ s.tmp_0 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_0.arg0 = s.rv___68235;
+ s.tmp_0.arg1 = s.wd___68242;
+ s.tmp_0.arg2 = s.arg3;
+ s.tmp_0.arg3 = 1;
+ s.callLocIdx = 182; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ r0 = (s.arg1 == 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 == 2);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = tileworld_RuleView_setWitnessDirection__P63649_mk(s);
+ s.tmp_2.arg0 = s.rv___68235;
+ s.tmp_2.arg1 = s.wd___68242;
+ s.tmp_2.arg2 = s.arg2;
+ s.callLocIdx = 183; s.pc = 13; return s.tmp_2;
+ case 13:
r0 = s.retval;
- r0 = undefined;
+ case 3:
+ case 4:
+ r0 = (s.arg3 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_1 = tileworld_RuleView_setTransforms__P63633_mk(s);
+ s.tmp_1.arg0 = s.rv___68235;
+ s.tmp_1.arg1 = 6;
+ s.callLocIdx = 184; s.pc = 14; return s.tmp_1;
+ case 14:
+ r0 = s.retval;
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ s.tmp_0 = tileworld_Project_saveRule__P63697_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.rv___68235;
+ s.callLocIdx = 185; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ r0 = s.rv___68235;
return leave(s, r0)
default: oops()
} } }
-Sprite_right__P2062.info = {"start":9455,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]}
+tileworld_Project_makeRule__P63698.info = {"start":4249,"length":707,"line":124,"column":8,"endLine":140,"endColumn":9,"fileName":"project.ts","functionName":"makeRule","argumentNames":["this","rt","ra","kind"]}
-function Sprite_right__P2062_mk(s) {
+function tileworld_Project_makeRule__P63698_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_right__P2062, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_makeRule__P63698, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
+ rv___68235: undefined,
+ wd___68242: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function Sprite_width__P2057(s) {
+function tileworld_makeNewRule__P63614(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37076,33 +34981,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_image"];
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C63612_VT);
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_0);
- return leaveAccessor(s, r0)
+ s.tmp_1 = tileworld_Rule_constructor__P63613_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.arg1;
+ r0 = pxsim_Array__mk();
+ s.tmp_1.arg3 = r0;
+ s.tmp_1.arg4 = 0;
+ s.callLocIdx = 73; s.pc = 1; return s.tmp_1;
+ case 1:
+ r0 = s.retval;
+ r0 = s.tmp_0;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_width__P2057.info = {"start":8521,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]}
-Sprite_width__P2057.isGetter = true;
+tileworld_makeNewRule__P63614.info = {"start":4724,"length":105,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"rule.ts","functionName":"makeNewRule","argumentNames":["rt","ra"]}
-function Sprite_width__P2057_mk(s) {
+function tileworld_makeNewRule__P63614_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_width__P2057, depth: s.depth + 1,
+ parent: s, fn: tileworld_makeNewRule__P63614, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function Sprite_right__P2061(s) {
+function tileworld_Rule_constructor__P63613(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37114,44 +35029,41 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_1 = Sprite_left__P2059_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 280; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.arg0.fields["_image"];
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- return leaveAccessor(s, r0)
+ if (!checkSubtype(r0, tileworld_Rule__C63612_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["ruleType"] = (s.arg1);
+ r0 = (s.arg0).fields["ruleArg"] = (s.arg2);
+ r0 = (s.arg0).fields["whenDo"] = (s.arg3);
+ r0 = (s.arg0).fields["transforms"] = (s.arg4);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_right__P2061.info = {"start":9306,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]}
-Sprite_right__P2061.isGetter = true;
+tileworld_Rule_constructor__P63613.info = {"start":4384,"length":272,"line":118,"column":8,"endLine":123,"endColumn":13,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","ruleType","ruleArg","whenDo","transforms"]}
-function Sprite_right__P2061_mk(s) {
+function tileworld_Rule_constructor__P63613_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_right__P2061, depth: s.depth + 1,
+ parent: s, fn: tileworld_Rule_constructor__P63613, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
} }
-function Sprite_setImage__P2053(s) {
+function tileworld_Project_wrapRule__P68103(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37161,168 +35073,95 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.newHitBox___21879 = undefined;
- s.oMinX___21889 = undefined;
- s.oMinY___21893 = undefined;
- s.oMaxX___21897 = undefined;
- s.oMaxY___21904 = undefined;
- s.nMinX___21911 = undefined;
- s.nMinY___21914 = undefined;
- s.nMaxX___21917 = undefined;
- s.nMaxY___21923 = undefined;
- s.xDiff___21929 = undefined;
- s.yDiff___21940 = undefined;
+ s.rids___68491 = undefined;
+ s.rid___68506 = undefined;
+ s.i___68507 = undefined;
+ s.newRule___68525 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 9; continue; }
- case 1:
- case 2:
- r0 = (s.arg0).fields["_image"] = (s.arg1);
- s.tmp_0 = game_calculateHitBox__P1967_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 258; s.pc = 10; return s.tmp_0;
- case 10:
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = helpers_arraySort__P60095_mk(s);
+ s.tmp_1 = helpers_arrayMap__P60096_mk(s);
+ r0 = s.arg0.fields["rules"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = inline__P68496;
+ s.callLocIdx = 225; s.pc = 6; return s.tmp_1;
+ case 6:
r0 = s.retval;
- s.newHitBox___21879 = (r0);
- r0 = s.arg0.fields["_hitbox"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = inline__P68500;
+ s.callLocIdx = 226; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.rids___68491 = (r0);
+ s.rid___68506 = (0);
+ s.i___68507 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___68507;
+ r0 = pxsim_Array__length(s.rids___68491);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___21879);
- { step = 9; continue; }
+ if (!r0) { step = 4; continue; }
+ s.tmp_4 = r0 = s.rid___68506;
+ r0 = pxsim_Array__getAt(s.rids___68491, s.i___68507);
+ 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 = 2; continue; }
+ { step = 4; continue; }
+ case 2:
case 3:
+ r0 = pxsim_Array__getAt(s.rids___68491, s.i___68507);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 1);
+ s.rid___68506 = (r0);
+ r0 = (s.i___68507 + 1);
+ s.i___68507 = (r0);
+ { step = 1; continue; }
case 4:
- r0 = s.arg0.fields["_hitbox"];
- r0 = r0.fields["ox"];
- s.oMinX___21889 = (r0);
- r0 = s.arg0.fields["_hitbox"];
- r0 = r0.fields["oy"];
- s.oMinY___21893 = (r0);
- r0 = s.arg0.fields["_hitbox"];
- r0 = r0.fields["width"];
- s.tmp_0 = r0;
- r0 = (s.oMinX___21889 + s.tmp_0);
- s.oMaxX___21897 = (r0);
- r0 = s.arg0.fields["_hitbox"];
- r0 = r0.fields["height"];
- s.tmp_0 = r0;
- r0 = (s.oMinY___21893 + s.tmp_0);
- s.oMaxY___21904 = (r0);
- r0 = s.newHitBox___21879.fields["ox"];
- s.nMinX___21911 = (r0);
- r0 = s.newHitBox___21879.fields["oy"];
- s.nMinY___21914 = (r0);
- r0 = s.newHitBox___21879.fields["width"];
- s.tmp_0 = r0;
- r0 = (s.nMinX___21911 + s.tmp_0);
- s.nMaxX___21917 = (r0);
- r0 = s.newHitBox___21879.fields["height"];
- s.tmp_0 = r0;
- r0 = (s.nMinY___21914 + s.tmp_0);
- s.nMaxY___21923 = (r0);
- s.tmp_1 = Fx_abs__P157_mk(s);
- r0 = (s.oMinX___21889 - s.nMinX___21911);
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 264; s.pc = 11; return s.tmp_1;
- case 11:
- r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_3 = Fx_abs__P157_mk(s);
- r0 = (s.oMaxX___21897 - s.nMaxX___21917);
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 266; s.pc = 12; return s.tmp_3;
- case 12:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- s.xDiff___21929 = (r0);
- s.tmp_1 = Fx_abs__P157_mk(s);
- r0 = (s.oMinY___21893 - s.nMinY___21914);
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 269; s.pc = 13; return s.tmp_1;
- case 13:
- r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C63627_VT);
s.tmp_0 = r0;
- s.tmp_3 = Fx_abs__P157_mk(s);
- r0 = (s.oMaxY___21904 - s.nMaxY___21923);
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 271; s.pc = 14; return s.tmp_3;
- case 14:
+ s.tmp_1 = tileworld_RuleView_constructor__P63628_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.rid___68506;
+ s.tmp_1.arg3 = s.arg1;
+ s.callLocIdx = 227; s.pc = 7; return s.tmp_1;
+ case 7:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- s.yDiff___21940 = (r0);
- r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___21879);
- r0 = (s.xDiff___21929 <= 512);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = s.arg0.fields["_hitbox"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1).fields["ox"] = (s.oMinX___21889);
- r0 = s.arg0.fields["_hitbox"];
- s.tmp_0 = r0;
- r0 = (s.oMaxX___21897 - s.oMinX___21889);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["width"] = (s.tmp_1);
- case 5:
- case 6:
- r0 = (s.yDiff___21940 <= 512);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = s.arg0.fields["_hitbox"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1).fields["oy"] = (s.oMinY___21893);
- r0 = s.arg0.fields["_hitbox"];
+ s.newRule___68525 = (s.tmp_0);
+ r0 = s.arg0.fields["rules"];
s.tmp_0 = r0;
- r0 = (s.oMaxY___21904 - s.oMinY___21893);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["height"] = (s.tmp_1);
- case 7:
- case 8:
- case 9:
- r0 = undefined;
+ r0 = pxsim_Array__push(s.tmp_0, s.newRule___68525);
+ r0 = s.newRule___68525;
return leave(s, r0)
default: oops()
} } }
-Sprite_setImage__P2053.info = {"start":6825,"length":1386,"line":252,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]}
+tileworld_Project_wrapRule__P68103.info = {"start":7352,"length":477,"line":200,"column":8,"endLine":212,"endColumn":9,"fileName":"project.ts","functionName":"wrapRule","argumentNames":["this","r"]}
-function Sprite_setImage__P2053_mk(s) {
+function tileworld_Project_wrapRule__P68103_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_setImage__P2053, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_wrapRule__P68103, depth: s.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___21879: undefined,
- oMinX___21889: undefined,
- oMinY___21893: undefined,
- oMaxX___21897: undefined,
- oMaxY___21904: undefined,
- nMinX___21911: undefined,
- nMinY___21914: undefined,
- nMaxX___21917: undefined,
- nMaxY___21923: undefined,
- xDiff___21929: undefined,
- yDiff___21940: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ rids___68491: undefined,
+ rid___68506: undefined,
+ i___68507: undefined,
+ newRule___68525: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -37331,7 +35170,7 @@ function Sprite_setImage__P2053_mk(s) {
-function game_calculateHitBox__P1967(s) {
+function inline__P68496(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37341,132 +35180,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___21989 = undefined;
- s.minX___21992 = undefined;
- s.minY___21995 = undefined;
- s.maxX___21998 = undefined;
- s.maxY___21999 = undefined;
- s.c___22000 = undefined;
- s.r___22006 = undefined;
- s.width___22037 = undefined;
- s.height___22043 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["_image"];
- s.i___21989 = (r0);
- r0 = pxsim_ImageMethods.width(s.i___21989);
- s.minX___21992 = (r0);
- r0 = pxsim_ImageMethods.height(s.i___21989);
- s.minY___21995 = (r0);
- s.maxX___21998 = (0);
- s.maxY___21999 = (0);
- s.c___22000 = (0);
- case 1:
- s.tmp_1 = r0 = s.c___22000;
- r0 = pxsim_ImageMethods.width(s.i___21989);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.r___22006 = (0);
- case 2:
- s.tmp_1 = r0 = s.r___22006;
- r0 = pxsim_ImageMethods.height(s.i___21989);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.i___21989, s.c___22000, s.r___22006);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = Math_min__P123_mk(s);
- s.tmp_4.arg0 = s.minX___21992;
- s.tmp_4.arg1 = s.c___22000;
- s.callLocIdx = 218; s.pc = 7; return s.tmp_4;
- case 7:
- r0 = s.retval;
- s.minX___21992 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
- s.tmp_0.arg0 = s.minY___21995;
- s.tmp_0.arg1 = s.r___22006;
- s.callLocIdx = 219; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.minY___21995 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
- s.tmp_0.arg0 = s.maxX___21998;
- s.tmp_0.arg1 = s.c___22000;
- s.callLocIdx = 220; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.maxX___21998 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
- s.tmp_0.arg0 = s.maxY___21999;
- s.tmp_0.arg1 = s.r___22006;
- s.callLocIdx = 221; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
- s.maxY___21999 = (r0);
- case 3:
- case 4:
- r0 = (s.r___22006 + 1);
- s.r___22006 = (r0);
- { step = 2; continue; }
- case 5:
- r0 = (s.c___22000 + 1);
- s.c___22000 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = (s.maxX___21998 - s.minX___21992);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + 1);
- s.width___22037 = (r0);
- r0 = (s.maxY___21999 - s.minY___21995);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + 1);
- s.height___22043 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C1956_VT);
- s.tmp_0 = r0;
- s.tmp_1 = game_Hitbox_constructor__P1962_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.width___22037;
- s.tmp_1.arg3 = s.height___22043;
- s.tmp_1.arg4 = s.minX___21992;
- s.tmp_1.arg5 = s.minY___21995;
- s.callLocIdx = 222; s.pc = 11; return s.tmp_1;
- case 11:
- r0 = s.retval;
- r0 = s.tmp_0;
+ r0 = s.arg0.fields["rid"];
return leave(s, r0)
default: oops()
} } }
-game_calculateHitBox__P1967.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]}
+inline__P68496.info = {"start":7472,"length":18,"line":202,"column":38,"endLine":202,"endColumn":56,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
-function game_calculateHitBox__P1967_mk(s) {
+function inline__P68496_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_calculateHitBox__P1967, depth: s.depth + 1,
+ parent: s, fn: inline__P68496, depth: s.depth + 1,
pc: 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___21989: undefined,
- minX___21992: undefined,
- minY___21995: undefined,
- maxX___21998: undefined,
- maxY___21999: undefined,
- c___22000: undefined,
- r___22006: undefined,
- width___22037: undefined,
- height___22043: undefined,
arg0: undefined,
} }
@@ -37474,7 +35202,7 @@ function game_calculateHitBox__P1967_mk(s) {
-function game_Hitbox_constructor__P1962(s) {
+function inline__P68500(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37487,66 +35215,28 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0);
- r0 = (s.arg0).fields["parent"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg2 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["width"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg3 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["height"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg4 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ox"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg5 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["oy"] = (s.tmp_1);
- r0 = undefined;
+ r0 = (s.arg0 - s.arg1);
return leave(s, r0)
default: oops()
} } }
-game_Hitbox_constructor__P1962.info = {"start":151,"length":266,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]}
+inline__P68500.info = {"start":7497,"length":14,"line":202,"column":63,"endLine":202,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["a","b"]}
-function game_Hitbox_constructor__P1962_mk(s) {
+function inline__P68500_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_Hitbox_constructor__P1962, depth: s.depth + 1,
+ parent: s, fn: inline__P68500, 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_abs__P157(s) {
+function helpers_arrayMap__P60096(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37556,42 +35246,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.res___87079 = undefined;
+ s.len___87081 = undefined;
+ s.i___87084 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = (0 - s.arg0);
- { step = 3; continue; }
- { step = 2; continue; }
+ r0 = pxsim_Array__mk();
+ s.res___87079 = (r0);
+ r0 = pxsim_Array__length(s.arg0);
+ s.len___87081 = (r0);
+ s.i___87084 = (0);
case 1:
- r0 = s.arg0;
- { step = 3; continue; }
- case 2:
- r0 = undefined;
+ r0 = (s.i___87084 < s.len___87081);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = r0 = s.res___87079;
+ s.tmp_3 = lambda_3_mk(s);
+ s.tmp_3.argL = s.arg1;
+ r0 = pxsim_Array__getAt(s.arg0, s.i___87084);
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.i___87084;
+ setupLambda(s.tmp_3, s.tmp_3.argL);
+ s.callLocIdx = 4; 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___87084 + 1);
+ s.i___87084 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = s.res___87079;
return leave(s, r0)
default: oops()
} } }
-Fx_abs__P157.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]}
+helpers_arrayMap__P60096.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_abs__P157_mk(s) {
+function helpers_arrayMap__P60096_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_abs__P157, depth: s.depth + 1,
+ parent: s, fn: helpers_arrayMap__P60096, depth: s.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___87079: undefined,
+ len___87081: undefined,
+ i___87084: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function Sprite_image__P2052(s) {
+function tileworld_RuleVisualsBase_getRulesForTypeDir__P72683(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37603,30 +35318,46 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_image"];
- return leaveAccessor(s, r0)
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P72903);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg3);
+ s.tmp_1 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 679; s.pc = 1; return s.tmp_1;
+ case 1:
+ r0 = s.retval;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_image__P2052.info = {"start":6549,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]}
-Sprite_image__P2052.isGetter = true;
+tileworld_RuleVisualsBase_getRulesForTypeDir__P72683.info = {"start":3688,"length":186,"line":92,"column":8,"endLine":94,"endColumn":9,"fileName":"rulesBase.ts","functionName":"getRulesForTypeDir","argumentNames":["this","rules","rt","dir"]}
-function Sprite_image__P2052_mk(s) {
+function tileworld_RuleVisualsBase_getRulesForTypeDir__P72683_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_image__P2052, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_getRulesForTypeDir__P72683, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function Sprite_data__P2038(s) {
+function inline__P72903(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37640,33 +35371,36 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_data"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 == s.caps[0]);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_3 = r0 = s.arg0;
- r0 = pxsim_pxtrt.mkMap();
- s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["_data"] = (s.tmp_4);
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ s.tmp_3 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 678; s.pc = 3; return s.tmp_3;
+ case 3:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == s.caps[1]);
case 2:
- r0 = s.arg0.fields["_data"];
- return leaveAccessor(s, r0)
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_data__P2038.info = {"start":4194,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]}
-Sprite_data__P2038.isGetter = true;
+inline__P72903.info = {"start":3804,"length":58,"line":93,"column":32,"endLine":93,"endColumn":90,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["rv"]}
-function Sprite_data__P2038_mk(s) {
+function inline__P72903_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_data__P2038, depth: s.depth + 1,
+ parent: s, fn: inline__P72903, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -37680,7 +35414,7 @@ function Sprite_data__P2038_mk(s) {
-function JSON_stringify__P373(s) {
+function tileworld_Project_getRulesForSpriteKind__P63705(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37690,102 +35424,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ss___22125 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C3950_VT);
- s.ss___22125 = (r0);
- s.tmp_0 = r0 = s.ss___22125;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1);
- r0 = (s.arg2 | 0);
- s.arg2 = (r0);
- r0 = (s.arg2 < 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68541);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.arg2 = (0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ s.tmp_1 = helpers_arrayFilter__P60100_mk(s);
+ r0 = s.arg0.fields["rules"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 229; s.pc = 1; return s.tmp_1;
case 1:
- case 2:
- r0 = (s.arg2 > 10);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.arg2 = (10);
- case 3:
- case 4:
- s.tmp_0 = r0 = s.ss___22125;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1);
- s.tmp_0 = r0 = s.ss___22125;
- r0 = pxsim_String_.mkEmpty();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1);
- r0 = (s.ss___22125).fields["indent"] = (s.arg2);
- case 5:
- s.tmp_0 = r0 = s.arg2;
- r0 = (s.tmp_0 - 1);
- s.arg2 = (r0);
- r0 = (s.tmp_0 > 0);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 6; continue; }
- s.tmp_2 = r0 = s.ss___22125;
- r0 = s.tmp_2.fields["indentStep"];
- s.tmp_5 = r0;
- if ((s.tmp_5) && (s.tmp_5).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.tmp_5);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_5) + ""; }
- case 7:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, " ");
- s.tmp_3 = r0;
- r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3);
- { step = 5; continue; }
- case 6:
- s.tmp_0 = JSON_Stringifier_go__P3952_mk(s);
- s.tmp_0.arg0 = s.ss___22125;
- s.tmp_0.arg1 = s.arg0;
- s.callLocIdx = 50; s.pc = 8; return s.tmp_0;
- case 8:
r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-JSON_stringify__P373.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]}
+tileworld_Project_getRulesForSpriteKind__P63705.info = {"start":7843,"length":122,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"project.ts","functionName":"getRulesForSpriteKind","argumentNames":["this","kind"]}
-function JSON_stringify__P373_mk(s) {
+function tileworld_Project_getRulesForSpriteKind__P63705_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: JSON_stringify__P373, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getRulesForSpriteKind__P63705, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- ss___22125: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function JSON_Stringifier_go__P3952(s) {
+function inline__P68541(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -37795,593 +35471,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.t___22166 = undefined;
- s.arr___22190 = undefined;
- s.r___22196 = undefined;
- s.i___22213 = undefined;
- s.keys___22277 = undefined;
- s.r___22284 = undefined;
- s.i___22301 = undefined;
- s.k___22307 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, JSON_Stringifier__C3950_VT)) failedCast(r0);
- r0 = pxsim_pxtcore.typeOf(s.arg1);
- s.t___22166 = (r0);
- r0 = (s.t___22166 == "string");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = JSON_Stringifier_doString__P3951_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 44; s.pc = 38; return s.tmp_1;
- case 38:
- r0 = s.retval;
- { step = 37; continue; }
- { step = 36; continue; }
+ s.tmp_0 = tileworld_RuleView_hasSpriteKind__P63657_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.caps[0];
+ s.callLocIdx = 228; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.t___22166 == "boolean");
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (!r0) { step = 2; continue; }
- r0 = s.tmp_2;
- { step = 3; continue; }
- case 2:
- r0 = (s.t___22166 == "number");
- case 3:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (!r0) { step = 4; continue; }
- r0 = s.tmp_3;
- { step = 5; continue; }
- case 4:
- r0 = (s.arg1 == null);
- case 5:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 6; continue; }
- r0 = pxsim_String_.mkEmpty();
- s.tmp_5 = r0;
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 39);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
- case 39:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = pxsim_String__concat(s.tmp_5, s.tmp_6);
- { step = 37; continue; }
- { step = 35; continue; }
- case 6:
- r0 = pxsim_Array_.isArray(s.arg1);
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 19; continue; }
- s.arr___22190 = (s.arg1);
- r0 = pxsim_Array__length(s.arr___22190);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = "[]";
- { step = 37; continue; }
- { step = 18; continue; }
- case 7:
- s.r___22196 = ("[");
- r0 = s.arg0.fields["indent"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_1 = r0 = s.arg0;
- r0 = s.tmp_1.fields["currIndent"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 40);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 40:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = s.arg0.fields["indentStep"];
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 41);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 41:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
- if ((s.r___22196) && (s.r___22196).vtable) {
- setupResume(s, 42);
- pxsim_String__stringConv(s.r___22196);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22196) + ""; }
- case 42:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "\n");
- s.r___22196 = (r0);
- case 8:
- case 9:
- s.i___22213 = (0);
- case 10:
- s.tmp_1 = r0 = s.i___22213;
- r0 = pxsim_Array__length(s.arr___22190);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- if ((s.r___22196) && (s.r___22196).vtable) {
- setupResume(s, 43);
- pxsim_String__stringConv(s.r___22196);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22196) + ""; }
- case 43:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = s.arg0.fields["currIndent"];
- s.tmp_7 = r0;
- if ((s.tmp_7) && (s.tmp_7).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(s.tmp_7);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_7) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_6 = r0;
- s.tmp_10 = JSON_Stringifier_go__P3952_mk(s);
- s.tmp_10.arg0 = s.arg0;
- r0 = pxsim_Array__getAt(s.arr___22190, s.i___22213);
- s.tmp_10.arg1 = r0;
- s.callLocIdx = 45; s.pc = 45; return s.tmp_10;
- case 45:
- r0 = s.retval;
- s.tmp_9 = r0;
- if ((s.tmp_9) && (s.tmp_9).vtable) {
- setupResume(s, 46);
- pxsim_String__stringConv(s.tmp_9);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_9) + ""; }
- case 46:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_String__concat(s.tmp_6, s.tmp_8);
- s.tmp_5 = r0;
- if ((s.tmp_5) && (s.tmp_5).vtable) {
- setupResume(s, 47);
- pxsim_String__stringConv(s.tmp_5);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_5) + ""; }
- case 47:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
- s.r___22196 = (r0);
- s.tmp_1 = r0 = s.i___22213;
- r0 = pxsim_Array__length(s.arr___22190);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 != s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- if ((s.r___22196) && (s.r___22196).vtable) {
- setupResume(s, 48);
- pxsim_String__stringConv(s.r___22196);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22196) + ""; }
- case 48:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, ",");
- s.r___22196 = (r0);
- case 11:
- case 12:
- r0 = s.arg0.fields["indent"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- if ((s.r___22196) && (s.r___22196).vtable) {
- setupResume(s, 49);
- pxsim_String__stringConv(s.r___22196);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22196) + ""; }
- case 49:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "\n");
- s.r___22196 = (r0);
- case 13:
- case 14:
- r0 = (s.i___22213 + 1);
- s.i___22213 = (r0);
- { step = 10; continue; }
- case 15:
- r0 = s.arg0.fields["indent"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- s.tmp_1 = r0 = s.arg0;
- s.tmp_3 = helpers_stringSlice__P112_mk(s);
- r0 = s.arg0.fields["currIndent"];
- s.tmp_3.arg0 = r0;
- r0 = s.arg0.fields["indent"];
- s.tmp_3.arg1 = r0;
- s.tmp_3.arg2 = undefined;
- s.callLocIdx = 46; s.pc = 50; return s.tmp_3;
- case 50:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
- case 16:
- case 17:
- if ((s.r___22196) && (s.r___22196).vtable) {
- setupResume(s, 51);
- pxsim_String__stringConv(s.r___22196);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22196) + ""; }
- case 51:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.arg0.fields["currIndent"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 52);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 52:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_3, "]");
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 53);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 53:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.r___22196 = (r0);
- r0 = s.r___22196;
- { step = 37; continue; }
- case 18:
- { step = 34; continue; }
- case 19:
- r0 = pxsim_pxtrt.keysOf(s.arg1);
- s.keys___22277 = (r0);
- r0 = pxsim_Array__length(s.keys___22277);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 20; continue; }
- r0 = "{}";
- { step = 37; continue; }
- case 20:
- case 21:
- s.r___22284 = ("{");
- r0 = s.arg0.fields["indent"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 22; continue; }
- s.tmp_1 = r0 = s.arg0;
- r0 = s.tmp_1.fields["currIndent"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 54:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = s.arg0.fields["indentStep"];
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 55);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 55:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 56:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "\n");
- s.r___22284 = (r0);
- case 22:
- case 23:
- s.i___22301 = (0);
- case 24:
- s.tmp_1 = r0 = s.i___22301;
- r0 = pxsim_Array__length(s.keys___22277);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 31; continue; }
- r0 = pxsim_Array__getAt(s.keys___22277, s.i___22301);
- s.k___22307 = (r0);
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 57);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 57:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.arg0.fields["currIndent"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 58);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 58:
- r0 = s.retval;
- s.tmp_3 = r0;
- s.tmp_7 = JSON_Stringifier_doString__P3951_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.k___22307;
- s.callLocIdx = 47; s.pc = 59; return s.tmp_7;
- case 59:
- r0 = s.retval;
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 60);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 60:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_5);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 61);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 61:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.r___22284 = (r0);
- r0 = s.arg0.fields["indent"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 25; continue; }
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 62);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 62:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ": ");
- s.r___22284 = (r0);
- { step = 26; continue; }
- case 25:
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 63);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 63:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, ":");
- s.r___22284 = (r0);
- case 26:
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 64);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 64:
- r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_3 = JSON_Stringifier_go__P3952_mk(s);
- s.tmp_3.arg0 = s.arg0;
- r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___22307);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 48; s.pc = 65; return s.tmp_3;
- case 65:
- r0 = s.retval;
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 66);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 66:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.r___22284 = (r0);
- s.tmp_1 = r0 = s.i___22301;
- r0 = pxsim_Array__length(s.keys___22277);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 != s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 27; continue; }
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 67);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 67:
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P68541.info = {"start":7925,"length":28,"line":215,"column":37,"endLine":215,"endColumn":65,"fileName":"project.ts","functionName":"inline","argumentNames":["rv"]}
+
+function inline__P68541_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P68541, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleView_hasSpriteKind__P63657(s) {
+let r0 = s.r0, 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.wd___67751 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 2;
+ s.callLocIdx = 148; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_4, ",");
- s.r___22284 = (r0);
- case 27:
- case 28:
- r0 = s.arg0.fields["indent"];
+ s.wd___67751 = (r0);
+ r0 = (s.wd___67751 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 29; continue; }
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 68);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 68:
+ if (!r0) { step = 1; continue; }
+ r0 = false;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_2 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.wd___67751;
+ s.tmp_2.arg2 = s.arg1;
+ s.tmp_2.arg3 = 65535;
+ s.callLocIdx = 149; s.pc = 4; return s.tmp_2;
+ case 4:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "\n");
- s.r___22284 = (r0);
- case 29:
- case 30:
- r0 = (s.i___22301 + 1);
- s.i___22301 = (r0);
- { step = 24; continue; }
- case 31:
- r0 = s.arg0.fields["indent"];
+ r0 = (s.tmp_1 == 1);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleView_hasSpriteKind__P63657.info = {"start":8924,"length":219,"line":256,"column":8,"endLine":260,"endColumn":9,"fileName":"ruleview.ts","functionName":"hasSpriteKind","argumentNames":["this","kind"]}
+
+function tileworld_RuleView_hasSpriteKind__P63657_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleView_hasSpriteKind__P63657, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ wd___67751: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_Project_spriteCnt__P63689(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_spritesI"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 32; continue; }
- s.tmp_1 = r0 = s.arg0;
- s.tmp_3 = helpers_stringSlice__P112_mk(s);
- r0 = s.arg0.fields["currIndent"];
- s.tmp_3.arg0 = r0;
- r0 = s.arg0.fields["indent"];
- s.tmp_3.arg1 = r0;
- s.tmp_3.arg2 = undefined;
- s.callLocIdx = 49; s.pc = 69; return s.tmp_3;
- case 69:
+ r0 = pxsim_Array__length(s.tmp_0);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_spriteCnt__P63689.info = {"start":3210,"length":52,"line":97,"column":8,"endLine":97,"endColumn":60,"fileName":"project.ts","functionName":"spriteCnt","argumentNames":["this"]}
+
+function tileworld_Project_spriteCnt__P63689_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_spriteCnt__P63689, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_ruleediting_RuleRoom_update__P74379(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 15);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = 16;
+ s.tmp_0.arg4 = 16;
+ s.tmp_0.arg5 = 11;
+ s.callLocIdx = 879; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2);
- case 32:
- case 33:
- if ((s.r___22284) && (s.r___22284).vtable) {
- setupResume(s, 70);
- pxsim_String__stringConv(s.r___22284);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22284) + ""; }
- case 70:
+ r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___61794, globals.code___63712, 0, 6);
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_showRuleMenu__P74385_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 0;
+ s.callLocIdx = 880; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P74616);
s.tmp_0 = r0;
- r0 = s.arg0.fields["currIndent"];
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 71);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 71:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_3, "}");
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 72);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 72:
+ r0 = s.tmp_2.fields["_spritesI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 883; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.r___22284 = (r0);
- r0 = s.r___22284;
- { step = 37; continue; }
- case 34:
- case 35:
- case 36:
r0 = undefined;
- case 37:
return leave(s, r0)
default: oops()
} } }
-JSON_Stringifier_go__P3952.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]}
+tileworld_ruleediting_RuleRoom_update__P74379.info = {"start":2827,"length":324,"line":62,"column":8,"endLine":70,"endColumn":9,"fileName":"spriteRules.ts","functionName":"update","argumentNames":["this"]}
-function JSON_Stringifier_go__P3952_mk(s) {
+function tileworld_ruleediting_RuleRoom_update__P74379_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: JSON_Stringifier_go__P3952, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_update__P74379, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- t___22166: undefined,
- arr___22190: undefined,
- r___22196: undefined,
- i___22213: undefined,
- keys___22277: undefined,
- r___22284: undefined,
- i___22301: undefined,
- k___22307: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P74616(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ r0 = (1 + s.arg1);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = s.arg0;
+ s.callLocIdx = 882; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P74616.info = {"start":3066,"length":73,"line":67,"column":42,"endLine":69,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["img","i"]}
+
+function inline__P74616_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P74616, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -38390,7 +35718,7 @@ function JSON_Stringifier_go__P3952_mk(s) {
-function JSON_Stringifier_doString__P3951(s) {
+function tileworld_ruleediting_RuleRoom_showRuleMenu__P74385(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38400,134 +35728,351 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.r___22424 = undefined;
- s.i___22425 = undefined;
- s.c___22431 = 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, JSON_Stringifier__C3950_VT)) failedCast(r0);
- s.r___22424 = ("\"");
- s.i___22425 = (0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = tileworld_Project_getRulesForSpriteKind__P63705_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg0 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_2.arg1 = r0;
+ s.callLocIdx = 903; s.pc = 1; return s.tmp_2;
case 1:
- s.tmp_1 = r0 = s.i___22425;
- r0 = pxsim_String_.length(s.arg1);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- r0 = pxsim_String_.charAt(s.arg1, s.i___22425);
- s.c___22431 = (r0);
- r0 = (s.c___22431 == "\n");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.c___22431 = ("\\n");
- { step = 13; continue; }
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["rules"] = (s.tmp_1);
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P74381_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 904; s.pc = 2; return s.tmp_0;
case 2:
- r0 = (s.c___22431 == "\r");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.c___22431 = ("\\r");
- { step = 12; continue; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 6;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 905; s.pc = 3; return s.tmp_0;
case 3:
- r0 = (s.c___22431 == "\t");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.c___22431 = ("\\t");
- { step = 11; continue; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 2;
+ r0 = (s.arg1 + 3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 906; s.pc = 4; return s.tmp_0;
case 4:
- r0 = (s.c___22431 == "\b");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.c___22431 = ("\\b");
- { step = 10; continue; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.arg1 + 3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 907; s.pc = 5; return s.tmp_0;
case 5:
- r0 = (s.c___22431 == "\\");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.c___22431 = ("\\\\");
- { step = 9; continue; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 1;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = s.arg2;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 908; s.pc = 6; return s.tmp_0;
case 6:
- r0 = (s.c___22431 == "\"");
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.c___22431 = ("\\\"");
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 3;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 2);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = true;
+ s.callLocIdx = 909; s.pc = 7; return s.tmp_0;
case 7:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 4;
+ r0 = (s.arg1 + 3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 2);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 910; s.pc = 8; return s.tmp_0;
case 8:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 5;
+ r0 = (s.arg1 + 3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 2);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 911; s.pc = 9; return s.tmp_0;
case 9:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P74384_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = "change";
+ s.tmp_0.arg2 = 3;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 912; s.pc = 10; return s.tmp_0;
case 10:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P74381_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 913; s.pc = 11; return s.tmp_0;
case 11:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 2;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 914; s.pc = 12; return s.tmp_0;
case 12:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 915; s.pc = 13; return s.tmp_0;
case 13:
- if ((s.r___22424) && (s.r___22424).vtable) {
- setupResume(s, 15);
- pxsim_String__stringConv(s.r___22424);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22424) + ""; }
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 1;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 916; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 3;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 917; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- s.tmp_0 = r0;
- if ((s.c___22431) && (s.c___22431).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.c___22431);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.c___22431) + ""; }
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg1 + 3);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg2 = r0;
+ s.tmp_1 = tileworld_ruleediting_RuleRoom__C63802_v3_1_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage;
+ s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 918; s.pc = 16; return s.tmp_0;
case 16:
r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P74384_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = "smash";
+ s.tmp_0.arg2 = 3;
+ s.tmp_0.arg3 = 4;
+ s.callLocIdx = 919; s.pc = 18; return s.tmp_0;
+ case 18:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P74381_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg1 + 7);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 920; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 2;
+ r0 = (s.arg1 + 7);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.r___22424 = (r0);
- r0 = (s.i___22425 + 1);
- s.i___22425 = (r0);
- { step = 1; continue; }
- case 14:
- if ((s.r___22424) && (s.r___22424).vtable) {
- setupResume(s, 17);
- pxsim_String__stringConv(s.r___22424);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.r___22424) + ""; }
- case 17:
+ r0 = (s.tmp_1 + 2);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 921; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 0;
+ r0 = (s.arg1 + 7);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 2);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 922; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 3;
+ r0 = (s.arg1 + 7);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 3);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 923; s.pc = 22; return s.tmp_0;
+ case 22:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 1;
+ r0 = (s.arg1 + 7);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 - 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 924; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 4;
+ r0 = (s.arg1 + 7);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 925; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P74384_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = "press";
+ s.tmp_0.arg2 = 7;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 926; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P74381_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (s.arg1 + 7);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.arg2 + 5);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 927; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 3;
+ s.tmp_0.arg2 = 6;
+ r0 = (s.arg1 + 7);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (s.arg2 + 4);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = false;
+ s.callLocIdx = 928; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P74384_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = "misc";
+ s.tmp_0.arg2 = 7;
+ s.tmp_0.arg3 = 4;
+ s.callLocIdx = 929; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "\"");
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-JSON_Stringifier_doString__P3951.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]}
+tileworld_ruleediting_RuleRoom_showRuleMenu__P74385.info = {"start":5328,"length":2147,"line":118,"column":8,"endLine":152,"endColumn":9,"fileName":"spriteRules.ts","functionName":"showRuleMenu","argumentNames":["this","x","y"]}
-function JSON_Stringifier_doString__P3951_mk(s) {
+function tileworld_ruleediting_RuleRoom_showRuleMenu__P74385_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: JSON_Stringifier_doString__P3951, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_showRuleMenu__P74385, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- r___22424: undefined,
- i___22425: undefined,
- c___22431: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_ruleediting_RuleEditor_mainMenu__P14501(s) {
+function tileworld_ruleediting_RuleRoom_centerImage__P74380(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38542,121 +36087,26 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = s.arg0.fields["menu"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_3 = r0;
- r0 = s.arg0.fields["rule"];
- s.tmp_5 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_6 = r0;
- r0 = s.tmp_5.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_7 = r0;
- r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_6);
- r0 = r0.fields["commandsLen"];
- s.tmp_4 = r0;
- r0 = (s.tmp_3 < s.tmp_4);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_2;
- { step = 4; continue; }
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_Project_getSpriteImage__P63694_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 884; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_10 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_10.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_10.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_10.arg2 = r0;
- s.callLocIdx = 1011; s.pc = 9; return s.tmp_10;
- case 9:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 == 255);
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBool(s.tmp_8);
- if (!r0) { step = 2; continue; }
- r0 = s.tmp_8;
- { step = 3; continue; }
- case 2:
- s.tmp_12 = tileworld_RuleView_getCmdArg__P3655_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_12.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_12.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_12.arg2 = r0;
- s.callLocIdx = 1012; s.pc = 10; return s.tmp_12;
- case 10:
- r0 = s.retval;
- s.tmp_11 = r0;
- r0 = (s.tmp_11 == 255);
- case 3:
- // jmp value (already in r0)
- s.tmp_13 = r0;
- r0 = s.tmp_13;
- case 4:
- // jmp value (already in r0)
- s.tmp_14 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_14);
- if (!r0) { step = 5; continue; }
- s.tmp_15 = tileworld_RuleView_removeCommand__P3658_mk(s);
- r0 = s.arg0.fields["rule"];
- s.tmp_15.arg0 = r0;
- r0 = s.arg0.fields["whenDo"];
- s.tmp_15.arg1 = r0;
- r0 = s.arg0.fields["currentCommand"];
- s.tmp_15.arg2 = r0;
- s.callLocIdx = 1013; s.pc = 11; return s.tmp_15;
- case 11:
- r0 = s.retval;
- case 5:
- case 6:
- case 7:
- case 8:
- r0 = (s.arg0).fields["whenDo"] = (-1);
- r0 = (s.arg0).fields["currentCommand"] = (-1);
- r0 = (s.arg0).fields["attrSelected"] = (-1);
- r0 = (s.arg0).fields["menu"] = (0);
- s.tmp_0 = tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1014; s.pc = 12; return s.tmp_0;
- case 12:
r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_mainMenu__P14501.info = {"start":7142,"length":789,"line":140,"column":8,"endLine":156,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"mainMenu","argumentNames":["this"]}
+tileworld_ruleediting_RuleRoom_centerImage__P74380.info = {"start":3163,"length":90,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"spriteRules.ts","functionName":"centerImage","argumentNames":["this"]}
-function tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s) {
+function tileworld_ruleediting_RuleRoom_centerImage__P74380_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_mainMenu__P14501, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_centerImage__P74380, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -38664,7 +36114,7 @@ function tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s) {
-function tileworld_ruleediting_RuleEditor_restoreCursor__P14503(s) {
+function tileworld_Project_getSpriteImage__P63694(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38676,69 +36126,48 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- r0 = s.arg0.fields["tileSaved"];
- r0 = r0.fields["flags"];
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (0 <= s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_spritesI"];
s.tmp_3 = r0;
- r0 = (s.tmp_3 & 128);
+ r0 = pxsim_Array__length(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_4 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_6 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_6.arg0 = r0;
- s.callLocIdx = 1016; s.pc = 4; return s.tmp_6;
- case 4:
- r0 = s.retval;
+ r0 = (s.tmp_1 < s.tmp_2);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["_spritesI"];
s.tmp_5 = r0;
- r0 = (s.tmp_5 >> 4);
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 1017; s.pc = 3; return s.tmp_4;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.arg1);
+ { step = 4; continue; }
case 3:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1018; s.pc = 6; return s.tmp_2;
- case 6:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >> 4);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1019; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 1020; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- case 1:
- case 2:
- r0 = undefined;
+ r0 = null;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = s.tmp_6;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_restoreCursor__P14503.info = {"start":8031,"length":259,"line":162,"column":8,"endLine":168,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"restoreCursor","argumentNames":["this"]}
+tileworld_Project_getSpriteImage__P63694.info = {"start":3614,"length":134,"line":106,"column":8,"endLine":108,"endColumn":9,"fileName":"project.ts","functionName":"getSpriteImage","argumentNames":["this","kind"]}
-function tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s) {
+function tileworld_Project_getSpriteImage__P63694_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_restoreCursor__P14503, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getSpriteImage__P63694, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -38748,13 +36177,14 @@ function tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_RuleVisualsBase_isTileSaved__P12701(s) {
+function tileworld_ruleediting_RuleRoom_stringColumn__P74384(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38764,41 +36194,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___74800 = 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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = s.arg0.fields["tileSaved"];
- r0 = r0.fields["flags"];
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.i___74800 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___74800;
+ r0 = pxsim_String_.length(s.arg1);
s.tmp_2 = r0;
- r0 = (s.tmp_2 & 128);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ r0 = (s.tmp_1 < s.tmp_2);
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_3 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_3.arg0 = globals.screen___61794;
+ r0 = pxsim_String_.charAt(s.arg1, s.i___74800);
+ s.tmp_3.arg1 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 - 8);
+ s.tmp_3.arg2 = r0;
+ r0 = (s.arg3 << 4);
+ s.tmp_6 = r0;
+ r0 = (s.i___74800 << 3);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 + s.tmp_7);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 + 6);
+ s.tmp_3.arg3 = r0;
+ s.tmp_3.arg4 = undefined;
+ s.tmp_3.arg5 = undefined;
+ s.tmp_3.arg6 = undefined;
+ s.callLocIdx = 902; s.pc = 3; return s.tmp_3;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.i___74800 + 1);
+ s.i___74800 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_isTileSaved__P12701.info = {"start":5172,"length":102,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"rulesBase.ts","functionName":"isTileSaved","argumentNames":["this"]}
+tileworld_ruleediting_RuleRoom_stringColumn__P74384.info = {"start":5101,"length":215,"line":112,"column":8,"endLine":116,"endColumn":9,"fileName":"spriteRules.ts","functionName":"stringColumn","argumentNames":["this","s","col","row"]}
-function tileworld_RuleVisualsBase_isTileSaved__P12701_mk(s) {
+function tileworld_ruleediting_RuleRoom_stringColumn__P74384_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_isTileSaved__P12701, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_stringColumn__P74384, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ i___74800: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_Project_makeRule__P3701(s) {
+function tileworld_ruleediting_RuleRoom_doBoth__P74383(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38808,155 +36279,288 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rv___8243 = undefined;
- s.wd___8250 = undefined;
+ s.scol___74682 = undefined;
+ s.rules___74683 = undefined;
+ s.tcol___74697 = undefined;
+ s.trow___74703 = undefined;
+ s.tcol___74727 = undefined;
+ s.trow___74736 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = tileworld_Project_wrapRule__P8111_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.scol___74682 = (13);
+ s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P72683_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = tileworld_makeNewRule__P3617_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.tmp_1.arg1 = s.arg2;
- s.callLocIdx = 178; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
+ r0 = s.arg0.fields["rules"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 179; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.rv___8243 = (r0);
- r0 = (s.arg3 != 65535);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_1 = tileworld_RuleView_makeWhenDo__P3644_mk(s);
- s.tmp_1.arg0 = s.rv___8243;
- s.tmp_1.arg1 = 2;
- s.tmp_1.arg2 = 2;
- s.callLocIdx = 180; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- s.wd___8250 = (r0);
- s.tmp_0 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_0.arg0 = s.rv___8243;
- s.tmp_0.arg1 = s.wd___8250;
- s.tmp_0.arg2 = s.arg3;
- s.tmp_0.arg3 = 1;
- s.callLocIdx = 181; s.pc = 10; return s.tmp_0;
- case 10:
+ s.tmp_0.arg2 = s.arg1;
+ s.tmp_0.arg3 = s.arg2;
+ s.callLocIdx = 886; s.pc = 23; return s.tmp_0;
+ case 23:
r0 = s.retval;
- r0 = (s.arg1 == 1);
+ s.rules___74683 = (r0);
+ r0 = (s.arg1 == 2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = (s.arg1 == 2);
+ r0 = (s.arg2 != 4);
case 2:
// jmp value (already in r0)
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 5; continue; }
+ s.tmp_2 = r0 = s.arg3;
+ s.tmp_4 = tileworld_moveXdelta__P63615_mk(s);
+ s.tmp_4.arg0 = s.arg2;
+ s.callLocIdx = 887; s.pc = 24; return s.tmp_4;
+ case 24:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
+ s.tcol___74697 = (r0);
+ s.tmp_0 = r0 = s.arg4;
+ s.tmp_2 = tileworld_moveYdelta__P63616_mk(s);
+ s.tmp_2.arg0 = s.arg2;
+ s.callLocIdx = 888; s.pc = 25; return s.tmp_2;
+ case 25:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.trow___74703 = (r0);
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P74382_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.tcol___74697;
+ s.tmp_0.arg4 = s.trow___74703;
+ s.callLocIdx = 889; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ r0 = pxsim_Array__length(s.rules___74683);
+ 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; }
- s.tmp_2 = tileworld_RuleView_setWitnessDirection__P3652_mk(s);
- s.tmp_2.arg0 = s.rv___8243;
- s.tmp_2.arg1 = s.wd___8250;
- s.tmp_2.arg2 = s.arg2;
- s.callLocIdx = 182; s.pc = 11; return s.tmp_2;
- case 11:
+ s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.tcol___74697;
+ s.tmp_2.arg2 = s.trow___74703;
+ s.tmp_2.arg3 = s.scol___74682;
+ s.callLocIdx = 890; s.pc = 27; return s.tmp_2;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.tcol___74697;
+ s.tmp_0.arg2 = s.trow___74703;
+ s.tmp_0.arg3 = 1;
+ s.callLocIdx = 891; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
case 3:
case 4:
+ { step = 20; continue; }
case 5:
+ r0 = (s.arg1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ r0 = (s.arg2 < 4);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 6; continue; }
+ s.tmp_2 = r0 = s.arg3;
+ s.tmp_4 = tileworld_moveXdelta__P63615_mk(s);
+ s.tmp_4.arg0 = s.arg2;
+ s.callLocIdx = 892; s.pc = 29; return s.tmp_4;
+ case 29:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 - s.tmp_3);
+ { step = 7; continue; }
case 6:
- s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s);
+ r0 = s.arg3;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.tcol___74727 = (s.tmp_5);
+ r0 = (s.arg2 < 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_1 = r0 = s.arg4;
+ s.tmp_3 = tileworld_moveYdelta__P63616_mk(s);
+ s.tmp_3.arg0 = s.arg2;
+ s.callLocIdx = 893; s.pc = 30; return s.tmp_3;
+ case 30:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 - s.tmp_2);
+ { step = 9; continue; }
+ case 8:
+ r0 = s.arg4;
+ case 9:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.trow___74736 = (s.tmp_4);
+ s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P74382_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.tcol___74727;
+ s.tmp_0.arg4 = s.trow___74736;
+ s.callLocIdx = 894; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ r0 = pxsim_Array__length(s.rules___74683);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 10; continue; }
+ s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.tcol___74727;
+ s.tmp_2.arg2 = s.trow___74736;
+ s.tmp_2.arg3 = s.scol___74682;
+ s.callLocIdx = 895; s.pc = 32; return s.tmp_2;
+ case 32:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.tcol___74727;
+ s.tmp_0.arg2 = s.trow___74736;
+ s.tmp_0.arg3 = 1;
+ s.callLocIdx = 896; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ case 10:
+ case 11:
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.rv___8243;
- s.callLocIdx = 183; s.pc = 12; return s.tmp_0;
+ s.tmp_0.arg1 = s.tcol___74727;
+ s.tmp_0.arg2 = s.trow___74736;
+ r0 = pxsim_Array__getAt(globals.buttonImages___63788, s.arg2);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 897; s.pc = 34; return s.tmp_0;
+ case 34:
+ r0 = s.retval;
+ { step = 19; continue; }
case 12:
+ r0 = (s.arg1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 13; continue; }
+ r0 = s.tmp_0;
+ { step = 14; continue; }
+ case 13:
+ r0 = (s.arg1 == 3);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 17; continue; }
+ s.tmp_2 = tileworld_ruleediting_RuleRoom_setRuleType__P74382_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.arg2;
+ s.tmp_2.arg3 = s.arg3;
+ s.tmp_2.arg4 = s.arg4;
+ s.callLocIdx = 898; s.pc = 35; return s.tmp_2;
+ case 35:
+ r0 = s.retval;
+ r0 = pxsim_Array__length(s.rules___74683);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.arg3;
+ s.tmp_2.arg2 = s.arg4;
+ s.tmp_2.arg3 = s.scol___74682;
+ s.callLocIdx = 899; s.pc = 36; return s.tmp_2;
+ case 36:
r0 = s.retval;
- r0 = s.rv___8243;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P72690_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg3;
+ s.tmp_0.arg2 = s.arg4;
+ s.tmp_0.arg3 = 1;
+ s.callLocIdx = 900; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ r0 = (s.arg1 != 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 21; continue; }
+ s.tmp_1 = tileworld_ruleediting_RuleDisplay_showRuleType__P73102_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ 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.tmp_1.arg5 = s.arg5;
+ s.callLocIdx = 901; s.pc = 38; return s.tmp_1;
+ case 38:
+ r0 = s.retval;
+ case 21:
+ case 22:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_makeRule__P3701.info = {"start":4249,"length":552,"line":124,"column":8,"endLine":136,"endColumn":9,"fileName":"project.ts","functionName":"makeRule","argumentNames":["this","rt","ra","kind"]}
+tileworld_ruleediting_RuleRoom_doBoth__P74383.info = {"start":3764,"length":1325,"line":90,"column":8,"endLine":110,"endColumn":9,"fileName":"spriteRules.ts","functionName":"doBoth","argumentNames":["this","rt","rd","col","row","center"]}
-function tileworld_Project_makeRule__P3701_mk(s) {
+function tileworld_ruleediting_RuleRoom_doBoth__P74383_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_makeRule__P3701, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_doBoth__P74383, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- rv___8243: undefined,
- wd___8250: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ scol___74682: undefined,
+ rules___74683: undefined,
+ tcol___74697: undefined,
+ trow___74703: undefined,
+ tcol___74727: undefined,
+ trow___74736: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
} }
-function tileworld_makeNewRule__P3617(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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_pxtcore_mkClassInstance(tileworld_Rule__C3615_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_Rule_constructor__P3616_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.arg1;
- r0 = pxsim_Array__mk();
- s.tmp_1.arg3 = r0;
- s.tmp_1.arg4 = 0;
- s.callLocIdx = 72; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
- r0 = s.tmp_0;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_makeNewRule__P3617.info = {"start":4724,"length":105,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"rule.ts","functionName":"makeNewRule","argumentNames":["rt","ra"]}
-
-function tileworld_makeNewRule__P3617_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_makeNewRule__P3617, 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 tileworld_Rule_constructor__P3616(s) {
+function tileworld_ruleediting_RuleRoom_setRuleType__P74382(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -38975,22 +36579,25 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Rule__C3615_VT)) failedCast(r0);
- r0 = (s.arg0).fields["ruleType"] = (s.arg1);
- r0 = (s.arg0).fields["ruleArg"] = (s.arg2);
- r0 = (s.arg0).fields["whenDo"] = (s.arg3);
- r0 = (s.arg0).fields["transforms"] = (s.arg4);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ r0 = s.arg0.fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.arg3, s.arg4, s.arg1);
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.arg3, s.arg4, s.arg2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Rule_constructor__P3616.info = {"start":4384,"length":272,"line":118,"column":8,"endLine":123,"endColumn":13,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","ruleType","ruleArg","whenDo","transforms"]}
+tileworld_ruleediting_RuleRoom_setRuleType__P74382.info = {"start":3522,"length":194,"line":84,"column":8,"endLine":87,"endColumn":9,"fileName":"spriteRules.ts","functionName":"setRuleType","argumentNames":["this","rt","rd","col","row"]}
-function tileworld_Rule_constructor__P3616_mk(s) {
+function tileworld_ruleediting_RuleRoom_setRuleType__P74382_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Rule_constructor__P3616, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_setRuleType__P74382, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -39002,7 +36609,7 @@ function tileworld_Rule_constructor__P3616_mk(s) {
-function tileworld_Project_wrapRule__P8111(s) {
+function tileworld_moveYdelta__P63616(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39012,128 +36619,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rids___8494 = undefined;
- s.rid___8509 = undefined;
- s.i___8510 = undefined;
- s.newRule___8528 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = helpers_arraySort__P100_mk(s);
- s.tmp_1 = helpers_arrayMap__P101_mk(s);
- r0 = s.arg0.fields["rules"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = inline__P8499;
- s.callLocIdx = 223; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P8503;
- s.callLocIdx = 224; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.rids___8494 = (r0);
- s.rid___8509 = (0);
- s.i___8510 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___8510;
- r0 = pxsim_Array__length(s.rids___8494);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.arg0 == 1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_4 = r0 = s.rid___8509;
- r0 = pxsim_Array__getAt(s.rids___8494, s.i___8510);
- 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 = 2; continue; }
+ if (!r0) { step = 1; continue; }
+ r0 = -1;
{ step = 4; continue; }
- case 2:
- case 3:
- r0 = pxsim_Array__getAt(s.rids___8494, s.i___8510);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 1);
- s.rid___8509 = (r0);
- r0 = (s.i___8510 + 1);
- s.i___8510 = (r0);
- { step = 1; continue; }
- case 4:
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_RuleView_constructor__P3631_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.rid___8509;
- s.tmp_1.arg3 = s.arg1;
- s.callLocIdx = 225; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- s.newRule___8528 = (s.tmp_0);
- r0 = s.arg0.fields["rules"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.newRule___8528);
- r0 = s.newRule___8528;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Project_wrapRule__P8111.info = {"start":7197,"length":477,"line":196,"column":8,"endLine":208,"endColumn":9,"fileName":"project.ts","functionName":"wrapRule","argumentNames":["this","r"]}
-
-function tileworld_Project_wrapRule__P8111_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Project_wrapRule__P8111, depth: s.depth + 1,
- pc: 0, retval: undefined, 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,
- rids___8494: undefined,
- rid___8509: undefined,
- i___8510: undefined,
- newRule___8528: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function inline__P8499(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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["rid"];
+ case 1:
+ r0 = (s.arg0 == 3);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = 1;
+ { step = 3; continue; }
+ case 2:
+ r0 = 0;
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-inline__P8499.info = {"start":7317,"length":18,"line":198,"column":38,"endLine":198,"endColumn":56,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
+tileworld_moveYdelta__P63616.info = {"start":4981,"length":137,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"rule.ts","functionName":"moveYdelta","argumentNames":["dir"]}
-function inline__P8499_mk(s) {
+function tileworld_moveYdelta__P63616_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8499, depth: s.depth + 1,
+ parent: s, fn: tileworld_moveYdelta__P63616, depth: s.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,
} }
@@ -39141,7 +36667,7 @@ function inline__P8499_mk(s) {
-function inline__P8503(s) {
+function tileworld_moveXdelta__P63615(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39153,29 +36679,53 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 - s.arg1);
+ r0 = (s.arg0 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = -1;
+ { step = 4; continue; }
+ case 1:
+ r0 = (s.arg0 == 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 2; continue; }
+ r0 = 1;
+ { step = 3; continue; }
+ case 2:
+ r0 = 0;
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = s.tmp_2;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-inline__P8503.info = {"start":7342,"length":14,"line":198,"column":63,"endLine":198,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["a","b"]}
+tileworld_moveXdelta__P63615.info = {"start":4835,"length":140,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"rule.ts","functionName":"moveXdelta","argumentNames":["dir"]}
-function inline__P8503_mk(s) {
+function tileworld_moveXdelta__P63615_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8503, depth: s.depth + 1,
+ parent: s, fn: tileworld_moveXdelta__P63615, depth: s.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 helpers_arrayMap__P101(s) {
+function tileworld_ruleediting_RuleRoom_make3by3__P74381(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39185,67 +36735,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.res___27093 = undefined;
- s.len___27095 = undefined;
- s.i___27098 = undefined;
+ s.i___74633 = undefined;
+ s.j___74639 = 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___27093 = (r0);
- r0 = pxsim_Array__length(s.arg0);
- s.len___27095 = (r0);
- s.i___27098 = (0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
+ s.i___74633 = (-1);
case 1:
- r0 = (s.i___27098 < s.len___27095);
+ r0 = (s.i___74633 <= 1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = r0 = s.res___27093;
- s.tmp_3 = lambda_3_mk(s);
- s.tmp_3.argL = s.arg1;
- r0 = pxsim_Array__getAt(s.arg0, s.i___27098);
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.i___27098;
- setupLambda(s.tmp_3, s.tmp_3.argL);
- s.callLocIdx = 4; s.pc = 3; return s.tmp_3;
- case 3:
+ if (!r0) { step = 4; continue; }
+ s.j___74639 = (-1);
+ case 2:
+ r0 = (s.j___74639 <= 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ r0 = (s.arg1 + s.i___74633);
+ s.tmp_1.arg1 = r0;
+ r0 = (s.arg2 + s.j___74639);
+ s.tmp_1.arg2 = r0;
+ s.tmp_1.arg3 = globals.emptyTile___63718;
+ s.callLocIdx = 885; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.i___27098 + 1);
- s.i___27098 = (r0);
+ r0 = (s.j___74639 + 1);
+ s.j___74639 = (r0);
+ { step = 2; continue; }
+ case 3:
+ r0 = (s.i___74633 + 1);
+ s.i___74633 = (r0);
{ step = 1; continue; }
- case 2:
- r0 = s.res___27093;
+ case 4:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_arrayMap__P101.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"]}
+tileworld_ruleediting_RuleRoom_make3by3__P74381.info = {"start":3265,"length":245,"line":76,"column":8,"endLine":82,"endColumn":9,"fileName":"spriteRules.ts","functionName":"make3by3","argumentNames":["this","col","row"]}
-function helpers_arrayMap__P101_mk(s) {
+function tileworld_ruleediting_RuleRoom_make3by3__P74381_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arrayMap__P101, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_make3by3__P74381, depth: s.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___27093: undefined,
- len___27095: undefined,
- i___27098: undefined,
+ i___74633: undefined,
+ j___74639: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_RuleVisualsBase_getRulesForTypeDir__P12691(s) {
+function sprites_create__P61966(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39255,48 +36809,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___85527 = undefined;
+ s.sprite___85530 = 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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P12911);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg3);
- s.tmp_1 = helpers_arrayFilter__P105_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 677; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 223; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.scene___85527 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(Sprite__C62008_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = Sprite_constructor__P62045_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.callLocIdx = 224; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ s.sprite___85530 = (s.tmp_0);
+ s.tmp_0 = Sprite_setKind__P62063_mk(s);
+ s.tmp_0.arg0 = s.sprite___85530;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 225; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = PhysicsEngine__C62151_v0_2_mk(s);
+ r0 = s.scene___85527.fields["physicsEngine"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.sprite___85530;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite;
+ s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85545);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P85552);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___85530);
+ s.tmp_2 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_3 = helpers_arrayFilter__P60100_mk(s);
+ r0 = s.scene___85527.fields["createdHandlers"];
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.tmp_0;
+ s.callLocIdx = 226; s.pc = 6; return s.tmp_3;
+ case 6:
+ r0 = s.retval;
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 228; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ r0 = s.sprite___85530;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_getRulesForTypeDir__P12691.info = {"start":3688,"length":186,"line":92,"column":8,"endLine":94,"endColumn":9,"fileName":"rulesBase.ts","functionName":"getRulesForTypeDir","argumentNames":["this","rules","rt","dir"]}
+sprites_create__P61966.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 tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s) {
+function sprites_create__P61966_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, depth: s.depth + 1,
+ parent: s, fn: sprites_create__P61966, depth: s.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___85527: undefined,
+ sprite___85530: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function inline__P12911(s) {
+function inline__P85545(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39310,42 +36903,20 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.caps[0]);
+ r0 = s.arg0.fields["kind"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_3 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 676; s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == s.caps[1]);
- case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
+ r0 = (s.tmp_0 == s.caps[0]);
return leave(s, r0)
default: oops()
} } }
-inline__P12911.info = {"start":3804,"length":58,"line":93,"column":32,"endLine":93,"endColumn":90,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["rv"]}
+inline__P85545.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P12911_mk(s) {
+function inline__P85545_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12911, depth: s.depth + 1,
+ parent: s, fn: inline__P85545, depth: s.depth + 1,
pc: 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,
} }
@@ -39353,7 +36924,7 @@ function inline__P12911_mk(s) {
-function tileworld_Project_getRulesForSpriteKind__P3708(s) {
+function inline__P85552(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39365,42 +36936,42 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P8544);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- s.tmp_1 = helpers_arrayFilter__P105_mk(s);
- r0 = s.arg0.fields["rules"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 227; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = if_handler_2_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.caps[0];
+ if (!s.tmp_0.arg0.vtable.iface) {
+ setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2);
+ s.callLocIdx = 227; s.pc = 1; return s.tmp_0;
+ } else {
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"];
+ if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 227; s.pc = 1; return s.tmp_0; }
+ else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 227; s.pc = 1; return s.tmp_0;; }
+ else { s.callLocIdx = 227; s.pc = 1; return s.tmp_0; }
+ }
case 1:
r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getRulesForSpriteKind__P3708.info = {"start":7688,"length":122,"line":210,"column":8,"endLine":212,"endColumn":9,"fileName":"project.ts","functionName":"getRulesForSpriteKind","argumentNames":["this","kind"]}
+inline__P85552.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]}
-function tileworld_Project_getRulesForSpriteKind__P3708_mk(s) {
+function inline__P85552_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getRulesForSpriteKind__P3708, depth: s.depth + 1,
+ parent: s, fn: inline__P85552, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P8544(s) {
+function PhysicsEngine_addSprite__P62153(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39412,33 +36983,31 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleView_hasSpriteKind__P3660_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.caps[0];
- s.callLocIdx = 226; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, PhysicsEngine__C62151_VT)) failedCast(r0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8544.info = {"start":7770,"length":28,"line":211,"column":37,"endLine":211,"endColumn":65,"fileName":"project.ts","functionName":"inline","argumentNames":["rv"]}
+PhysicsEngine_addSprite__P62153.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 inline__P8544_mk(s) {
+function PhysicsEngine_addSprite__P62153_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8544, depth: s.depth + 1,
+ parent: s, fn: PhysicsEngine_addSprite__P62153, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_RuleView_hasSpriteKind__P3660(s) {
+function Sprite_setKind__P62063(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39448,58 +37017,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___7759 = undefined;
+ s.spritesByKind___86297 = undefined;
+ s.overlapMap___86326 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 2;
- s.callLocIdx = 147; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.wd___7759 = (r0);
- r0 = (s.wd___7759 == -1);
+ if (!checkSubtype(r0, Sprite__C62008_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; }
- r0 = false;
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_2 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.wd___7759;
- s.tmp_2.arg2 = s.arg1;
- s.tmp_2.arg3 = 65535;
- s.callLocIdx = 148; s.pc = 4; return s.tmp_2;
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 === s.arg1);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ { step = 15; continue; }
+ case 3:
case 4:
+ s.tmp_3 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 292; s.pc = 16; return s.tmp_3;
+ case 16:
r0 = s.retval;
+ r0 = r0.fields["spritesByKind"];
+ s.spritesByKind___86297 = (r0);
+ r0 = s.arg0.fields["_kind"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- case 2:
+ 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___86297, s.tmp_2);
+ case 6:
// jmp value (already in r0)
s.tmp_3 = r0;
- r0 = s.tmp_3;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 7; continue; }
+ s.tmp_4 = sprites_SpriteSet_remove__P62110_mk(s);
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_5 = r0;
+ r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___86297, s.tmp_5);
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.arg0;
+ s.callLocIdx = 293; s.pc = 17; return s.tmp_4;
+ case 17:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ r0 = (s.arg1 >= 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___86297, 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__C62103_VT);
+ s.tmp_4 = r0;
+ s.tmp_5 = sprites_SpriteSet_constructor__P62105_mk(s);
+ s.tmp_5.arg0 = s.tmp_4;
+ s.callLocIdx = 294; s.pc = 18; return s.tmp_5;
+ case 18:
+ r0 = s.retval;
+ r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___86297, s.arg1, s.tmp_4);
+ case 9:
+ case 10:
+ s.tmp_0 = sprites_SpriteSet_add__P62108_mk(s);
+ r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___86297, s.arg1);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 295; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ case 11:
+ case 12:
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 296; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ r0 = r0.fields["overlapMap"];
+ s.overlapMap___86326 = (r0);
+ r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___86326, 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___86326;
+ 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___86326, 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()
} } }
-tileworld_RuleView_hasSpriteKind__P3660.info = {"start":8924,"length":219,"line":256,"column":8,"endLine":260,"endColumn":9,"fileName":"ruleview.ts","functionName":"hasSpriteKind","argumentNames":["this","kind"]}
+Sprite_setKind__P62063.info = {"start":10872,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]}
-function tileworld_RuleView_hasSpriteKind__P3660_mk(s) {
+function Sprite_setKind__P62063_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_hasSpriteKind__P3660, depth: s.depth + 1,
+ parent: s, fn: Sprite_setKind__P62063, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- wd___7759: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ spritesByKind___86297: undefined,
+ overlapMap___86326: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -39508,7 +37163,7 @@ function tileworld_RuleView_hasSpriteKind__P3660_mk(s) {
-function tileworld_Project_spriteCnt__P3692(s) {
+function sprites_SpriteSet_add__P62108(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39520,32 +37175,63 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_spritesI"];
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_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_Array__length(s.tmp_0);
+ 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)
default: oops()
} } }
-tileworld_Project_spriteCnt__P3692.info = {"start":3210,"length":52,"line":97,"column":8,"endLine":97,"endColumn":60,"fileName":"project.ts","functionName":"spriteCnt","argumentNames":["this"]}
+sprites_SpriteSet_add__P62108.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]}
-function tileworld_Project_spriteCnt__P3692_mk(s) {
+function sprites_SpriteSet_add__P62108_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_spriteCnt__P3692, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_add__P62108, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_ruleediting_RuleRoom_update__P14387(s) {
+function sprites_SpriteSet_contains__P62111(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39557,63 +37243,37 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 15);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = 16;
- s.tmp_0.arg4 = 16;
- s.tmp_0.arg5 = 11;
- s.callLocIdx = 877; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.code___3715, 0, 6);
- s.tmp_0 = tileworld_ruleediting_RuleRoom_showRuleMenu__P14393_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 0;
- s.callLocIdx = 878; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P14624);
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_sprites"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_spritesI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 881; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- r0 = undefined;
+ r0 = (s.tmp_0 > -1);
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_update__P14387.info = {"start":2835,"length":324,"line":62,"column":8,"endLine":70,"endColumn":9,"fileName":"spriteRules.ts","functionName":"update","argumentNames":["this"]}
+sprites_SpriteSet_contains__P62111.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]}
-function tileworld_ruleediting_RuleRoom_update__P14387_mk(s) {
+function sprites_SpriteSet_contains__P62111_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_update__P14387, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_contains__P62111, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P14624(s) {
+function sprites_SpriteSet_constructor__P62105(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39625,39 +37285,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- r0 = (1 + s.arg1);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 880; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_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()
} } }
-inline__P14624.info = {"start":3074,"length":73,"line":67,"column":42,"endLine":69,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["img","i"]}
+sprites_SpriteSet_constructor__P62105.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]}
-function inline__P14624_mk(s) {
+function sprites_SpriteSet_constructor__P62105_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14624, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_constructor__P62105, 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 tileworld_ruleediting_RuleRoom_showRuleMenu__P14393(s) {
+function Sprite_constructor__P62045(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -39670,348 +37326,136 @@ 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, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg0 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_2.arg1 = r0;
- s.callLocIdx = 901; s.pc = 1; return s.tmp_2;
- case 1:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["rules"] = (s.tmp_1);
- s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 902; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 6;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 903; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 2;
- r0 = (s.arg1 + 3);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 1);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 904; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 0;
- r0 = (s.arg1 + 3);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 1);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 905; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 1;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = s.arg2;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 906; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 3;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 2);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = true;
- s.callLocIdx = 907; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 4;
- r0 = (s.arg1 + 3);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 1);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 2);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 908; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 5;
- r0 = (s.arg1 + 3);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 1);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 2);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 909; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = "change";
- s.tmp_0.arg2 = 3;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 910; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 911; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 2;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 912; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 0;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 913; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 1;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 914; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 3;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 915; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 + 3);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg2 = r0;
- s.tmp_1 = tileworld_ruleediting_RuleRoom__C3805_v3_1_mk(s);
- s.tmp_1.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage;
- s.pc = 17; return s.tmp_1;
- case 17:
- r0 = s.retval;
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 916; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = sprites_BaseSprite_constructor__P61852_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = "smash";
- s.tmp_0.arg2 = 3;
- s.tmp_0.arg3 = 4;
- s.callLocIdx = 917; s.pc = 18; return s.tmp_0;
- case 18:
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 247; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ 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___61794);
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.height(s.arg1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 - s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 * 256);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
+ r0 = s.arg0.fields["_x"];
+ s.tmp_0 = r0;
+ r0 = (s.arg0).fields["_lastX"] = (s.tmp_0);
+ r0 = s.arg0.fields["_y"];
+ s.tmp_0 = r0;
+ r0 = (s.arg0).fields["_lastY"] = (s.tmp_0);
+ s.tmp_0 = Sprite_vx__P62022_mk(s);
s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 + 7);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 918; s.pc = 19; return s.tmp_0;
- case 19:
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 250; s.pc = 2; return s.tmp_0;
+ case 2:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
+ s.tmp_0 = Sprite_vy__P62024_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 2;
- r0 = (s.arg1 + 7);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 2);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 919; s.pc = 20; return s.tmp_0;
- case 20:
+ s.callLocIdx = 251; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
+ s.tmp_0 = Sprite_ax__P62026_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 0;
- r0 = (s.arg1 + 7);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 2);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 920; s.pc = 21; return s.tmp_0;
- case 21:
+ s.callLocIdx = 252; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
+ s.tmp_0 = Sprite_ay__P62028_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 3;
- r0 = (s.arg1 + 7);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 3);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 921; s.pc = 22; return s.tmp_0;
- case 22:
+ s.callLocIdx = 253; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
+ s.tmp_0 = Sprite_fx__P62030_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 1;
- r0 = (s.arg1 + 7);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 - 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 922; s.pc = 23; return s.tmp_0;
- case 23:
+ s.callLocIdx = 254; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
+ s.tmp_0 = Sprite_fy__P62032_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 4;
- r0 = (s.arg1 + 7);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 923; s.pc = 24; return s.tmp_0;
- case 24:
+ s.callLocIdx = 255; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s);
+ r0 = (s.arg0).fields["flags"] = (0);
+ s.tmp_0 = Sprite_setImage__P62048_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = "press";
- s.tmp_0.arg2 = 7;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 924; s.pc = 25; return s.tmp_0;
- case 25:
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 256; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s);
+ s.tmp_0 = Sprite_setKind__P62063_mk(s);
s.tmp_0.arg0 = s.arg0;
- r0 = (s.arg1 + 7);
- s.tmp_0.arg1 = r0;
- r0 = (s.arg2 + 5);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 925; s.pc = 26; return s.tmp_0;
- case 26:
+ s.tmp_0.arg1 = -1;
+ s.callLocIdx = 257; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 3;
- s.tmp_0.arg2 = 6;
- r0 = (s.arg1 + 7);
+ 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_1 - 1);
- s.tmp_0.arg3 = r0;
- r0 = (s.arg2 + 4);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = false;
- s.callLocIdx = 926; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = "misc";
- s.tmp_0.arg2 = 7;
- s.tmp_0.arg3 = 4;
- s.callLocIdx = 927; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
+ 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()
} } }
-tileworld_ruleediting_RuleRoom_showRuleMenu__P14393.info = {"start":5336,"length":2147,"line":118,"column":8,"endLine":152,"endColumn":9,"fileName":"spriteRules.ts","functionName":"showRuleMenu","argumentNames":["this","x","y"]}
+Sprite_constructor__P62045.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]}
-function tileworld_ruleediting_RuleRoom_showRuleMenu__P14393_mk(s) {
+function Sprite_constructor__P62045_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_showRuleMenu__P14393, depth: s.depth + 1,
+ parent: s, fn: Sprite_constructor__P62045, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_ruleediting_RuleRoom_centerImage__P14388(s) {
+function Sprite_fy__P62032(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40023,37 +37467,49 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.tmp_0 = tileworld_Project_getSpriteImage__P3697_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 882; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_3 = Math_max__P60117_mk(s);
+ s.tmp_3.arg0 = 0;
+ s.tmp_3.arg1 = s.arg1;
+ s.callLocIdx = 245; s.pc = 1; return s.tmp_3;
case 1:
r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 * 256);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_centerImage__P14388.info = {"start":3171,"length":90,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"spriteRules.ts","functionName":"centerImage","argumentNames":["this"]}
+Sprite_fy__P62032.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]}
-function tileworld_ruleediting_RuleRoom_centerImage__P14388_mk(s) {
+function Sprite_fy__P62032_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_centerImage__P14388, depth: s.depth + 1,
+ parent: s, fn: Sprite_fy__P62032, depth: s.depth + 1,
pc: 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 tileworld_Project_getSpriteImage__P3697(s) {
+function Sprite_fy__P62031(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40065,56 +37521,78 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (0 <= s.arg1);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_fy"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_fy__P62031.info = {"start":3895,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]}
+Sprite_fy__P62031.isGetter = true;
+
+function Sprite_fy__P62031_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_fy__P62031, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_fx__P62030(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_3 = Math_max__P60117_mk(s);
+ s.tmp_3.arg0 = 0;
+ s.tmp_3.arg1 = s.arg1;
+ s.callLocIdx = 242; s.pc = 1; return s.tmp_3;
case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_spritesI"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- case 2:
- // jmp value (already in r0)
+ r0 = (s.tmp_2 * 256);
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0.fields["_spritesI"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.arg1);
- { step = 4; continue; }
- case 3:
- r0 = null;
- case 4:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = s.tmp_6;
+ r0 = (s.tmp_4 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getSpriteImage__P3697.info = {"start":3614,"length":134,"line":106,"column":8,"endLine":108,"endColumn":9,"fileName":"project.ts","functionName":"getSpriteImage","argumentNames":["this","kind"]}
+Sprite_fx__P62030.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]}
-function tileworld_Project_getSpriteImage__P3697_mk(s) {
+function Sprite_fx__P62030_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getSpriteImage__P3697, depth: s.depth + 1,
+ parent: s, fn: Sprite_fx__P62030, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -40123,7 +37601,45 @@ function tileworld_Project_getSpriteImage__P3697_mk(s) {
-function tileworld_ruleediting_RuleRoom_stringColumn__P14392(s) {
+function Sprite_fx__P62029(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_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__P62029.info = {"start":3552,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]}
+Sprite_fx__P62029.isGetter = true;
+
+function Sprite_fx__P62029_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_fx__P62029, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_ay__P62028(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40133,82 +37649,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___14808 = 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, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.i___14808 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___14808;
- r0 = pxsim_String_.length(s.arg1);
+ if (!checkSubtype(r0, Sprite__C62008_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 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_3 = helpers_imagePrint__P1757_mk(s);
- s.tmp_3.arg0 = globals.screen___1799;
- r0 = pxsim_String_.charAt(s.arg1, s.i___14808);
- s.tmp_3.arg1 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 - 8);
- s.tmp_3.arg2 = r0;
- r0 = (s.arg3 << 4);
- s.tmp_6 = r0;
- r0 = (s.i___14808 << 3);
- s.tmp_7 = r0;
- r0 = (s.tmp_6 + s.tmp_7);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + 6);
- s.tmp_3.arg3 = r0;
- s.tmp_3.arg4 = undefined;
- s.tmp_3.arg5 = undefined;
- s.tmp_3.arg6 = undefined;
- s.callLocIdx = 900; s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
- r0 = (s.i___14808 + 1);
- s.i___14808 = (r0);
- { step = 1; continue; }
- case 2:
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_stringColumn__P14392.info = {"start":5109,"length":215,"line":112,"column":8,"endLine":116,"endColumn":9,"fileName":"spriteRules.ts","functionName":"stringColumn","argumentNames":["this","s","col","row"]}
+Sprite_ay__P62028.info = {"start":3383,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]}
-function tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s) {
+function Sprite_ay__P62028_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_stringColumn__P14392, depth: s.depth + 1,
+ parent: s, fn: Sprite_ay__P62028, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- i___14808: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_ruleediting_RuleRoom_doBoth__P14391(s) {
+function Sprite_ay__P62027(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40218,288 +37694,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scol___14690 = undefined;
- s.rules___14691 = undefined;
- s.tcol___14705 = undefined;
- s.trow___14711 = undefined;
- s.tcol___14735 = undefined;
- s.trow___14744 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.scol___14690 = (13);
- s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = s.arg0.fields["rules"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg1;
- s.tmp_0.arg3 = s.arg2;
- s.callLocIdx = 884; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.rules___14691 = (r0);
- r0 = (s.arg1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = (s.arg2 != 4);
- case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 5; continue; }
- s.tmp_2 = r0 = s.arg3;
- s.tmp_4 = tileworld_moveXdelta__P3618_mk(s);
- s.tmp_4.arg0 = s.arg2;
- s.callLocIdx = 885; s.pc = 24; return s.tmp_4;
- case 24:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tcol___14705 = (r0);
- s.tmp_0 = r0 = s.arg4;
- s.tmp_2 = tileworld_moveYdelta__P3619_mk(s);
- s.tmp_2.arg0 = s.arg2;
- s.callLocIdx = 886; s.pc = 25; return s.tmp_2;
- case 25:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.trow___14711 = (r0);
- s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_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.tcol___14705;
- s.tmp_0.arg4 = s.trow___14711;
- s.callLocIdx = 887; s.pc = 26; return s.tmp_0;
- case 26:
- r0 = s.retval;
- r0 = pxsim_Array__length(s.rules___14691);
- 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; }
- s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.tcol___14705;
- s.tmp_2.arg2 = s.trow___14711;
- s.tmp_2.arg3 = s.scol___14690;
- s.callLocIdx = 888; s.pc = 27; return s.tmp_2;
- case 27:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.tcol___14705;
- s.tmp_0.arg2 = s.trow___14711;
- s.tmp_0.arg3 = 1;
- s.callLocIdx = 889; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- case 3:
- case 4:
- { step = 20; continue; }
- case 5:
- r0 = (s.arg1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- r0 = (s.arg2 < 4);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 6; continue; }
- s.tmp_2 = r0 = s.arg3;
- s.tmp_4 = tileworld_moveXdelta__P3618_mk(s);
- s.tmp_4.arg0 = s.arg2;
- s.callLocIdx = 890; s.pc = 29; return s.tmp_4;
- case 29:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_2 - s.tmp_3);
- { step = 7; continue; }
- case 6:
- r0 = s.arg3;
- case 7:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.tcol___14735 = (s.tmp_5);
- r0 = (s.arg2 < 4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_1 = r0 = s.arg4;
- s.tmp_3 = tileworld_moveYdelta__P3619_mk(s);
- s.tmp_3.arg0 = s.arg2;
- s.callLocIdx = 891; s.pc = 30; return s.tmp_3;
- case 30:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_1 - s.tmp_2);
- { step = 9; continue; }
- case 8:
- r0 = s.arg4;
- case 9:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.trow___14744 = (s.tmp_4);
- s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_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.tcol___14735;
- s.tmp_0.arg4 = s.trow___14744;
- s.callLocIdx = 892; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- r0 = pxsim_Array__length(s.rules___14691);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 10; continue; }
- s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.tcol___14735;
- s.tmp_2.arg2 = s.trow___14744;
- s.tmp_2.arg3 = s.scol___14690;
- s.callLocIdx = 893; s.pc = 32; return s.tmp_2;
- case 32:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.tcol___14735;
- s.tmp_0.arg2 = s.trow___14744;
- s.tmp_0.arg3 = 1;
- s.callLocIdx = 894; s.pc = 33; return s.tmp_0;
- case 33:
- r0 = s.retval;
- case 10:
- case 11:
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.tcol___14735;
- s.tmp_0.arg2 = s.trow___14744;
- r0 = pxsim_Array__getAt(globals.buttonImages___3791, s.arg2);
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 895; s.pc = 34; return s.tmp_0;
- case 34:
- r0 = s.retval;
- { step = 19; continue; }
- case 12:
- r0 = (s.arg1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 13; continue; }
- r0 = s.tmp_0;
- { step = 14; continue; }
- case 13:
- r0 = (s.arg1 == 3);
- case 14:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 17; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.arg2;
- s.tmp_2.arg3 = s.arg3;
- s.tmp_2.arg4 = s.arg4;
- s.callLocIdx = 896; s.pc = 35; return s.tmp_2;
- case 35:
- r0 = s.retval;
- r0 = pxsim_Array__length(s.rules___14691);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.arg3;
- s.tmp_2.arg2 = s.arg4;
- s.tmp_2.arg3 = s.scol___14690;
- s.callLocIdx = 897; s.pc = 36; return s.tmp_2;
- case 36:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg3;
- s.tmp_0.arg2 = s.arg4;
- s.tmp_0.arg3 = 1;
- s.callLocIdx = 898; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- r0 = (s.arg1 != 0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_ay"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 21; continue; }
- s.tmp_1 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s);
- s.tmp_1.arg0 = s.arg0;
- 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.tmp_1.arg5 = s.arg5;
- s.callLocIdx = 899; s.pc = 38; return s.tmp_1;
- case 38:
- r0 = s.retval;
- case 21:
- case 22:
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_ay__P62027.info = {"start":3217,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]}
+Sprite_ay__P62027.isGetter = true;
+
+function Sprite_ay__P62027_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_ay__P62027, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_ax__P62026(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_doBoth__P14391.info = {"start":3772,"length":1325,"line":90,"column":8,"endLine":110,"endColumn":9,"fileName":"spriteRules.ts","functionName":"doBoth","argumentNames":["this","rt","rd","col","row","center"]}
+Sprite_ax__P62026.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]}
-function tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s) {
+function Sprite_ax__P62026_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_doBoth__P14391, depth: s.depth + 1,
+ parent: s, fn: Sprite_ax__P62026, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- scol___14690: undefined,
- rules___14691: undefined,
- tcol___14705: undefined,
- trow___14711: undefined,
- tcol___14735: undefined,
- trow___14744: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
- arg5: undefined,
} }
-function tileworld_ruleediting_RuleRoom_setRuleType__P14390(s) {
+function Sprite_ax__P62025(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40511,44 +37779,78 @@ 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, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- r0 = s.arg0.fields["ruleTypeMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.arg3, s.arg4, s.arg1);
- r0 = s.arg0.fields["dirMap"];
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_ax"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.arg3, s.arg4, s.arg2);
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_ax__P62025.info = {"start":2878,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]}
+Sprite_ax__P62025.isGetter = true;
+
+function Sprite_ax__P62025_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_ax__P62025, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_vy__P62024(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 | 0);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_setRuleType__P14390.info = {"start":3530,"length":194,"line":84,"column":8,"endLine":87,"endColumn":9,"fileName":"spriteRules.ts","functionName":"setRuleType","argumentNames":["this","rt","rd","col","row"]}
+Sprite_vy__P62024.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]}
-function tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s) {
+function Sprite_vy__P62024_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_setRuleType__P14390, depth: s.depth + 1,
+ parent: s, fn: Sprite_vy__P62024, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
- arg4: undefined,
} }
-function tileworld_moveYdelta__P3619(s) {
+function Sprite_vy__P62023(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40562,51 +37864,76 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 == 1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_vy"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = -1;
- { step = 4; continue; }
- case 1:
- r0 = (s.arg0 == 3);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = 1;
- { step = 3; continue; }
- case 2:
- r0 = 0;
- case 3:
- // jmp value (already in r0)
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_vy__P62023.info = {"start":2543,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]}
+Sprite_vy__P62023.isGetter = true;
+
+function Sprite_vy__P62023_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_vy__P62023, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function Sprite_vx__P62022(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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__C62008_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.arg1 * 256);
s.tmp_2 = r0;
- r0 = s.tmp_2;
- case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
+ 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()
} } }
-tileworld_moveYdelta__P3619.info = {"start":4981,"length":137,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"rule.ts","functionName":"moveYdelta","argumentNames":["dir"]}
+Sprite_vx__P62022.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]}
-function tileworld_moveYdelta__P3619_mk(s) {
+function Sprite_vx__P62022_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_moveYdelta__P3619, depth: s.depth + 1,
+ parent: s, fn: Sprite_vx__P62022, depth: s.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 tileworld_moveXdelta__P3618(s) {
+function Sprite_vx__P62021(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40620,43 +37947,107 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 == 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_vx"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = -1;
- { step = 4; continue; }
- case 1:
- r0 = (s.arg0 == 2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 2; continue; }
- r0 = 1;
- { step = 3; continue; }
+ r0 = (s.tmp_0 / 256);
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+Sprite_vx__P62021.info = {"start":2212,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]}
+Sprite_vx__P62021.isGetter = true;
+
+function Sprite_vx__P62021_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: Sprite_vx__P62021, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleVisualsBase_setTileSaved__P72692(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 688; s.pc = 2; return s.tmp_1;
case 2:
- r0 = 0;
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 689; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 690; s.pc = 4; return s.tmp_1;
case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 691; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = if_z_2_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 100;
+ 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 = 692; s.pc = 5; return s.tmp_0; }
+ }
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = false;
+ s.callLocIdx = 693; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_moveXdelta__P3618.info = {"start":4835,"length":140,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"rule.ts","functionName":"moveXdelta","argumentNames":["dir"]}
+tileworld_RuleVisualsBase_setTileSaved__P72692.info = {"start":4933,"length":229,"line":128,"column":8,"endLine":133,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setTileSaved","argumentNames":["this"]}
-function tileworld_moveXdelta__P3618_mk(s) {
+function tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_moveXdelta__P3618, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_setTileSaved__P72692, depth: s.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,
} }
@@ -40664,7 +38055,7 @@ function tileworld_moveXdelta__P3618_mk(s) {
-function tileworld_ruleediting_RuleRoom_make3by3__P14389(s) {
+function tileworld_ruleediting_RuleDisplay_constructor__P63795(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40674,8 +38065,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___14641 = undefined;
- s.j___14647 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -40683,52 +38072,82 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
- s.i___14641 = (-1);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["rule"] = (s.arg2);
+ s.tmp_0 = tileworld_RuleVisualsBase_constructor__P63782_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 694; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___14641 <= 1);
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C63668_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.j___14647 = (-1);
+ s.tmp_1 = tileworld_AllExport_constructor__P63669_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 695; s.pc = 2; return s.tmp_1;
case 2:
- r0 = (s.j___14647 <= 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- r0 = (s.arg1 + s.i___14641);
- s.tmp_1.arg1 = r0;
- r0 = (s.arg2 + s.j___14647);
- s.tmp_1.arg2 = r0;
- s.tmp_1.arg3 = globals.emptyTile___3721;
- s.callLocIdx = 883; s.pc = 5; return s.tmp_1;
- case 5:
r0 = s.retval;
- r0 = (s.j___14647 + 1);
- s.j___14647 = (r0);
- { step = 2; continue; }
+ r0 = (s.arg0).fields["all"] = (s.tmp_0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorOut___63721;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 696; s.pc = 3; return s.tmp_2;
case 3:
- r0 = (s.i___14641 + 1);
- s.i___14641 = (r0);
- { step = 1; continue; }
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["otherCursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["otherCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 697; s.pc = 4; return s.tmp_0;
case 4:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["otherCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 88;
+ s.callLocIdx = 698; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["otherCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 46;
+ s.callLocIdx = 699; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = if_z_2_mk(s);
+ r0 = s.arg0.fields["otherCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 50;
+ 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 = 700; s.pc = 7; return s.tmp_0; }
+ }
+ case 7:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_make3by3__P14389.info = {"start":3273,"length":245,"line":76,"column":8,"endLine":82,"endColumn":9,"fileName":"spriteRules.ts","functionName":"make3by3","argumentNames":["this","col","row"]}
+tileworld_ruleediting_RuleDisplay_constructor__P63795.info = {"start":1170,"length":402,"line":22,"column":8,"endLine":32,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["this","p","rule"]}
-function tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s) {
+function tileworld_ruleediting_RuleDisplay_constructor__P63795_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_make3by3__P14389, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_constructor__P63795, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- i___14641: undefined,
- j___14647: undefined,
+ tmp_2: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -40738,7 +38157,7 @@ function tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s) {
-function sprites_create__P1971(s) {
+function tileworld_AllExport_constructor__P63669(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40748,78 +38167,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___25541 = undefined;
- s.sprite___25544 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 223; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_AllExport__C63668_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["allImages"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68033);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_backgroundsI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 156; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
- s.scene___25541 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2013_VT);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68044);
s.tmp_0 = r0;
- s.tmp_1 = Sprite_constructor__P2050_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.callLocIdx = 224; s.pc = 2; return s.tmp_1;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_spritesI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 158; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
- s.sprite___25544 = (s.tmp_0);
- s.tmp_0 = Sprite_setKind__P2068_mk(s);
- s.tmp_0.arg0 = s.sprite___25544;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 225; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = PhysicsEngine__C2156_v0_2_mk(s);
- r0 = s.scene___25541.fields["physicsEngine"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.sprite___25544;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite;
- s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P25559);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P25566);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___25544);
- s.tmp_2 = helpers_arrayForEach__P104_mk(s);
- s.tmp_3 = helpers_arrayFilter__P105_mk(s);
- r0 = s.scene___25541.fields["createdHandlers"];
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.tmp_0;
- s.callLocIdx = 226; s.pc = 6; return s.tmp_3;
- case 6:
- r0 = s.retval;
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 228; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
- r0 = s.sprite___25544;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_create__P1971.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]}
+tileworld_AllExport_constructor__P63669.info = {"start":693,"length":232,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p"]}
-function sprites_create__P1971_mk(s) {
+function tileworld_AllExport_constructor__P63669_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_create__P1971, depth: s.depth + 1,
+ parent: s, fn: tileworld_AllExport_constructor__P63669, depth: s.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___25541: undefined,
- sprite___25544: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -40828,7 +38225,79 @@ function sprites_create__P1971_mk(s) {
-function inline__P25559(s) {
+function inline__P68033(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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.caps[0].fields["allImages"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P68033.info = {"start":806,"length":31,"line":22,"column":46,"endLine":22,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]}
+
+function inline__P68033_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P68033, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P68044(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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.caps[0].fields["allImages"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P68044.info = {"start":882,"length":31,"line":23,"column":42,"endLine":23,"endColumn":73,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]}
+
+function inline__P68044_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P68044, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_ImageEditor_constructor__P63776(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40840,30 +38309,267 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ r0 = (s.arg0).fields["Adown"] = (false);
+ r0 = (s.arg0).fields["kind"] = (0);
+ r0 = (s.arg0).fields["dirty"] = (false);
+ s.tmp_0 = tileworld_BackgroundBase_constructor__P63780_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 534; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
r0 = s.arg0.fields["kind"];
+ s.tmp_2 = r0;
+ r0 = s.arg1.fields["allImages"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["image"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.colorOut___71886;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 536; s.pc = 2; return s.tmp_2;
+ case 2:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["colorCursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_0.arg0 = r0;
+ r0 = (5 + 4);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 537; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 94;
+ s.callLocIdx = 538; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.colorIn___71889;
+ s.callLocIdx = 539; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["selectedColor"] = (0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.paintOut___71892;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 540; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1);
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.paintIn___71895;
+ s.callLocIdx = 541; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 32;
+ s.callLocIdx = 542; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 26;
+ s.callLocIdx = 543; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorIn___63720;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 544; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["menuCursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 8;
+ s.callLocIdx = 545; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 12;
+ s.callLocIdx = 546; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.cursorOut___63721;
+ s.callLocIdx = 547; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 548; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_ImageEditor__C63775_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C63775_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71999);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 550; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72004);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 552; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72009);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 554; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72014);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 556; s.pc = 19; return s.tmp_1;
+ case 19:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72019);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 558; s.pc = 20; return s.tmp_1;
+ case 20:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72024);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 560; s.pc = 21; return s.tmp_1;
+ case 21:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72029);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 562; s.pc = 22; return s.tmp_1;
+ case 22:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72034);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 564; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72039);
s.tmp_0 = r0;
- r0 = (s.tmp_0 == s.caps[0]);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 566; s.pc = 24; return s.tmp_1;
+ case 24:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72047);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 567; s.pc = 25; return s.tmp_1;
+ case 25:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72053);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 571; s.pc = 26; return s.tmp_1;
+ case 26:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P25559.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]}
+tileworld_ImageEditor_constructor__P63776.info = {"start":1515,"length":2170,"line":63,"column":8,"endLine":105,"endColumn":9,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["this","p"]}
-function inline__P25559_mk(s) {
+function tileworld_ImageEditor_constructor__P63776_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25559, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_constructor__P63776, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P25566(s) {
+function inline__P71999(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40873,44 +38579,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;
- }
- s.tmp_0 = if_handler_2_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.caps[0];
- if (!s.tmp_0.arg0.vtable.iface) {
- setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2);
- s.callLocIdx = 227; s.pc = 1; return s.tmp_0;
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"];
- if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 227; s.pc = 1; return s.tmp_0; }
- else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 227; s.pc = 1; return s.tmp_0;; }
- else { s.callLocIdx = 227; s.pc = 1; return s.tmp_0; }
- }
+ s.tmp_0 = tileworld_ImageEditor_moveLeft__P71899_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 549; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P25566.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]}
+inline__P71999.info = {"start":2428,"length":21,"line":86,"column":67,"endLine":86,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function inline__P25566_mk(s) {
+function inline__P71999_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25566, depth: s.depth + 1,
+ parent: s, fn: inline__P71999, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
} }
-function PhysicsEngine_addSprite__P2158(s) {
+function inline__P72004(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40920,33 +38612,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ImageEditor_moveLeft__P71899_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 551; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-PhysicsEngine_addSprite__P2158.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]}
+inline__P72004.info = {"start":2520,"length":21,"line":87,"column":68,"endLine":87,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function PhysicsEngine_addSprite__P2158_mk(s) {
+function inline__P72004_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: PhysicsEngine_addSprite__P2158, depth: s.depth + 1,
+ parent: s, fn: inline__P72004, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
+ tmp_0: undefined,
} }
-function Sprite_setKind__P2068(s) {
+function inline__P72009(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -40956,153 +38645,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.spritesByKind___26311 = undefined;
- s.overlapMap___26340 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_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; }
+ s.tmp_0 = tileworld_ImageEditor_moveRight__P71900_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 553; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.arg0.fields["_kind"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 === s.arg1);
- case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- { step = 15; continue; }
- case 3:
- case 4:
- s.tmp_3 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 292; s.pc = 16; return s.tmp_3;
- case 16:
- r0 = s.retval;
- r0 = r0.fields["spritesByKind"];
- s.spritesByKind___26311 = (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___26311, 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__P2115_mk(s);
- r0 = s.arg0.fields["_kind"];
- s.tmp_5 = r0;
- r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, s.tmp_5);
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.arg0;
- s.callLocIdx = 293; s.pc = 17; return s.tmp_4;
- case 17:
- r0 = s.retval;
- case 7:
- case 8:
- r0 = (s.arg1 >= 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, 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__C2108_VT);
- s.tmp_4 = r0;
- s.tmp_5 = sprites_SpriteSet_constructor__P2110_mk(s);
- s.tmp_5.arg0 = s.tmp_4;
- s.callLocIdx = 294; s.pc = 18; return s.tmp_5;
- case 18:
- r0 = s.retval;
- r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___26311, s.arg1, s.tmp_4);
- case 9:
- case 10:
- s.tmp_0 = sprites_SpriteSet_add__P2113_mk(s);
- r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, s.arg1);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg0;
- s.callLocIdx = 295; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- case 11:
- case 12:
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 296; s.pc = 20; return s.tmp_0;
- case 20:
r0 = s.retval;
- r0 = r0.fields["overlapMap"];
- s.overlapMap___26340 = (r0);
- r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___26340, 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___26340;
- 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___26340, 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__P2068.info = {"start":10899,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]}
+inline__P72009.info = {"start":2612,"length":22,"line":88,"column":68,"endLine":88,"endColumn":90,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_setKind__P2068_mk(s) {
+function inline__P72009_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_setKind__P2068, depth: s.depth + 1,
+ parent: s, fn: inline__P72009, depth: s.depth + 1,
pc: 0, retval: undefined, 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___26311: undefined,
- overlapMap___26340: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function sprites_SpriteSet_add__P2113(s) {
+function inline__P72014(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41112,65 +38678,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteSet__C2108_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; }
+ s.tmp_0 = tileworld_ImageEditor_moveRight__P71900_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 555; s.pc = 1; return s.tmp_0;
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:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteSet_add__P2113.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]}
+inline__P72014.info = {"start":2706,"length":22,"line":89,"column":69,"endLine":89,"endColumn":91,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function sprites_SpriteSet_add__P2113_mk(s) {
+function inline__P72014_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteSet_add__P2113, depth: s.depth + 1,
+ parent: s, fn: inline__P72014, depth: s.depth + 1,
pc: 0, retval: undefined, 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__P2116(s) {
+function inline__P72019(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41180,39 +38711,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0);
- r0 = s.arg0.fields["_sprites"];
- s.tmp_1 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 > -1);
+ s.tmp_0 = tileworld_ImageEditor_moveUp__P71901_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 557; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteSet_contains__P2116.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]}
+inline__P72019.info = {"start":2796,"length":19,"line":90,"column":65,"endLine":90,"endColumn":84,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function sprites_SpriteSet_contains__P2116_mk(s) {
+function inline__P72019_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteSet_contains__P2116, depth: s.depth + 1,
+ parent: s, fn: inline__P72019, 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__P2110(s) {
+function inline__P72024(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41222,37 +38744,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, sprites_SpriteSet__C2108_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);
+ s.tmp_0 = tileworld_ImageEditor_moveUp__P71901_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 559; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteSet_constructor__P2110.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]}
+inline__P72024.info = {"start":2884,"length":19,"line":91,"column":66,"endLine":91,"endColumn":85,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function sprites_SpriteSet_constructor__P2110_mk(s) {
+function inline__P72024_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteSet_constructor__P2110, depth: s.depth + 1,
+ parent: s, fn: inline__P72024, 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__P2050(s) {
+function inline__P72029(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41262,139 +38777,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 247; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_ImageEditor_moveDown__P71902_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 561; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- 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___1799);
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.height(s.arg1);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 - s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
- r0 = s.arg0.fields["_x"];
- s.tmp_0 = r0;
- r0 = (s.arg0).fields["_lastX"] = (s.tmp_0);
- r0 = s.arg0.fields["_y"];
- s.tmp_0 = r0;
- r0 = (s.arg0).fields["_lastY"] = (s.tmp_0);
- s.tmp_0 = Sprite_vx__P2027_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 250; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = Sprite_vy__P2029_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 251; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = Sprite_ax__P2031_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 252; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = Sprite_ay__P2033_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 253; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.tmp_0 = Sprite_fx__P2035_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 254; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = Sprite_fy__P2037_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 255; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- r0 = (s.arg0).fields["flags"] = (0);
- s.tmp_0 = Sprite_setImage__P2053_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 256; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.tmp_0 = Sprite_setKind__P2068_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = -1;
- s.callLocIdx = 257; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- r0 = (s.arg0).fields["layer"] = (1);
- r0 = (s.arg0).fields["lifespan"] = (undefined);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_constructor__P2050.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]}
+inline__P72029.info = {"start":2973,"length":21,"line":92,"column":67,"endLine":92,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_constructor__P2050_mk(s) {
+function inline__P72029_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_constructor__P2050, depth: s.depth + 1,
+ parent: s, fn: inline__P72029, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function Sprite_fy__P2037(s) {
+function inline__P72034(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41404,89 +38810,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_3 = Math_max__P122_mk(s);
- s.tmp_3.arg0 = 0;
- s.tmp_3.arg1 = s.arg1;
- s.callLocIdx = 245; s.pc = 1; return s.tmp_3;
+ s.tmp_0 = tileworld_ImageEditor_moveDown__P71902_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 563; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_fy__P2037.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]}
-
-function Sprite_fy__P2037_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Sprite_fy__P2037, depth: s.depth + 1,
- pc: 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_fy__P2036(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_fy"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
- default: oops()
-} } }
-Sprite_fy__P2036.info = {"start":3895,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]}
-Sprite_fy__P2036.isGetter = true;
+inline__P72034.info = {"start":3065,"length":21,"line":93,"column":68,"endLine":93,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_fy__P2036_mk(s) {
+function inline__P72034_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_fy__P2036, depth: s.depth + 1,
+ parent: s, fn: inline__P72034, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
} }
-function Sprite_fx__P2035(s) {
+function inline__P72039(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41496,51 +38843,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__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_3 = Math_max__P122_mk(s);
- s.tmp_3.arg0 = 0;
- s.tmp_3.arg1 = s.arg1;
- s.callLocIdx = 242; s.pc = 1; return s.tmp_3;
+ r0 = (s.caps[0]).fields["Adown"] = (true);
+ s.tmp_0 = tileworld_ImageEditor_paintPixel__P71898_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 565; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 * 256);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_fx__P2035.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]}
+inline__P72039.info = {"start":3154,"length":46,"line":95,"column":64,"endLine":95,"endColumn":110,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_fx__P2035_mk(s) {
+function inline__P72039_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_fx__P2035, depth: s.depth + 1,
+ parent: s, fn: inline__P72039, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function Sprite_fx__P2034(s) {
+function inline__P72047(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41550,35 +38877,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_fx"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
+ r0 = (s.caps[0]).fields["Adown"] = (false);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_fx__P2034.info = {"start":3552,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]}
-Sprite_fx__P2034.isGetter = true;
+inline__P72047.info = {"start":3268,"length":29,"line":96,"column":65,"endLine":96,"endColumn":94,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_fx__P2034_mk(s) {
+function inline__P72047_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_fx__P2034, depth: s.depth + 1,
+ parent: s, fn: inline__P72047, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
} }
-function Sprite_ay__P2033(s) {
+function inline__P72053(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41588,42 +38905,62 @@ 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__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
+ r0 = s.caps[0].fields["cursorType"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1);
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = tileworld_ImageEditor_saveAndPop__P71903_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 568; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ { step = 4; continue; }
+ case 1:
+ r0 = s.caps[0].fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_2 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = 0;
+ s.callLocIdx = 569; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ { step = 3; continue; }
+ case 2:
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 570; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_ay__P2033.info = {"start":3383,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]}
+inline__P72053.info = {"start":3364,"length":309,"line":97,"column":64,"endLine":104,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
-function Sprite_ay__P2033_mk(s) {
+function inline__P72053_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_ay__P2033, depth: s.depth + 1,
+ parent: s, fn: inline__P72053, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function Sprite_ay__P2032(s) {
+function tileworld_ImageEditor_saveAndPop__P71903(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41638,20 +38975,29 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_ay"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_AllExport_saveImage__P63672_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 619; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 620; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_ay__P2032.info = {"start":3217,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]}
-Sprite_ay__P2032.isGetter = true;
+tileworld_ImageEditor_saveAndPop__P71903.info = {"start":7392,"length":102,"line":196,"column":8,"endLine":199,"endColumn":9,"fileName":"imageeditor.ts","functionName":"saveAndPop","argumentNames":["this"]}
-function Sprite_ay__P2032_mk(s) {
+function tileworld_ImageEditor_saveAndPop__P71903_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_ay__P2032, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_saveAndPop__P71903, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -41661,7 +39007,7 @@ function Sprite_ay__P2032_mk(s) {
-function Sprite_ax__P2031(s) {
+function tileworld_AllExport_saveImage__P63672(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41677,27 +39023,66 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
+ if (!checkSubtype(r0, tileworld_AllExport__C63668_VT)) failedCast(r0);
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1);
+ 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_5 = tileworld_Project_saveBackgroundImage__P63695_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_5.arg0 = r0;
+ s.tmp_5.arg1 = s.arg1;
+ s.callLocIdx = 160; s.pc = 3; return s.tmp_5;
+ case 3:
+ r0 = s.retval;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_6 = tileworld_Project_saveSpriteImage__P63696_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_6.arg0 = r0;
+ s.tmp_7 = r0 = s.arg1;
+ r0 = s.arg0.fields["p"];
+ s.tmp_9 = r0;
+ r0 = s.tmp_9.fields["_backgroundsI"];
+ s.tmp_10 = r0;
+ r0 = pxsim_Array__length(s.tmp_10);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_7 - s.tmp_8);
+ s.tmp_6.arg1 = r0;
+ s.callLocIdx = 162; s.pc = 4; return s.tmp_6;
+ case 4:
+ r0 = s.retval;
+ case 2:
+ // jmp value (already in r0)
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_ax__P2031.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]}
+tileworld_AllExport_saveImage__P63672.info = {"start":1101,"length":168,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","index"]}
-function Sprite_ax__P2031_mk(s) {
+function tileworld_AllExport_saveImage__P63672_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_ax__P2031, depth: s.depth + 1,
+ parent: s, fn: tileworld_AllExport_saveImage__P63672, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -41706,7 +39091,7 @@ function Sprite_ax__P2031_mk(s) {
-function Sprite_ax__P2030(s) {
+function tileworld_Project_saveSpriteImage__P63696(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41716,35 +39101,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___68209 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_ax"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_saveImage__P68201_mk(s);
+ r0 = s.arg0.fields["prefix"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_1 = tileworld_Project_getSpriteImage__P63694_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 173; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = false;
+ s.callLocIdx = 174; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.buf___68209 = (r0);
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_ax__P2030.info = {"start":2878,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]}
-Sprite_ax__P2030.isGetter = true;
+tileworld_Project_saveSpriteImage__P63696.info = {"start":3917,"length":134,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"project.ts","functionName":"saveSpriteImage","argumentNames":["this","kind"]}
-function Sprite_ax__P2030_mk(s) {
+function tileworld_Project_saveSpriteImage__P63696_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_ax__P2030, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_saveSpriteImage__P63696, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ buf___68209: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function Sprite_vy__P2029(s) {
+function tileworld_saveImage__P68201(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41754,42 +39157,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___69089 = 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, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.arg1 * 256);
+ s.tmp_0 = tileworld_imageToBuffer__P63539_mk(s);
+ s.tmp_0.arg0 = s.arg2;
+ s.callLocIdx = 279; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.buf___69089 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg3);
+ if (!r0) { step = 1; continue; }
+ r0 = globals.BackImageKey___68699;
+ { step = 2; continue; }
+ case 1:
+ r0 = globals.SpriteImageKey___68701;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ s.tmp_1 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 5:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ if ((s.tmp_0) && (s.tmp_0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.tmp_0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_0) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
+ s.tmp_3 = r0;
+ if ((s.tmp_3) && (s.tmp_3).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.tmp_3);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_3) + ""; }
+ case 7:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_2 | 0);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1);
- r0 = undefined;
+ r0 = pxsim_numops.toString(s.arg1);
+ s.tmp_7 = r0;
+ if ((s.tmp_7) && (s.tmp_7).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.tmp_7);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_7) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = pxsim_String__concat(s.tmp_2, s.tmp_6);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.buf___69089;
+ s.callLocIdx = 280; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ r0 = s.buf___69089;
return leave(s, r0)
default: oops()
} } }
-Sprite_vy__P2029.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]}
+tileworld_saveImage__P68201.info = {"start":13753,"length":255,"line":351,"column":4,"endLine":355,"endColumn":5,"fileName":"project.ts","functionName":"saveImage","argumentNames":["prefix","kind","img","background"]}
-function Sprite_vy__P2029_mk(s) {
+function tileworld_saveImage__P68201_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_vy__P2029, depth: s.depth + 1,
+ parent: s, fn: tileworld_saveImage__P68201, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ buf___69089: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function Sprite_vy__P2028(s) {
+function tileworld_imageToBuffer__P63539(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41799,27 +39267,165 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___66210 = undefined;
+ s.index___66221 = undefined;
+ s.pixel___66238 = undefined;
+ s.length___66239 = undefined;
+ s.x___66240 = undefined;
+ s.y___66246 = undefined;
+ s.newPixel___66252 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_vy"];
+ r0 = pxsim_ImageMethods.width(s.arg0);
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.height(s.arg0);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 * s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = (2 + s.tmp_1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 / 256);
- return leaveAccessor(s, r0)
+ r0 = pxsim.control.createBuffer(s.tmp_0);
+ s.buf___66210 = (r0);
+ s.index___66221 = (0);
+ s.tmp_0 = r0 = s.index___66221;
+ r0 = (s.tmp_0 + 1);
+ s.index___66221 = (r0);
+ s.tmp_1 = r0 = s.buf___66210;
+ r0 = pxsim_ImageMethods.width(s.arg0);
+ s.tmp_2 = r0;
+ r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2);
+ s.tmp_0 = r0 = s.index___66221;
+ r0 = (s.tmp_0 + 1);
+ s.index___66221 = (r0);
+ s.tmp_1 = r0 = s.buf___66210;
+ r0 = pxsim_ImageMethods.height(s.arg0);
+ s.tmp_2 = r0;
+ r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2);
+ s.pixel___66238 = (17);
+ s.length___66239 = (0);
+ s.x___66240 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.x___66240;
+ 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 = 10; continue; }
+ s.y___66246 = (0);
+ case 2:
+ s.tmp_1 = r0 = s.y___66246;
+ 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 = 9; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___66240, s.y___66246);
+ s.newPixel___66252 = (r0);
+ r0 = (s.newPixel___66252 != s.pixel___66238);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = (s.length___66239 > 0);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = r0 = s.index___66221;
+ r0 = (s.tmp_2 + 1);
+ s.index___66221 = (r0);
+ s.tmp_3 = r0 = s.buf___66210;
+ r0 = (s.length___66239 & 15);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 << 4);
+ s.tmp_5 = r0;
+ r0 = (s.pixel___66238 & 15);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_5 | s.tmp_7);
+ s.tmp_4 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_3, s.tmp_2, s.tmp_4);
+ case 3:
+ case 4:
+ s.pixel___66238 = (s.newPixel___66252);
+ s.length___66239 = (1);
+ { step = 8; continue; }
+ case 5:
+ r0 = (s.length___66239 == 14);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_1 = r0 = s.index___66221;
+ r0 = (s.tmp_1 + 1);
+ s.index___66221 = (r0);
+ s.tmp_2 = r0 = s.buf___66210;
+ r0 = (s.pixel___66238 & 15);
+ s.tmp_4 = r0;
+ r0 = (240 | s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3);
+ s.pixel___66238 = (17);
+ s.length___66239 = (0);
+ { step = 7; continue; }
+ case 6:
+ r0 = (s.length___66239 + 1);
+ s.length___66239 = (r0);
+ case 7:
+ case 8:
+ r0 = (s.y___66246 + 1);
+ s.y___66246 = (r0);
+ { step = 2; continue; }
+ case 9:
+ r0 = (s.x___66240 + 1);
+ s.x___66240 = (r0);
+ { step = 1; continue; }
+ case 10:
+ r0 = (s.length___66239 > 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = r0 = s.index___66221;
+ r0 = (s.tmp_1 + 1);
+ s.index___66221 = (r0);
+ s.tmp_2 = r0 = s.buf___66210;
+ r0 = (s.length___66239 & 15);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 << 4);
+ s.tmp_4 = r0;
+ r0 = (s.pixel___66238 & 15);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_4 | s.tmp_6);
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3);
+ case 11:
+ case 12:
+ r0 = pxsim.BufferMethods.slice(s.buf___66210, 0, s.index___66221);
+ return leave(s, r0)
default: oops()
} } }
-Sprite_vy__P2028.info = {"start":2543,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]}
-Sprite_vy__P2028.isGetter = true;
+tileworld_imageToBuffer__P63539.info = {"start":2350,"length":1465,"line":68,"column":4,"endLine":106,"endColumn":5,"fileName":"utilities.ts","functionName":"imageToBuffer","argumentNames":["img"]}
-function Sprite_vy__P2028_mk(s) {
+function tileworld_imageToBuffer__P63539_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_vy__P2028, depth: s.depth + 1,
+ parent: s, fn: tileworld_imageToBuffer__P63539, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ buf___66210: undefined,
+ index___66221: undefined,
+ pixel___66238: undefined,
+ length___66239: undefined,
+ x___66240: undefined,
+ y___66246: undefined,
+ newPixel___66252: undefined,
arg0: undefined,
} }
@@ -41827,7 +39433,7 @@ function Sprite_vy__P2028_mk(s) {
-function Sprite_vx__P2027(s) {
+function tileworld_Project_saveBackgroundImage__P63695(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41837,33 +39443,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___68199 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_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);
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_saveImage__P68201_mk(s);
+ r0 = s.arg0.fields["prefix"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_1 = tileworld_Project_getBackgroundImage__P63693_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 171; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = true;
+ s.callLocIdx = 172; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.buf___68199 = (r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_vx__P2027.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]}
+tileworld_Project_saveBackgroundImage__P63695.info = {"start":3758,"length":141,"line":110,"column":8,"endLine":112,"endColumn":9,"fileName":"project.ts","functionName":"saveBackgroundImage","argumentNames":["this","kind"]}
-function Sprite_vx__P2027_mk(s) {
+function tileworld_Project_saveBackgroundImage__P63695_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_vx__P2027, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_saveBackgroundImage__P63695, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
+ buf___68199: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -41872,7 +39489,7 @@ function Sprite_vx__P2027_mk(s) {
-function Sprite_vx__P2026(s) {
+function tileworld_Project_getBackgroundImage__P63693(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41884,33 +39501,65 @@ 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__C2013_VT)) failedCast(r0);
- r0 = s.arg0.fields["_vx"];
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (0 <= s.arg1);
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:
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_backgroundsI"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["_backgroundsI"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.arg1);
+ { step = 4; continue; }
+ case 3:
+ r0 = null;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = s.tmp_6;
+ return leave(s, r0)
default: oops()
} } }
-Sprite_vx__P2026.info = {"start":2212,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]}
-Sprite_vx__P2026.isGetter = true;
+tileworld_Project_getBackgroundImage__P63693.info = {"start":3464,"length":140,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"project.ts","functionName":"getBackgroundImage","argumentNames":["this","kind"]}
-function Sprite_vx__P2026_mk(s) {
+function tileworld_Project_getBackgroundImage__P63693_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_vx__P2026, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getBackgroundImage__P63693, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_RuleVisualsBase_setTileSaved__P12700(s) {
+function tileworld_ImageEditor_paintPixel__P71898(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -41920,73 +39569,213 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.col___72078 = undefined;
+ s.row___72089 = undefined;
+ s.col___72118 = undefined;
+ s.row___72133 = undefined;
+ s.col___72154 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 686; s.pc = 2; return s.tmp_1;
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = s.arg0.fields["Adown"];
+ 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 = 13; continue; }
+ case 1:
case 2:
+ r0 = s.arg0.fields["cursorType"];
+ 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_8 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_8.arg0 = r0;
+ s.callLocIdx = 572; s.pc = 14; return s.tmp_8;
+ case 14:
r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 687; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 5);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 / 8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 | 0);
+ s.col___72078 = (r0);
+ s.tmp_4 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 573; s.pc = 15; return s.tmp_4;
+ case 15:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 688; s.pc = 4; return s.tmp_1;
- case 4:
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 - 16);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 30);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 / 8);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 | 0);
+ s.row___72089 = (r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.row___72089 * 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.col___72078);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["selectedColor"] = (s.tmp_1);
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 574; s.pc = 16; return s.tmp_0;
+ case 16:
r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 689; s.pc = 3; return s.tmp_0;
+ { step = 12; continue; }
case 3:
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ r0 = (s.arg0).fields["dirty"] = (true);
+ s.tmp_3 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 575; s.pc = 17; return s.tmp_3;
+ case 17:
r0 = s.retval;
- s.tmp_0 = if_z_2_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 100;
- 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 = 690; s.pc = 5; return s.tmp_0; }
- }
- case 5:
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 32);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 / 6);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 | 0);
+ s.col___72118 = (r0);
+ s.tmp_3 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 576; s.pc = 18; return s.tmp_3;
+ case 18:
r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = false;
- s.callLocIdx = 691; s.pc = 6; return s.tmp_0;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 26);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 / 6);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 | 0);
+ s.row___72133 = (r0);
+ r0 = s.arg0.fields["image"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["selectedColor"];
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___72118, s.row___72133, s.tmp_1);
+ { step = 11; continue; }
+ case 4:
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 577; s.pc = 19; return s.tmp_1;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 4);
+ s.col___72154 = (r0);
+ r0 = (2 <= s.col___72154);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_1 = r0 = s.col___72154;
+ r0 = s.arg0.fields["p"];
+ s.tmp_5 = r0;
+ r0 = s.tmp_5.fields["allImages"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (2 + s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
case 6:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 9; continue; }
+ r0 = s.arg0.fields["dirty"];
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 7; continue; }
+ s.tmp_8 = tileworld_AllExport_saveImage__P63672_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_8.arg0 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_8.arg1 = r0;
+ s.callLocIdx = 579; s.pc = 20; return s.tmp_8;
+ case 20:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = (s.col___72154 - 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["kind"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_2.fields["allImages"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["image"] = (s.tmp_1);
+ r0 = (s.arg0).fields["dirty"] = (false);
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ s.tmp_0 = tileworld_ImageEditor__C63775_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C63775_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 21; return s.tmp_0;
+ case 21:
r0 = s.retval;
+ case 13:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_setTileSaved__P12700.info = {"start":4933,"length":229,"line":128,"column":8,"endLine":133,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setTileSaved","argumentNames":["this"]}
+tileworld_ImageEditor_paintPixel__P71898.info = {"start":3695,"length":1186,"line":107,"column":8,"endLine":131,"endColumn":9,"fileName":"imageeditor.ts","functionName":"paintPixel","argumentNames":["this"]}
-function tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s) {
+function tileworld_ImageEditor_paintPixel__P71898_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_setTileSaved__P12700, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_paintPixel__P71898, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ col___72078: undefined,
+ row___72089: undefined,
+ col___72118: undefined,
+ row___72133: undefined,
+ col___72154: undefined,
arg0: undefined,
} }
@@ -41994,7 +39783,7 @@ function tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s) {
-function tileworld_ruleediting_RuleDisplay_constructor__P3798(s) {
+function tileworld_ImageEditor_moveDown__P71902(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42006,97 +39795,132 @@ 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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- r0 = (s.arg0).fields["rule"] = (s.arg2);
- s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 692; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C3671_VT);
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- s.tmp_1 = tileworld_AllExport_constructor__P3672_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 693; s.pc = 2; return s.tmp_1;
- case 2:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 611; s.pc = 9; return s.tmp_4;
+ case 9:
r0 = s.retval;
- r0 = (s.arg0).fields["all"] = (s.tmp_0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorOut___3724;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 694; s.pc = 3; return s.tmp_2;
- case 3:
+ s.tmp_3 = r0;
+ r0 = (30 + 16);
+ s.tmp_6 = r0;
+ r0 = (8 * 7);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 + s.tmp_7);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_3 < s.tmp_5);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_8 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_9 = r0;
+ s.tmp_8.arg0 = r0;
+ s.tmp_11 = Sprite_y__P62019_mk(s);
+ s.tmp_11.arg0 = s.tmp_9;
+ s.callLocIdx = 612; s.pc = 11; return s.tmp_11;
+ case 11:
r0 = s.retval;
+ s.tmp_10 = r0;
+ r0 = (s.tmp_10 + 8);
+ s.tmp_8.arg1 = r0;
+ s.callLocIdx = 613; s.pc = 10; return s.tmp_8;
+ case 10:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ { step = 8; continue; }
+ case 3:
+ r0 = s.arg0.fields["cursorType"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["otherCursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["otherCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 695; s.pc = 4; return s.tmp_0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_2 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = 1;
+ s.callLocIdx = 614; s.pc = 12; return s.tmp_2;
+ case 12:
+ r0 = s.retval;
+ { step = 7; continue; }
case 4:
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 615; s.pc = 13; return s.tmp_2;
+ case 13:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 < 116);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_3 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4 = r0;
+ s.tmp_3.arg0 = r0;
+ s.tmp_6 = Sprite_y__P62019_mk(s);
+ s.tmp_6.arg0 = s.tmp_4;
+ s.callLocIdx = 616; s.pc = 15; return s.tmp_6;
+ case 15:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 + 6);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 617; s.pc = 14; return s.tmp_3;
+ case 14:
r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["otherCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 88;
- s.callLocIdx = 696; s.pc = 5; return s.tmp_0;
case 5:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["otherCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 46;
- s.callLocIdx = 697; s.pc = 6; return s.tmp_0;
case 6:
- r0 = s.retval;
- s.tmp_0 = if_z_2_mk(s);
- r0 = s.arg0.fields["otherCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 50;
- 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 = 698; s.pc = 7; return s.tmp_0; }
- }
case 7:
+ case 8:
+ s.tmp_0 = tileworld_ImageEditor_paintPixel__P71898_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 618; s.pc = 16; return s.tmp_0;
+ case 16:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_constructor__P3798.info = {"start":1170,"length":402,"line":22,"column":8,"endLine":32,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["this","p","rule"]}
+tileworld_ImageEditor_moveDown__P71902.info = {"start":6846,"length":536,"line":183,"column":8,"endLine":194,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveDown","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s) {
+function tileworld_ImageEditor_moveDown__P71902_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_constructor__P3798, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_moveDown__P71902, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tileworld_AllExport_constructor__P3672(s) {
+function tileworld_ImageEditor_moveUp__P71901(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42108,63 +39932,129 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["allImages"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P8041);
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 603; s.pc = 9; return s.tmp_4;
+ case 9:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (30 + 16);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 7);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_3 > s.tmp_5);
s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_backgroundsI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 155; s.pc = 1; return s.tmp_1;
- case 1:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_7 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_8 = r0;
+ s.tmp_7.arg0 = r0;
+ s.tmp_10 = Sprite_y__P62019_mk(s);
+ s.tmp_10.arg0 = s.tmp_8;
+ s.callLocIdx = 604; s.pc = 11; return s.tmp_10;
+ case 11:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 - 8);
+ s.tmp_7.arg1 = r0;
+ s.callLocIdx = 605; s.pc = 10; return s.tmp_7;
+ case 10:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P8052);
+ case 1:
+ case 2:
+ { step = 8; continue; }
+ case 3:
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_4 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 606; s.pc = 12; return s.tmp_4;
+ case 12:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 31);
s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_spritesI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 157; s.pc = 2; return s.tmp_1;
- case 2:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ s.tmp_5 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_y__P62019_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 607; s.pc = 14; return s.tmp_8;
+ case 14:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 6);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 608; s.pc = 13; return s.tmp_5;
+ case 13:
+ r0 = s.retval;
+ { step = 5; continue; }
+ case 4:
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 609; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ s.tmp_0 = tileworld_ImageEditor_paintPixel__P71898_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 610; s.pc = 16; return s.tmp_0;
+ case 16:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_AllExport_constructor__P3672.info = {"start":693,"length":232,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p"]}
+tileworld_ImageEditor_moveUp__P71901.info = {"start":6292,"length":544,"line":169,"column":8,"endLine":181,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveUp","argumentNames":["this"]}
-function tileworld_AllExport_constructor__P3672_mk(s) {
+function tileworld_ImageEditor_moveUp__P71901_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_AllExport_constructor__P3672, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_moveUp__P71901, depth: s.depth + 1,
pc: 0, retval: undefined, 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 inline__P8041(s) {
+function tileworld_ImageEditor_moveRight__P71900(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42178,21 +40068,144 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["allImages"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 592; s.pc = 11; return s.tmp_4;
+ case 11:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 < 13);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 593; s.pc = 13; return s.tmp_8;
+ case 13:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + 8);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 594; s.pc = 12; return s.tmp_5;
+ case 12:
+ r0 = s.retval;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 595; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ case 2:
+ { step = 10; continue; }
+ case 3:
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_4 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 596; s.pc = 15; return s.tmp_4;
+ case 15:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 < 144);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 597; s.pc = 17; return s.tmp_8;
+ case 17:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + 16);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 598; s.pc = 16; return s.tmp_5;
+ case 16:
+ r0 = s.retval;
+ case 4:
+ case 5:
+ { step = 9; continue; }
+ case 6:
+ s.tmp_2 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 599; s.pc = 18; return s.tmp_2;
+ case 18:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (32 + 90);
+ 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 = 7; continue; }
+ s.tmp_4 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_5 = r0;
+ s.tmp_4.arg0 = r0;
+ s.tmp_7 = Sprite_x__P62017_mk(s);
+ s.tmp_7.arg0 = s.tmp_5;
+ s.callLocIdx = 600; s.pc = 20; return s.tmp_7;
+ case 20:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 + 6);
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 601; s.pc = 19; return s.tmp_4;
+ case 19:
+ r0 = s.retval;
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ s.tmp_0 = tileworld_ImageEditor_paintPixel__P71898_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 602; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8041.info = {"start":806,"length":31,"line":22,"column":46,"endLine":22,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]}
+tileworld_ImageEditor_moveRight__P71900.info = {"start":5579,"length":703,"line":151,"column":8,"endLine":167,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveRight","argumentNames":["this"]}
-function inline__P8041_mk(s) {
+function tileworld_ImageEditor_moveRight__P71900_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8041, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_moveRight__P71900, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -42200,7 +40213,7 @@ function inline__P8041_mk(s) {
-function inline__P8052(s) {
+function tileworld_ImageEditor_moveLeft__P71899(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42214,21 +40227,142 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["allImages"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 581; s.pc = 11; return s.tmp_4;
+ case 11:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 13);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 582; s.pc = 13; return s.tmp_8;
+ case 13:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 8);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 583; s.pc = 12; return s.tmp_5;
+ case 12:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ { step = 10; continue; }
+ case 3:
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_4 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 584; s.pc = 14; return s.tmp_4;
+ case 14:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 8);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 585; s.pc = 16; return s.tmp_8;
+ case 16:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 16);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 586; s.pc = 15; return s.tmp_5;
+ case 15:
+ r0 = s.retval;
+ case 4:
+ case 5:
+ { step = 9; continue; }
+ case 6:
+ s.tmp_2 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 587; s.pc = 17; return s.tmp_2;
+ case 17:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 35);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_3 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4 = r0;
+ s.tmp_3.arg0 = r0;
+ s.tmp_6 = Sprite_x__P62017_mk(s);
+ s.tmp_6.arg0 = s.tmp_4;
+ s.callLocIdx = 588; s.pc = 19; return s.tmp_6;
+ case 19:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 6);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 589; s.pc = 18; return s.tmp_3;
+ case 18:
+ r0 = s.retval;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_0 = tileworld_ImageEditor_setCursor__P71904_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 590; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ case 8:
+ case 9:
+ case 10:
+ s.tmp_0 = tileworld_ImageEditor_paintPixel__P71898_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 591; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8052.info = {"start":882,"length":31,"line":23,"column":42,"endLine":23,"endColumn":73,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]}
+tileworld_ImageEditor_moveLeft__P71899.info = {"start":4891,"length":678,"line":133,"column":8,"endLine":149,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveLeft","argumentNames":["this"]}
-function inline__P8052_mk(s) {
+function tileworld_ImageEditor_moveLeft__P71899_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8052, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_moveLeft__P71899, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -42236,7 +40370,7 @@ function inline__P8052_mk(s) {
-function tileworld_ImageEditor_constructor__P3779(s) {
+function tileworld_ImageEditor_update__P71905(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42246,269 +40380,267 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.row___72475 = undefined;
+ s.col___72479 = undefined;
+ s.color___72483 = undefined;
+ s.yOffset___72488 = undefined;
+ s.row___72558 = undefined;
+ s.y___72565 = undefined;
+ s.col___72571 = undefined;
+ s.x___72578 = undefined;
+ s.color___72586 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- r0 = (s.arg0).fields["Adown"] = (false);
- r0 = (s.arg0).fields["kind"] = (0);
- r0 = (s.arg0).fields["dirty"] = (false);
- s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 532; s.pc = 1; return s.tmp_0;
- case 1:
+ if (!checkSubtype(r0, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 4;
+ s.tmp_0.arg3 = 16;
+ s.tmp_0.arg4 = 16;
+ s.tmp_0.arg5 = 11;
+ s.callLocIdx = 624; s.pc = 13; return s.tmp_0;
+ case 13:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["kind"];
+ r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___61794, globals.paint___63713, 0, 4);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72448);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
s.tmp_2 = r0;
- r0 = s.arg1.fields["allImages"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["image"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.colorOut___11894;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 534; s.pc = 2; return s.tmp_2;
- case 2:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["colorCursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_0.arg0 = r0;
- r0 = (5 + 4);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 535; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 94;
- s.callLocIdx = 536; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.colorIn___11897;
- s.callLocIdx = 537; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- r0 = (s.arg0).fields["selectedColor"] = (0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.paintOut___11900;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 538; s.pc = 6; return s.tmp_2;
- case 6:
+ r0 = s.tmp_2.fields["allImages"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 626; s.pc = 14; return s.tmp_1;
+ case 14:
r0 = s.retval;
+ s.row___72475 = (0);
+ case 1:
+ r0 = (s.row___72475 < 8);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.col___72479 = (0);
+ case 2:
+ r0 = (s.col___72479 < 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = (s.row___72475 * 2);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1);
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.paintIn___11903;
- s.callLocIdx = 539; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 32;
- s.callLocIdx = 540; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 26;
- s.callLocIdx = 541; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorIn___3723;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 542; s.pc = 10; return s.tmp_2;
- case 10:
- r0 = s.retval;
+ r0 = (s.tmp_1 + s.col___72479);
+ s.color___72483 = (r0);
+ r0 = (38 + 4);
+ s.yOffset___72488 = (r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = (s.col___72479 * 8);
+ s.tmp_2 = r0;
+ r0 = (5 + s.tmp_2);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["menuCursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 8;
- s.callLocIdx = 543; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 12;
- s.callLocIdx = 544; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.cursorOut___3724;
- s.callLocIdx = 545; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 546; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_ImageEditor__C3778_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C3778_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 15; return s.tmp_0;
+ r0 = (s.tmp_1 + 1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_4 = r0 = s.yOffset___72488;
+ r0 = (s.row___72475 * 8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 + s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 1);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 6;
+ s.tmp_0.arg4 = 6;
+ s.tmp_0.arg5 = s.color___72483;
+ s.callLocIdx = 627; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12007);
+ r0 = s.arg0.fields["selectedColor"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.color___72483);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 548; s.pc = 16; return s.tmp_1;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_2.arg0 = globals.screen___61794;
+ r0 = (s.col___72479 * 8);
+ s.tmp_3 = r0;
+ r0 = (5 + s.tmp_3);
+ s.tmp_2.arg1 = r0;
+ s.tmp_4 = r0 = s.yOffset___72488;
+ r0 = (s.row___72475 * 8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 + s.tmp_5);
+ s.tmp_2.arg2 = r0;
+ s.tmp_2.arg3 = 8;
+ s.tmp_2.arg4 = 8;
+ s.tmp_2.arg5 = 1;
+ s.callLocIdx = 628; s.pc = 16; return s.tmp_2;
case 16:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12012);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 550; s.pc = 17; return s.tmp_1;
+ case 3:
+ case 4:
+ r0 = (s.col___72479 + 1);
+ s.col___72479 = (r0);
+ { step = 2; continue; }
+ case 5:
+ r0 = (s.row___72475 + 1);
+ s.row___72475 = (r0);
+ { step = 1; continue; }
+ case 6:
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 6;
+ s.tmp_0.arg2 = 43;
+ s.tmp_0.arg3 = 3;
+ s.tmp_0.arg4 = 3;
+ s.tmp_0.arg5 = 13;
+ s.callLocIdx = 629; s.pc = 17; return s.tmp_0;
case 17:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12017);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 552; s.pc = 18; return s.tmp_1;
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 9;
+ s.tmp_0.arg2 = 46;
+ s.tmp_0.arg3 = 3;
+ s.tmp_0.arg4 = 3;
+ s.tmp_0.arg5 = 13;
+ s.callLocIdx = 630; s.pc = 18; return s.tmp_0;
case 18:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12022);
+ s.row___72558 = (0);
+ case 7:
+ s.tmp_1 = r0 = s.row___72558;
+ r0 = s.arg0.fields["image"];
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 554; s.pc = 19; return s.tmp_1;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ r0 = (s.row___72558 * 6);
+ s.tmp_4 = r0;
+ r0 = (24 + s.tmp_4);
+ s.y___72565 = (r0);
+ s.col___72571 = (0);
+ case 8:
+ s.tmp_1 = r0 = s.col___72571;
+ r0 = s.arg0.fields["image"];
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.width(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 = 11; continue; }
+ r0 = (s.col___72571 * 6);
+ s.tmp_4 = r0;
+ r0 = (30 + s.tmp_4);
+ s.x___72578 = (r0);
+ r0 = s.arg0.fields["image"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.col___72571, s.row___72558);
+ s.color___72586 = (r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = s.x___72578;
+ s.tmp_0.arg2 = s.y___72565;
+ s.tmp_0.arg3 = 5;
+ s.tmp_0.arg4 = 5;
+ s.tmp_0.arg5 = s.color___72586;
+ s.callLocIdx = 631; s.pc = 19; return s.tmp_0;
case 19:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12027);
+ r0 = (s.color___72586 == 0);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 556; s.pc = 20; return s.tmp_1;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ s.tmp_1 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_1.arg0 = globals.screen___61794;
+ s.tmp_1.arg1 = s.x___72578;
+ s.tmp_1.arg2 = s.y___72565;
+ r0 = (3 - 1);
+ s.tmp_1.arg3 = r0;
+ r0 = (3 - 1);
+ s.tmp_1.arg4 = r0;
+ s.tmp_1.arg5 = 13;
+ s.callLocIdx = 632; s.pc = 20; return s.tmp_1;
case 20:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12032);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 558; s.pc = 21; return s.tmp_1;
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = (s.x___72578 + 3);
+ s.tmp_0.arg1 = r0;
+ r0 = (s.y___72565 + 3);
+ s.tmp_0.arg2 = r0;
+ r0 = (3 - 1);
+ s.tmp_0.arg3 = r0;
+ r0 = (3 - 1);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = 13;
+ s.callLocIdx = 633; s.pc = 21; return s.tmp_0;
case 21:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12037);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 560; s.pc = 22; return s.tmp_1;
+ case 9:
+ case 10:
+ r0 = (s.col___72571 + 1);
+ s.col___72571 = (r0);
+ { step = 8; continue; }
+ case 11:
+ r0 = (s.row___72558 + 1);
+ s.row___72558 = (r0);
+ { step = 7; continue; }
+ case 12:
+ s.tmp_0 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 28;
+ s.tmp_0.arg2 = 22;
+ r0 = (96 + 4);
+ s.tmp_0.arg3 = r0;
+ r0 = (96 + 4);
+ s.tmp_0.arg4 = r0;
+ s.tmp_0.arg5 = 1;
+ s.callLocIdx = 634; s.pc = 22; return s.tmp_0;
case 22:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12042);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 562; s.pc = 23; return s.tmp_1;
- case 23:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12047);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 564; s.pc = 24; return s.tmp_1;
- case 24:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12055);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 565; s.pc = 25; return s.tmp_1;
- case 25:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12061);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 569; s.pc = 26; return s.tmp_1;
- case 26:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_constructor__P3779.info = {"start":1515,"length":2170,"line":63,"column":8,"endLine":105,"endColumn":9,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["this","p"]}
+tileworld_ImageEditor_update__P71905.info = {"start":7850,"length":2296,"line":208,"column":8,"endLine":251,"endColumn":9,"fileName":"imageeditor.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_ImageEditor_constructor__P3779_mk(s) {
+function tileworld_ImageEditor_update__P71905_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_constructor__P3779, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_update__P71905, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ row___72475: undefined,
+ col___72479: undefined,
+ color___72483: undefined,
+ yOffset___72488: undefined,
+ row___72558: undefined,
+ y___72565: undefined,
+ col___72571: undefined,
+ x___72578: undefined,
+ color___72586: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P12007(s) {
+function inline__P72448(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42518,30 +40650,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveLeft__P11907_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 547; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = r0 = globals.screen___61794;
+ s.tmp_1 = r0 = s.arg0;
+ r0 = (2 + s.arg1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 * 16);
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.drawImage(s.tmp_0, s.tmp_1, s.tmp_2, 4);
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_1 = r0;
+ r0 = (s.arg1 == s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = r0 = globals.screen___61794;
+ s.tmp_3 = r0 = globals.cursorOut___63721;
+ r0 = (2 + s.arg1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 * 16);
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 4);
case 1:
- r0 = s.retval;
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12007.info = {"start":2428,"length":21,"line":86,"column":67,"endLine":86,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+inline__P72448.info = {"start":8044,"length":232,"line":212,"column":39,"endLine":217,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["img","index"]}
-function inline__P12007_mk(s) {
+function inline__P72448_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12007, depth: s.depth + 1,
+ parent: s, fn: inline__P72448, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12012(s) {
+function tileworld_ImageEditor_setCursor__P71904(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42551,30 +40712,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveLeft__P11907_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 549; 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, tileworld_ImageEditor__C63775_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["colorCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ r0 = (s.arg1 != 0);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 621; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ r0 = (s.arg1 != 1);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 622; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["menuCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ r0 = (s.arg1 != 2);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 623; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["cursorType"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12012.info = {"start":2520,"length":21,"line":87,"column":68,"endLine":87,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+tileworld_ImageEditor_setCursor__P71904.info = {"start":7512,"length":328,"line":201,"column":8,"endLine":206,"endColumn":9,"fileName":"imageeditor.ts","functionName":"setCursor","argumentNames":["this","ct"]}
-function inline__P12012_mk(s) {
+function tileworld_ImageEditor_setCursor__P71904_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12012, depth: s.depth + 1,
+ parent: s, fn: tileworld_ImageEditor_setCursor__P71904, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12017(s) {
+function tileworld_cursorAnimation__P63535(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42584,30 +40777,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveRight__P11908_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 551; s.pc = 1; return s.tmp_0;
+ s.anim___66039 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = animation_createAnimation__P62925_mk(s);
+ s.tmp_0.arg0 = 0;
+ s.tmp_0.arg1 = 300;
+ s.callLocIdx = 66; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
+ s.anim___66039 = (r0);
+ s.tmp_0 = animation_Animation_addAnimationFrame__P62922_mk(s);
+ s.tmp_0.arg0 = s.anim___66039;
+ r0 = s.arg0.fields["_image"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 68; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = animation_Animation_addAnimationFrame__P62922_mk(s);
+ s.tmp_0.arg0 = s.anim___66039;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 69; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = animation_attachAnimation__P62926_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.anim___66039;
+ s.callLocIdx = 70; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = animation_setAction__P62927_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 71; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12017.info = {"start":2612,"length":22,"line":88,"column":68,"endLine":88,"endColumn":90,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+tileworld_cursorAnimation__P63535.info = {"start":670,"length":297,"line":20,"column":4,"endLine":26,"endColumn":5,"fileName":"utilities.ts","functionName":"cursorAnimation","argumentNames":["cursor","second"]}
-function inline__P12017_mk(s) {
+function tileworld_cursorAnimation__P63535_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12017, depth: s.depth + 1,
+ parent: s, fn: tileworld_cursorAnimation__P63535, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ anim___66039: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12022(s) {
+function animation_setAction__P62927(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42617,30 +40846,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveRight__P11908_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 553; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = (s.arg0).fields["_action"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12022.info = {"start":2706,"length":22,"line":89,"column":69,"endLine":89,"endColumn":91,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_setAction__P62927.info = {"start":4990,"length":98,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"setAction","argumentNames":["sprite","action"]}
-function inline__P12022_mk(s) {
+function animation_setAction__P62927_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12022, depth: s.depth + 1,
+ parent: s, fn: animation_setAction__P62927, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12027(s) {
+function animation_attachAnimation__P62926(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42650,30 +40881,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveUp__P11909_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 555; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = animation_Animation_registerSprite__P62923_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 1234; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12027.info = {"start":2796,"length":19,"line":90,"column":65,"endLine":90,"endColumn":84,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_attachAnimation__P62926.info = {"start":4622,"length":107,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"attachAnimation","argumentNames":["sprite","set"]}
-function inline__P12027_mk(s) {
+function animation_attachAnimation__P62926_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12027, depth: s.depth + 1,
+ parent: s, fn: animation_attachAnimation__P62926, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12032(s) {
+function animation_Animation_registerSprite__P62923(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42683,30 +40922,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveUp__P11909_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 557; 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, animation_Animation__C62908_VT)) failedCast(r0);
+ r0 = s.arg0.fields["sprites"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg1, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 === -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0.fields["sprites"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_3, s.arg1);
case 1:
- r0 = s.retval;
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12032.info = {"start":2884,"length":19,"line":91,"column":66,"endLine":91,"endColumn":85,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_Animation_registerSprite__P62923.info = {"start":3258,"length":154,"line":115,"column":8,"endLine":119,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"registerSprite","argumentNames":["this","sprite"]}
-function inline__P12032_mk(s) {
+function animation_Animation_registerSprite__P62923_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12032, depth: s.depth + 1,
+ parent: s, fn: animation_Animation_registerSprite__P62923, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12037(s) {
+function animation_Animation_addAnimationFrame__P62922(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42716,30 +40975,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveDown__P11910_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 559; s.pc = 1; return s.tmp_0;
- case 1:
- 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, animation_Animation__C62908_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["index"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["index"] = (s.tmp_1);
+ r0 = s.arg0.fields["frames"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_1, s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12037.info = {"start":2973,"length":21,"line":92,"column":67,"endLine":92,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_Animation_addAnimationFrame__P62922.info = {"start":3158,"length":90,"line":111,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"addAnimationFrame","argumentNames":["this","frame"]}
-function inline__P12037_mk(s) {
+function animation_Animation_addAnimationFrame__P62922_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12037, depth: s.depth + 1,
+ parent: s, fn: animation_Animation_addAnimationFrame__P62922, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12042(s) {
+function animation_createAnimation__P62925(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42749,30 +41024,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_ImageEditor_moveDown__P11910_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 561; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_pxtcore_mkClassInstance(animation_Animation__C62908_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = animation_Animation_constructor__P62915_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.arg1;
+ s.callLocIdx = 1233; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
- r0 = undefined;
+ r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-inline__P12042.info = {"start":3065,"length":21,"line":93,"column":68,"endLine":93,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_createAnimation__P62925.info = {"start":4227,"length":121,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"createAnimation","argumentNames":["action","interval"]}
-function inline__P12042_mk(s) {
+function animation_createAnimation__P62925_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12042, depth: s.depth + 1,
+ parent: s, fn: animation_createAnimation__P62925, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P12047(s) {
+function animation_Animation_constructor__P62915(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42782,31 +41069,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = (s.caps[0]).fields["Adown"] = (true);
- s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 563; 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, animation_Animation__C62908_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["interval"] = (s.arg2);
+ r0 = (s.arg0).fields["index"] = (-1);
+ r0 = (s.arg0).fields["action"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["frames"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim.control.millis();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["lastTime"] = (s.tmp_1);
+ s.tmp_0 = animation_Animation__init__P62916_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1223; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12047.info = {"start":3154,"length":46,"line":95,"column":64,"endLine":95,"endColumn":110,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_Animation_constructor__P62915.info = {"start":1152,"length":292,"line":45,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["this","action","interval"]}
-function inline__P12047_mk(s) {
+function animation_Animation_constructor__P62915_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12047, depth: s.depth + 1,
+ parent: s, fn: animation_Animation_constructor__P62915, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P12055(s) {
+function animation_Animation__init__P62916(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42816,25 +41129,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = (s.caps[0]).fields["Adown"] = (false);
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, animation_Animation__C62908_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(globals.animations___64781);
+ s.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.animations___64781 = (r0);
+ s.tmp_0 = control_EventContext_registerFrameHandler__P60384_mk(s);
+ s.tmp_1 = game_eventContext__P62524_mk(s);
+ s.callLocIdx = 1224; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 15;
+ s.tmp_0.arg2 = inline__P87592;
+ s.callLocIdx = 1227; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ r0 = pxsim_Array__push(globals.animations___64781, s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12055.info = {"start":3268,"length":29,"line":96,"column":65,"endLine":96,"endColumn":94,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+animation_Animation__init__P62916.info = {"start":1454,"length":313,"line":56,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"_init","argumentNames":["this"]}
-function inline__P12055_mk(s) {
+function animation_Animation__init__P62916_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12055, depth: s.depth + 1,
+ parent: s, fn: animation_Animation__init__P62916, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
} }
-function inline__P12061(s) {
+function inline__P87592(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42844,62 +41187,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = tileworld_ImageEditor_saveAndPop__P11911_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 566; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
- { step = 4; continue; }
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = globals.animations___64781;
+ s.tmp_0.arg1 = inline__P87595;
+ s.callLocIdx = 1226; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.caps[0].fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_2 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = 0;
- s.callLocIdx = 567; s.pc = 6; return s.tmp_2;
- case 6:
- r0 = s.retval;
- { step = 3; continue; }
- case 2:
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 568; s.pc = 7; return s.tmp_0;
- case 7:
r0 = s.retval;
- case 3:
- case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12061.info = {"start":3364,"length":309,"line":97,"column":64,"endLine":104,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]}
+inline__P87592.info = {"start":1618,"length":88,"line":59,"column":90,"endLine":61,"endColumn":17,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]}
-function inline__P12061_mk(s) {
+function inline__P87592_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12061, depth: s.depth + 1,
+ parent: s, fn: inline__P87592, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
} }
-function tileworld_ImageEditor_saveAndPop__P11911(s) {
+function inline__P87595(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42913,30 +41225,21 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- s.tmp_0 = tileworld_AllExport_saveImage__P3675_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 617; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = animation_Animation_update__P62917_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1225; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 618; s.pc = 2; return s.tmp_0;
- case 2:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_saveAndPop__P11911.info = {"start":7392,"length":102,"line":196,"column":8,"endLine":199,"endColumn":9,"fileName":"imageeditor.ts","functionName":"saveAndPop","argumentNames":["this"]}
+inline__P87595.info = {"start":1665,"length":21,"line":60,"column":39,"endLine":60,"endColumn":60,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["anim"]}
-function tileworld_ImageEditor_saveAndPop__P11911_mk(s) {
+function inline__P87595_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_saveAndPop__P11911, depth: s.depth + 1,
+ parent: s, fn: inline__P87595, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -42946,7 +41249,7 @@ function tileworld_ImageEditor_saveAndPop__P11911_mk(s) {
-function tileworld_AllExport_saveImage__P3675(s) {
+function animation_Animation_update__P62917(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -42956,60 +41259,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.currentTime___87603 = undefined;
+ s.dt___87606 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0);
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ if (!checkSubtype(r0, animation_Animation__C62908_VT)) failedCast(r0);
+ r0 = pxsim.control.millis();
+ s.currentTime___87603 = (r0);
+ r0 = s.arg0.fields["lastTime"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = tileworld_Project_saveBackgroundImage__P3698_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_5.arg0 = r0;
- s.tmp_5.arg1 = s.arg1;
- s.callLocIdx = 159; s.pc = 3; return s.tmp_5;
- case 3:
- r0 = s.retval;
+ r0 = (s.currentTime___87603 - s.tmp_0);
+ s.dt___87606 = (r0);
+ r0 = s.arg0.fields["interval"];
+ s.tmp_1 = r0;
+ r0 = (s.dt___87606 >= s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_6 = tileworld_Project_saveSpriteImage__P3699_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_6.arg0 = r0;
- s.tmp_7 = r0 = s.arg1;
- r0 = s.arg0.fields["p"];
+ r0 = s.arg0.fields["frames"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__length(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; }
+ s.tmp_4 = r0 = s.arg0;
+ r0 = s.arg0.fields["index"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + 1);
+ s.tmp_6 = r0;
+ r0 = s.arg0.fields["frames"];
s.tmp_9 = r0;
- r0 = s.tmp_9.fields["_backgroundsI"];
- s.tmp_10 = r0;
- r0 = pxsim_Array__length(s.tmp_10);
+ r0 = pxsim_Array__length(s.tmp_9);
s.tmp_8 = r0;
- r0 = (s.tmp_7 - s.tmp_8);
- s.tmp_6.arg1 = r0;
- s.callLocIdx = 161; s.pc = 4; return s.tmp_6;
+ r0 = (s.tmp_6 % s.tmp_8);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["index"] = (s.tmp_5);
+ r0 = (s.arg0).fields["lastTime"] = (s.currentTime___87603);
+ case 3:
case 4:
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = helpers_arrayFilter__P60100_mk(s);
+ r0 = s.arg0.fields["sprites"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = inline__P87638;
+ s.callLocIdx = 1228; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87649);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["sprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1232; s.pc = 6; return s.tmp_1;
+ case 6:
r0 = s.retval;
- case 2:
- // jmp value (already in r0)
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_AllExport_saveImage__P3675.info = {"start":1101,"length":168,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","index"]}
+animation_Animation_update__P62917.info = {"start":1777,"length":790,"line":66,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_AllExport_saveImage__P3675_mk(s) {
+function animation_Animation_update__P62917_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_AllExport_saveImage__P3675, depth: s.depth + 1,
+ parent: s, fn: animation_Animation_update__P62917, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -43021,72 +41346,16 @@ function tileworld_AllExport_saveImage__P3675_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- tmp_10: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_Project_saveSpriteImage__P3699(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.buf___8217 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = tileworld_saveImage__P8209_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_1 = tileworld_Project_getSpriteImage__P3697_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 172; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = false;
- s.callLocIdx = 173; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.buf___8217 = (r0);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Project_saveSpriteImage__P3699.info = {"start":3917,"length":134,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"project.ts","functionName":"saveSpriteImage","argumentNames":["this","kind"]}
-
-function tileworld_Project_saveSpriteImage__P3699_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Project_saveSpriteImage__P3699, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- buf___8217: undefined,
+ currentTime___87603: undefined,
+ dt___87606: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_saveImage__P8209(s) {
+function inline__P87638(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43096,107 +41365,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___9093 = 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 = tileworld_imageToBuffer__P3542_mk(s);
- s.tmp_0.arg0 = s.arg2;
- s.callLocIdx = 277; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.buf___9093 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg3);
- if (!r0) { step = 1; continue; }
- r0 = globals.BackImageKey___8702;
- { step = 2; continue; }
- case 1:
- r0 = globals.SpriteImageKey___8704;
- case 2:
- // jmp value (already in r0)
- s.tmp_0 = r0;
- s.tmp_1 = settings_writeBuffer__P1824_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 5:
- r0 = s.retval;
- s.tmp_4 = r0;
- if ((s.tmp_0) && (s.tmp_0).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(s.tmp_0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_0) + ""; }
- case 6:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_4, s.tmp_5);
- s.tmp_3 = r0;
- if ((s.tmp_3) && (s.tmp_3).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.tmp_3);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_3) + ""; }
- case 7:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops.toString(s.arg1);
- s.tmp_7 = r0;
- if ((s.tmp_7) && (s.tmp_7).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.tmp_7);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_7) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = pxsim_String__concat(s.tmp_2, s.tmp_6);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.buf___9093;
- s.callLocIdx = 278; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- r0 = s.buf___9093;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0.fields["flags"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 & 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_0);
return leave(s, r0)
default: oops()
} } }
-tileworld_saveImage__P8209.info = {"start":13600,"length":255,"line":347,"column":4,"endLine":351,"endColumn":5,"fileName":"project.ts","functionName":"saveImage","argumentNames":["prefix","kind","img","background"]}
+inline__P87638.info = {"start":2134,"length":50,"line":74,"column":47,"endLine":74,"endColumn":97,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]}
-function tileworld_saveImage__P8209_mk(s) {
+function inline__P87638_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_saveImage__P8209, depth: s.depth + 1,
+ parent: s, fn: inline__P87638, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- buf___9093: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_imageToBuffer__P3542(s) {
+function inline__P87649(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43206,165 +41406,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___6212 = undefined;
- s.index___6225 = undefined;
- s.pixel___6244 = undefined;
- s.length___6245 = undefined;
- s.x___6246 = undefined;
- s.y___6253 = undefined;
- s.newPixel___6260 = undefined;
+ s.newImage___87656 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_ImageMethods.width(s.arg0);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.height(s.arg0);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 * s.tmp_3);
+ r0 = s.arg0.fields["_action"];
s.tmp_1 = r0;
- r0 = (2 + s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim.control.createBuffer(s.tmp_0);
- s.buf___6212 = (r0);
- s.index___6225 = (0);
- s.tmp_0 = r0 = s.index___6225;
- r0 = (s.tmp_0 + 1);
- s.index___6225 = (r0);
- s.tmp_1 = r0 = s.buf___6212;
- r0 = pxsim_ImageMethods.width(s.arg0);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2);
- s.tmp_0 = r0 = s.index___6225;
- r0 = (s.tmp_0 + 1);
- s.index___6225 = (r0);
- s.tmp_1 = r0 = s.buf___6212;
- r0 = pxsim_ImageMethods.height(s.arg0);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2);
- s.pixel___6244 = (17);
- s.length___6245 = (0);
- s.x___6246 = (0);
- case 1:
- s.tmp_1 = r0 = s.x___6246;
- 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 = 10; continue; }
- s.y___6253 = (0);
- case 2:
- s.tmp_1 = r0 = s.y___6253;
- r0 = pxsim_ImageMethods.height(s.arg0);
+ r0 = s.caps[0].fields["action"];
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.arg0, s.x___6246, s.y___6253);
- s.newPixel___6260 = (r0);
- r0 = (s.newPixel___6260 != s.pixel___6244);
+ r0 = (s.tmp_1 === s.tmp_2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = (s.length___6245 > 0);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 3; continue; }
- s.tmp_2 = r0 = s.index___6225;
- r0 = (s.tmp_2 + 1);
- s.index___6225 = (r0);
- s.tmp_3 = r0 = s.buf___6212;
- r0 = (s.length___6245 & 15);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 << 4);
- s.tmp_5 = r0;
- r0 = (s.pixel___6244 & 15);
- s.tmp_7 = r0;
- r0 = (s.tmp_5 | s.tmp_7);
- s.tmp_4 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_3, s.tmp_2, s.tmp_4);
- case 3:
- case 4:
- s.pixel___6244 = (s.newPixel___6260);
- s.length___6245 = (1);
- { step = 8; continue; }
- case 5:
- r0 = (s.length___6245 == 14);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_1 = r0 = s.index___6225;
- r0 = (s.tmp_1 + 1);
- s.index___6225 = (r0);
- s.tmp_2 = r0 = s.buf___6212;
- r0 = (s.pixel___6244 & 15);
- s.tmp_4 = r0;
- r0 = (240 | s.tmp_4);
+ r0 = s.caps[0].fields["frames"];
s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3);
- s.pixel___6244 = (17);
- s.length___6245 = (0);
- { step = 7; continue; }
- case 6:
- r0 = (s.length___6245 + 1);
- s.length___6245 = (r0);
- case 7:
- case 8:
- r0 = (s.y___6253 + 1);
- s.y___6253 = (r0);
- { step = 2; continue; }
- case 9:
- r0 = (s.x___6246 + 1);
- s.x___6246 = (r0);
- { step = 1; continue; }
- case 10:
- r0 = (s.length___6245 > 0);
+ r0 = s.caps[0].fields["index"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
+ s.newImage___87656 = (r0);
+ r0 = s.arg0.fields["_image"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 !== s.newImage___87656);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = r0 = s.index___6225;
- r0 = (s.tmp_1 + 1);
- s.index___6225 = (r0);
- s.tmp_2 = r0 = s.buf___6212;
- r0 = (s.length___6245 & 15);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 << 4);
- s.tmp_4 = r0;
- r0 = (s.pixel___6244 & 15);
- s.tmp_6 = r0;
- r0 = (s.tmp_4 | s.tmp_6);
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3);
- case 11:
- case 12:
- r0 = pxsim.BufferMethods.slice(s.buf___6212, 0, s.index___6225);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = Sprite_setImage__P62048_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.newImage___87656;
+ s.callLocIdx = 1231; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_imageToBuffer__P3542.info = {"start":2360,"length":1477,"line":68,"column":4,"endLine":106,"endColumn":5,"fileName":"utilities.ts","functionName":"imageToBuffer","argumentNames":["img"]}
+inline__P87649.info = {"start":2221,"length":334,"line":76,"column":33,"endLine":84,"endColumn":13,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]}
-function tileworld_imageToBuffer__P3542_mk(s) {
+function inline__P87649_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_imageToBuffer__P3542, depth: s.depth + 1,
+ parent: s, fn: inline__P87649, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- buf___6212: undefined,
- index___6225: undefined,
- pixel___6244: undefined,
- length___6245: undefined,
- x___6246: undefined,
- y___6253: undefined,
- newPixel___6260: undefined,
+ newImage___87656: undefined,
arg0: undefined,
} }
@@ -43372,7 +41465,7 @@ function tileworld_imageToBuffer__P3542_mk(s) {
-function tileworld_Project_saveBackgroundImage__P3698(s) {
+function animation_Animation_getImage__P62918(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43382,53 +41475,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8207 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = tileworld_saveImage__P8209_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_1 = tileworld_Project_getBackgroundImage__P3696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 170; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = true;
- s.callLocIdx = 171; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.buf___8207 = (r0);
- r0 = undefined;
+ if (!checkSubtype(r0, animation_Animation__C62908_VT)) failedCast(r0);
+ r0 = s.arg0.fields["frames"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["index"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_saveBackgroundImage__P3698.info = {"start":3758,"length":141,"line":110,"column":8,"endLine":112,"endColumn":9,"fileName":"project.ts","functionName":"saveBackgroundImage","argumentNames":["this","kind"]}
+animation_Animation_getImage__P62918.info = {"start":2577,"length":66,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"getImage","argumentNames":["this"]}
-function tileworld_Project_saveBackgroundImage__P3698_mk(s) {
+function animation_Animation_getImage__P62918_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_saveBackgroundImage__P3698, depth: s.depth + 1,
+ parent: s, fn: animation_Animation_getImage__P62918, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- buf___8207: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_Project_getBackgroundImage__P3696(s) {
+function tileworld_BackgroundBase_constructor__P63780(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43440,65 +41517,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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (0 <= s.arg1);
+ if (!checkSubtype(r0, tileworld_BackgroundBase__C63779_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72674);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = game_onPaint__P62535_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 636; s.pc = 1; return s.tmp_1;
case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_backgroundsI"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0.fields["_backgroundsI"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.arg1);
- { step = 4; continue; }
- case 3:
- r0 = null;
- case 4:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = s.tmp_6;
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getBackgroundImage__P3696.info = {"start":3464,"length":140,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"project.ts","functionName":"getBackgroundImage","argumentNames":["this","kind"]}
+tileworld_BackgroundBase_constructor__P63780.info = {"start":93,"length":110,"line":5,"column":8,"endLine":9,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this"]}
-function tileworld_Project_getBackgroundImage__P3696_mk(s) {
+function tileworld_BackgroundBase_constructor__P63780_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getBackgroundImage__P3696, depth: s.depth + 1,
+ parent: s, fn: tileworld_BackgroundBase_constructor__P63780, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_ImageEditor_paintPixel__P11906(s) {
+function inline__P72674(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43508,221 +41559,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___12086 = undefined;
- s.row___12097 = undefined;
- s.col___12126 = undefined;
- s.row___12141 = undefined;
- s.col___12162 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
+ s.tmp_0 = if_update_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, "update"), 1);
+ s.callLocIdx = 635; s.pc = 1; return s.tmp_0;
+ } else {
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["update"];
+ if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["update"], 1); s.callLocIdx = 635; s.pc = 1; return s.tmp_0; }
+ else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 635; s.pc = 1; return s.tmp_0;; }
+ else { s.callLocIdx = 635; s.pc = 1; return s.tmp_0; }
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = s.arg0.fields["Adown"];
- 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 = 13; continue; }
case 1:
- case 2:
- r0 = s.arg0.fields["cursorType"];
- 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_8 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_8.arg0 = r0;
- s.callLocIdx = 570; s.pc = 14; return s.tmp_8;
- case 14:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 5);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 / 8);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 | 0);
- s.col___12086 = (r0);
- s.tmp_4 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 571; s.pc = 15; return s.tmp_4;
- case 15:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 - 16);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 30);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 / 8);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 | 0);
- s.row___12097 = (r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.row___12097 * 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.col___12086);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["selectedColor"] = (s.tmp_1);
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 572; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- { step = 12; continue; }
- case 3:
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- r0 = (s.arg0).fields["dirty"] = (true);
- s.tmp_3 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 573; s.pc = 17; return s.tmp_3;
- case 17:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 32);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 / 6);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 | 0);
- s.col___12126 = (r0);
- s.tmp_3 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 574; s.pc = 18; return s.tmp_3;
- case 18:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 26);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 / 6);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 | 0);
- s.row___12141 = (r0);
- r0 = s.arg0.fields["image"];
- s.tmp_0 = r0;
- r0 = s.arg0.fields["selectedColor"];
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___12126, s.row___12141, s.tmp_1);
- { step = 11; continue; }
- case 4:
- s.tmp_1 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 575; s.pc = 19; return s.tmp_1;
- case 19:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
- s.col___12162 = (r0);
- r0 = (2 <= s.col___12162);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_0;
- { step = 6; continue; }
- case 5:
- s.tmp_1 = r0 = s.col___12162;
- r0 = s.arg0.fields["p"];
- s.tmp_5 = r0;
- r0 = s.tmp_5.fields["allImages"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (2 + s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- case 6:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 9; continue; }
- r0 = s.arg0.fields["dirty"];
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 7; continue; }
- s.tmp_8 = tileworld_AllExport_saveImage__P3675_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_8.arg0 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_8.arg1 = r0;
- s.callLocIdx = 577; s.pc = 20; return s.tmp_8;
- case 20:
- r0 = s.retval;
- case 7:
- case 8:
- s.tmp_0 = r0 = s.arg0;
- r0 = (s.col___12162 - 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["kind"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_3 = r0;
- r0 = s.tmp_2.fields["allImages"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["image"] = (s.tmp_1);
- r0 = (s.arg0).fields["dirty"] = (false);
- case 9:
- case 10:
- case 11:
- case 12:
- s.tmp_0 = tileworld_ImageEditor__C3778_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C3778_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 21; return s.tmp_0;
- case 21:
r0 = s.retval;
- case 13:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_paintPixel__P11906.info = {"start":3695,"length":1186,"line":107,"column":8,"endLine":131,"endColumn":9,"fileName":"imageeditor.ts","functionName":"paintPixel","argumentNames":["this"]}
+inline__P72674.info = {"start":134,"length":58,"line":6,"column":25,"endLine":8,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_ImageEditor_paintPixel__P11906_mk(s) {
+function inline__P72674_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_paintPixel__P11906, depth: s.depth + 1,
+ parent: s, fn: inline__P72674, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- col___12086: undefined,
- row___12097: undefined,
- col___12126: undefined,
- row___12141: undefined,
- col___12162: undefined,
- arg0: undefined,
} }
-function tileworld_ImageEditor_moveDown__P11910(s) {
+function game_onPaint__P62535(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43736,122 +41604,42 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
+ s.tmp_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = undefined;
+ s.callLocIdx = 896; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 609; s.pc = 9; return s.tmp_4;
- case 9:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (30 + 16);
- s.tmp_6 = r0;
- r0 = (8 * 7);
- s.tmp_7 = r0;
- r0 = (s.tmp_6 + s.tmp_7);
- s.tmp_5 = r0;
- r0 = (s.tmp_3 < s.tmp_5);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 1; continue; }
- s.tmp_8 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_9 = r0;
- s.tmp_8.arg0 = r0;
- s.tmp_11 = Sprite_y__P2024_mk(s);
- s.tmp_11.arg0 = s.tmp_9;
- s.callLocIdx = 610; s.pc = 11; return s.tmp_11;
- case 11:
- r0 = s.retval;
- s.tmp_10 = r0;
- r0 = (s.tmp_10 + 8);
- s.tmp_8.arg1 = r0;
- s.callLocIdx = 611; s.pc = 10; return s.tmp_8;
- case 10:
- r0 = s.retval;
+ { step = 3; continue; }
case 1:
case 2:
- { step = 8; continue; }
- case 3:
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_2 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 1;
- s.callLocIdx = 612; s.pc = 12; return s.tmp_2;
- case 12:
- r0 = s.retval;
- { step = 7; continue; }
- case 4:
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 613; s.pc = 13; return s.tmp_2;
- case 13:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 116);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_3 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4 = r0;
- s.tmp_3.arg0 = r0;
- s.tmp_6 = Sprite_y__P2024_mk(s);
- s.tmp_6.arg0 = s.tmp_4;
- s.callLocIdx = 614; s.pc = 15; return s.tmp_6;
- case 15:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + 6);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 615; s.pc = 14; return s.tmp_3;
- case 14:
- r0 = s.retval;
+ s.tmp_2 = scene_createRenderable__P62372_mk(s);
+ s.tmp_2.arg0 = -20;
+ s.tmp_2.arg1 = s.arg0;
+ s.tmp_2.arg2 = undefined;
+ s.callLocIdx = 897; s.pc = 5; return s.tmp_2;
case 5:
- case 6:
- case 7:
- case 8:
- s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 616; s.pc = 16; return s.tmp_0;
- case 16:
r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_moveDown__P11910.info = {"start":6846,"length":536,"line":183,"column":8,"endLine":194,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveDown","argumentNames":["this"]}
+game_onPaint__P62535.info = {"start":9619,"length":145,"line":308,"column":4,"endLine":312,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onPaint","argumentNames":["a"]}
-function tileworld_ImageEditor_moveDown__P11910_mk(s) {
+function game_onPaint__P62535_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_moveDown__P11910, depth: s.depth + 1,
+ parent: s, fn: game_onPaint__P62535, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
arg0: undefined,
} }
@@ -43859,7 +41647,7 @@ function tileworld_ImageEditor_moveDown__P11910_mk(s) {
-function tileworld_ImageEditor_moveUp__P11909(s) {
+function scene_createRenderable__P62372(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -43869,131 +41657,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.renderable___81239 = 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, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C62367_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 601; s.pc = 9; return s.tmp_4;
- case 9:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (30 + 16);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 7);
- s.tmp_5 = r0;
- r0 = (s.tmp_3 > s.tmp_5);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0 = s.arg2;
+ r0 = pxsim_numops_toBool(s.tmp_1);
if (!r0) { step = 1; continue; }
- s.tmp_7 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_8 = r0;
- s.tmp_7.arg0 = r0;
- s.tmp_10 = Sprite_y__P2024_mk(s);
- s.tmp_10.arg0 = s.tmp_8;
- s.callLocIdx = 602; s.pc = 11; return s.tmp_10;
- case 11:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 - 8);
- s.tmp_7.arg1 = r0;
- s.callLocIdx = 603; s.pc = 10; return s.tmp_7;
- case 10:
- r0 = s.retval;
+ r0 = s.tmp_1;
+ { step = 2; continue; }
case 1:
+ r0 = inline__P81245;
case 2:
- { step = 8; continue; }
- case 3:
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 604; s.pc = 12; return s.tmp_4;
- case 12:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 31);
+ // jmp value (already in r0)
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- s.tmp_5 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_y__P2024_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 605; s.pc = 14; return s.tmp_8;
- case 14:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 6);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 606; s.pc = 13; return s.tmp_5;
- case 13:
- r0 = s.retval;
- { step = 5; continue; }
- case 4:
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 607; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- case 5:
- case 6:
- case 7:
- case 8:
- s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 608; s.pc = 16; return s.tmp_0;
- case 16:
+ s.tmp_3 = scene_Renderable_constructor__P62368_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 = 813; s.pc = 3; return s.tmp_3;
+ case 3:
r0 = s.retval;
- r0 = undefined;
+ s.renderable___81239 = (s.tmp_0);
+ r0 = s.renderable___81239;
+ return leave(s, r0)
+ default: oops()
+} } }
+scene_createRenderable__P62372.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__P62372_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: scene_createRenderable__P62372, depth: s.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___81239: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function inline__P81245(s) {
+let r0 = s.r0, 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 = true;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_moveUp__P11909.info = {"start":6292,"length":544,"line":169,"column":8,"endLine":181,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveUp","argumentNames":["this"]}
+inline__P81245.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]}
-function tileworld_ImageEditor_moveUp__P11909_mk(s) {
+function inline__P81245_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_moveUp__P11909, depth: s.depth + 1,
+ parent: s, fn: inline__P81245, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_ImageEditor_moveRight__P11908(s) {
+function scene_Renderable_constructor__P62368(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44005,154 +41749,44 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- 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; }
- s.tmp_4 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 590; s.pc = 11; return s.tmp_4;
- case 11:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 < 13);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 591; s.pc = 13; return s.tmp_8;
- case 13:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + 8);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 592; s.pc = 12; return s.tmp_5;
- case 12:
- r0 = s.retval;
- { step = 2; continue; }
- case 1:
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 593; s.pc = 14; return s.tmp_0;
- case 14:
- r0 = s.retval;
- case 2:
- { step = 10; continue; }
- case 3:
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_4 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 594; s.pc = 15; return s.tmp_4;
- case 15:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 < 144);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 595; s.pc = 17; return s.tmp_8;
- case 17:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + 16);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 596; s.pc = 16; return s.tmp_5;
- case 16:
- r0 = s.retval;
- case 4:
- case 5:
- { step = 9; continue; }
- case 6:
- s.tmp_2 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 597; s.pc = 18; return s.tmp_2;
- case 18:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (32 + 90);
- 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 = 7; continue; }
- s.tmp_4 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_5 = r0;
- s.tmp_4.arg0 = r0;
- s.tmp_7 = Sprite_x__P2022_mk(s);
- s.tmp_7.arg0 = s.tmp_5;
- s.callLocIdx = 598; s.pc = 20; return s.tmp_7;
- case 20:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 + 6);
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 599; s.pc = 19; return s.tmp_4;
- case 19:
- r0 = s.retval;
- case 7:
- case 8:
- case 9:
- case 10:
- s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s);
+ if (!checkSubtype(r0, scene_Renderable__C62367_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["handler"] = (s.arg1);
+ r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2);
+ s.tmp_0 = sprites_BaseSprite_constructor__P61852_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 600; s.pc = 21; return s.tmp_0;
- case 21:
+ s.tmp_0.arg1 = s.arg3;
+ s.callLocIdx = 810; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_moveRight__P11908.info = {"start":5579,"length":703,"line":151,"column":8,"endLine":167,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveRight","argumentNames":["this"]}
+scene_Renderable_constructor__P62368.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 tileworld_ImageEditor_moveRight__P11908_mk(s) {
+function scene_Renderable_constructor__P62368_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_moveRight__P11908, depth: s.depth + 1,
+ parent: s, fn: scene_Renderable_constructor__P62368, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_ImageEditor_moveLeft__P11907(s) {
+function tileworld_MapEditor_constructor__P63817(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44164,152 +41798,239 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ s.tmp_0 = tileworld_BackgroundBase_constructor__P63780_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1198; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["aDown"] = (false);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorOut___63721;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 1199; s.pc = 2; return s.tmp_2;
+ case 2:
+ r0 = s.retval;
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; }
- s.tmp_4 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 579; s.pc = 11; return s.tmp_4;
- case 11:
+ r0 = (s.tmp_0).fields["selected"] = (s.tmp_1);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["selected"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 24;
+ s.callLocIdx = 1200; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 13);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 580; s.pc = 13; return s.tmp_8;
- case 13:
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["selected"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 12;
+ s.callLocIdx = 1201; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 8);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 581; s.pc = 12; return s.tmp_5;
- case 12:
+ r0 = (s.arg0).fields["userSpriteIndex"] = (0);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorIn___63720;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 1202; s.pc = 5; return s.tmp_2;
+ case 5:
r0 = s.retval;
- case 1:
- case 2:
- { step = 10; continue; }
- case 3:
- r0 = s.arg0.fields["cursorType"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_4 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 582; s.pc = 14; return s.tmp_4;
- case 14:
+ r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 8;
+ s.callLocIdx = 1203; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 8);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 583; s.pc = 16; return s.tmp_8;
- case 16:
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 12;
+ s.callLocIdx = 1204; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 16);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 584; s.pc = 15; return s.tmp_5;
- case 15:
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.cursorOut___63721;
+ s.callLocIdx = 1205; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
- case 4:
- case 5:
- { step = 9; continue; }
- case 6:
- s.tmp_2 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 585; s.pc = 17; return s.tmp_2;
- case 17:
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.paintOut___76545;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 1206; s.pc = 9; return s.tmp_2;
+ case 9:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 > 35);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_3 = Sprite_x__P2023_mk(s);
+ r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1);
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
r0 = s.arg0.fields["paintCursor"];
- s.tmp_4 = r0;
- s.tmp_3.arg0 = r0;
- s.tmp_6 = Sprite_x__P2022_mk(s);
- s.tmp_6.arg0 = s.tmp_4;
- s.callLocIdx = 586; s.pc = 19; return s.tmp_6;
- case 19:
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.paintIn___76548;
+ s.callLocIdx = 1207; s.pc = 10; return s.tmp_0;
+ case 10:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 6);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 587; s.pc = 18; return s.tmp_3;
- case 18:
+ s.tmp_0 = tileworld_MapEditor_paintHome__P75287_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1208; s.pc = 11; return s.tmp_0;
+ case 11:
r0 = s.retval;
- { step = 8; continue; }
- case 7:
- s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s);
+ s.tmp_0 = tileworld_MapEditor_setCursor__P75288_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
- s.callLocIdx = 588; s.pc = 20; return s.tmp_0;
- case 20:
+ s.callLocIdx = 1209; s.pc = 12; return s.tmp_0;
+ case 12:
r0 = s.retval;
- case 8:
- case 9:
- case 10:
- s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s);
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 589; s.pc = 21; return s.tmp_0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76614);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1211; s.pc = 14; return s.tmp_1;
+ case 14:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76619);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1213; s.pc = 15; return s.tmp_1;
+ case 15:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76624);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1215; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76629);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1217; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76634);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1219; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76639);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1221; s.pc = 19; return s.tmp_1;
+ case 19:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76644);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1223; s.pc = 20; return s.tmp_1;
+ case 20:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76649);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1225; s.pc = 21; return s.tmp_1;
case 21:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76654);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1227; s.pc = 22; return s.tmp_1;
+ case 22:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76661);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1228; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P76667);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1232; s.pc = 24; return s.tmp_1;
+ case 24:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_moveLeft__P11907.info = {"start":4891,"length":678,"line":133,"column":8,"endLine":149,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveLeft","argumentNames":["this"]}
+tileworld_MapEditor_constructor__P63817.info = {"start":956,"length":1952,"line":37,"column":8,"endLine":76,"endColumn":9,"fileName":"editor.ts","functionName":"inline","argumentNames":["this","p"]}
-function tileworld_ImageEditor_moveLeft__P11907_mk(s) {
+function tileworld_MapEditor_constructor__P63817_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_moveLeft__P11907, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_constructor__P63817, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_ImageEditor_update__P11913(s) {
+function inline__P76614(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44319,267 +42040,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.row___12483 = undefined;
- s.col___12487 = undefined;
- s.color___12491 = undefined;
- s.yOffset___12496 = undefined;
- s.row___12566 = undefined;
- s.y___12573 = undefined;
- s.col___12579 = undefined;
- s.x___12586 = undefined;
- s.color___12594 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 4;
- s.tmp_0.arg3 = 16;
- s.tmp_0.arg4 = 16;
- s.tmp_0.arg5 = 11;
- s.callLocIdx = 622; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.paint___3716, 0, 4);
- r0 = pxsim_pxtcore_mkAction(1, inline__P12456);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["allImages"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 624; s.pc = 14; return s.tmp_1;
- case 14:
- r0 = s.retval;
- s.row___12483 = (0);
+ s.tmp_0 = tileworld_MapEditor_moveLeft__P75289_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1210; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.row___12483 < 8);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.col___12487 = (0);
- case 2:
- r0 = (s.col___12487 < 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = (s.row___12483 * 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + s.col___12487);
- s.color___12491 = (r0);
- r0 = (38 + 4);
- s.yOffset___12496 = (r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = (s.col___12487 * 8);
- s.tmp_2 = r0;
- r0 = (5 + s.tmp_2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 1);
- s.tmp_0.arg1 = r0;
- s.tmp_4 = r0 = s.yOffset___12496;
- r0 = (s.row___12483 * 8);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 + s.tmp_5);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 1);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 6;
- s.tmp_0.arg4 = 6;
- s.tmp_0.arg5 = s.color___12491;
- s.callLocIdx = 625; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- r0 = s.arg0.fields["selectedColor"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.color___12491);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = helpers_imageDrawRect__P1728_mk(s);
- s.tmp_2.arg0 = globals.screen___1799;
- r0 = (s.col___12487 * 8);
- s.tmp_3 = r0;
- r0 = (5 + s.tmp_3);
- s.tmp_2.arg1 = r0;
- s.tmp_4 = r0 = s.yOffset___12496;
- r0 = (s.row___12483 * 8);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 + s.tmp_5);
- s.tmp_2.arg2 = r0;
- s.tmp_2.arg3 = 8;
- s.tmp_2.arg4 = 8;
- s.tmp_2.arg5 = 1;
- s.callLocIdx = 626; s.pc = 16; return s.tmp_2;
- case 16:
- r0 = s.retval;
- case 3:
- case 4:
- r0 = (s.col___12487 + 1);
- s.col___12487 = (r0);
- { step = 2; continue; }
- case 5:
- r0 = (s.row___12483 + 1);
- s.row___12483 = (r0);
- { step = 1; continue; }
- case 6:
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 6;
- s.tmp_0.arg2 = 43;
- s.tmp_0.arg3 = 3;
- s.tmp_0.arg4 = 3;
- s.tmp_0.arg5 = 13;
- s.callLocIdx = 627; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 9;
- s.tmp_0.arg2 = 46;
- s.tmp_0.arg3 = 3;
- s.tmp_0.arg4 = 3;
- s.tmp_0.arg5 = 13;
- s.callLocIdx = 628; s.pc = 18; return s.tmp_0;
- case 18:
- r0 = s.retval;
- s.row___12566 = (0);
- case 7:
- s.tmp_1 = r0 = s.row___12566;
- r0 = s.arg0.fields["image"];
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.height(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 = 12; continue; }
- r0 = (s.row___12566 * 6);
- s.tmp_4 = r0;
- r0 = (24 + s.tmp_4);
- s.y___12573 = (r0);
- s.col___12579 = (0);
- case 8:
- s.tmp_1 = r0 = s.col___12579;
- r0 = s.arg0.fields["image"];
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.width(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 = 11; continue; }
- r0 = (s.col___12579 * 6);
- s.tmp_4 = r0;
- r0 = (30 + s.tmp_4);
- s.x___12586 = (r0);
- r0 = s.arg0.fields["image"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.col___12579, s.row___12566);
- s.color___12594 = (r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = s.x___12586;
- s.tmp_0.arg2 = s.y___12573;
- s.tmp_0.arg3 = 5;
- s.tmp_0.arg4 = 5;
- s.tmp_0.arg5 = s.color___12594;
- s.callLocIdx = 629; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- r0 = (s.color___12594 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.tmp_1 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_1.arg0 = globals.screen___1799;
- s.tmp_1.arg1 = s.x___12586;
- s.tmp_1.arg2 = s.y___12573;
- r0 = (3 - 1);
- s.tmp_1.arg3 = r0;
- r0 = (3 - 1);
- s.tmp_1.arg4 = r0;
- s.tmp_1.arg5 = 13;
- s.callLocIdx = 630; s.pc = 20; return s.tmp_1;
- case 20:
r0 = s.retval;
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = (s.x___12586 + 3);
- s.tmp_0.arg1 = r0;
- r0 = (s.y___12573 + 3);
- s.tmp_0.arg2 = r0;
- r0 = (3 - 1);
- s.tmp_0.arg3 = r0;
- r0 = (3 - 1);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = 13;
- s.callLocIdx = 631; s.pc = 21; return s.tmp_0;
- case 21:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P76614.info = {"start":1706,"length":21,"line":58,"column":67,"endLine":58,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P76614_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P76614, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P76619(s) {
+let r0 = s.r0, 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 = tileworld_MapEditor_moveLeft__P75289_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1212; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- case 9:
- case 10:
- r0 = (s.col___12579 + 1);
- s.col___12579 = (r0);
- { step = 8; continue; }
- case 11:
- r0 = (s.row___12566 + 1);
- s.row___12566 = (r0);
- { step = 7; continue; }
- case 12:
- s.tmp_0 = helpers_imageDrawRect__P1728_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 28;
- s.tmp_0.arg2 = 22;
- r0 = (96 + 4);
- s.tmp_0.arg3 = r0;
- r0 = (96 + 4);
- s.tmp_0.arg4 = r0;
- s.tmp_0.arg5 = 1;
- s.callLocIdx = 632; s.pc = 22; return s.tmp_0;
- case 22:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P76619.info = {"start":1798,"length":21,"line":59,"column":68,"endLine":59,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P76619_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P76619, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P76624(s) {
+let r0 = s.r0, 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 = tileworld_MapEditor_moveRight__P75290_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1214; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_update__P11913.info = {"start":7850,"length":2296,"line":208,"column":8,"endLine":251,"endColumn":9,"fileName":"imageeditor.ts","functionName":"update","argumentNames":["this"]}
+inline__P76624.info = {"start":1890,"length":22,"line":60,"column":68,"endLine":60,"endColumn":90,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function tileworld_ImageEditor_update__P11913_mk(s) {
+function inline__P76624_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_update__P11913, depth: s.depth + 1,
+ parent: s, fn: inline__P76624, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- row___12483: undefined,
- col___12487: undefined,
- color___12491: undefined,
- yOffset___12496: undefined,
- row___12566: undefined,
- y___12573: undefined,
- col___12579: undefined,
- x___12586: undefined,
- color___12594: undefined,
- arg0: undefined,
} }
-function inline__P12456(s) {
+function inline__P76629(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44589,59 +42139,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = r0 = globals.screen___1799;
- s.tmp_1 = r0 = s.arg0;
- r0 = (2 + s.arg1);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 * 16);
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.drawImage(s.tmp_0, s.tmp_1, s.tmp_2, 4);
- r0 = s.caps[0].fields["kind"];
- s.tmp_1 = r0;
- r0 = (s.arg1 == s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = r0 = globals.screen___1799;
- s.tmp_3 = r0 = globals.cursorOut___3724;
- r0 = (2 + s.arg1);
- s.tmp_5 = r0;
- r0 = (s.tmp_5 * 16);
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 4);
+ s.tmp_0 = tileworld_MapEditor_moveRight__P75290_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1216; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12456.info = {"start":8044,"length":232,"line":212,"column":39,"endLine":217,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["img","index"]}
+inline__P76629.info = {"start":1984,"length":22,"line":61,"column":69,"endLine":61,"endColumn":91,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function inline__P12456_mk(s) {
+function inline__P76629_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12456, depth: s.depth + 1,
+ parent: s, fn: inline__P76629, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_ImageEditor_setCursor__P11912(s) {
+function inline__P76634(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44651,62 +42172,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["colorCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- r0 = (s.arg1 != 0);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 619; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_MapEditor_moveUp__P75291_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1218; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- r0 = (s.arg1 != 1);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 620; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["menuCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- r0 = (s.arg1 != 2);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 621; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- r0 = (s.arg0).fields["cursorType"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ImageEditor_setCursor__P11912.info = {"start":7512,"length":328,"line":201,"column":8,"endLine":206,"endColumn":9,"fileName":"imageeditor.ts","functionName":"setCursor","argumentNames":["this","ct"]}
+inline__P76634.info = {"start":2074,"length":19,"line":62,"column":65,"endLine":62,"endColumn":84,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function tileworld_ImageEditor_setCursor__P11912_mk(s) {
+function inline__P76634_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ImageEditor_setCursor__P11912, depth: s.depth + 1,
+ parent: s, fn: inline__P76634, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function tileworld_cursorAnimation__P3538(s) {
+function inline__P76639(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44716,66 +42205,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.anim___6036 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = animation_createAnimation__P2928_mk(s);
- s.tmp_0.arg0 = 0;
- s.tmp_0.arg1 = 300;
- s.callLocIdx = 65; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_MapEditor_moveUp__P75291_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1220; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.anim___6036 = (r0);
- s.tmp_0 = animation_Animation_addAnimationFrame__P2925_mk(s);
- s.tmp_0.arg0 = s.anim___6036;
- r0 = s.arg0.fields["_image"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 67; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = animation_Animation_addAnimationFrame__P2925_mk(s);
- s.tmp_0.arg0 = s.anim___6036;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 68; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = animation_attachAnimation__P2929_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.anim___6036;
- s.callLocIdx = 69; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = animation_setAction__P2930_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 70; s.pc = 5; return s.tmp_0;
- case 5:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P76639.info = {"start":2162,"length":19,"line":63,"column":66,"endLine":63,"endColumn":85,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P76639_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P76639, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P76644(s) {
+let r0 = s.r0, 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 = tileworld_MapEditor_moveDown__P75292_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1222; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_cursorAnimation__P3538.info = {"start":670,"length":297,"line":20,"column":4,"endLine":26,"endColumn":5,"fileName":"utilities.ts","functionName":"cursorAnimation","argumentNames":["cursor","second"]}
+inline__P76644.info = {"start":2251,"length":21,"line":64,"column":67,"endLine":64,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function tileworld_cursorAnimation__P3538_mk(s) {
+function inline__P76644_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_cursorAnimation__P3538, depth: s.depth + 1,
+ parent: s, fn: inline__P76644, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- anim___6036: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function animation_setAction__P2930(s) {
+function inline__P76649(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44785,32 +42271,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = (s.arg0).fields["_action"] = (s.arg1);
+ s.tmp_0 = tileworld_MapEditor_moveDown__P75292_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 1224; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_setAction__P2930.info = {"start":4990,"length":98,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"setAction","argumentNames":["sprite","action"]}
+inline__P76649.info = {"start":2343,"length":21,"line":65,"column":68,"endLine":65,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function animation_setAction__P2930_mk(s) {
+function inline__P76649_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_setAction__P2930, depth: s.depth + 1,
+ parent: s, fn: inline__P76649, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
+ tmp_0: undefined,
} }
-function animation_attachAnimation__P2929(s) {
+function inline__P76654(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44820,38 +42304,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = animation_Animation_registerSprite__P2926_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = s.arg0;
- s.callLocIdx = 1228; s.pc = 1; return s.tmp_0;
+ r0 = (s.caps[0]).fields["aDown"] = (true);
+ s.tmp_0 = tileworld_MapEditor_cursorAction__P75294_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = false;
+ s.callLocIdx = 1226; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_attachAnimation__P2929.info = {"start":4622,"length":107,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"attachAnimation","argumentNames":["sprite","set"]}
+inline__P76654.info = {"start":2431,"length":49,"line":66,"column":64,"endLine":66,"endColumn":113,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function animation_attachAnimation__P2929_mk(s) {
+function inline__P76654_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_attachAnimation__P2929, depth: s.depth + 1,
+ parent: s, fn: inline__P76654, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function animation_Animation_registerSprite__P2926(s) {
+function inline__P76661(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44861,50 +42339,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.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0);
- r0 = s.arg0.fields["sprites"];
- s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg1, undefined);
+ r0 = (s.caps[0]).fields["aDown"] = (false);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P76661.info = {"start":2548,"length":29,"line":67,"column":65,"endLine":67,"endColumn":94,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P76661_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P76661, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+} }
+
+
+
+
+
+function inline__P76667(s) {
+let r0 = s.r0, 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["cursorType"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 === -1);
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["sprites"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, s.arg1);
+ s.tmp_2 = tileworld_Project_saveWorld__P63700_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1229; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1230; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ { step = 2; continue; }
case 1:
+ s.tmp_0 = tileworld_MapEditor_setCursor__P75288_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1231; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_Animation_registerSprite__P2926.info = {"start":3258,"length":154,"line":115,"column":8,"endLine":119,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"registerSprite","argumentNames":["this","sprite"]}
+inline__P76667.info = {"start":2644,"length":252,"line":68,"column":64,"endLine":75,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-function animation_Animation_registerSprite__P2926_mk(s) {
+function inline__P76667_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation_registerSprite__P2926, depth: s.depth + 1,
+ parent: s, fn: inline__P76667, depth: s.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 animation_Animation_addAnimationFrame__P2925(s) {
+function tileworld_Project_saveWorld__P63700(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44914,46 +42422,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.worldBuf___68304 = undefined;
+ s.spritesBuf___68318 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["index"];
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_imageToBuffer__P63539_mk(s);
+ r0 = s.arg0.fields["_backgrounds"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 189; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.worldBuf___68304 = (r0);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ r0 = s.arg0.fields["prefix"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 3);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 3:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["index"] = (s.tmp_1);
- r0 = s.arg0.fields["frames"];
+ if ((globals.WorldBackgroundsKey___68314) && (globals.WorldBackgroundsKey___68314).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(globals.WorldBackgroundsKey___68314);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.WorldBackgroundsKey___68314) + ""; }
+ case 4:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_1, s.arg1);
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.worldBuf___68304;
+ s.callLocIdx = 190; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_imageToBuffer__P63539_mk(s);
+ r0 = s.arg0.fields["_sprites"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 191; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.spritesBuf___68318 = (r0);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ r0 = s.arg0.fields["prefix"];
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 7:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ if ((globals.WorldSpritesKey___68328) && (globals.WorldSpritesKey___68328).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(globals.WorldSpritesKey___68328);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.WorldSpritesKey___68328) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.spritesBuf___68318;
+ s.callLocIdx = 192; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_Animation_addAnimationFrame__P2925.info = {"start":3158,"length":90,"line":111,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"addAnimationFrame","argumentNames":["this","frame"]}
+tileworld_Project_saveWorld__P63700.info = {"start":5235,"length":306,"line":150,"column":8,"endLine":155,"endColumn":9,"fileName":"project.ts","functionName":"saveWorld","argumentNames":["this"]}
-function animation_Animation_addAnimationFrame__P2925_mk(s) {
+function tileworld_Project_saveWorld__P63700_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation_addAnimationFrame__P2925, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_saveWorld__P63700, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
+ worldBuf___68304: undefined,
+ spritesBuf___68318: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function animation_createAnimation__P2928(s) {
+function tileworld_MapEditor_cursorAction__P75294(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -44963,33 +42532,242 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.col___76860 = undefined;
+ s.row___76869 = undefined;
+ s.backs___76883 = undefined;
+ s.sprs___76908 = undefined;
+ s.spriteIndex___76912 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore_mkClassInstance(animation_Animation__C2911_VT);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = s.arg0.fields["aDown"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- s.tmp_1 = animation_Animation_constructor__P2918_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.arg1;
- s.callLocIdx = 1227; s.pc = 1; return s.tmp_1;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 19; continue; }
case 1:
+ case 2:
+ r0 = s.arg0.fields["cursorType"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 == 1);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 9; continue; }
+ s.tmp_7 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_7.arg0 = r0;
+ s.callLocIdx = 1264; s.pc = 20; return s.tmp_7;
+ case 20:
r0 = s.retval;
- r0 = s.tmp_0;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 >> 3);
+ s.tmp_5 = r0;
+ r0 = s.arg0.fields["offsetX"];
+ s.tmp_8 = r0;
+ r0 = (s.tmp_5 + s.tmp_8);
+ s.col___76860 = (r0);
+ s.tmp_3 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 1265; s.pc = 21; return s.tmp_3;
+ case 21:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 24);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >> 3);
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["offsetY"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_0 + s.tmp_4);
+ s.row___76869 = (r0);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0 = r0;
+ r0 = s.tmp_0.fields["_backgrounds"];
+ s.backs___76883 = (r0);
+ r0 = s.arg0.fields["userSpriteIndex"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 15);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_ImageMethods.setPixel(s.backs___76883, s.col___76860, s.row___76869, 15);
+ { step = 8; continue; }
+ case 3:
+ r0 = s.arg0.fields["userSpriteIndex"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ 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 = s.arg0.fields["userSpriteIndex"];
+ s.tmp_5 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.backs___76883, s.col___76860, s.row___76869, s.tmp_5);
+ { step = 7; continue; }
+ case 4:
+ r0 = s.arg0.fields["p"];
+ s.tmp_0 = r0;
+ r0 = s.tmp_0.fields["_sprites"];
+ s.sprs___76908 = (r0);
+ r0 = s.arg0.fields["userSpriteIndex"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_backgroundsI"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 - s.tmp_1);
+ s.spriteIndex___76912 = (r0);
+ r0 = pxsim_ImageMethods.getPixel(s.sprs___76908, s.col___76860, s.row___76869);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.spriteIndex___76912);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_ImageMethods.setPixel(s.sprs___76908, s.col___76860, s.row___76869, 15);
+ { step = 6; continue; }
+ case 5:
+ r0 = pxsim_ImageMethods.setPixel(s.sprs___76908, s.col___76860, s.row___76869, s.spriteIndex___76912);
+ case 6:
+ case 7:
+ case 8:
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 22; return s.tmp_0;
+ case 22:
+ r0 = s.retval;
+ { step = 19; continue; }
+ case 9:
+ case 10:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 11; continue; }
+ { step = 19; continue; }
+ case 11:
+ case 12:
+ s.tmp_2 = tileworld_MapEditor_row__P75296_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1270; s.pc = 23; return s.tmp_2;
+ case 23:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 17; continue; }
+ s.tmp_5 = tileworld_MapEditor_col__P75295_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_5.arg1 = true;
+ s.callLocIdx = 1271; s.pc = 24; return s.tmp_5;
+ case 24:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (1 <= s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_3;
+ { step = 14; continue; }
+ case 13:
+ s.tmp_7 = tileworld_MapEditor_col__P75295_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = true;
+ s.callLocIdx = 1272; s.pc = 25; return s.tmp_7;
+ case 25:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ s.tmp_10 = tileworld_Project_allCnt__P63690_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_10.arg0 = r0;
+ s.callLocIdx = 1273; s.pc = 26; return s.tmp_10;
+ case 26:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (1 + s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_6 < s.tmp_8);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_11);
+ if (!r0) { step = 15; continue; }
+ s.tmp_12 = r0 = s.arg0;
+ s.tmp_15 = tileworld_MapEditor_col__P75295_mk(s);
+ s.tmp_15.arg0 = s.arg0;
+ s.tmp_15.arg1 = true;
+ s.callLocIdx = 1274; s.pc = 27; return s.tmp_15;
+ case 27:
+ r0 = s.retval;
+ s.tmp_14 = r0;
+ r0 = (s.tmp_14 - 1);
+ s.tmp_13 = r0;
+ r0 = (s.tmp_12).fields["userSpriteIndex"] = (s.tmp_13);
+ s.tmp_0 = tileworld_MapEditor_updateSelection__P75293_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1275; s.pc = 28; return s.tmp_0;
+ case 28:
+ r0 = s.retval;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ case 19:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_createAnimation__P2928.info = {"start":4227,"length":121,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"createAnimation","argumentNames":["action","interval"]}
+tileworld_MapEditor_cursorAction__P75294.info = {"start":5134,"length":1427,"line":147,"column":8,"endLine":179,"endColumn":9,"fileName":"editor.ts","functionName":"cursorAction","argumentNames":["this","repeated"]}
-function animation_createAnimation__P2928_mk(s) {
+function tileworld_MapEditor_cursorAction__P75294_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_createAnimation__P2928, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_cursorAction__P75294, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ col___76860: undefined,
+ row___76869: undefined,
+ backs___76883: undefined,
+ sprs___76908: undefined,
+ spriteIndex___76912: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -44998,7 +42776,7 @@ function animation_createAnimation__P2928_mk(s) {
-function animation_Animation_constructor__P2918(s) {
+function tileworld_MapEditor_updateSelection__P75293(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45010,55 +42788,57 @@ 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, animation_Animation__C2911_VT)) failedCast(r0);
- r0 = (s.arg0).fields["interval"] = (s.arg2);
- r0 = (s.arg0).fields["index"] = (-1);
- r0 = (s.arg0).fields["action"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["frames"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim.control.millis();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["lastTime"] = (s.tmp_1);
- s.tmp_0 = animation_Animation__init__P2919_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1217; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["selected"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 1260; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1261; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["selected"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_1 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 1262; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1263; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_Animation_constructor__P2918.info = {"start":1152,"length":292,"line":45,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["this","action","interval"]}
+tileworld_MapEditor_updateSelection__P75293.info = {"start":4997,"length":127,"line":142,"column":8,"endLine":145,"endColumn":9,"fileName":"editor.ts","functionName":"updateSelection","argumentNames":["this"]}
-function animation_Animation_constructor__P2918_mk(s) {
+function tileworld_MapEditor_updateSelection__P75293_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation_constructor__P2918, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_updateSelection__P75293, 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 animation_Animation__init__P2919(s) {
+function tileworld_MapEditor_col__P75295(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45070,53 +42850,40 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(globals.animations___4778);
- s.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.animations___4778 = (r0);
- s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s);
- s.tmp_1 = game_eventContext__P2527_mk(s);
- s.callLocIdx = 1218; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 15;
- s.tmp_0.arg2 = inline__P27606;
- s.callLocIdx = 1221; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 1276; s.pc = 1; return s.tmp_1;
case 1:
- case 2:
- r0 = pxsim_Array__push(globals.animations___4778, s.arg0);
- r0 = undefined;
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 4);
return leave(s, r0)
default: oops()
} } }
-animation_Animation__init__P2919.info = {"start":1454,"length":313,"line":56,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"_init","argumentNames":["this"]}
+tileworld_MapEditor_col__P75295.info = {"start":6571,"length":87,"line":181,"column":8,"endLine":183,"endColumn":9,"fileName":"editor.ts","functionName":"col","argumentNames":["this","current"]}
-function animation_Animation__init__P2919_mk(s) {
+function tileworld_MapEditor_col__P75295_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation__init__P2919, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_col__P75295, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P27606(s) {
+function tileworld_MapEditor_row__P75296(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45126,31 +42893,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = globals.animations___4778;
- s.tmp_0.arg1 = inline__P27609;
- s.callLocIdx = 1220; 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, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1277; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 4);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 4);
return leave(s, r0)
default: oops()
} } }
-inline__P27606.info = {"start":1618,"length":88,"line":59,"column":90,"endLine":61,"endColumn":17,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]}
+tileworld_MapEditor_row__P75296.info = {"start":6676,"length":96,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"editor.ts","functionName":"row","argumentNames":["this","current"]}
-function inline__P27606_mk(s) {
+function tileworld_MapEditor_row__P75296_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27606, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_row__P75296, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P27609(s) {
+function tileworld_MapEditor_moveDown__P75292(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45164,23 +42945,89 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = animation_Animation_update__P2920_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1219; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
+ 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_2 = tileworld_MapEditor_setCursor__P75288_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = 1;
+ s.callLocIdx = 1255; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ { step = 4; continue; }
case 1:
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1256; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 < 118);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_3 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4 = r0;
+ s.tmp_3.arg0 = r0;
+ s.tmp_6 = Sprite_y__P62019_mk(s);
+ s.tmp_6.arg0 = s.tmp_4;
+ s.callLocIdx = 1257; s.pc = 8; return s.tmp_6;
+ case 8:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 + 8);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 1258; s.pc = 7; return s.tmp_3;
+ case 7:
+ r0 = s.retval;
+ { step = 3; continue; }
+ case 2:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["offsetY"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_1);
+ case 3:
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ case 4:
+ s.tmp_0 = tileworld_MapEditor_cursorAction__P75294_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1259; s.pc = 10; return s.tmp_0;
+ case 10:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P27609.info = {"start":1665,"length":21,"line":60,"column":39,"endLine":60,"endColumn":60,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["anim"]}
+tileworld_MapEditor_moveDown__P75292.info = {"start":4569,"length":418,"line":129,"column":8,"endLine":140,"endColumn":9,"fileName":"editor.ts","functionName":"moveDown","argumentNames":["this"]}
-function inline__P27609_mk(s) {
+function tileworld_MapEditor_moveDown__P75292_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27609, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_moveDown__P75292, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -45188,7 +43035,7 @@ function inline__P27609_mk(s) {
-function animation_Animation_update__P2920(s) {
+function tileworld_MapEditor_moveUp__P75291(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45198,82 +43045,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.currentTime___27617 = undefined;
- s.dt___27620 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0);
- r0 = pxsim.control.millis();
- s.currentTime___27617 = (r0);
- r0 = s.arg0.fields["lastTime"];
- s.tmp_0 = r0;
- r0 = (s.currentTime___27617 - s.tmp_0);
- s.dt___27620 = (r0);
- r0 = s.arg0.fields["interval"];
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
s.tmp_1 = r0;
- r0 = (s.dt___27620 >= s.tmp_1);
+ r0 = (s.tmp_1 == 1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 1251; s.pc = 5; return s.tmp_4;
+ case 5:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 > 29);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_5 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_y__P62019_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 1252; s.pc = 7; return s.tmp_8;
+ case 7:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 8);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 1253; s.pc = 6; return s.tmp_5;
+ case 6:
+ r0 = s.retval;
{ step = 2; continue; }
case 1:
- r0 = s.arg0.fields["frames"];
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["offsetY"];
s.tmp_2 = r0;
- r0 = pxsim_Array__length(s.tmp_2);
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_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.tmp_4 = r0 = s.arg0;
- r0 = s.arg0.fields["index"];
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + 1);
- s.tmp_6 = r0;
- r0 = s.arg0.fields["frames"];
- s.tmp_9 = r0;
- r0 = pxsim_Array__length(s.tmp_9);
- s.tmp_8 = r0;
- r0 = (s.tmp_6 % s.tmp_8);
- s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["index"] = (s.tmp_5);
- r0 = (s.arg0).fields["lastTime"] = (s.currentTime___27617);
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
case 3:
case 4:
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = helpers_arrayFilter__P105_mk(s);
- r0 = s.arg0.fields["sprites"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = inline__P27652;
- s.callLocIdx = 1222; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P27663);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["sprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1226; s.pc = 6; return s.tmp_1;
- case 6:
+ s.tmp_0 = tileworld_MapEditor_cursorAction__P75294_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1254; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_Animation_update__P2920.info = {"start":1777,"length":790,"line":66,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"update","argumentNames":["this"]}
+tileworld_MapEditor_moveUp__P75291.info = {"start":4216,"length":343,"line":118,"column":8,"endLine":127,"endColumn":9,"fileName":"editor.ts","functionName":"moveUp","argumentNames":["this"]}
-function animation_Animation_update__P2920_mk(s) {
+function tileworld_MapEditor_moveUp__P75291_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation_update__P2920, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_moveUp__P75291, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -45284,9 +43127,6 @@ function animation_Animation_update__P2920_mk(s) {
tmp_6: undefined,
tmp_7: undefined,
tmp_8: undefined,
- tmp_9: undefined,
- currentTime___27617: undefined,
- dt___27620: undefined,
arg0: undefined,
} }
@@ -45294,7 +43134,7 @@ function animation_Animation_update__P2920_mk(s) {
-function inline__P27652(s) {
+function tileworld_MapEditor_moveRight__P75290(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45308,26 +43148,113 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["flags"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
+ 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; }
+ s.tmp_4 = tileworld_MapEditor_col__P75295_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1244; s.pc = 7; return s.tmp_4;
+ case 7:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 < 9);
s.tmp_2 = r0;
- r0 = (s.tmp_2 & 2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 1245; s.pc = 9; return s.tmp_8;
+ case 9:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + 16);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 1246; s.pc = 8; return s.tmp_5;
+ case 8:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ { step = 6; continue; }
+ case 3:
+ s.tmp_2 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1247; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ r0 = (s.tmp_1 < 152);
s.tmp_0 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_3 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4 = r0;
+ s.tmp_3.arg0 = r0;
+ s.tmp_6 = Sprite_x__P62017_mk(s);
+ s.tmp_6.arg0 = s.tmp_4;
+ s.callLocIdx = 1248; s.pc = 12; return s.tmp_6;
+ case 12:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 + 8);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 1249; s.pc = 11; return s.tmp_3;
+ case 11:
+ r0 = s.retval;
+ { step = 5; continue; }
+ case 4:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["offsetX"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1);
+ case 5:
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ case 6:
+ s.tmp_0 = tileworld_MapEditor_cursorAction__P75294_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1250; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P27652.info = {"start":2134,"length":50,"line":74,"column":47,"endLine":74,"endColumn":97,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]}
+tileworld_MapEditor_moveRight__P75290.info = {"start":3773,"length":433,"line":104,"column":8,"endLine":116,"endColumn":9,"fileName":"editor.ts","functionName":"moveRight","argumentNames":["this"]}
-function inline__P27652_mk(s) {
+function tileworld_MapEditor_moveRight__P75290_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27652, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_moveRight__P75290, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -45335,7 +43262,7 @@ function inline__P27652_mk(s) {
-function inline__P27663(s) {
+function tileworld_MapEditor_moveLeft__P75289(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45345,58 +43272,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.newImage___27670 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["_action"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = s.arg0.fields["cursorType"];
s.tmp_1 = r0;
- r0 = s.caps[0].fields["action"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 === s.tmp_2);
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- r0 = s.caps[0].fields["frames"];
+ s.tmp_4 = tileworld_MapEditor_col__P75295_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1237; s.pc = 7; return s.tmp_4;
+ case 7:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = s.caps[0].fields["index"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4);
- s.newImage___27670 = (r0);
- r0 = s.arg0.fields["_image"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 !== s.newImage___27670);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ r0 = (s.tmp_3 > 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 1; continue; }
- s.tmp_2 = Sprite_setImage__P2053_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.newImage___27670;
- s.callLocIdx = 1225; s.pc = 5; return s.tmp_2;
- case 5:
+ s.tmp_5 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_6 = r0;
+ s.tmp_5.arg0 = r0;
+ s.tmp_8 = Sprite_x__P62017_mk(s);
+ s.tmp_8.arg0 = s.tmp_6;
+ s.callLocIdx = 1238; s.pc = 9; return s.tmp_8;
+ case 9:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 - 16);
+ s.tmp_5.arg1 = r0;
+ s.callLocIdx = 1239; s.pc = 8; return s.tmp_5;
+ case 8:
r0 = s.retval;
case 1:
case 2:
+ { step = 6; continue; }
case 3:
+ s.tmp_2 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 1240; s.pc = 10; return s.tmp_2;
+ case 10:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 > 8);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_3 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_4 = r0;
+ s.tmp_3.arg0 = r0;
+ s.tmp_6 = Sprite_x__P62017_mk(s);
+ s.tmp_6.arg0 = s.tmp_4;
+ s.callLocIdx = 1241; s.pc = 12; return s.tmp_6;
+ case 12:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 - 8);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 1242; s.pc = 11; return s.tmp_3;
+ case 11:
+ r0 = s.retval;
+ { step = 5; continue; }
case 4:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.tmp_0.fields["offsetX"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1);
+ case 5:
+ s.tmp_0 = tileworld_MapEditor__C63816_v0_1_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C63816_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
+ s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ case 6:
+ s.tmp_0 = tileworld_MapEditor_cursorAction__P75294_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = true;
+ s.callLocIdx = 1243; s.pc = 14; return s.tmp_0;
+ case 14:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P27663.info = {"start":2221,"length":334,"line":76,"column":33,"endLine":84,"endColumn":13,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]}
+tileworld_MapEditor_moveLeft__P75289.info = {"start":3335,"length":428,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"editor.ts","functionName":"moveLeft","argumentNames":["this"]}
-function inline__P27663_mk(s) {
+function tileworld_MapEditor_moveLeft__P75289_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27663, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_moveLeft__P75289, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- newImage___27670: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
arg0: undefined,
} }
@@ -45404,7 +43390,7 @@ function inline__P27663_mk(s) {
-function animation_Animation_getImage__P2921(s) {
+function tileworld_MapEditor_update__P63818(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45414,29 +43400,281 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.index___77002 = undefined;
+ s.backs___77025 = undefined;
+ s.x___77029 = undefined;
+ s.y___77039 = undefined;
+ s.inRange___77049 = undefined;
+ s.col___77067 = undefined;
+ s.row___77072 = undefined;
+ s.nx___77077 = undefined;
+ s.ny___77081 = undefined;
+ s.index___77087 = undefined;
+ s.img___77096 = undefined;
+ s.index___77114 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0);
- r0 = s.arg0.fields["frames"];
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 4;
+ s.tmp_0.arg3 = 16;
+ s.tmp_0.arg4 = 16;
+ s.tmp_0.arg5 = 11;
+ s.callLocIdx = 1278; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_MapEditor_drawImage__P75297_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.map___63709;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 1279; s.pc = 22; return s.tmp_0;
+ case 22:
+ r0 = s.retval;
+ r0 = pxsim_pxtrt.mklocRef();
+ s.index___77002 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.index___77002, 1);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P77007);
s.tmp_0 = r0;
- r0 = s.arg0.fields["index"];
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___77002);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_backgroundsI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1282; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(2, inline__P77018);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___77002);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["_spritesI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 1285; s.pc = 24; return s.tmp_1;
+ case 24:
+ r0 = s.retval;
+ r0 = s.arg0.fields["p"];
+ s.tmp_0 = r0;
+ r0 = s.tmp_0.fields["_backgrounds"];
+ s.backs___77025 = (r0);
+ r0 = s.arg0.fields["offsetX"];
+ s.x___77029 = (r0);
+ case 1:
+ s.tmp_1 = r0 = s.x___77029;
+ r0 = s.arg0.fields["offsetX"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 20);
+ 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; }
+ r0 = s.arg0.fields["offsetY"];
+ s.y___77039 = (r0);
+ case 2:
+ s.tmp_1 = r0 = s.y___77039;
+ r0 = s.arg0.fields["offsetY"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 15);
+ 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 = 19; continue; }
+ r0 = (0 <= s.x___77029);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_4;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_5 = r0 = s.x___77029;
+ r0 = pxsim_ImageMethods.width(s.backs___77025);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 < s.tmp_6);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_7;
+ { step = 6; continue; }
+ case 5:
+ r0 = (0 <= s.y___77039);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_8);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_8;
+ { step = 8; continue; }
+ case 7:
+ s.tmp_9 = r0 = s.y___77039;
+ r0 = pxsim_ImageMethods.height(s.backs___77025);
+ s.tmp_10 = r0;
+ r0 = (s.tmp_9 < s.tmp_10);
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ s.inRange___77049 = (s.tmp_11);
+ r0 = s.arg0.fields["offsetX"];
+ s.tmp_0 = r0;
+ r0 = (s.x___77029 - s.tmp_0);
+ s.col___77067 = (r0);
+ r0 = s.arg0.fields["offsetY"];
+ s.tmp_0 = r0;
+ r0 = (s.y___77039 - s.tmp_0);
+ s.row___77072 = (r0);
+ r0 = (s.col___77067 * 8);
+ s.nx___77077 = (r0);
+ r0 = (s.row___77072 * 8);
+ s.tmp_0 = r0;
+ r0 = (20 + s.tmp_0);
+ s.ny___77081 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.inRange___77049);
+ if (!r0) { step = 9; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.backs___77025, s.x___77029, s.y___77039);
+ { step = 10; continue; }
+ case 9:
+ r0 = -1;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ s.index___77087 = (s.tmp_0);
+ r0 = (s.index___77087 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ r0 = globals.emptyTile___63718;
+ { step = 14; continue; }
+ case 11:
+ r0 = (s.index___77087 == 15);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 12; continue; }
+ r0 = globals.emptyDiagTile___63719;
+ { step = 13; continue; }
+ case 12:
+ s.tmp_2 = tileworld_Project_getBackgroundImage__P63693_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.index___77087;
+ s.callLocIdx = 1287; s.pc = 25; return s.tmp_2;
+ case 25:
+ r0 = s.retval;
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.img___77096 = (s.tmp_4);
+ s.tmp_0 = tileworld_drawHalfSize__P63538_mk(s);
+ s.tmp_0.arg0 = s.img___77096;
+ s.tmp_0.arg1 = s.nx___77077;
+ s.tmp_0.arg2 = s.ny___77081;
+ s.tmp_0.arg3 = false;
+ s.callLocIdx = 1288; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.inRange___77049);
+ if (!r0) { step = 17; continue; }
+ r0 = s.arg0.fields["p"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_sprites"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.x___77029, s.y___77039);
+ s.index___77114 = (r0);
+ r0 = (s.index___77114 != 15);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 15; continue; }
+ s.tmp_1 = tileworld_drawHalfSize__P63538_mk(s);
+ s.tmp_2 = tileworld_Project_getSpriteImage__P63694_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.index___77114;
+ s.callLocIdx = 1290; s.pc = 28; return s.tmp_2;
+ case 28:
+ r0 = s.retval;
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.nx___77077;
+ s.tmp_1.arg2 = s.ny___77081;
+ s.tmp_1.arg3 = true;
+ s.callLocIdx = 1291; s.pc = 27; return s.tmp_1;
+ case 27:
+ r0 = s.retval;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ r0 = (s.y___77039 + 1);
+ s.y___77039 = (r0);
+ { step = 2; continue; }
+ case 19:
+ r0 = (s.x___77029 + 1);
+ s.x___77029 = (r0);
+ { step = 1; continue; }
+ case 20:
+ s.tmp_0 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = 20;
+ s.tmp_0.arg3 = 159;
+ s.tmp_0.arg4 = 20;
+ s.tmp_0.arg5 = 11;
+ s.callLocIdx = 1292; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-animation_Animation_getImage__P2921.info = {"start":2577,"length":66,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"getImage","argumentNames":["this"]}
+tileworld_MapEditor_update__P63818.info = {"start":6932,"length":1668,"line":193,"column":8,"endLine":229,"endColumn":9,"fileName":"editor.ts","functionName":"update","argumentNames":["this"]}
-function animation_Animation_getImage__P2921_mk(s) {
+function tileworld_MapEditor_update__P63818_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: animation_Animation_getImage__P2921, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_update__P63818, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ index___77002: undefined,
+ backs___77025: undefined,
+ x___77029: undefined,
+ y___77039: undefined,
+ inRange___77049: undefined,
+ col___77067: undefined,
+ row___77072: undefined,
+ nx___77077: undefined,
+ ny___77081: undefined,
+ index___77087: undefined,
+ img___77096: undefined,
+ index___77114: undefined,
arg0: undefined,
} }
@@ -45444,7 +43682,7 @@ function animation_Animation_getImage__P2921_mk(s) {
-function tileworld_BackgroundBase_constructor__P3783(s) {
+function inline__P77007(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45458,29 +43696,35 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_BackgroundBase__C3782_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P12682);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = game_onPaint__P2538_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 634; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = tileworld_MapEditor_drawImage__P75297_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 1281; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = r0 = s.caps[1];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_BackgroundBase_constructor__P3783.info = {"start":93,"length":110,"line":5,"column":8,"endLine":9,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this"]}
+inline__P77007.info = {"start":7140,"length":96,"line":198,"column":46,"endLine":201,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]}
-function tileworld_BackgroundBase_constructor__P3783_mk(s) {
+function inline__P77007_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_BackgroundBase_constructor__P3783, depth: s.depth + 1,
+ parent: s, fn: inline__P77007, 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,
} }
@@ -45488,7 +43732,7 @@ function tileworld_BackgroundBase_constructor__P3783_mk(s) {
-function inline__P12682(s) {
+function inline__P77018(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45498,38 +43742,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = if_update_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, "update"), 1);
- s.callLocIdx = 633; s.pc = 1; return s.tmp_0;
- } else {
- s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["update"];
- if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["update"], 1); s.callLocIdx = 633; s.pc = 1; return s.tmp_0; }
- else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 633; s.pc = 1; return s.tmp_0;; }
- else { s.callLocIdx = 633; s.pc = 1; return s.tmp_0; }
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
}
+ s.tmp_0 = tileworld_MapEditor_drawImage__P75297_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_0.arg2 = r0;
+ s.tmp_0.arg3 = 0;
+ s.callLocIdx = 1284; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = r0 = s.caps[1];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12682.info = {"start":134,"length":58,"line":6,"column":25,"endLine":8,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
+inline__P77018.info = {"start":7281,"length":94,"line":202,"column":42,"endLine":205,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]}
-function inline__P12682_mk(s) {
+function inline__P77018_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12682, depth: s.depth + 1,
+ parent: s, fn: inline__P77018, 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_onPaint__P2538(s) {
+function tileworld_drawHalfSize__P63538(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45539,54 +43792,149 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___66130 = undefined;
+ s.j___66136 = undefined;
+ s.i___66168 = undefined;
+ s.j___66174 = undefined;
+ s.pix___66180 = 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 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = undefined;
- s.callLocIdx = 896; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg0);
+ r0 = pxsim_numops_toBoolDecr(s.arg3);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_2 = scene_createRenderable__P2375_mk(s);
- s.tmp_2.arg0 = -20;
- s.tmp_2.arg1 = s.arg0;
- s.tmp_2.arg2 = undefined;
- s.callLocIdx = 897; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
+ if (!r0) { step = 5; continue; }
+ s.i___66130 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___66130;
+ 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 = 4; continue; }
+ s.j___66136 = (0);
+ case 2:
+ s.tmp_1 = r0 = s.j___66136;
+ 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 = 3; continue; }
+ s.tmp_3 = r0 = globals.screen___61794;
+ s.tmp_5 = r0 = s.arg1;
+ r0 = (s.i___66130 >> 1);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 + s.tmp_6);
+ s.tmp_4 = r0;
+ s.tmp_8 = r0 = s.arg2;
+ r0 = (s.j___66136 >> 1);
+ s.tmp_9 = r0;
+ r0 = (s.tmp_8 + s.tmp_9);
+ s.tmp_7 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___66130, s.j___66136);
+ s.tmp_10 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_7, s.tmp_10);
+ r0 = (s.j___66136 + 2);
+ s.j___66136 = (r0);
+ { step = 2; continue; }
case 3:
+ r0 = (s.i___66130 + 2);
+ s.i___66130 = (r0);
+ { step = 1; continue; }
+ case 4:
+ { step = 12; continue; }
+ case 5:
+ s.i___66168 = (0);
+ case 6:
+ s.tmp_1 = r0 = s.i___66168;
+ 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 = 11; continue; }
+ s.j___66174 = (0);
+ case 7:
+ s.tmp_1 = r0 = s.j___66174;
+ 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 = 10; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___66168, s.j___66174);
+ s.pix___66180 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.pix___66180);
+ if (!r0) { step = 8; continue; }
+ s.tmp_0 = r0 = globals.screen___61794;
+ s.tmp_2 = r0 = s.arg1;
+ r0 = (s.i___66168 >> 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
+ s.tmp_1 = r0;
+ s.tmp_5 = r0 = s.arg2;
+ r0 = (s.j___66174 >> 1);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 + s.tmp_6);
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_4, s.pix___66180);
+ case 8:
+ case 9:
+ r0 = (s.j___66174 + 2);
+ s.j___66174 = (r0);
+ { step = 7; continue; }
+ case 10:
+ r0 = (s.i___66168 + 2);
+ s.i___66168 = (r0);
+ { step = 6; continue; }
+ case 11:
+ case 12:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_onPaint__P2538.info = {"start":9621,"length":145,"line":308,"column":4,"endLine":312,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onPaint","argumentNames":["a"]}
+tileworld_drawHalfSize__P63538.info = {"start":1653,"length":691,"line":50,"column":4,"endLine":66,"endColumn":5,"fileName":"utilities.ts","functionName":"drawHalfSize","argumentNames":["img","nx","ny","transparent"]}
-function game_onPaint__P2538_mk(s) {
+function tileworld_drawHalfSize__P63538_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_onPaint__P2538, depth: s.depth + 1,
+ parent: s, fn: tileworld_drawHalfSize__P63538, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ i___66130: undefined,
+ j___66136: undefined,
+ i___66168: undefined,
+ j___66174: undefined,
+ pix___66180: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function scene_createRenderable__P2375(s) {
+function tileworld_MapEditor_drawImage__P75297(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45596,60 +43944,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.renderable___21253 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C2370_VT);
- s.tmp_0 = r0;
- s.tmp_1 = r0 = s.arg2;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_1;
- { step = 2; continue; }
- case 1:
- r0 = inline__P21259;
- case 2:
- // jmp value (already in r0)
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_0 = r0 = globals.screen___61794;
+ s.tmp_1 = r0 = s.arg1;
+ r0 = (s.arg2 << 4);
s.tmp_2 = r0;
- s.tmp_3 = scene_Renderable_constructor__P2371_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 = 813; s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
- s.renderable___21253 = (s.tmp_0);
- r0 = s.renderable___21253;
+ r0 = (s.arg3 << 4);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 + 4);
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_createRenderable__P2375.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"]}
+tileworld_MapEditor_drawImage__P75297.info = {"start":6782,"length":140,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"editor.ts","functionName":"drawImage","argumentNames":["this","img","col","row"]}
-function scene_createRenderable__P2375_mk(s) {
+function tileworld_MapEditor_drawImage__P75297_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_createRenderable__P2375, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_drawImage__P75297, depth: s.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___21253: undefined,
+ tmp_4: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function inline__P21259(s) {
+function tileworld_MapEditor_setCursor__P75288(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45659,24 +43998,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = true;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ r0 = (s.arg1 != 0);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1235; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ r0 = (s.arg1 != 1);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 1236; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["cursorType"] = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P21259.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]}
+tileworld_MapEditor_setCursor__P75288.info = {"start":3086,"length":239,"line":84,"column":8,"endLine":88,"endColumn":9,"fileName":"editor.ts","functionName":"setCursor","argumentNames":["this","ct"]}
-function inline__P21259_mk(s) {
+function tileworld_MapEditor_setCursor__P75288_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P21259, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_setCursor__P75288, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function scene_Renderable_constructor__P2371(s) {
+function tileworld_MapEditor_paintHome__P75287(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45688,44 +44056,46 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0);
- r0 = (s.arg0).fields["handler"] = (s.arg1);
- r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2);
- s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg3;
- s.callLocIdx = 810; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_MapEditor__C63816_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1233; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["paintCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 24;
+ s.callLocIdx = 1234; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["offsetY"] = (-3);
+ r0 = (s.arg0).fields["offsetX"] = (-3);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_Renderable_constructor__P2371.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"]}
+tileworld_MapEditor_paintHome__P75287.info = {"start":2918,"length":158,"line":78,"column":8,"endLine":82,"endColumn":9,"fileName":"editor.ts","functionName":"paintHome","argumentNames":["this"]}
-function scene_Renderable_constructor__P2371_mk(s) {
+function tileworld_MapEditor_paintHome__P75287_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Renderable_constructor__P2371, depth: s.depth + 1,
+ parent: s, fn: tileworld_MapEditor_paintHome__P75287, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_MapEditor_constructor__P3820(s) {
+function tileworld_RunGame_start__P63773(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45735,241 +44105,168 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.signal___71572 = undefined;
+ s.halfway___71593 = undefined;
+ s.playerId___71594 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1197; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = (s.arg0).fields["aDown"] = (false);
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorOut___3724;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 1198; s.pc = 2; return s.tmp_2;
- case 2:
- r0 = s.retval;
+ r0 = pxsim_Array__mk();
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["selected"] = (s.tmp_1);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["selected"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 24;
- s.callLocIdx = 1199; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["selected"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 12;
- s.callLocIdx = 1200; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = (s.arg0).fields["userSpriteIndex"] = (0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorIn___3723;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 1201; s.pc = 5; return s.tmp_2;
+ r0 = (s.tmp_0).fields["currentDirection"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C69364_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_TileSprite_constructor__P69371_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = globals.cursorIn___63720;
+ s.tmp_1.arg2 = 0;
+ s.tmp_1.arg3 = false;
+ s.callLocIdx = 479; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 8;
- s.callLocIdx = 1202; s.pc = 6; return s.tmp_0;
+ s.signal___71572 = (s.tmp_0);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ s.tmp_0.arg0 = s.signal___71572;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 480; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 12;
- s.callLocIdx = 1203; s.pc = 7; return s.tmp_0;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ s.tmp_0.arg0 = s.signal___71572;
+ s.tmp_0.arg1 = 8;
+ s.callLocIdx = 481; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.cursorOut___3724;
- s.callLocIdx = 1204; s.pc = 8; return s.tmp_0;
+ s.tmp_1 = Sprite_x__P62018_mk(s);
+ s.tmp_1.arg0 = s.signal___71572;
+ s.tmp_1.arg1 = 8;
+ s.callLocIdx = 482; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.paintOut___16557;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 1205; s.pc = 9; return s.tmp_2;
+ r0 = (s.signal___71572).fields["dir"] = (2);
+ r0 = (s.signal___71572).fields["inst"] = (-1);
+ r0 = (s.arg0).fields["signal"] = (s.signal___71572);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.halfway___71593 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.halfway___71593, false);
+ r0 = s.arg0.fields["p"];
+ s.tmp_0 = r0;
+ r0 = s.tmp_0.fields["_player"];
+ s.playerId___71594 = (r0);
+ r0 = (s.playerId___71594 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["sprites"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.playerId___71594);
+ 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 = scene_cameraFollowSprite__P62453_mk(s);
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["sprites"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.playerId___71594);
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, 0);
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 484; s.pc = 9; return s.tmp_3;
case 9:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1);
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["paintCursor"];
+ case 3:
+ case 4:
+ s.tmp_0 = tileworld_TileWorldVM_setState__P69564_mk(s);
+ r0 = s.arg0.fields["vm"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.paintIn___16560;
- s.callLocIdx = 1206; s.pc = 10; return s.tmp_0;
+ r0 = s.arg0.fields["state"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 485; s.pc = 10; return s.tmp_0;
case 10:
r0 = s.retval;
- s.tmp_0 = tileworld_MapEditor_paintHome__P15295_mk(s);
+ s.tmp_0 = tileworld_RunGame_roundToCompletion__P71376_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1207; s.pc = 11; return s.tmp_0;
+ r0 = pxsim_Array__mk();
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 486; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
- s.tmp_0 = tileworld_MapEditor_setCursor__P15296_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1208; s.pc = 12; return s.tmp_0;
+ r0 = (s.arg0).fields["running"] = (true);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P71624);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.halfway___71593);
+ s.tmp_1 = game_onUpdate__P62532_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 498; s.pc = 12; return s.tmp_1;
case 12:
r0 = s.retval;
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 13; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71720);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = game_onShade__P62536_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 501; s.pc = 13; return s.tmp_1;
case 13:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16626);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71750);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1210; s.pc = 14; return s.tmp_1;
+ s.tmp_1 = game_onPaint__P62535_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 502; s.pc = 14; return s.tmp_1;
case 14:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16631);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1212; s.pc = 15; return s.tmp_1;
+ s.tmp_0 = tileworld_RunGame_registerController__P71378_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 503; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16636);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1214; s.pc = 16; return s.tmp_1;
+ s.tmp_0 = Sprite_vx__P62022_mk(s);
+ s.tmp_0.arg0 = s.signal___71572;
+ s.tmp_0.arg1 = 100;
+ s.callLocIdx = 504; s.pc = 16; return s.tmp_0;
case 16:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16641);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1216; s.pc = 17; return s.tmp_1;
- case 17:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16646);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1218; s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16651);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1220; s.pc = 19; return s.tmp_1;
- case 19:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16656);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1222; s.pc = 20; return s.tmp_1;
- case 20:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16661);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1224; s.pc = 21; return s.tmp_1;
- case 21:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16666);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1226; s.pc = 22; return s.tmp_1;
- case 22:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16673);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1227; s.pc = 23; return s.tmp_1;
- case 23:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P16679);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1231; s.pc = 24; return s.tmp_1;
- case 24:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_constructor__P3820.info = {"start":956,"length":1952,"line":37,"column":8,"endLine":76,"endColumn":9,"fileName":"editor.ts","functionName":"inline","argumentNames":["this","p"]}
+tileworld_RunGame_start__P63773.info = {"start":33459,"length":2735,"line":752,"column":8,"endLine":821,"endColumn":9,"fileName":"vm.ts","functionName":"start","argumentNames":["this"]}
-function tileworld_MapEditor_constructor__P3820_mk(s) {
+function tileworld_RunGame_start__P63773_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_constructor__P3820, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_start__P63773, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ signal___71572: undefined,
+ halfway___71593: undefined,
+ playerId___71594: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P16626(s) {
+function inline__P71624(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -45979,129 +44276,227 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_MapEditor_moveLeft__P15297_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1209; s.pc = 1; return s.tmp_0;
+ s.message___71639 = undefined;
+ r0 = s.caps[0].fields["running"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 17; continue; }
case 1:
+ case 2:
+ s.tmp_5 = Sprite_x__P62017_mk(s);
+ r0 = s.caps[0].fields["signal"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 487; s.pc = 18; return s.tmp_5;
+ case 18:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16626.info = {"start":1706,"length":21,"line":58,"column":67,"endLine":58,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16626_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16626, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16631(s) {
-let r0 = s.r0, 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 = tileworld_MapEditor_moveLeft__P15297_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1211; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 >= 23);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 9; continue; }
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["game"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 != 0);
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 7; continue; }
+ r0 = (s.caps[0]).fields["running"] = (false);
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["game"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = "You won!";
+ { step = 4; continue; }
+ case 3:
+ r0 = pxsim_String_.mkEmpty();
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.message___71639 = (s.tmp_2);
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["highScore"];
+ s.tmp_1 = r0;
+ r0 = s.caps[0].fields["p"];
+ r0 = r0.fields["highScore"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 > s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_3 = tileworld_Project_newHighScore__P63702_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["highScore"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 488; s.pc = 19; return s.tmp_3;
+ case 19:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16631.info = {"start":1798,"length":21,"line":59,"column":68,"endLine":59,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16631_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16631, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16636(s) {
-let r0 = s.r0, 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 = tileworld_MapEditor_moveRight__P15298_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1213; s.pc = 1; return s.tmp_0;
- case 1:
+ if ((s.message___71639) && (s.message___71639).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.message___71639);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.message___71639) + ""; }
+ case 20:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16636.info = {"start":1890,"length":22,"line":60,"column":68,"endLine":60,"endColumn":90,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16636_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16636, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16641(s) {
-let r0 = s.r0, 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 = tileworld_MapEditor_moveRight__P15298_mk(s);
+ s.tmp_0 = r0;
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["highScore"];
+ s.tmp_5 = r0;
+ r0 = pxsim_numops.toString(s.tmp_5);
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 21);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 21:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat(" New High = ", s.tmp_3);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.message___71639 = (r0);
+ case 5:
+ case 6:
+ s.tmp_0 = game_showDialog__P62527_mk(s);
+ s.tmp_0.arg0 = "Game Over";
+ s.tmp_0.arg1 = s.message___71639;
+ s.tmp_0.arg2 = undefined;
+ s.callLocIdx = 489; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = pause__P60394_mk(s);
+ s.tmp_0.arg0 = 500;
+ s.callLocIdx = 490; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.tmp_0 = game_waitAnyButton__P62523_mk(s);
+ s.callLocIdx = 491; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ { step = 17; continue; }
+ case 7:
+ case 8:
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.caps[0].fields["signal"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 8;
+ s.callLocIdx = 492; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RunGame_roundToCompletion__P71376_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1215; s.pc = 1; return s.tmp_0;
- case 1:
+ r0 = s.caps[0].fields["currentDirection"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 493; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ r0 = pxsim_pxtrt_stlocRef(s.caps[1], false);
+ s.tmp_0 = r0 = s.caps[0];
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["currentDirection"] = (s.tmp_1);
+ { step = 16; continue; }
+ case 9:
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[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_toBool(s.tmp_0);
+ if (r0) { step = 10; continue; }
+ r0 = s.tmp_0;
+ { step = 11; continue; }
+ case 10:
+ s.tmp_4 = Sprite_x__P62017_mk(s);
+ r0 = s.caps[0].fields["signal"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 494; s.pc = 28; return s.tmp_4;
+ case 28:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >= 16);
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 14; continue; }
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["game"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == 0);
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 12; continue; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71703);
+ s.tmp_8 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_8, 0, s.caps[0]);
+ s.tmp_9 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["deadSprites"];
+ s.tmp_9.arg0 = r0;
+ s.tmp_9.arg1 = s.tmp_8;
+ s.callLocIdx = 497; s.pc = 29; return s.tmp_9;
+ case 29:
r0 = s.retval;
+ case 12:
+ case 13:
+ r0 = pxsim_pxtrt_stlocRef(s.caps[1], true);
+ case 14:
+ case 15:
+ case 16:
+ case 17:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P16641.info = {"start":1984,"length":22,"line":61,"column":69,"endLine":61,"endColumn":91,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+inline__P71624.info = {"start":34190,"length":1507,"line":773,"column":26,"endLine":804,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function inline__P16641_mk(s) {
+function inline__P71624_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16641, depth: s.depth + 1,
+ parent: s, fn: inline__P71624, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ message___71639: undefined,
} }
-function inline__P16646(s) {
+function inline__P71703(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46111,30 +44506,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_MapEditor_moveUp__P15299_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1217; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["sprites"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
+ s.tmp_0 = Sprite_destroy__P62079_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = undefined;
+ s.tmp_0.arg2 = undefined;
+ s.callLocIdx = 496; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P16646.info = {"start":2074,"length":19,"line":62,"column":65,"endLine":62,"endColumn":84,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+inline__P71703.info = {"start":35453,"length":152,"line":797,"column":55,"endLine":800,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P16646_mk(s) {
+function inline__P71703_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16646, depth: s.depth + 1,
+ parent: s, fn: inline__P71703, 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 inline__P16651(s) {
+function inline__P71720(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46144,159 +44556,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_MapEditor_moveUp__P15299_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1219; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["score"];
+ s.tmp_3 = r0;
+ r0 = pxsim_numops.toString(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 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16651.info = {"start":2162,"length":19,"line":63,"column":66,"endLine":63,"endColumn":85,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16651_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16651, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16656(s) {
-let r0 = s.r0, 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 = tileworld_MapEditor_moveDown__P15300_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1221; s.pc = 1; return s.tmp_0;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat("Score: ", s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = 0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 499; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16656.info = {"start":2251,"length":21,"line":64,"column":67,"endLine":64,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16656_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16656, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16661(s) {
-let r0 = s.r0, 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 = tileworld_MapEditor_moveDown__P15300_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 1223; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["highScore"];
+ s.tmp_3 = r0;
+ r0 = pxsim_numops.toString(s.tmp_3);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 4:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16661.info = {"start":2343,"length":21,"line":65,"column":68,"endLine":65,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16661_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16661, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P16666(s) {
-let r0 = s.r0, 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["aDown"] = (true);
- s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = false;
- s.callLocIdx = 1225; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat("High:", s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 80;
+ s.tmp_0.arg3 = 0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 500; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P16666.info = {"start":2431,"length":49,"line":66,"column":64,"endLine":66,"endColumn":113,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+inline__P71720.info = {"start":35738,"length":174,"line":806,"column":25,"endLine":809,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function inline__P16666_mk(s) {
+function inline__P71720_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16666, depth: s.depth + 1,
+ parent: s, fn: inline__P71720, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
} }
-function inline__P16673(s) {
-let r0 = s.r0, 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["aDown"] = (false);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P16673.info = {"start":2548,"length":29,"line":67,"column":65,"endLine":67,"endColumn":94,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P16673_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P16673, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
-} }
-
-
-
-
-
-function inline__P16679(s) {
+function inline__P71750(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46306,52 +44639,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ r0 = s.caps[0].fields["debug"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_2 = tileworld_Project_saveWorld__P3703_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1228; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1229; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- { step = 2; continue; }
+ r0 = pxsim_ImageMethods.drawImage(globals.screen___61794, globals.debug___63711, 0, 0);
case 1:
- s.tmp_0 = tileworld_MapEditor_setCursor__P15296_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1230; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P16679.info = {"start":2644,"length":252,"line":68,"column":64,"endLine":75,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":[]}
+inline__P71750.info = {"start":35940,"length":173,"line":811,"column":25,"endLine":817,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function inline__P16679_mk(s) {
+function inline__P71750_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P16679, depth: s.depth + 1,
+ parent: s, fn: inline__P71750, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
} }
-function tileworld_Project_saveWorld__P3703(s) {
+function tileworld_RunGame_registerController__P71378(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46361,99 +44674,151 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.worldBuf___8307 = undefined;
- s.spritesBuf___8321 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s);
- r0 = s.arg0.fields["_backgrounds"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 187; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
+ s.tmp_0 = controller_setRepeatDefault__P61908_mk(s);
+ s.tmp_0.arg0 = 200;
+ s.tmp_0.arg1 = 80;
+ s.callLocIdx = 505; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.worldBuf___8307 = (r0);
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 3);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71767);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 507; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71774);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 509; s.pc = 3; return s.tmp_1;
case 3:
r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.WorldBackgroundsKey___8317) && (globals.WorldBackgroundsKey___8317).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(globals.WorldBackgroundsKey___8317);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.WorldBackgroundsKey___8317) + ""; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71780);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 511; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.worldBuf___8307;
- s.callLocIdx = 188; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s);
- r0 = s.arg0.fields["_sprites"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 189; s.pc = 5; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71786);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 513; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- s.spritesBuf___8321 = (r0);
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- r0 = s.arg0.fields["prefix"];
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71792);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 515; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71798);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 517; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.WorldSpritesKey___8331) && (globals.WorldSpritesKey___8331).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(globals.WorldSpritesKey___8331);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.WorldSpritesKey___8331) + ""; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71804);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 519; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.spritesBuf___8321;
- s.callLocIdx = 190; s.pc = 6; return s.tmp_0;
- case 6:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71810);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 521; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71816);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 523; s.pc = 10; return s.tmp_1;
+ case 10:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71822);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 525; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71828);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 527; s.pc = 12; return s.tmp_1;
+ case 12:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71834);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 531; s.pc = 13; return s.tmp_1;
+ case 13:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_saveWorld__P3703.info = {"start":5080,"length":306,"line":146,"column":8,"endLine":151,"endColumn":9,"fileName":"project.ts","functionName":"saveWorld","argumentNames":["this"]}
+tileworld_RunGame_registerController__P71378.info = {"start":36286,"length":1999,"line":828,"column":8,"endLine":871,"endColumn":9,"fileName":"vm.ts","functionName":"registerController","argumentNames":["this"]}
-function tileworld_Project_saveWorld__P3703_mk(s) {
+function tileworld_RunGame_registerController__P71378_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_saveWorld__P3703, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_registerController__P71378, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- worldBuf___8307: undefined,
- spritesBuf___8321: undefined,
arg0: undefined,
} }
@@ -46461,7 +44826,7 @@ function tileworld_Project_saveWorld__P3703_mk(s) {
-function tileworld_MapEditor_cursorAction__P15302(s) {
+function inline__P71767(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46471,251 +44836,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___16872 = undefined;
- s.row___16881 = undefined;
- s.backs___16895 = undefined;
- s.sprs___16920 = undefined;
- s.spriteIndex___16924 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = s.arg0.fields["aDown"];
- 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 = 19; continue; }
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 506; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- r0 = s.arg0.fields["cursorType"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4 == 1);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 9; continue; }
- s.tmp_7 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_7.arg0 = r0;
- s.callLocIdx = 1263; s.pc = 20; return s.tmp_7;
- case 20:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 >> 3);
- s.tmp_5 = r0;
- r0 = s.arg0.fields["offsetX"];
- s.tmp_8 = r0;
- r0 = (s.tmp_5 + s.tmp_8);
- s.col___16872 = (r0);
- s.tmp_3 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 1264; s.pc = 21; return s.tmp_3;
- case 21:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 24);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >> 3);
- s.tmp_0 = r0;
- r0 = s.arg0.fields["offsetY"];
- s.tmp_4 = r0;
- r0 = (s.tmp_0 + s.tmp_4);
- s.row___16881 = (r0);
- r0 = s.arg0.fields["p"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["_backgrounds"];
- s.backs___16895 = (r0);
- r0 = s.arg0.fields["userSpriteIndex"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 15);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_ImageMethods.setPixel(s.backs___16895, s.col___16872, s.row___16881, 15);
- { step = 8; continue; }
- case 3:
- r0 = s.arg0.fields["userSpriteIndex"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- 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 = s.arg0.fields["userSpriteIndex"];
- s.tmp_5 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.backs___16895, s.col___16872, s.row___16881, s.tmp_5);
- { step = 7; continue; }
- case 4:
- r0 = s.arg0.fields["p"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["_sprites"];
- s.sprs___16920 = (r0);
- r0 = s.arg0.fields["userSpriteIndex"];
- s.tmp_0 = r0;
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_backgroundsI"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
- s.tmp_1 = r0;
- r0 = (s.tmp_0 - s.tmp_1);
- s.spriteIndex___16924 = (r0);
- r0 = pxsim_ImageMethods.getPixel(s.sprs___16920, s.col___16872, s.row___16881);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.spriteIndex___16924);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_ImageMethods.setPixel(s.sprs___16920, s.col___16872, s.row___16881, 15);
- { step = 6; continue; }
- case 5:
- r0 = pxsim_ImageMethods.setPixel(s.sprs___16920, s.col___16872, s.row___16881, s.spriteIndex___16924);
- case 6:
- case 7:
- case 8:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- { step = 19; continue; }
- case 9:
- case 10:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 11; continue; }
- { step = 19; continue; }
- case 11:
- case 12:
- s.tmp_2 = tileworld_MapEditor_row__P15304_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1269; s.pc = 23; return s.tmp_2;
- case 23:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- s.tmp_5 = tileworld_MapEditor_col__P15303_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = true;
- s.callLocIdx = 1270; s.pc = 24; return s.tmp_5;
- case 24:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (1 <= s.tmp_4);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_3;
- { step = 14; continue; }
- case 13:
- s.tmp_7 = tileworld_MapEditor_col__P15303_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = true;
- s.callLocIdx = 1271; s.pc = 25; return s.tmp_7;
- case 25:
- r0 = s.retval;
- s.tmp_6 = r0;
- s.tmp_10 = tileworld_Project_allCnt__P3693_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_10.arg0 = r0;
- s.callLocIdx = 1272; s.pc = 26; return s.tmp_10;
- case 26:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (1 + s.tmp_9);
- s.tmp_8 = r0;
- r0 = (s.tmp_6 < s.tmp_8);
- case 14:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_11);
- if (!r0) { step = 15; continue; }
- s.tmp_12 = r0 = s.arg0;
- s.tmp_15 = tileworld_MapEditor_col__P15303_mk(s);
- s.tmp_15.arg0 = s.arg0;
- s.tmp_15.arg1 = true;
- s.callLocIdx = 1273; s.pc = 27; return s.tmp_15;
- case 27:
- r0 = s.retval;
- s.tmp_14 = r0;
- r0 = (s.tmp_14 - 1);
- s.tmp_13 = r0;
- r0 = (s.tmp_12).fields["userSpriteIndex"] = (s.tmp_13);
- s.tmp_0 = tileworld_MapEditor_updateSelection__P15301_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1274; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- case 15:
- case 16:
- case 17:
- case 18:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 29; return s.tmp_0;
- case 29:
r0 = s.retval;
- case 19:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_cursorAction__P15302.info = {"start":5134,"length":1427,"line":147,"column":8,"endLine":179,"endColumn":9,"fileName":"editor.ts","functionName":"cursorAction","argumentNames":["this","repeated"]}
+inline__P71767.info = {"start":36434,"length":74,"line":830,"column":67,"endLine":832,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_cursorAction__P15302_mk(s) {
+function inline__P71767_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_cursorAction__P15302, depth: s.depth + 1,
+ parent: s, fn: inline__P71767, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- col___16872: undefined,
- row___16881: undefined,
- backs___16895: undefined,
- sprs___16920: undefined,
- spriteIndex___16924: undefined,
- arg0: undefined,
- arg1: undefined,
+ tmp_0: undefined,
} }
-function tileworld_MapEditor_updateSelection__P15301(s) {
+function inline__P71774(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46725,59 +44870,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["selected"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 1259; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1260; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 508; s.pc = 1; return s.tmp_0;
case 1:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["selected"];
- s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 1261; s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1262; s.pc = 3; return s.tmp_0;
- case 3:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_updateSelection__P15301.info = {"start":4997,"length":127,"line":142,"column":8,"endLine":145,"endColumn":9,"fileName":"editor.ts","functionName":"updateSelection","argumentNames":["this"]}
+inline__P71774.info = {"start":36578,"length":74,"line":833,"column":68,"endLine":835,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_updateSelection__P15301_mk(s) {
+function inline__P71774_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_updateSelection__P15301, depth: s.depth + 1,
+ parent: s, fn: inline__P71774, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
} }
-function tileworld_MapEditor_col__P15303(s) {
+function inline__P71780(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46787,42 +44904,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, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_1 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 1275; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 510; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_col__P15303.info = {"start":6571,"length":87,"line":181,"column":8,"endLine":183,"endColumn":9,"fileName":"editor.ts","functionName":"col","argumentNames":["this","current"]}
+inline__P71780.info = {"start":36722,"length":75,"line":836,"column":68,"endLine":838,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_col__P15303_mk(s) {
+function inline__P71780_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_col__P15303, depth: s.depth + 1,
+ parent: s, fn: inline__P71780, 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 tileworld_MapEditor_row__P15304(s) {
+function inline__P71786(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46832,45 +44938,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, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1276; s.pc = 1; return s.tmp_2;
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 512; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 - 4);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_row__P15304.info = {"start":6676,"length":96,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"editor.ts","functionName":"row","argumentNames":["this","current"]}
+inline__P71786.info = {"start":36868,"length":75,"line":839,"column":69,"endLine":841,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_row__P15304_mk(s) {
+function inline__P71786_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_row__P15304, depth: s.depth + 1,
+ parent: s, fn: inline__P71786, 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 tileworld_MapEditor_moveDown__P15300(s) {
+function inline__P71792(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46880,101 +44972,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- 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_2 = tileworld_MapEditor_setCursor__P15296_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 1;
- s.callLocIdx = 1254; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
- { step = 4; continue; }
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 514; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1255; s.pc = 6; return s.tmp_2;
- case 6:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 118);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_3 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4 = r0;
- s.tmp_3.arg0 = r0;
- s.tmp_6 = Sprite_y__P2024_mk(s);
- s.tmp_6.arg0 = s.tmp_4;
- s.callLocIdx = 1256; s.pc = 8; return s.tmp_6;
- case 8:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + 8);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 1257; s.pc = 7; return s.tmp_3;
- case 7:
- r0 = s.retval;
- { step = 3; continue; }
- case 2:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["offsetY"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_1);
- case 3:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- case 4:
- s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1258; s.pc = 10; return s.tmp_0;
- case 10:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_moveDown__P15300.info = {"start":4569,"length":418,"line":129,"column":8,"endLine":140,"endColumn":9,"fileName":"editor.ts","functionName":"moveDown","argumentNames":["this"]}
+inline__P71792.info = {"start":37010,"length":72,"line":842,"column":65,"endLine":844,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_moveDown__P15300_mk(s) {
+function inline__P71792_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_moveDown__P15300, depth: s.depth + 1,
+ parent: s, fn: inline__P71792, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_MapEditor_moveUp__P15299(s) {
+function inline__P71798(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -46984,96 +45006,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 1250; s.pc = 5; return s.tmp_4;
- case 5:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 29);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_y__P2024_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 1251; s.pc = 7; return s.tmp_8;
- case 7:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 8);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 1252; s.pc = 6; return s.tmp_5;
- case 6:
- r0 = s.retval;
- { step = 2; continue; }
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 516; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["offsetY"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_1);
- case 2:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- case 3:
- case 4:
- s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1253; s.pc = 9; return s.tmp_0;
- case 9:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_moveUp__P15299.info = {"start":4216,"length":343,"line":118,"column":8,"endLine":127,"endColumn":9,"fileName":"editor.ts","functionName":"moveUp","argumentNames":["this"]}
+inline__P71798.info = {"start":37150,"length":72,"line":845,"column":66,"endLine":847,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_moveUp__P15299_mk(s) {
+function inline__P71798_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_moveUp__P15299, depth: s.depth + 1,
+ parent: s, fn: inline__P71798, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_MapEditor_moveRight__P15298(s) {
+function inline__P71804(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47083,125 +45040,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- 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; }
- s.tmp_4 = tileworld_MapEditor_col__P15303_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1243; s.pc = 7; return s.tmp_4;
- case 7:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 < 9);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 1244; s.pc = 9; return s.tmp_8;
- case 9:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + 16);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 1245; s.pc = 8; return s.tmp_5;
- case 8:
- r0 = s.retval;
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 3;
+ s.callLocIdx = 518; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- { step = 6; continue; }
- case 3:
- s.tmp_2 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1246; s.pc = 10; return s.tmp_2;
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 < 152);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_3 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4 = r0;
- s.tmp_3.arg0 = r0;
- s.tmp_6 = Sprite_x__P2022_mk(s);
- s.tmp_6.arg0 = s.tmp_4;
- s.callLocIdx = 1247; s.pc = 12; return s.tmp_6;
- case 12:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 + 8);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 1248; s.pc = 11; return s.tmp_3;
- case 11:
- r0 = s.retval;
- { step = 5; continue; }
- case 4:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["offsetX"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1);
- case 5:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- case 6:
- s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1249; s.pc = 14; return s.tmp_0;
- case 14:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_moveRight__P15298.info = {"start":3773,"length":433,"line":104,"column":8,"endLine":116,"endColumn":9,"fileName":"editor.ts","functionName":"moveRight","argumentNames":["this"]}
+inline__P71804.info = {"start":37291,"length":74,"line":848,"column":67,"endLine":850,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_moveRight__P15298_mk(s) {
+function inline__P71804_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_moveRight__P15298, depth: s.depth + 1,
+ parent: s, fn: inline__P71804, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_MapEditor_moveLeft__P15297(s) {
+function inline__P71810(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47211,125 +45074,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = s.arg0.fields["cursorType"];
- 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; }
- s.tmp_4 = tileworld_MapEditor_col__P15303_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1236; s.pc = 7; return s.tmp_4;
- case 7:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 0);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_6 = r0;
- s.tmp_5.arg0 = r0;
- s.tmp_8 = Sprite_x__P2022_mk(s);
- s.tmp_8.arg0 = s.tmp_6;
- s.callLocIdx = 1237; s.pc = 9; return s.tmp_8;
- case 9:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 - 16);
- s.tmp_5.arg1 = r0;
- s.callLocIdx = 1238; s.pc = 8; return s.tmp_5;
- case 8:
- r0 = s.retval;
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 3;
+ s.callLocIdx = 520; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- { step = 6; continue; }
- case 3:
- s.tmp_2 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 1239; s.pc = 10; return s.tmp_2;
- case 10:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 8);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_3 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_4 = r0;
- s.tmp_3.arg0 = r0;
- s.tmp_6 = Sprite_x__P2022_mk(s);
- s.tmp_6.arg0 = s.tmp_4;
- s.callLocIdx = 1240; s.pc = 12; return s.tmp_6;
- case 12:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 - 8);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 1241; s.pc = 11; return s.tmp_3;
- case 11:
- r0 = s.retval;
- { step = 5; continue; }
- case 4:
- s.tmp_0 = r0 = s.arg0;
- r0 = s.tmp_0.fields["offsetX"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1);
- case 5:
- s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s);
- s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
- s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- case 6:
- s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = true;
- s.callLocIdx = 1242; s.pc = 14; return s.tmp_0;
- case 14:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_moveLeft__P15297.info = {"start":3335,"length":428,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"editor.ts","functionName":"moveLeft","argumentNames":["this"]}
+inline__P71810.info = {"start":37435,"length":74,"line":851,"column":68,"endLine":853,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_moveLeft__P15297_mk(s) {
+function inline__P71810_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_moveLeft__P15297, depth: s.depth + 1,
+ parent: s, fn: inline__P71810, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_MapEditor_update__P3821(s) {
+function inline__P71816(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47339,289 +45108,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___17014 = undefined;
- s.backs___17037 = undefined;
- s.x___17041 = undefined;
- s.y___17051 = undefined;
- s.inRange___17061 = undefined;
- s.col___17079 = undefined;
- s.row___17084 = undefined;
- s.nx___17089 = undefined;
- s.ny___17093 = undefined;
- s.index___17099 = undefined;
- s.img___17108 = undefined;
- s.index___17126 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 4;
- s.tmp_0.arg3 = 16;
- s.tmp_0.arg4 = 16;
- s.tmp_0.arg5 = 11;
- s.callLocIdx = 1277; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = tileworld_MapEditor_drawImage__P15305_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.map___3712;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 1278; s.pc = 22; return s.tmp_0;
- case 22:
- r0 = s.retval;
- r0 = pxsim_pxtrt.mklocRef();
- s.index___17014 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.index___17014, 1);
- r0 = pxsim_pxtcore_mkAction(2, inline__P17019);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___17014);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_backgroundsI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1281; s.pc = 23; return s.tmp_1;
- case 23:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(2, inline__P17030);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___17014);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["_spritesI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1284; s.pc = 24; return s.tmp_1;
- case 24:
- r0 = s.retval;
- r0 = s.arg0.fields["p"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["_backgrounds"];
- s.backs___17037 = (r0);
- r0 = s.arg0.fields["offsetX"];
- s.x___17041 = (r0);
- case 1:
- s.tmp_1 = r0 = s.x___17041;
- r0 = s.arg0.fields["offsetX"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 20);
- 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; }
- r0 = s.arg0.fields["offsetY"];
- s.y___17051 = (r0);
- case 2:
- s.tmp_1 = r0 = s.y___17051;
- r0 = s.arg0.fields["offsetY"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 15);
- 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 = 19; continue; }
- r0 = (0 <= s.x___17041);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_4;
- { step = 4; continue; }
- case 3:
- s.tmp_5 = r0 = s.x___17041;
- r0 = pxsim_ImageMethods.width(s.backs___17037);
- s.tmp_6 = r0;
- r0 = (s.tmp_5 < s.tmp_6);
- case 4:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_7;
- { step = 6; continue; }
- case 5:
- r0 = (0 <= s.y___17051);
- case 6:
- // jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBool(s.tmp_8);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_8;
- { step = 8; continue; }
- case 7:
- s.tmp_9 = r0 = s.y___17051;
- r0 = pxsim_ImageMethods.height(s.backs___17037);
- s.tmp_10 = r0;
- r0 = (s.tmp_9 < s.tmp_10);
- case 8:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- s.inRange___17061 = (s.tmp_11);
- r0 = s.arg0.fields["offsetX"];
- s.tmp_0 = r0;
- r0 = (s.x___17041 - s.tmp_0);
- s.col___17079 = (r0);
- r0 = s.arg0.fields["offsetY"];
- s.tmp_0 = r0;
- r0 = (s.y___17051 - s.tmp_0);
- s.row___17084 = (r0);
- r0 = (s.col___17079 * 8);
- s.nx___17089 = (r0);
- r0 = (s.row___17084 * 8);
- s.tmp_0 = r0;
- r0 = (20 + s.tmp_0);
- s.ny___17093 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.inRange___17061);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.backs___17037, s.x___17041, s.y___17051);
- { step = 10; continue; }
- case 9:
- r0 = -1;
- case 10:
- // jmp value (already in r0)
- s.tmp_0 = r0;
- s.index___17099 = (s.tmp_0);
- r0 = (s.index___17099 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = globals.emptyTile___3721;
- { step = 14; continue; }
- case 11:
- r0 = (s.index___17099 == 15);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 12; continue; }
- r0 = globals.emptyDiagTile___3722;
- { step = 13; continue; }
- case 12:
- s.tmp_2 = tileworld_Project_getBackgroundImage__P3696_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.index___17099;
- s.callLocIdx = 1286; s.pc = 25; return s.tmp_2;
- case 25:
- r0 = s.retval;
- case 13:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
- case 14:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.img___17108 = (s.tmp_4);
- s.tmp_0 = tileworld_drawHalfSize__P3541_mk(s);
- s.tmp_0.arg0 = s.img___17108;
- s.tmp_0.arg1 = s.nx___17089;
- s.tmp_0.arg2 = s.ny___17093;
- s.tmp_0.arg3 = false;
- s.callLocIdx = 1287; s.pc = 26; return s.tmp_0;
- case 26:
- r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.inRange___17061);
- if (!r0) { step = 17; continue; }
- r0 = s.arg0.fields["p"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_sprites"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.x___17041, s.y___17051);
- s.index___17126 = (r0);
- r0 = (s.index___17126 != 15);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 15; continue; }
- s.tmp_1 = tileworld_drawHalfSize__P3541_mk(s);
- s.tmp_2 = tileworld_Project_getSpriteImage__P3697_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.index___17126;
- s.callLocIdx = 1289; s.pc = 28; return s.tmp_2;
- case 28:
- r0 = s.retval;
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.nx___17089;
- s.tmp_1.arg2 = s.ny___17093;
- s.tmp_1.arg3 = true;
- s.callLocIdx = 1290; s.pc = 27; return s.tmp_1;
- case 27:
- r0 = s.retval;
- case 15:
- case 16:
- case 17:
- case 18:
- r0 = (s.y___17051 + 1);
- s.y___17051 = (r0);
- { step = 2; continue; }
- case 19:
- r0 = (s.x___17041 + 1);
- s.x___17041 = (r0);
- { step = 1; continue; }
- case 20:
- s.tmp_0 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = 20;
- s.tmp_0.arg3 = 159;
- s.tmp_0.arg4 = 20;
- s.tmp_0.arg5 = 11;
- s.callLocIdx = 1291; s.pc = 29; return s.tmp_0;
- case 29:
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 3;
+ s.callLocIdx = 522; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_update__P3821.info = {"start":6932,"length":1668,"line":193,"column":8,"endLine":229,"endColumn":9,"fileName":"editor.ts","functionName":"update","argumentNames":["this"]}
+inline__P71816.info = {"start":37575,"length":75,"line":854,"column":64,"endLine":856,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function tileworld_MapEditor_update__P3821_mk(s) {
+function inline__P71816_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_update__P3821, depth: s.depth + 1,
+ parent: s, fn: inline__P71816, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- index___17014: undefined,
- backs___17037: undefined,
- x___17041: undefined,
- y___17051: undefined,
- inRange___17061: undefined,
- col___17079: undefined,
- row___17084: undefined,
- nx___17089: undefined,
- ny___17093: undefined,
- index___17099: undefined,
- img___17108: undefined,
- index___17126: undefined,
- arg0: undefined,
} }
-function inline__P17019(s) {
+function inline__P71822(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47631,47 +45142,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = tileworld_MapEditor_drawImage__P15305_mk(s);
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 1280; s.pc = 1; return s.tmp_0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 524; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = r0 = s.caps[1];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P17019.info = {"start":7140,"length":96,"line":198,"column":46,"endLine":201,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]}
+inline__P71822.info = {"start":37717,"length":68,"line":857,"column":64,"endLine":859,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function inline__P17019_mk(s) {
+function inline__P71822_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17019, depth: s.depth + 1,
+ parent: s, fn: inline__P71822, 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 inline__P17030(s) {
+function inline__P71828(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47681,47 +45176,93 @@ 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 = tileworld_MapEditor_drawImage__P15305_mk(s);
+ s.tmp_0 = tileworld_RunGame_requestMove__P71379_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = 0;
- s.callLocIdx = 1283; s.pc = 1; return s.tmp_0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 526; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = r0 = s.caps[1];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P71828.info = {"start":37853,"length":68,"line":860,"column":65,"endLine":862,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P71828_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P71828, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P71834(s) {
+let r0 = s.r0, 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["state"];
+ r0 = r0.fields["highScore"];
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ r0 = s.caps[0].fields["p"];
+ r0 = r0.fields["highScore"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 > s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_3 = tileworld_Project_newHighScore__P63702_mk(s);
+ r0 = s.caps[0].fields["p"];
+ s.tmp_3.arg0 = r0;
+ r0 = s.caps[0].fields["state"];
+ r0 = r0.fields["highScore"];
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 528; s.pc = 3; return s.tmp_3;
+ case 3:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ s.tmp_0 = controller_setRepeatDefault__P61908_mk(s);
+ s.tmp_0.arg0 = 500;
+ s.tmp_0.arg1 = 80;
+ s.callLocIdx = 529; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 530; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P17030.info = {"start":7281,"length":94,"line":202,"column":42,"endLine":205,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]}
+inline__P71834.info = {"start":37988,"length":286,"line":863,"column":64,"endLine":870,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-function inline__P17030_mk(s) {
+function inline__P71834_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17030, depth: s.depth + 1,
+ parent: s, fn: inline__P71834, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- arg0: undefined,
+ tmp_3: undefined,
} }
-function tileworld_drawHalfSize__P3541(s) {
+function tileworld_RunGame_requestMove__P71379(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47731,149 +45272,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___6132 = undefined;
- s.j___6138 = undefined;
- s.i___6170 = undefined;
- s.j___6176 = undefined;
- s.pix___6182 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(s.arg3);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
+ r0 = s.arg0.fields["running"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.i___6132 = (0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_3 = controller_setRepeatDefault__P61908_mk(s);
+ s.tmp_3.arg0 = 500;
+ s.tmp_3.arg1 = 80;
+ s.callLocIdx = 532; s.pc = 5; return s.tmp_3;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 533; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ { step = 4; continue; }
case 1:
- s.tmp_1 = r0 = s.i___6132;
- r0 = pxsim_ImageMethods.width(s.arg0);
+ r0 = s.arg0.fields["currentDirection"];
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg1, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.j___6138 = (0);
+ if (!r0) { step = 2; continue; }
+ r0 = s.arg0.fields["currentDirection"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_3, s.arg1);
case 2:
- s.tmp_1 = r0 = s.j___6138;
- 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 = 3; continue; }
- s.tmp_3 = r0 = globals.screen___1799;
- s.tmp_5 = r0 = s.arg1;
- r0 = (s.i___6132 >> 1);
- s.tmp_6 = r0;
- r0 = (s.tmp_5 + s.tmp_6);
- s.tmp_4 = r0;
- s.tmp_8 = r0 = s.arg2;
- r0 = (s.j___6138 >> 1);
- s.tmp_9 = r0;
- r0 = (s.tmp_8 + s.tmp_9);
- s.tmp_7 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___6132, s.j___6138);
- s.tmp_10 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_7, s.tmp_10);
- r0 = (s.j___6138 + 2);
- s.j___6138 = (r0);
- { step = 2; continue; }
case 3:
- r0 = (s.i___6132 + 2);
- s.i___6132 = (r0);
- { step = 1; continue; }
case 4:
- { step = 12; continue; }
- case 5:
- s.i___6170 = (0);
- case 6:
- s.tmp_1 = r0 = s.i___6170;
- 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 = 11; continue; }
- s.j___6176 = (0);
- case 7:
- s.tmp_1 = r0 = s.j___6176;
- 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 = 10; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___6170, s.j___6176);
- s.pix___6182 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.pix___6182);
- if (!r0) { step = 8; continue; }
- s.tmp_0 = r0 = globals.screen___1799;
- s.tmp_2 = r0 = s.arg1;
- r0 = (s.i___6170 >> 1);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- s.tmp_5 = r0 = s.arg2;
- r0 = (s.j___6176 >> 1);
- s.tmp_6 = r0;
- r0 = (s.tmp_5 + s.tmp_6);
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_4, s.pix___6182);
- case 8:
- case 9:
- r0 = (s.j___6176 + 2);
- s.j___6176 = (r0);
- { step = 7; continue; }
- case 10:
- r0 = (s.i___6170 + 2);
- s.i___6170 = (r0);
- { step = 6; continue; }
- case 11:
- case 12:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_drawHalfSize__P3541.info = {"start":1663,"length":691,"line":50,"column":4,"endLine":66,"endColumn":5,"fileName":"utilities.ts","functionName":"drawHalfSize","argumentNames":["img","nx","ny","transparent"]}
+tileworld_RunGame_requestMove__P71379.info = {"start":38295,"length":309,"line":873,"column":8,"endLine":880,"endColumn":9,"fileName":"vm.ts","functionName":"requestMove","argumentNames":["this","dir"]}
-function tileworld_drawHalfSize__P3541_mk(s) {
+function tileworld_RunGame_requestMove__P71379_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_drawHalfSize__P3541, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_requestMove__P71379, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- i___6132: undefined,
- j___6138: undefined,
- i___6170: undefined,
- j___6176: undefined,
- pix___6182: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_MapEditor_drawImage__P15305(s) {
+function game_onShade__P62536(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47885,49 +45348,52 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_0 = r0 = globals.screen___1799;
- s.tmp_1 = r0 = s.arg1;
- r0 = (s.arg2 << 4);
- s.tmp_2 = r0;
- r0 = (s.arg3 << 4);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + 4);
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3);
+ s.tmp_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = undefined;
+ s.callLocIdx = 898; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
+ case 2:
+ s.tmp_2 = scene_createRenderable__P62372_mk(s);
+ s.tmp_2.arg0 = 80;
+ s.tmp_2.arg1 = s.arg0;
+ s.tmp_2.arg2 = undefined;
+ s.callLocIdx = 899; s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_drawImage__P15305.info = {"start":6782,"length":140,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"editor.ts","functionName":"drawImage","argumentNames":["this","img","col","row"]}
+game_onShade__P62536.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
-function tileworld_MapEditor_drawImage__P15305_mk(s) {
+function game_onShade__P62536_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_drawImage__P15305, depth: s.depth + 1,
+ parent: s, fn: game_onShade__P62536, depth: s.depth + 1,
pc: 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 tileworld_MapEditor_setCursor__P15296(s) {
+function game_waitAnyButton__P62523(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47937,53 +45403,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- r0 = (s.arg1 != 0);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1234; s.pc = 1; return s.tmp_0;
+ r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___64278);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = lambda_1_mk(s);
+ s.tmp_0.argL = globals.__waitAnyButton___64278;
+ setupLambda(s.tmp_0, s.tmp_0.argL);
+ s.callLocIdx = 848; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ { step = 2; continue; }
case 1:
+ s.tmp_0 = pause__P60394_mk(s);
+ s.tmp_0.arg0 = 3000;
+ s.callLocIdx = 849; s.pc = 4; return s.tmp_0;
+ case 4:
r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- r0 = (s.arg1 != 1);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 1235; s.pc = 2; return s.tmp_0;
case 2:
- r0 = s.retval;
- r0 = (s.arg0).fields["cursorType"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_setCursor__P15296.info = {"start":3086,"length":239,"line":84,"column":8,"endLine":88,"endColumn":9,"fileName":"editor.ts","functionName":"setCursor","argumentNames":["this","ct"]}
+game_waitAnyButton__P62523.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]}
-function tileworld_MapEditor_setCursor__P15296_mk(s) {
+function game_waitAnyButton__P62523_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_setCursor__P15296, depth: s.depth + 1,
+ parent: s, fn: game_waitAnyButton__P62523, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function tileworld_MapEditor_paintHome__P15295(s) {
+function tileworld_Project_newHighScore__P63702(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -47995,46 +45449,63 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["paintCursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 1232; s.pc = 1; return s.tmp_0;
- case 1:
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["highScore"] = (s.arg1);
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ r0 = s.arg0.fields["prefix"];
+ 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_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["paintCursor"];
+ s.tmp_1 = r0;
+ if ((globals.HighScoreKey___68355) && (globals.HighScoreKey___68355).vtable) {
+ setupResume(s, 3);
+ pxsim_String__stringConv(globals.HighScoreKey___68355);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.HighScoreKey___68355) + ""; }
+ case 3:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 24;
- s.callLocIdx = 1233; s.pc = 2; return s.tmp_0;
- case 2:
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 194; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- r0 = (s.arg0).fields["offsetY"] = (-3);
- r0 = (s.arg0).fields["offsetX"] = (-3);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_MapEditor_paintHome__P15295.info = {"start":2918,"length":158,"line":78,"column":8,"endLine":82,"endColumn":9,"fileName":"editor.ts","functionName":"paintHome","argumentNames":["this"]}
+tileworld_Project_newHighScore__P63702.info = {"start":5664,"length":158,"line":161,"column":8,"endLine":164,"endColumn":9,"fileName":"project.ts","functionName":"newHighScore","argumentNames":["this","newScore"]}
-function tileworld_MapEditor_paintHome__P15295_mk(s) {
+function tileworld_Project_newHighScore__P63702_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_MapEditor_paintHome__P15295, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_newHighScore__P63702, depth: s.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 tileworld_RunGame_start__P3776(s) {
+function tileworld_RunGame_roundToCompletion__P71376(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -48044,168 +45515,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.signal___11580 = undefined;
- s.halfway___11601 = undefined;
- s.playerId___11602 = undefined;
+ s.rcs___71549 = undefined;
+ s.rc___71559 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["currentDirection"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_TileSprite_constructor__P9375_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.cursorIn___3723;
- s.tmp_1.arg2 = 0;
- s.tmp_1.arg3 = false;
- s.callLocIdx = 477; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.signal___11580 = (s.tmp_0);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- s.tmp_0.arg0 = s.signal___11580;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 478; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- s.tmp_0.arg0 = s.signal___11580;
- s.tmp_0.arg1 = 8;
- s.callLocIdx = 479; s.pc = 7; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_TileWorldVM_startRound__P69565_mk(s);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 476; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_1 = Sprite_x__P2023_mk(s);
- s.tmp_1.arg0 = s.signal___11580;
- s.tmp_1.arg1 = 8;
- s.callLocIdx = 480; s.pc = 8; return s.tmp_1;
+ case 1:
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["phase"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_2 = tileworld_TileWorldVM_continueRound__P69567_mk(s);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 477; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
- r0 = (s.signal___11580).fields["dir"] = (2);
- r0 = (s.signal___11580).fields["inst"] = (-1);
- r0 = (s.arg0).fields["signal"] = (s.signal___11580);
- r0 = pxsim_pxtrt.mklocRef();
- s.halfway___11601 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.halfway___11601, false);
- r0 = s.arg0.fields["p"];
- s.tmp_0 = r0;
- r0 = s.tmp_0.fields["_player"];
- s.playerId___11602 = (r0);
- r0 = (s.playerId___11602 != -1);
- s.tmp_0 = r0;
+ s.rcs___71549 = (r0);
+ case 2:
+ s.tmp_0 = r0 = s.rcs___71549;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
+ if (r0) { step = 3; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = s.arg0.fields["state"];
- r0 = r0.fields["sprites"];
+ { step = 4; continue; }
+ case 3:
+ r0 = pxsim_Array__length(s.rcs___71549);
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.playerId___11602);
- case 2:
+ r0 = (s.tmp_1 > 0);
+ case 4:
// jmp value (already in r0)
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- s.tmp_3 = scene_cameraFollowSprite__P2456_mk(s);
- r0 = s.arg0.fields["state"];
- r0 = r0.fields["sprites"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.playerId___11602);
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, 0);
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 482; s.pc = 9; return s.tmp_3;
- case 9:
- r0 = s.retval;
- case 3:
- case 4:
- s.tmp_0 = tileworld_TileWorldVM_setState__P9568_mk(s);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_Array_.pop(s.rcs___71549);
+ s.rc___71559 = (r0);
+ s.tmp_0 = tileworld_TileWorldVM_processClosure__P69566_mk(s);
r0 = s.arg0.fields["vm"];
s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["state"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 483; s.pc = 10; return s.tmp_0;
- case 10:
- r0 = s.retval;
- s.tmp_0 = tileworld_RunGame_roundToCompletion__P11384_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 484; s.pc = 11; return s.tmp_0;
- case 11:
- r0 = s.retval;
- r0 = (s.arg0).fields["running"] = (true);
- r0 = pxsim_pxtcore_mkAction(2, inline__P11632);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.halfway___11601);
- s.tmp_1 = game_onUpdate__P2535_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 496; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11728);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = game_onShade__P2539_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 499; s.pc = 13; return s.tmp_1;
- case 13:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11758);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = game_onPaint__P2538_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 500; s.pc = 14; return s.tmp_1;
- case 14:
- r0 = s.retval;
- s.tmp_0 = tileworld_RunGame_registerController__P11386_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 501; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- s.tmp_0 = Sprite_vx__P2027_mk(s);
- s.tmp_0.arg0 = s.signal___11580;
- s.tmp_0.arg1 = 100;
- s.callLocIdx = 502; s.pc = 16; return s.tmp_0;
- case 16:
+ s.tmp_0.arg1 = s.rc___71559;
+ s.callLocIdx = 478; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
+ { step = 2; continue; }
+ case 5:
+ { step = 1; continue; }
+ case 6:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RunGame_start__P3776.info = {"start":33469,"length":2735,"line":752,"column":8,"endLine":821,"endColumn":9,"fileName":"vm.ts","functionName":"start","argumentNames":["this"]}
+tileworld_RunGame_roundToCompletion__P71376.info = {"start":33043,"length":355,"line":740,"column":8,"endLine":749,"endColumn":9,"fileName":"vm.ts","functionName":"roundToCompletion","argumentNames":["this","dirs"]}
-function tileworld_RunGame_start__P3776_mk(s) {
+function tileworld_RunGame_roundToCompletion__P71376_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RunGame_start__P3776, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_roundToCompletion__P71376, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- signal___11580: undefined,
- halfway___11601: undefined,
- playerId___11602: undefined,
+ rcs___71549: undefined,
+ rc___71559: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P11632(s) {
+function tileworld_TileWorldVM_processClosure__P69566(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -48215,208 +45608,123 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.message___11647 = undefined;
- r0 = s.caps[0].fields["running"];
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_TileWorldVM_evaluateRuleClosure__P69585_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 310; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ r0 = s.arg1.fields["rv"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 17; continue; }
- case 1:
- case 2:
- s.tmp_5 = Sprite_x__P2022_mk(s);
- r0 = s.caps[0].fields["signal"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 485; s.pc = 18; return s.tmp_5;
- case 18:
- r0 = s.retval;
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["buttonMatch"];
+ s.tmp_5 = r0;
+ r0 = s.arg1.fields["self"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_5, s.tmp_6, undefined);
s.tmp_4 = r0;
- r0 = (s.tmp_4 >= 23);
+ r0 = (s.tmp_4 == -1);
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 9; continue; }
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["game"];
+ if (!r0) { step = 1; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["buttonMatch"];
s.tmp_7 = r0;
- r0 = (s.tmp_7 != 0);
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 7; continue; }
- r0 = (s.caps[0]).fields["running"] = (false);
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["game"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
+ r0 = s.arg1.fields["self"];
+ s.tmp_8 = r0;
+ r0 = pxsim_Array__push(s.tmp_7, s.tmp_8);
+ case 1:
+ case 2:
+ { step = 14; continue; }
+ case 3:
+ r0 = pxsim_numops_toBoolDecr(false);
+ if (!r0) { step = 12; continue; }
+ r0 = s.arg1.fields["self"];
+ r0 = r0.fields["movedToStopped"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = "You won!";
- { step = 4; continue; }
- case 3:
- r0 = pxsim_String_.mkEmpty();
- case 4:
- // jmp value (already in r0)
+ if (!r0) { step = 6; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["movingToResting"];
+ s.tmp_3 = r0;
+ r0 = s.arg1.fields["self"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_3, s.tmp_4, undefined);
s.tmp_2 = r0;
- s.message___11647 = (s.tmp_2);
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
+ r0 = (s.tmp_2 == -1);
s.tmp_1 = r0;
- r0 = s.caps[0].fields["p"];
- r0 = r0.fields["highScore"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 > s.tmp_2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 4; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["movingToResting"];
+ s.tmp_5 = r0;
+ r0 = s.arg1.fields["self"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__push(s.tmp_5, s.tmp_6);
+ case 4:
+ case 5:
+ { step = 11; continue; }
+ case 6:
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, 0);
+ r0 = r0.fields["movedToStopped"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_3 = tileworld_Project_newHighScore__P3705_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_3.arg0 = r0;
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 486; s.pc = 19; return s.tmp_3;
- case 19:
- r0 = s.retval;
- if ((s.message___11647) && (s.message___11647).vtable) {
- setupResume(s, 20);
- pxsim_String__stringConv(s.message___11647);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.message___11647) + ""; }
- case 20:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
- s.tmp_5 = r0;
- r0 = pxsim_numops.toString(s.tmp_5);
+ if (!r0) { step = 9; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["movingToResting"];
s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 21);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 21:
- r0 = s.retval;
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_6, 0);
+ s.tmp_5 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_4, s.tmp_5, undefined);
s.tmp_3 = r0;
- r0 = pxsim_String__concat(" New High = ", s.tmp_3);
+ r0 = (s.tmp_3 == -1);
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.message___11647 = (r0);
- case 5:
- case 6:
- s.tmp_0 = game_showDialog__P2530_mk(s);
- s.tmp_0.arg0 = "Game Over";
- s.tmp_0.arg1 = s.message___11647;
- s.tmp_0.arg2 = undefined;
- s.callLocIdx = 487; s.pc = 23; return s.tmp_0;
- case 23:
- r0 = s.retval;
- s.tmp_0 = pause__P399_mk(s);
- s.tmp_0.arg0 = 500;
- s.callLocIdx = 488; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- s.tmp_0 = game_waitAnyButton__P2526_mk(s);
- s.callLocIdx = 489; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- { step = 17; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 7; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["movingToResting"];
+ s.tmp_7 = r0;
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_9 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_9, 0);
+ s.tmp_8 = r0;
+ r0 = pxsim_Array__push(s.tmp_7, s.tmp_8);
case 7:
case 8:
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.caps[0].fields["signal"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 8;
- s.callLocIdx = 490; s.pc = 26; return s.tmp_0;
- case 26:
- r0 = s.retval;
- s.tmp_0 = tileworld_RunGame_roundToCompletion__P11384_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- r0 = s.caps[0].fields["currentDirection"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 491; s.pc = 27; return s.tmp_0;
- case 27:
- r0 = s.retval;
- r0 = pxsim_pxtrt_stlocRef(s.caps[1], false);
- s.tmp_0 = r0 = s.caps[0];
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["currentDirection"] = (s.tmp_1);
- { step = 16; continue; }
case 9:
- r0 = pxsim_pxtrt_ldlocRef(s.caps[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_toBool(s.tmp_0);
- if (r0) { step = 10; continue; }
- r0 = s.tmp_0;
- { step = 11; continue; }
case 10:
- s.tmp_4 = Sprite_x__P2022_mk(s);
- r0 = s.caps[0].fields["signal"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 492; s.pc = 28; return s.tmp_4;
- case 28:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >= 16);
case 11:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 14; continue; }
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["game"];
- s.tmp_7 = r0;
- r0 = (s.tmp_7 == 0);
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 12; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P11711);
- s.tmp_8 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_8, 0, s.caps[0]);
- s.tmp_9 = helpers_arrayForEach__P104_mk(s);
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["deadSprites"];
- s.tmp_9.arg0 = r0;
- s.tmp_9.arg1 = s.tmp_8;
- s.callLocIdx = 495; s.pc = 29; return s.tmp_9;
- case 29:
- r0 = s.retval;
case 12:
case 13:
- r0 = pxsim_pxtrt_stlocRef(s.caps[1], true);
case 14:
- case 15:
- case 16:
- case 17:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11632.info = {"start":34200,"length":1507,"line":773,"column":26,"endLine":804,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+tileworld_TileWorldVM_processClosure__P69566.info = {"start":6610,"length":964,"line":159,"column":8,"endLine":176,"endColumn":9,"fileName":"vm.ts","functionName":"processClosure","argumentNames":["this","rc"]}
-function inline__P11632_mk(s) {
+function tileworld_TileWorldVM_processClosure__P69566_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11632, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_processClosure__P69566, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -48428,14 +45736,15 @@ function inline__P11632_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- message___11647: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P11711(s) {
+function tileworld_TileWorldVM_evaluateRuleClosure__P69585(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -48445,47 +45754,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.col___70913 = undefined;
+ s.row___70917 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["sprites"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["_kind"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0);
- s.tmp_0 = Sprite_destroy__P2084_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = undefined;
- s.tmp_0.arg2 = undefined;
- s.callLocIdx = 494; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.col___70913 = (1);
case 1:
+ r0 = (s.col___70913 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.row___70917 = (1);
+ case 2:
+ r0 = (s.row___70917 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = tileworld_TileWorldVM_evaluateWhenDoCommands__P69586_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.col___70913;
+ s.tmp_1.arg3 = s.row___70917;
+ s.callLocIdx = 431; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
+ r0 = (s.row___70917 + 1);
+ s.row___70917 = (r0);
+ { step = 2; continue; }
+ case 3:
+ r0 = (s.col___70913 + 1);
+ s.col___70913 = (r0);
+ { step = 1; continue; }
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11711.info = {"start":35463,"length":152,"line":797,"column":55,"endLine":800,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_TileWorldVM_evaluateRuleClosure__P69585.info = {"start":24088,"length":253,"line":548,"column":8,"endLine":554,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRuleClosure","argumentNames":["this","rc"]}
-function inline__P11711_mk(s) {
+function tileworld_TileWorldVM_evaluateRuleClosure__P69585_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11711, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_evaluateRuleClosure__P69585, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
+ col___70913: undefined,
+ row___70917: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P11728(s) {
+function tileworld_TileWorldVM_evaluateWhenDoCommands__P69586(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -48495,515 +45824,828 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["score"];
+ s.wid___70933 = undefined;
+ s.wcol___70952 = undefined;
+ s.wrow___70965 = undefined;
+ s.spawned___70978 = undefined;
+ s.portal___70980 = undefined;
+ s.ok___70982 = undefined;
+ s.cid___70983 = undefined;
+ s.inst___71000 = undefined;
+ s.arg___71010 = undefined;
+ s.colliding___71041 = undefined;
+ s.button___71048 = undefined;
+ s.self___71055 = undefined;
+ s.witness___71061 = undefined;
+ s.witness___71133 = undefined;
+ s.tm___71242 = undefined;
+ s.copy___71246 = undefined;
+ s.kindCnt___71278 = undefined;
+ s.x___71279 = undefined;
+ s.y___71280 = undefined;
+ s.index___71314 = 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, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg2;
+ s.tmp_0.arg2 = s.arg3;
+ s.callLocIdx = 432; s.pc = 100; return s.tmp_0;
+ case 100:
+ r0 = s.retval;
+ s.wid___70933 = (r0);
+ r0 = (s.wid___70933 == -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 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.wid___70933;
+ s.tmp_2.arg2 = 0;
+ s.callLocIdx = 433; s.pc = 101; return s.tmp_2;
+ case 101:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
+ case 2:
+ // jmp value (already in r0)
s.tmp_3 = r0;
- r0 = pxsim_numops.toString(s.tmp_3);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ { step = 99; continue; }
+ case 3:
+ case 4:
+ r0 = pxsim_pxtrt.mklocRef();
+ s.wcol___70952 = (r0);
+ r0 = s.arg1.fields["self"];
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 5; continue; }
+ s.tmp_6 = tileworld_TileSprite_col__P69366_mk(s);
+ r0 = s.arg1.fields["self"];
+ s.tmp_6.arg0 = r0;
+ s.callLocIdx = 434; s.pc = 102; return s.tmp_6;
+ case 102:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.arg2 - 2);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_5 + s.tmp_7);
+ { step = 6; continue; }
+ case 5:
+ r0 = -1;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_8 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.wcol___70952, s.tmp_8);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.wrow___70965 = (r0);
+ r0 = s.arg1.fields["self"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_2 = tileworld_TileSprite_row__P69367_mk(s);
+ r0 = s.arg1.fields["self"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 435; s.pc = 103; return s.tmp_2;
+ case 103:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.arg3 - 2);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_1 + s.tmp_3);
+ { step = 8; continue; }
+ case 7:
+ r0 = -1;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.wrow___70965, s.tmp_4);
+ s.spawned___70978 = (null);
+ s.portal___70980 = (null);
+ s.ok___70982 = (true);
+ s.cid___70983 = (0);
+ case 9:
+ s.tmp_1 = r0 = s.cid___70983;
+ r0 = s.arg1.fields["rv"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.wid___70933);
+ r0 = r0.fields["commandsLen"];
+ 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 = 98; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.ok___70982);
+ s.tmp_6 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_6);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 10; continue; }
+ { step = 98; continue; }
+ case 10:
+ case 11:
+ r0 = pxsim_numops_toBoolDecr(s.portal___70980);
+ if (!r0) { step = 12; continue; }
+ r0 = s.portal___70980.fields["col"];
+ s.tmp_7 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.wcol___70952, s.tmp_7);
+ r0 = s.portal___70980.fields["row"];
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.wrow___70965, s.tmp_0);
+ case 12:
+ case 13:
+ s.tmp_0 = tileworld_RuleView_getCmdInst__P63651_mk(s);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.wid___70933;
+ s.tmp_0.arg2 = s.cid___70983;
+ s.callLocIdx = 437; s.pc = 104; return s.tmp_0;
+ case 104:
+ r0 = s.retval;
+ s.inst___71000 = (r0);
+ r0 = (s.inst___71000 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ { step = 98; continue; }
+ case 14:
+ case 15:
+ s.tmp_1 = tileworld_RuleView_getCmdArg__P63652_mk(s);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.wid___70933;
+ s.tmp_1.arg2 = s.cid___70983;
+ s.callLocIdx = 438; s.pc = 105; return s.tmp_1;
+ case 105:
+ r0 = s.retval;
+ s.arg___71010 = (r0);
+ s.tmp_0 = r0 = s.inst___71000;
+ r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0);
+ if (r0) { step = 16; continue; }
+ r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
+ if (r0) { step = 19; continue; }
+ r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0);
+ if (r0) { step = 52; continue; }
+ r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0);
+ if (r0) { step = 67; continue; }
+ r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0);
+ if (r0) { step = 70; continue; }
+ r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0);
+ if (r0) { step = 73; continue; }
+ r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
+ if (r0) { step = 96; continue; }
+ r0 = s.tmp_0;
+ { step = 97; continue; }
+ case 16:
+ r0 = s.arg1.fields["self"];
+ 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 = 17; continue; }
+ { step = 97; continue; }
+ case 17:
+ case 18:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C69544_VT);
+ s.tmp_4 = r0;
+ s.tmp_5 = tileworld_Tile_constructor__P69545_mk(s);
+ s.tmp_5.arg0 = s.tmp_4;
+ r0 = pxsim_pxtrt_ldlocRef(s.wcol___70952);
+ s.tmp_5.arg1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.wrow___70965);
+ s.tmp_5.arg2 = r0;
+ s.tmp_5.arg3 = s.arg___71010;
+ s.callLocIdx = 439; s.pc = 106; return s.tmp_5;
+ case 106:
+ r0 = s.retval;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["paintTile"];
+ s.tmp_6 = r0;
+ r0 = pxsim_Array__push(s.tmp_6, s.tmp_4);
+ { step = 97; continue; }
+ case 19:
+ r0 = s.arg1.fields["self"];
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 20; continue; }
+ { step = 97; continue; }
+ case 20:
+ case 21:
+ r0 = s.arg1.fields["rv"];
+ s.tmp_4 = r0;
+ r0 = s.tmp_4.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 2);
+ s.colliding___71041 = (r0);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 == 0);
+ s.button___71048 = (r0);
+ r0 = (s.arg2 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 22; continue; }
+ r0 = s.tmp_0;
+ { step = 23; continue; }
+ case 22:
+ r0 = (s.arg3 == 2);
+ case 23:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.self___71055 = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.spawned___70978);
+ if (!r0) { step = 24; continue; }
+ r0 = s.spawned___70978;
+ { step = 29; continue; }
+ case 24:
+ r0 = pxsim_numops_toBoolDecr(s.self___71055);
+ if (!r0) { step = 25; continue; }
+ r0 = s.arg1.fields["self"];
+ { step = 28; continue; }
+ case 25:
+ r0 = pxsim_numops_toBoolDecr(s.colliding___71041);
+ if (!r0) { step = 26; continue; }
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, 0);
+ { step = 27; continue; }
+ case 26:
+ r0 = pxsim_pxtcore_mkAction(2, inline__P71073);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.wcol___70952);
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.wrow___70965);
+ s.tmp_2 = helpers_arrayFind__P60101_mk(s);
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 444; s.pc = 107; return s.tmp_2;
+ case 107:
+ r0 = s.retval;
+ case 27:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
+ case 28:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 29:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.witness___71061 = (s.tmp_5);
+ s.tmp_0 = r0 = s.witness___71061;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 30; continue; }
+ r0 = s.tmp_0;
+ { step = 37; continue; }
+ case 30:
+ r0 = s.witness___71061.fields["inst"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == -1);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 31; continue; }
+ r0 = s.tmp_1;
+ { step = 32; continue; }
+ case 31:
+ r0 = pxsim.Math_.randomRange(0, 1);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 < 0.5);
+ case 32:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (!r0) { step = 33; continue; }
+ r0 = s.tmp_4;
+ { step = 34; continue; }
+ case 33:
+ r0 = s.colliding___71041;
+ case 34:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (!r0) { step = 35; continue; }
+ r0 = s.tmp_5;
+ { step = 36; continue; }
+ case 35:
+ r0 = s.button___71048;
+ case 36:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = s.tmp_6;
+ case 37:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 50; continue; }
+ s.tmp_8 = r0 = s.colliding___71041;
+ r0 = pxsim_numops_toBool(s.tmp_8);
+ if (r0) { step = 38; continue; }
+ r0 = s.tmp_8;
+ { step = 39; continue; }
+ case 38:
+ r0 = pxsim_numops_toBoolDecr(s.self___71055);
+ s.tmp_9 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_9);
+ case 39:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_10);
+ if (r0) { step = 40; continue; }
+ r0 = s.tmp_10;
+ { step = 41; continue; }
+ case 40:
+ r0 = s.witness___71061.fields["inst"];
+ s.tmp_11 = r0;
+ r0 = (s.tmp_11 == 0);
+ case 41:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_12);
+ if (r0) { step = 42; continue; }
+ r0 = s.tmp_12;
+ { step = 43; continue; }
+ case 42:
+ r0 = s.witness___71061.fields["arg"];
+ s.tmp_13 = r0;
+ r0 = (s.tmp_13 < 4);
+ case 43:
+ // jmp value (already in r0)
+ s.tmp_14 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_14);
+ if (!r0) { step = 48; continue; }
+ r0 = (s.arg___71010 == 4);
+ s.tmp_15 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_15);
+ if (!r0) { step = 44; continue; }
+ r0 = s.tmp_15;
+ { step = 45; continue; }
+ case 44:
+ r0 = (s.arg___71010 == 5);
+ case 45:
+ // jmp value (already in r0)
+ s.tmp_16 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_16);
+ if (!r0) { step = 46; continue; }
+ r0 = (s.witness___71061).fields["movedToStopped"] = (true);
+ case 46:
+ case 47:
+ case 48:
+ case 49:
+ r0 = (s.witness___71061).fields["inst"] = (s.inst___71000);
+ r0 = (s.witness___71061).fields["arg"] = (s.arg___71010);
+ case 50:
+ case 51:
+ { step = 97; continue; }
+ case 52:
+ r0 = s.arg1.fields["self"];
+ 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 = 53; continue; }
+ { step = 97; continue; }
+ case 53:
+ case 54:
+ r0 = pxsim_pxtcore_mkAction(2, inline__P71137);
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_3, 0, s.wcol___70952);
+ r0 = pxsim_pxtrt_stclo(s.tmp_3, 1, s.wrow___70965);
+ s.tmp_4 = helpers_arrayFind__P60101_mk(s);
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_4.arg0 = r0;
+ s.tmp_4.arg1 = s.tmp_3;
+ s.callLocIdx = 447; s.pc = 108; return s.tmp_4;
+ case 108:
+ r0 = s.retval;
+ s.witness___71133 = (r0);
+ r0 = s.arg1.fields["rv"];
+ s.tmp_2 = r0;
+ r0 = s.tmp_2.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 59; continue; }
+ r0 = (s.arg2 == 2);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 55; continue; }
+ r0 = s.tmp_3;
+ { step = 56; continue; }
+ case 55:
+ r0 = (s.arg3 == 2);
+ case 56:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 57; continue; }
+ r0 = s.arg1.fields["self"];
+ { step = 58; continue; }
+ case 57:
+ r0 = s.arg1.fields["witnesses"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, 0);
+ case 58:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ s.witness___71133 = (s.tmp_6);
+ case 59:
+ case 60:
+ r0 = (s.arg___71010 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 61; continue; }
+ r0 = s.tmp_0;
+ { step = 62; continue; }
+ case 61:
+ r0 = s.witness___71133;
+ case 62:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 65; continue; }
+ r0 = (s.witness___71133).fields["state"] = (1);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["deadSprites"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.witness___71133, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 63; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["deadSprites"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_3, s.witness___71133);
+ case 63:
+ case 64:
+ case 65:
+ case 66:
+ { step = 97; continue; }
+ case 67:
+ r0 = s.arg1.fields["self"];
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 = 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 = 68; continue; }
+ { step = 97; continue; }
+ case 68:
+ case 69:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C69364_VT);
+ s.tmp_3 = r0;
+ s.tmp_4 = tileworld_TileSprite_constructor__P69371_mk(s);
+ s.tmp_4.arg0 = s.tmp_3;
+ r0 = s.arg0.fields["p"];
+ s.tmp_6 = r0;
+ r0 = s.tmp_6.fields["_spritesI"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_5, s.arg___71010);
+ s.tmp_4.arg1 = r0;
+ s.tmp_4.arg2 = s.arg___71010;
+ s.tmp_4.arg3 = false;
+ s.callLocIdx = 450; s.pc = 109; return s.tmp_4;
+ case 109:
r0 = s.retval;
+ s.spawned___70978 = (s.tmp_3);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["spawnedSprites"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.spawned___70978);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ s.tmp_0.arg0 = s.spawned___70978;
+ r0 = pxsim_pxtrt_ldlocRef(s.wcol___70952);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 << 4);
s.tmp_1 = r0;
- r0 = pxsim_String__concat("Score: ", s.tmp_1);
+ r0 = (s.tmp_1 + 8);
s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = 0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 497; s.pc = 1; return s.tmp_0;
- case 1:
+ s.callLocIdx = 451; s.pc = 110; return s.tmp_0;
+ case 110:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
- s.tmp_3 = r0;
- r0 = pxsim_numops.toString(s.tmp_3);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ s.tmp_0.arg0 = s.spawned___70978;
+ r0 = pxsim_pxtrt_ldlocRef(s.wrow___70965);
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;
+ r0 = (s.tmp_2 << 4);
s.tmp_1 = r0;
- r0 = pxsim_String__concat("High:", s.tmp_1);
+ r0 = (s.tmp_1 + 8);
s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 80;
- s.tmp_0.arg3 = 0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 498; s.pc = 3; return s.tmp_0;
- case 3:
+ s.callLocIdx = 452; s.pc = 111; return s.tmp_0;
+ case 111:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11728.info = {"start":35748,"length":174,"line":806,"column":25,"endLine":809,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11728_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11728, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
-} }
-
-
-
-
-
-function inline__P11758(s) {
-let r0 = s.r0, 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["debug"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_ImageMethods.drawImage(globals.screen___1799, globals.debug___3714, 0, 0);
- case 1:
- case 2:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11758.info = {"start":35950,"length":173,"line":811,"column":25,"endLine":817,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11758_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11758, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function tileworld_RunGame_registerController__P11386(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RunGame__C3773_VT)) failedCast(r0);
- s.tmp_0 = controller_setRepeatDefault__P1913_mk(s);
- s.tmp_0.arg0 = 200;
- s.tmp_0.arg1 = 80;
- s.callLocIdx = 503; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ s.tmp_0.arg0 = s.spawned___70978;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 453; s.pc = 112; return s.tmp_0;
+ case 112:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11775);
+ { step = 97; continue; }
+ case 70:
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["nextBlockedSprites"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg___71010, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 505; s.pc = 2; return s.tmp_1;
- case 2:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 71; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["nextBlockedSprites"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_3, s.arg___71010);
+ case 71:
+ case 72:
+ { step = 97; continue; }
+ case 73:
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 454; s.pc = 113; return s.tmp_0;
+ case 113:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11782);
+ r0 = r0.fields["tileMap"];
+ s.tm___71242 = (r0);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["changed"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 507; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11788);
+ r0 = pxsim_ImageMethods.clone(s.tmp_0);
+ s.copy___71246 = (r0);
+ r0 = pxsim_ImageMethods.fill(s.copy___71246, 0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71256);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 509; s.pc = 4; return s.tmp_1;
- case 4:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___71246);
+ s.tmp_1 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 457; s.pc = 114; return s.tmp_1;
+ case 114:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11794);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P71269);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 511; s.pc = 5; return s.tmp_1;
- case 5:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___71246);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["spawnedSprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 460; s.pc = 115; return s.tmp_1;
+ case 115:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11800);
+ s.kindCnt___71278 = (0);
+ s.x___71279 = (0);
+ s.y___71280 = (0);
+ case 74:
+ s.tmp_1 = r0 = s.x___71279;
+ r0 = pxsim_ImageMethods.width(s.copy___71246);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 513; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11806);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 81; continue; }
+ s.y___71280 = (0);
+ case 75:
+ s.tmp_1 = r0 = s.y___71280;
+ r0 = pxsim_ImageMethods.height(s.copy___71246);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 515; s.pc = 7; return s.tmp_1;
- case 7:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 80; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.copy___71246, s.x___71279, s.y___71280);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 == 0);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 76; continue; }
+ r0 = s.tmp_3;
+ { step = 77; continue; }
+ case 76:
+ s.tmp_6 = tiles_TileMap__C62309_v8_3_mk(s);
+ s.tmp_6.arg0 = s.tm___71242;
+ s.tmp_6.arg1 = s.x___71279;
+ s.tmp_6.arg2 = s.y___71280;
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
+ s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
+ s.pc = 116; return s.tmp_6;
+ case 116:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11812);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 == s.arg___71010);
+ case 77:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 78; continue; }
+ r0 = (s.kindCnt___71278 + 1);
+ s.kindCnt___71278 = (r0);
+ case 78:
+ case 79:
+ r0 = (s.y___71280 + 1);
+ s.y___71280 = (r0);
+ { step = 75; continue; }
+ case 80:
+ r0 = (s.x___71279 + 1);
+ s.x___71279 = (r0);
+ { step = 74; continue; }
+ case 81:
+ r0 = (s.kindCnt___71278 > 0);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 517; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11818);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 94; continue; }
+ r0 = (s.kindCnt___71278 - 1);
+ s.tmp_1 = r0;
+ r0 = pxsim.Math_.randomRange(0, s.tmp_1);
+ s.index___71314 = (r0);
+ s.kindCnt___71278 = (0);
+ s.x___71279 = (0);
+ case 82:
+ s.tmp_1 = r0 = s.x___71279;
+ r0 = pxsim_ImageMethods.width(s.copy___71246);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 519; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11824);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 93; continue; }
+ s.y___71280 = (0);
+ case 83:
+ s.tmp_1 = r0 = s.y___71280;
+ r0 = pxsim_ImageMethods.height(s.copy___71246);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 521; s.pc = 10; return s.tmp_1;
- case 10:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 90; continue; }
+ r0 = pxsim_ImageMethods.getPixel(s.copy___71246, s.x___71279, s.y___71280);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 == 0);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (r0) { step = 84; continue; }
+ r0 = s.tmp_3;
+ { step = 85; continue; }
+ case 84:
+ s.tmp_6 = tiles_TileMap__C62309_v8_3_mk(s);
+ s.tmp_6.arg0 = s.tm___71242;
+ s.tmp_6.arg1 = s.x___71279;
+ s.tmp_6.arg2 = s.y___71280;
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
+ s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
+ s.pc = 117; return s.tmp_6;
+ case 117:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11830);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 523; s.pc = 11; return s.tmp_1;
- case 11:
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 == s.arg___71010);
+ case 85:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
+ if (!r0) { step = 88; continue; }
+ r0 = (s.kindCnt___71278 == s.index___71314);
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 86; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C69544_VT);
+ s.tmp_9 = r0;
+ s.tmp_10 = tileworld_Tile_constructor__P69545_mk(s);
+ s.tmp_10.arg0 = s.tmp_9;
+ s.tmp_10.arg1 = s.x___71279;
+ s.tmp_10.arg2 = s.y___71280;
+ s.tmp_10.arg3 = 0;
+ s.callLocIdx = 461; s.pc = 118; return s.tmp_10;
+ case 118:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11836);
+ s.portal___70980 = (s.tmp_9);
+ { step = 90; continue; }
+ case 86:
+ case 87:
+ r0 = (s.kindCnt___71278 + 1);
+ s.kindCnt___71278 = (r0);
+ case 88:
+ case 89:
+ r0 = (s.y___71280 + 1);
+ s.y___71280 = (r0);
+ { step = 83; continue; }
+ case 90:
+ r0 = pxsim_numops_toBoolDecr(s.portal___70980);
+ if (!r0) { step = 91; continue; }
+ { step = 93; continue; }
+ case 91:
+ case 92:
+ r0 = (s.x___71279 + 1);
+ s.x___71279 = (r0);
+ { step = 82; continue; }
+ case 93:
+ { step = 95; continue; }
+ case 94:
+ s.ok___70982 = (false);
+ case 95:
+ { step = 97; continue; }
+ case 96:
+ r0 = s.arg0.fields["globalInsts"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 525; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11842);
+ r0 = pxsim_Array__push(s.tmp_0, s.inst___71000);
+ r0 = s.arg0.fields["globalArgs"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 529; s.pc = 13; return s.tmp_1;
- case 13:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RunGame_registerController__P11386.info = {"start":36296,"length":1999,"line":828,"column":8,"endLine":871,"endColumn":9,"fileName":"vm.ts","functionName":"registerController","argumentNames":["this"]}
-
-function tileworld_RunGame_registerController__P11386_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RunGame_registerController__P11386, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P11775(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 504; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11775.info = {"start":36444,"length":74,"line":830,"column":67,"endLine":832,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11775_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11775, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11782(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 506; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11782.info = {"start":36588,"length":74,"line":833,"column":68,"endLine":835,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11782_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11782, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11788(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 508; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11788.info = {"start":36732,"length":75,"line":836,"column":68,"endLine":838,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11788_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11788, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11794(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 510; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11794.info = {"start":36878,"length":75,"line":839,"column":69,"endLine":841,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11794_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11794, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11800(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 512; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11800.info = {"start":37020,"length":72,"line":842,"column":65,"endLine":844,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11800_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11800, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11806(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 514; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P11806.info = {"start":37160,"length":72,"line":845,"column":66,"endLine":847,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P11806_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P11806, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P11812(s) {
-let r0 = s.r0, 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 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 3;
- s.callLocIdx = 516; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg___71010);
+ case 97:
+ r0 = (s.cid___70983 + 1);
+ s.cid___70983 = (r0);
+ { step = 9; continue; }
+ case 98:
+ case 99:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11812.info = {"start":37301,"length":74,"line":848,"column":67,"endLine":850,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+tileworld_TileWorldVM_evaluateWhenDoCommands__P69586.info = {"start":24351,"length":6882,"line":556,"column":8,"endLine":693,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDoCommands","argumentNames":["this","rc","col","row"]}
-function inline__P11812_mk(s) {
+function tileworld_TileWorldVM_evaluateWhenDoCommands__P69586_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11812, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_evaluateWhenDoCommands__P69586, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ wid___70933: undefined,
+ wcol___70952: undefined,
+ wrow___70965: undefined,
+ spawned___70978: undefined,
+ portal___70980: undefined,
+ ok___70982: undefined,
+ cid___70983: undefined,
+ inst___71000: undefined,
+ arg___71010: undefined,
+ colliding___71041: undefined,
+ button___71048: undefined,
+ self___71055: undefined,
+ witness___71061: undefined,
+ witness___71133: undefined,
+ tm___71242: undefined,
+ copy___71246: undefined,
+ kindCnt___71278: undefined,
+ x___71279: undefined,
+ y___71280: undefined,
+ index___71314: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function inline__P11818(s) {
+function inline__P71073(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49013,31 +46655,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 3;
- s.callLocIdx = 518; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 442; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ 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_5 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.callLocIdx = 443; s.pc = 4; return s.tmp_5;
+ case 4:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_4 == s.tmp_6);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = s.tmp_7;
return leave(s, r0)
default: oops()
} } }
-inline__P11818.info = {"start":37445,"length":74,"line":851,"column":68,"endLine":853,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+inline__P71073.info = {"start":26059,"length":42,"line":592,"column":59,"endLine":592,"endColumn":101,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11818_mk(s) {
+function inline__P71073_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11818, depth: s.depth + 1,
+ parent: s, fn: inline__P71073, depth: s.depth + 1,
pc: 0, retval: undefined, 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 inline__P11824(s) {
+function inline__P71137(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49047,31 +46722,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 3;
- s.callLocIdx = 520; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 445; s.pc = 3; return s.tmp_2;
+ case 3:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ 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_5 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.callLocIdx = 446; s.pc = 4; return s.tmp_5;
+ case 4:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_4 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_4 == s.tmp_6);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = s.tmp_7;
return leave(s, r0)
default: oops()
} } }
-inline__P11824.info = {"start":37585,"length":75,"line":854,"column":64,"endLine":856,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+inline__P71137.info = {"start":27115,"length":42,"line":609,"column":56,"endLine":609,"endColumn":98,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11824_mk(s) {
+function inline__P71137_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11824, depth: s.depth + 1,
+ parent: s, fn: inline__P71137, depth: s.depth + 1,
pc: 0, retval: undefined, 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 inline__P11830(s) {
+function inline__P71256(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49081,31 +46789,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 522; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = r0 = s.caps[0];
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 455; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
+ s.tmp_1 = r0;
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 456; s.pc = 2; return s.tmp_4;
+ case 2:
+ r0 = s.retval;
+ 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()
} } }
-inline__P11830.info = {"start":37727,"length":68,"line":857,"column":64,"endLine":859,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+inline__P71256.info = {"start":28968,"length":99,"line":643,"column":40,"endLine":645,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11830_mk(s) {
+function inline__P71256_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11830, depth: s.depth + 1,
+ parent: s, fn: inline__P71256, depth: s.depth + 1,
pc: 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 inline__P11836(s) {
+function inline__P71269(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49115,31 +46840,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 524; s.pc = 1; return s.tmp_0;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = r0 = s.caps[0];
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 458; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
+ s.tmp_1 = r0;
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 459; s.pc = 2; return s.tmp_4;
+ case 2:
+ r0 = s.retval;
+ 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()
} } }
-inline__P11836.info = {"start":37863,"length":68,"line":860,"column":65,"endLine":862,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+inline__P71269.info = {"start":29125,"length":100,"line":646,"column":55,"endLine":648,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11836_mk(s) {
+function inline__P71269_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11836, depth: s.depth + 1,
+ parent: s, fn: inline__P71269, depth: s.depth + 1,
pc: 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 inline__P11842(s) {
+function tiles_TileMap_getTileIndex__P62322(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49149,59 +46891,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
- s.tmp_1 = r0;
- r0 = s.caps[0].fields["p"];
- r0 = r0.fields["highScore"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 > s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_3 = tileworld_Project_newHighScore__P3705_mk(s);
- r0 = s.caps[0].fields["p"];
- s.tmp_3.arg0 = r0;
- r0 = s.caps[0].fields["state"];
- r0 = r0.fields["highScore"];
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 526; s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
- case 1:
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_0 = tiles_TileMapData_getTile__P62302_mk(s);
+ s.tmp_1 = tiles_TileMap__C62309_v0_1_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.data;
+ s.pc = 2; return s.tmp_1;
case 2:
- s.tmp_0 = controller_setRepeatDefault__P1913_mk(s);
- s.tmp_0.arg0 = 500;
- s.tmp_0.arg1 = 80;
- s.callLocIdx = 527; s.pc = 4; return s.tmp_0;
- case 4:
r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 528; s.pc = 5; return s.tmp_0;
- case 5:
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 752; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11842.info = {"start":37998,"length":286,"line":863,"column":64,"endLine":870,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]}
+tiles_TileMap_getTileIndex__P62322.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]}
-function inline__P11842_mk(s) {
+function tiles_TileMap_getTileIndex__P62322_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11842, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_getTileIndex__P62322, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_RunGame_requestMove__P11387(s) {
+function tiles_TileMap_data__P64218(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49213,69 +46946,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, tileworld_RunGame__C3773_VT)) failedCast(r0);
- r0 = s.arg0.fields["running"];
- 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 = controller_setRepeatDefault__P1913_mk(s);
- s.tmp_3.arg0 = 500;
- s.tmp_3.arg1 = 80;
- s.callLocIdx = 530; s.pc = 5; return s.tmp_3;
- case 5:
- r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 531; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- { step = 4; continue; }
- case 1:
- r0 = s.arg0.fields["currentDirection"];
- s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg1, undefined);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- r0 = s.arg0.fields["currentDirection"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, s.arg1);
- case 2:
- case 3:
- case 4:
- r0 = undefined;
- return leave(s, r0)
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_map"];
+ return leaveAccessor(s, r0)
default: oops()
} } }
-tileworld_RunGame_requestMove__P11387.info = {"start":38305,"length":309,"line":873,"column":8,"endLine":880,"endColumn":9,"fileName":"vm.ts","functionName":"requestMove","argumentNames":["this","dir"]}
+tiles_TileMap_data__P64218.info = {"start":6344,"length":75,"line":231,"column":8,"endLine":233,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]}
+tiles_TileMap_data__P64218.isGetter = true;
-function tileworld_RunGame_requestMove__P11387_mk(s) {
+function tiles_TileMap_data__P64218_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RunGame_requestMove__P11387, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_data__P64218, depth: s.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 game_onShade__P2539(s) {
+function tiles_TileMapData_getTile__P62302(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49287,52 +46981,71 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = undefined;
- s.callLocIdx = 898; s.pc = 4; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ s.tmp_1 = tiles_TileMapData_isOutsideMap__P62308_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.arg2;
+ s.callLocIdx = 733; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
+ r0 = 0;
{ step = 3; continue; }
case 1:
case 2:
- s.tmp_2 = scene_createRenderable__P2375_mk(s);
- s.tmp_2.arg0 = 80;
- s.tmp_2.arg1 = s.arg0;
- s.tmp_2.arg2 = undefined;
- s.callLocIdx = 899; s.pc = 5; return s.tmp_2;
- case 5:
- r0 = s.retval;
+ r0 = s.arg0.fields["data"];
+ s.tmp_2 = r0;
+ r0 = (s.arg1 | 0);
+ s.tmp_5 = r0;
+ r0 = (4 + s.tmp_5);
+ s.tmp_4 = r0;
+ r0 = (s.arg2 | 0);
+ s.tmp_7 = r0;
+ r0 = s.arg0.fields["_width"];
+ s.tmp_8 = r0;
+ r0 = (s.tmp_7 * s.tmp_8);
+ s.tmp_6 = r0;
+ r0 = (s.tmp_4 + s.tmp_6);
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
case 3:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_onShade__P2539.info = {"start":9936,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]}
+tiles_TileMapData_getTile__P62302.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
-function game_onShade__P2539_mk(s) {
+function tiles_TileMapData_getTile__P62302_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_onShade__P2539, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_getTile__P62302, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function game_waitAnyButton__P2526(s) {
+function tiles_TileMapData_isOutsideMap__P62308(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49342,41 +47055,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___4278);
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = (s.arg1 < 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_0 = lambda_1_mk(s);
- s.tmp_0.argL = globals.__waitAnyButton___4278;
- setupLambda(s.tmp_0, s.tmp_0.argL);
- s.callLocIdx = 848; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
+ r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_0 = pause__P399_mk(s);
- s.tmp_0.arg0 = 3000;
- s.callLocIdx = 849; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["_width"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >= s.tmp_2);
case 2:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_3;
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.arg2 < 0);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (!r0) { step = 5; continue; }
+ r0 = s.tmp_4;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_5 = r0 = s.arg2;
+ r0 = s.arg0.fields["_height"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 >= s.tmp_6);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = s.tmp_7;
return leave(s, r0)
default: oops()
} } }
-game_waitAnyButton__P2526.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]}
+tiles_TileMapData_isOutsideMap__P62308.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]}
-function game_waitAnyButton__P2526_mk(s) {
+function tiles_TileMapData_isOutsideMap__P62308_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_waitAnyButton__P2526, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_isOutsideMap__P62308, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_Project_newHighScore__P3705(s) {
+function tileworld_TileWorldVM_allSprites__P69568(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49392,50 +47142,31 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["highScore"] = (s.arg1);
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- r0 = s.arg0.fields["prefix"];
- 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;
- if ((globals.HighScoreKey___8358) && (globals.HighScoreKey___8358).vtable) {
- setupResume(s, 3);
- pxsim_String__stringConv(globals.HighScoreKey___8358);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.HighScoreKey___8358) + ""; }
- case 3:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_3);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 192; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69975);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["sprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 324; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_newHighScore__P3705.info = {"start":5509,"length":158,"line":157,"column":8,"endLine":160,"endColumn":9,"fileName":"project.ts","functionName":"newHighScore","argumentNames":["this","newScore"]}
+tileworld_TileWorldVM_allSprites__P69568.info = {"start":10444,"length":179,"line":244,"column":8,"endLine":248,"endColumn":9,"fileName":"vm.ts","functionName":"allSprites","argumentNames":["this","handler"]}
-function tileworld_Project_newHighScore__P3705_mk(s) {
+function tileworld_TileWorldVM_allSprites__P69568_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_newHighScore__P3705, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_allSprites__P69568, depth: s.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,
} }
@@ -49444,7 +47175,7 @@ function tileworld_Project_newHighScore__P3705_mk(s) {
-function tileworld_RunGame_roundToCompletion__P11384(s) {
+function inline__P69975(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49454,236 +47185,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rcs___11557 = undefined;
- s.rc___11567 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0);
- s.tmp_0 = tileworld_TileWorldVM_startRound__P9569_mk(s);
- r0 = s.arg0.fields["vm"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 474; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- case 1:
- r0 = s.arg0.fields["state"];
- r0 = r0.fields["phase"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != -1);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69980);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_2 = tileworld_TileWorldVM_continueRound__P9571_mk(s);
- r0 = s.arg0.fields["vm"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 475; s.pc = 8; return s.tmp_2;
- case 8:
- r0 = s.retval;
- s.rcs___11557 = (r0);
- case 2:
- s.tmp_0 = r0 = s.rcs___11557;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 323; s.pc = 3; return s.tmp_1;
case 3:
- r0 = pxsim_Array__length(s.rcs___11557);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- case 4:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_Array_.pop(s.rcs___11557);
- s.rc___11567 = (r0);
- s.tmp_0 = tileworld_TileWorldVM_processClosure__P9570_mk(s);
- r0 = s.arg0.fields["vm"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.rc___11567;
- s.callLocIdx = 476; s.pc = 9; return s.tmp_0;
- case 9:
r0 = s.retval;
- { step = 2; continue; }
- case 5:
- { step = 1; continue; }
- case 6:
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RunGame_roundToCompletion__P11384.info = {"start":33053,"length":355,"line":740,"column":8,"endLine":749,"endColumn":9,"fileName":"vm.ts","functionName":"roundToCompletion","argumentNames":["this","dirs"]}
+inline__P69975.info = {"start":10534,"length":77,"line":245,"column":36,"endLine":247,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ls"]}
-function tileworld_RunGame_roundToCompletion__P11384_mk(s) {
+function inline__P69975_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RunGame_roundToCompletion__P11384, depth: s.depth + 1,
+ parent: s, fn: inline__P69975, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- rcs___11557: undefined,
- rc___11567: undefined,
arg0: undefined,
- arg1: undefined,
} }
-
-
-function tileworld_TileWorldVM_processClosure__P9570(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_0 = tileworld_TileWorldVM_evaluateRuleClosure__P9589_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 308; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- r0 = s.arg1.fields["rv"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["buttonMatch"];
- s.tmp_5 = r0;
- r0 = s.arg1.fields["self"];
- s.tmp_6 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_5, s.tmp_6, undefined);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 == -1);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 1; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["buttonMatch"];
- s.tmp_7 = r0;
- r0 = s.arg1.fields["self"];
- s.tmp_8 = r0;
- r0 = pxsim_Array__push(s.tmp_7, s.tmp_8);
- case 1:
- case 2:
- { step = 14; continue; }
- case 3:
- r0 = pxsim_numops_toBoolDecr(false);
- if (!r0) { step = 12; continue; }
- r0 = s.arg1.fields["self"];
- r0 = r0.fields["movedToStopped"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["movingToResting"];
- s.tmp_3 = r0;
- r0 = s.arg1.fields["self"];
- s.tmp_4 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_3, s.tmp_4, undefined);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == -1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 4; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["movingToResting"];
- s.tmp_5 = r0;
- r0 = s.arg1.fields["self"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__push(s.tmp_5, s.tmp_6);
- case 4:
- case 5:
- { step = 11; continue; }
- case 6:
- r0 = s.arg1.fields["witnesses"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, 0);
- r0 = r0.fields["movedToStopped"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["movingToResting"];
- s.tmp_4 = r0;
- r0 = s.arg1.fields["witnesses"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__getAt(s.tmp_6, 0);
- s.tmp_5 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_4, s.tmp_5, undefined);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == -1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 7; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["movingToResting"];
- s.tmp_7 = r0;
- r0 = s.arg1.fields["witnesses"];
- s.tmp_9 = r0;
- r0 = pxsim_Array__getAt(s.tmp_9, 0);
- s.tmp_8 = r0;
- r0 = pxsim_Array__push(s.tmp_7, s.tmp_8);
- case 7:
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
+
+
+function inline__P69980(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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 = lambda_2_mk(s);
+ s.tmp_0.argL = s.caps[0];
+ s.tmp_0.arg0 = s.arg0;
+ setupLambda(s.tmp_0, s.tmp_0.argL);
+ s.callLocIdx = 322; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_processClosure__P9570.info = {"start":6612,"length":964,"line":159,"column":8,"endLine":176,"endColumn":9,"fileName":"vm.ts","functionName":"processClosure","argumentNames":["this","rc"]}
+inline__P69980.info = {"start":10578,"length":17,"line":246,"column":35,"endLine":246,"endColumn":52,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function tileworld_TileWorldVM_processClosure__P9570_mk(s) {
+function inline__P69980_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_processClosure__P9570, depth: s.depth + 1,
+ parent: s, fn: inline__P69980, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_TileWorldVM_evaluateRuleClosure__P9589(s) {
+function tileworld_Tile_constructor__P69545(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49693,67 +47272,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___10917 = undefined;
- s.row___10921 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.col___10917 = (1);
- case 1:
- r0 = (s.col___10917 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.row___10921 = (1);
- case 2:
- r0 = (s.row___10921 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = tileworld_TileWorldVM_evaluateWhenDoCommands__P9590_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.col___10917;
- s.tmp_1.arg3 = s.row___10921;
- s.callLocIdx = 429; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- r0 = (s.row___10921 + 1);
- s.row___10921 = (r0);
- { step = 2; continue; }
- case 3:
- r0 = (s.col___10917 + 1);
- s.col___10917 = (r0);
- { step = 1; continue; }
- case 4:
+ if (!checkSubtype(r0, tileworld_Tile__C69544_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["col"] = (s.arg1);
+ r0 = (s.arg0).fields["row"] = (s.arg2);
+ r0 = (s.arg0).fields["kind"] = (s.arg3);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_evaluateRuleClosure__P9589.info = {"start":24090,"length":253,"line":548,"column":8,"endLine":554,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRuleClosure","argumentNames":["this","rc"]}
+tileworld_Tile_constructor__P69545.info = {"start":2916,"length":84,"line":63,"column":8,"endLine":64,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","col","row","kind"]}
-function tileworld_TileWorldVM_evaluateRuleClosure__P9589_mk(s) {
+function tileworld_Tile_constructor__P69545_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_evaluateRuleClosure__P9589, depth: s.depth + 1,
+ parent: s, fn: tileworld_Tile_constructor__P69545, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- col___10917: undefined,
- row___10921: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_TileWorldVM_evaluateWhenDoCommands__P9590(s) {
+function tileworld_TileSprite_row__P69367(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -49763,779 +47315,402 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wid___10937 = undefined;
- s.wcol___10956 = undefined;
- s.wrow___10969 = undefined;
- s.spawned___10982 = undefined;
- s.portal___10984 = undefined;
- s.ok___10986 = undefined;
- s.cid___10987 = undefined;
- s.inst___11004 = undefined;
- s.arg___11014 = undefined;
- s.colliding___11045 = undefined;
- s.button___11052 = undefined;
- s.self___11059 = undefined;
- s.witness___11065 = undefined;
- s.witness___11137 = undefined;
- s.tm___11246 = undefined;
- s.copy___11250 = undefined;
- s.kindCnt___11282 = undefined;
- s.x___11283 = undefined;
- s.y___11284 = undefined;
- s.index___11320 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- r0 = s.arg1.fields["rv"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg2;
- s.tmp_0.arg2 = s.arg3;
- s.callLocIdx = 430; s.pc = 100; return s.tmp_0;
- case 100:
+ if (!checkSubtype(r0, tileworld_TileSprite__C69364_VT)) failedCast(r0);
+ s.tmp_1 = Sprite_y__P62019_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.callLocIdx = 291; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- s.wid___10937 = (r0);
- r0 = (s.wid___10937 == -1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ r0 = (s.tmp_0 >> 4);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_TileSprite_row__P69367.info = {"start":1168,"length":36,"line":28,"column":8,"endLine":28,"endColumn":44,"fileName":"vm.ts","functionName":"row","argumentNames":["this"]}
+
+function tileworld_TileSprite_row__P69367_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_TileSprite_row__P69367, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_TileSprite_col__P69366(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_TileSprite__C69364_VT)) failedCast(r0);
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.callLocIdx = 290; s.pc = 1; return s.tmp_1;
case 1:
- s.tmp_2 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg1.fields["rv"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.wid___10937;
- s.tmp_2.arg2 = 0;
- s.callLocIdx = 431; s.pc = 101; return s.tmp_2;
- case 101:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -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 = 99; continue; }
- case 3:
- case 4:
- r0 = pxsim_pxtrt.mklocRef();
- s.wcol___10956 = (r0);
- r0 = s.arg1.fields["self"];
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 5; continue; }
- s.tmp_6 = tileworld_TileSprite_col__P9370_mk(s);
- r0 = s.arg1.fields["self"];
- s.tmp_6.arg0 = r0;
- s.callLocIdx = 432; s.pc = 102; return s.tmp_6;
- case 102:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.arg2 - 2);
- s.tmp_7 = r0;
- r0 = (s.tmp_5 + s.tmp_7);
- { step = 6; continue; }
- case 5:
- r0 = -1;
- case 6:
- // jmp value (already in r0)
- s.tmp_8 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.wcol___10956, s.tmp_8);
- r0 = pxsim_pxtrt.mklocRef();
- s.wrow___10969 = (r0);
- r0 = s.arg1.fields["self"];
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_2 = tileworld_TileSprite_row__P9371_mk(s);
- r0 = s.arg1.fields["self"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 433; s.pc = 103; return s.tmp_2;
- case 103:
- r0 = s.retval;
+ r0 = (s.tmp_0 >> 4);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_TileSprite_col__P69366.info = {"start":1080,"length":36,"line":27,"column":8,"endLine":27,"endColumn":44,"fileName":"vm.ts","functionName":"col","argumentNames":["this"]}
+
+function tileworld_TileSprite_col__P69366_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_TileSprite_col__P69366, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_TileWorldVM_continueRound__P69567(s) {
+let r0 = s.r0, 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.ruleClosures___69817 = undefined;
+ s.ts___69867 = undefined;
+ s.ts___69909 = undefined;
+ s.ts___69943 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["phase"];
s.tmp_1 = r0;
- r0 = (s.arg3 - 2);
- s.tmp_3 = r0;
- r0 = (s.tmp_1 + s.tmp_3);
- { step = 8; continue; }
- case 7:
- r0 = -1;
- case 8:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.wrow___10969, s.tmp_4);
- s.spawned___10982 = (null);
- s.portal___10984 = (null);
- s.ok___10986 = (true);
- s.cid___10987 = (0);
- case 9:
- s.tmp_1 = r0 = s.cid___10987;
- r0 = s.arg1.fields["rv"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.wid___10937);
- r0 = r0.fields["commandsLen"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.tmp_1 == 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 98; continue; }
- r0 = pxsim_numops_toBoolDecr(s.ok___10986);
- s.tmp_6 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_6);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 10; continue; }
- { step = 98; continue; }
- case 10:
- case 11:
- r0 = pxsim_numops_toBoolDecr(s.portal___10984);
- if (!r0) { step = 12; continue; }
- r0 = s.portal___10984.fields["col"];
- s.tmp_7 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.wcol___10956, s.tmp_7);
- r0 = s.portal___10984.fields["row"];
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.wrow___10969, s.tmp_0);
- case 12:
- case 13:
- s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s);
- r0 = s.arg1.fields["rv"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.wid___10937;
- s.tmp_0.arg2 = s.cid___10987;
- s.callLocIdx = 435; s.pc = 104; return s.tmp_0;
- case 104:
- r0 = s.retval;
- s.inst___11004 = (r0);
- r0 = (s.inst___11004 == -1);
+ if (!r0) { step = 1; continue; }
+ r0 = pxsim_Array__mk();
+ s.ruleClosures___69817 = (r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P69823);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- { step = 98; continue; }
- case 14:
- case 15:
- s.tmp_1 = tileworld_RuleView_getCmdArg__P3655_mk(s);
- r0 = s.arg1.fields["rv"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.wid___10937;
- s.tmp_1.arg2 = s.cid___10987;
- s.callLocIdx = 436; s.pc = 105; return s.tmp_1;
- case 105:
- r0 = s.retval;
- s.arg___11014 = (r0);
- s.tmp_0 = r0 = s.inst___11004;
- r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0);
- if (r0) { step = 16; continue; }
- r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0);
- if (r0) { step = 19; continue; }
- r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0);
- if (r0) { step = 52; continue; }
- r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0);
- if (r0) { step = 67; continue; }
- r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0);
- if (r0) { step = 70; continue; }
- r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0);
- if (r0) { step = 73; continue; }
- r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
- if (r0) { step = 96; continue; }
- r0 = s.tmp_0;
- { step = 97; continue; }
- case 16:
- r0 = s.arg1.fields["self"];
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.ruleClosures___69817);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["ruleIndex"];
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 = 17; continue; }
- { step = 97; continue; }
- case 17:
- case 18:
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C9548_VT);
- s.tmp_4 = r0;
- s.tmp_5 = tileworld_Tile_constructor__P9549_mk(s);
- s.tmp_5.arg0 = s.tmp_4;
- r0 = pxsim_pxtrt_ldlocRef(s.wcol___10956);
- s.tmp_5.arg1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.wrow___10969);
- s.tmp_5.arg2 = r0;
- s.tmp_5.arg3 = s.arg___11014;
- s.callLocIdx = 437; s.pc = 106; return s.tmp_5;
- case 106:
+ r0 = pxsim_Array__getAt(s.tmp_2, 3);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 314; s.pc = 22; return s.tmp_1;
+ case 22:
r0 = s.retval;
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["paintTile"];
- s.tmp_6 = r0;
- r0 = pxsim_Array__push(s.tmp_6, s.tmp_4);
- { step = 97; continue; }
- case 19:
- r0 = s.arg1.fields["self"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 20; continue; }
- { step = 97; continue; }
- case 20:
- case 21:
- r0 = s.arg1.fields["rv"];
- s.tmp_4 = r0;
- r0 = s.tmp_4.fields["r"];
- r0 = r0.fields["ruleType"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 2);
- s.colliding___11045 = (r0);
- r0 = s.arg1.fields["rv"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["r"];
- r0 = r0.fields["ruleType"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 == 0);
- s.button___11052 = (r0);
- r0 = (s.arg2 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 22; continue; }
- r0 = s.tmp_0;
- { step = 23; continue; }
- case 22:
- r0 = (s.arg3 == 2);
- case 23:
- // jmp value (already in r0)
+ r0 = (s.tmp_0).fields["phase"] = (0);
+ r0 = s.ruleClosures___69817;
+ { step = 21; continue; }
+ case 1:
+ case 2:
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["phase"];
s.tmp_1 = r0;
- s.self___11059 = (s.tmp_1);
- r0 = pxsim_numops_toBoolDecr(s.spawned___10982);
- if (!r0) { step = 24; continue; }
- r0 = s.spawned___10982;
- { step = 29; continue; }
- case 24:
- r0 = pxsim_numops_toBoolDecr(s.self___11059);
- if (!r0) { step = 25; continue; }
- r0 = s.arg1.fields["self"];
- { step = 28; continue; }
- case 25:
- r0 = pxsim_numops_toBoolDecr(s.colliding___11045);
- if (!r0) { step = 26; continue; }
- r0 = s.arg1.fields["witnesses"];
+ r0 = (s.tmp_1 == 0);
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, 0);
- { step = 27; continue; }
- case 26:
- r0 = pxsim_pxtcore_mkAction(2, inline__P11077);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.wcol___10956);
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.wrow___10969);
- s.tmp_2 = helpers_arrayFind__P106_mk(s);
- r0 = s.arg1.fields["witnesses"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 442; s.pc = 107; return s.tmp_2;
- case 107:
- r0 = s.retval;
- case 27:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
- case 28:
- // jmp value (already in r0)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["queued"];
s.tmp_4 = r0;
- r0 = s.tmp_4;
- case 29:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.witness___11065 = (s.tmp_5);
- s.tmp_0 = r0 = s.witness___11065;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 30; continue; }
- r0 = s.tmp_0;
- { step = 37; continue; }
- case 30:
- r0 = s.witness___11065.fields["inst"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == -1);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 31; continue; }
- r0 = s.tmp_1;
- { step = 32; continue; }
- case 31:
- r0 = pxsim.Math_.randomRange(0, 1);
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_3 = r0;
- r0 = (s.tmp_3 < 0.5);
- case 32:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (!r0) { step = 33; continue; }
- r0 = s.tmp_4;
- { step = 34; continue; }
- case 33:
- r0 = s.colliding___11045;
- case 34:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (!r0) { step = 35; continue; }
- r0 = s.tmp_5;
- { step = 36; continue; }
- case 35:
- r0 = s.button___11052;
- case 36:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = s.tmp_6;
- case 37:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 50; continue; }
- s.tmp_8 = r0 = s.colliding___11045;
- r0 = pxsim_numops_toBool(s.tmp_8);
- if (r0) { step = 38; continue; }
- r0 = s.tmp_8;
- { step = 39; continue; }
- case 38:
- r0 = pxsim_numops_toBoolDecr(s.self___11059);
- s.tmp_9 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_9);
- case 39:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = pxsim_numops_toBool(s.tmp_10);
- if (r0) { step = 40; continue; }
- r0 = s.tmp_10;
- { step = 41; continue; }
- case 40:
- r0 = s.witness___11065.fields["inst"];
- s.tmp_11 = r0;
- r0 = (s.tmp_11 == 0);
- case 41:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBool(s.tmp_12);
- if (r0) { step = 42; continue; }
- r0 = s.tmp_12;
- { step = 43; continue; }
- case 42:
- r0 = s.witness___11065.fields["arg"];
- s.tmp_13 = r0;
- r0 = (s.tmp_13 < 4);
- case 43:
- // jmp value (already in r0)
- s.tmp_14 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_14);
- if (!r0) { step = 48; continue; }
- r0 = (s.arg___11014 == 4);
- s.tmp_15 = r0;
- r0 = pxsim_numops_toBool(s.tmp_15);
- if (!r0) { step = 44; continue; }
- r0 = s.tmp_15;
- { step = 45; continue; }
- case 44:
- r0 = (s.arg___11014 == 5);
- case 45:
- // jmp value (already in r0)
- s.tmp_16 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_16);
- if (!r0) { step = 46; continue; }
- r0 = (s.witness___11065).fields["movedToStopped"] = (true);
- case 46:
- case 47:
- case 48:
- case 49:
- r0 = (s.witness___11065).fields["inst"] = (s.inst___11004);
- r0 = (s.witness___11065).fields["arg"] = (s.arg___11014);
- case 50:
- case 51:
- { step = 97; continue; }
- case 52:
- r0 = s.arg1.fields["self"];
+ r0 = (s.tmp_3 > 0);
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 = 53; continue; }
- { step = 97; continue; }
- case 53:
- case 54:
- r0 = pxsim_pxtcore_mkAction(2, inline__P11141);
- s.tmp_3 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_3, 0, s.wcol___10956);
- r0 = pxsim_pxtrt_stclo(s.tmp_3, 1, s.wrow___10969);
- s.tmp_4 = helpers_arrayFind__P106_mk(s);
- r0 = s.arg1.fields["witnesses"];
- s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.tmp_3;
- s.callLocIdx = 445; s.pc = 108; return s.tmp_4;
- case 108:
+ if (!r0) { step = 3; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["queued"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array_.pop(s.tmp_5);
+ s.ts___69867 = (r0);
+ s.tmp_0 = tileworld_TileWorldVM_applyRules__P69573_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.tmp_0.arg2 = s.ts___69867;
+ s.callLocIdx = 315; s.pc = 23; return s.tmp_0;
+ case 23:
r0 = s.retval;
- s.witness___11137 = (r0);
- r0 = s.arg1.fields["rv"];
- s.tmp_2 = r0;
- r0 = s.tmp_2.fields["r"];
- r0 = r0.fields["ruleType"];
+ { step = 21; continue; }
+ { step = 4; continue; }
+ case 3:
+ r0 = s.arg0.fields["vm"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 59; continue; }
- r0 = (s.arg2 == 2);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 55; continue; }
- r0 = s.tmp_3;
- { step = 56; continue; }
- case 55:
- r0 = (s.arg3 == 2);
- case 56:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 57; continue; }
- r0 = s.arg1.fields["self"];
- { step = 58; continue; }
- case 57:
- r0 = s.arg1.fields["witnesses"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, 0);
- case 58:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- s.witness___11137 = (s.tmp_6);
- case 59:
- case 60:
- r0 = (s.arg___11014 == 0);
+ r0 = (s.tmp_1).fields["phase"] = (1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69881);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 61; continue; }
- r0 = s.tmp_0;
- { step = 62; continue; }
- case 61:
- r0 = s.witness___11137;
- case 62:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 65; continue; }
- r0 = (s.witness___11137).fields["state"] = (1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 316; s.pc = 24; return s.tmp_1;
+ case 24:
+ r0 = s.retval;
+ case 4:
+ case 5:
+ case 6:
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["deadSprites"];
- s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.witness___11137, undefined);
+ r0 = r0.fields["phase"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ r0 = (s.tmp_1 == 1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 63; continue; }
+ if (!r0) { step = 11; continue; }
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["deadSprites"];
+ r0 = r0.fields["queued"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, s.witness___11137);
- case 63:
- case 64:
- case 65:
- case 66:
- { step = 97; continue; }
- case 67:
- r0 = s.arg1.fields["self"];
+ r0 = (s.tmp_3 > 0);
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ if (!r0) { step = 9; continue; }
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["queued"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array_.pop(s.tmp_5);
+ s.ts___69909 = (r0);
+ s.tmp_1 = tileworld_TileWorldVM_contextChanged__P69569_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.ts___69909;
+ s.callLocIdx = 317; s.pc = 25; return s.tmp_1;
+ case 25:
+ r0 = s.retval;
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 68; continue; }
- { step = 97; continue; }
- case 68:
- case 69:
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT);
- s.tmp_3 = r0;
- s.tmp_4 = tileworld_TileSprite_constructor__P9375_mk(s);
- s.tmp_4.arg0 = s.tmp_3;
- r0 = s.arg0.fields["p"];
- s.tmp_6 = r0;
- r0 = s.tmp_6.fields["_spritesI"];
- s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.arg___11014);
- s.tmp_4.arg1 = r0;
- s.tmp_4.arg2 = s.arg___11014;
- s.tmp_4.arg3 = false;
- s.callLocIdx = 448; s.pc = 109; return s.tmp_4;
- case 109:
+ if (!r0) { step = 7; continue; }
+ s.tmp_2 = tileworld_TileWorldVM_applyRules__P69573_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = 1;
+ s.tmp_2.arg2 = s.ts___69909;
+ s.callLocIdx = 318; s.pc = 26; return s.tmp_2;
+ case 26:
r0 = s.retval;
- s.spawned___10982 = (s.tmp_3);
+ { step = 21; continue; }
+ case 7:
+ case 8:
+ { step = 10; continue; }
+ case 9:
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["spawnedSprites"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3).fields["phase"] = (2);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69925);
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.spawned___10982);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- s.tmp_0.arg0 = s.spawned___10982;
- r0 = pxsim_pxtrt_ldlocRef(s.wcol___10956);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 449; s.pc = 110; return s.tmp_0;
- case 110:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- s.tmp_0.arg0 = s.spawned___10982;
- r0 = pxsim_pxtrt_ldlocRef(s.wrow___10969);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 450; s.pc = 111; return s.tmp_0;
- case 111:
- r0 = s.retval;
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- s.tmp_0.arg0 = s.spawned___10982;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 451; s.pc = 112; return s.tmp_0;
- case 112:
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 319; s.pc = 27; return s.tmp_1;
+ case 27:
r0 = s.retval;
- { step = 97; continue; }
- case 70:
+ case 10:
+ case 11:
+ case 12:
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["nextBlockedSprites"];
- s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg___11014, undefined);
+ r0 = r0.fields["phase"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ r0 = (s.tmp_1 == 2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 71; continue; }
+ if (!r0) { step = 17; continue; }
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["nextBlockedSprites"];
+ r0 = r0.fields["queued"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, s.arg___11014);
- case 71:
- case 72:
- { step = 97; continue; }
- case 73:
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 452; s.pc = 113; return s.tmp_0;
- case 113:
- r0 = s.retval;
- r0 = r0.fields["tileMap"];
- s.tm___11246 = (r0);
+ r0 = (s.tmp_3 > 0);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 13; continue; }
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_0);
- s.copy___11250 = (r0);
- r0 = pxsim_ImageMethods.fill(s.copy___11250, 0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P11260);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___11250);
- s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 455; s.pc = 114; return s.tmp_1;
- case 114:
+ r0 = r0.fields["queued"];
+ s.tmp_5 = r0;
+ r0 = pxsim_Array_.pop(s.tmp_5);
+ s.ts___69943 = (r0);
+ s.tmp_0 = tileworld_TileWorldVM_collisionDetection__P69576_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.ts___69943;
+ s.callLocIdx = 320; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P11273);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___11250);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ { step = 21; continue; }
+ { step = 16; continue; }
+ case 13:
r0 = s.arg0.fields["vm"];
- r0 = r0.fields["spawnedSprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 458; s.pc = 115; return s.tmp_1;
- case 115:
- r0 = s.retval;
- s.kindCnt___11282 = (0);
- s.x___11283 = (0);
- s.y___11284 = (0);
- case 74:
- s.tmp_1 = r0 = s.x___11283;
- r0 = pxsim_ImageMethods.width(s.copy___11250);
- 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 = 81; continue; }
- s.y___11284 = (0);
- case 75:
- s.tmp_1 = r0 = s.y___11284;
- r0 = pxsim_ImageMethods.height(s.copy___11250);
+ r0 = r0.fields["movingToResting"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = (s.tmp_2 > 0);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 14; continue; }
+ { step = 15; continue; }
+ case 14:
+ r0 = s.arg0.fields["vm"];
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4).fields["phase"] = (-1);
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["phase"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 80; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.copy___11250, s.x___11283, s.y___11284);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 == 0);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 76; continue; }
- r0 = s.tmp_3;
- { step = 77; continue; }
- case 76:
- s.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s);
- s.tmp_6.arg0 = s.tm___11246;
- s.tmp_6.arg1 = s.x___11283;
- s.tmp_6.arg2 = s.y___11284;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
- s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
- s.pc = 116; return s.tmp_6;
- case 116:
+ if (!r0) { step = 19; continue; }
+ s.tmp_2 = tileworld_TileWorldVM_updateWorld__P69579_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 321; s.pc = 29; return s.tmp_2;
+ case 29:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 == s.arg___11014);
- case 77:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 78; continue; }
- r0 = (s.kindCnt___11282 + 1);
- s.kindCnt___11282 = (r0);
- case 78:
- case 79:
- r0 = (s.y___11284 + 1);
- s.y___11284 = (r0);
- { step = 75; continue; }
- case 80:
- r0 = (s.x___11283 + 1);
- s.x___11283 = (r0);
- { step = 74; continue; }
- case 81:
- r0 = (s.kindCnt___11282 > 0);
+ case 19:
+ case 20:
+ r0 = null;
+ case 21:
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_TileWorldVM_continueRound__P69567.info = {"start":7584,"length":2850,"line":178,"column":8,"endLine":242,"endColumn":10,"fileName":"vm.ts","functionName":"continueRound","argumentNames":["this"]}
+
+function tileworld_TileWorldVM_continueRound__P69567_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_TileWorldVM_continueRound__P69567, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ ruleClosures___69817: undefined,
+ ts___69867: undefined,
+ ts___69909: undefined,
+ ts___69943: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P69823(s) {
+let r0 = s.r0, 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.kind___69825 = undefined;
+ s.witnesses___69832 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = tileworld_RuleView_findWitnessColRow__P63647_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.tmp_0.arg2 = 2;
+ s.tmp_0.arg3 = false;
+ s.callLocIdx = 312; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.kind___69825 = (r0);
+ r0 = (s.kind___69825 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 94; continue; }
- r0 = (s.kindCnt___11282 - 1);
+ if (!r0) { step = 1; continue; }
+ { step = 7; continue; }
+ case 1:
+ case 2:
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["sprites"];
s.tmp_1 = r0;
- r0 = pxsim.Math_.randomRange(0, s.tmp_1);
- s.index___11320 = (r0);
- s.kindCnt___11282 = (0);
- s.x___11283 = (0);
- case 82:
- s.tmp_1 = r0 = s.x___11283;
- r0 = pxsim_ImageMethods.width(s.copy___11250);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_Array__getAt(s.tmp_1, s.kind___69825);
+ s.witnesses___69832 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.witnesses___69832);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 93; continue; }
- s.y___11284 = (0);
- case 83:
- s.tmp_1 = r0 = s.y___11284;
- r0 = pxsim_ImageMethods.height(s.copy___11250);
+ 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.witnesses___69832);
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 = 90; continue; }
- r0 = pxsim_ImageMethods.getPixel(s.copy___11250, s.x___11283, s.y___11284);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 == 0);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (r0) { step = 84; continue; }
- r0 = s.tmp_3;
- { step = 85; continue; }
- case 84:
- s.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s);
- s.tmp_6.arg0 = s.tm___11246;
- s.tmp_6.arg1 = s.x___11283;
- s.tmp_6.arg2 = s.y___11284;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
- s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
- s.pc = 117; return s.tmp_6;
- case 117:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 == s.arg___11014);
- case 85:
+ r0 = (s.tmp_2 == 0);
+ case 4:
// jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 88; continue; }
- r0 = (s.kindCnt___11282 == s.index___11320);
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 86; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C9548_VT);
- s.tmp_9 = r0;
- s.tmp_10 = tileworld_Tile_constructor__P9549_mk(s);
- s.tmp_10.arg0 = s.tmp_9;
- s.tmp_10.arg1 = s.x___11283;
- s.tmp_10.arg2 = s.y___11284;
- s.tmp_10.arg3 = 0;
- s.callLocIdx = 459; s.pc = 118; return s.tmp_10;
- case 118:
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C69557_VT);
+ s.tmp_4 = r0;
+ s.tmp_5 = tileworld_RuleClosure_constructor__P69558_mk(s);
+ s.tmp_5.arg0 = s.tmp_4;
+ s.tmp_5.arg1 = s.arg0;
+ s.tmp_5.arg2 = null;
+ r0 = pxsim_Array__mk();
+ s.tmp_5.arg3 = r0;
+ s.callLocIdx = 313; s.pc = 9; return s.tmp_5;
+ case 9:
r0 = s.retval;
- s.portal___10984 = (s.tmp_9);
- { step = 90; continue; }
- case 86:
- case 87:
- r0 = (s.kindCnt___11282 + 1);
- s.kindCnt___11282 = (r0);
- case 88:
- case 89:
- r0 = (s.y___11284 + 1);
- s.y___11284 = (r0);
- { step = 83; continue; }
- case 90:
- r0 = pxsim_numops_toBoolDecr(s.portal___10984);
- if (!r0) { step = 91; continue; }
- { step = 93; continue; }
- case 91:
- case 92:
- r0 = (s.x___11283 + 1);
- s.x___11283 = (r0);
- { step = 82; continue; }
- case 93:
- { step = 95; continue; }
- case 94:
- s.ok___10986 = (false);
- case 95:
- { step = 97; continue; }
- case 96:
- r0 = s.arg0.fields["globalInsts"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.inst___11004);
- r0 = s.arg0.fields["globalArgs"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg___11014);
- case 97:
- r0 = (s.cid___10987 + 1);
- s.cid___10987 = (r0);
- { step = 9; continue; }
- case 98:
- case 99:
+ r0 = pxsim_Array__push(s.caps[1], s.tmp_4);
+ case 5:
+ case 6:
+ case 7:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_evaluateWhenDoCommands__P9590.info = {"start":24353,"length":6890,"line":556,"column":8,"endLine":693,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDoCommands","argumentNames":["this","rc","col","row"]}
+inline__P69823.info = {"start":7841,"length":640,"line":182,"column":63,"endLine":195,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function tileworld_TileWorldVM_evaluateWhenDoCommands__P9590_mk(s) {
+function inline__P69823_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_evaluateWhenDoCommands__P9590, depth: s.depth + 1,
+ parent: s, fn: inline__P69823, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -50543,48 +47718,16 @@ function tileworld_TileWorldVM_evaluateWhenDoCommands__P9590_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,
- wid___10937: undefined,
- wcol___10956: undefined,
- wrow___10969: undefined,
- spawned___10982: undefined,
- portal___10984: undefined,
- ok___10986: undefined,
- cid___10987: undefined,
- inst___11004: undefined,
- arg___11014: undefined,
- colliding___11045: undefined,
- button___11052: undefined,
- self___11059: undefined,
- witness___11065: undefined,
- witness___11137: undefined,
- tm___11246: undefined,
- copy___11250: undefined,
- kindCnt___11282: undefined,
- x___11283: undefined,
- y___11284: undefined,
- index___11320: undefined,
+ kind___69825: undefined,
+ witnesses___69832: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function inline__P11077(s) {
+function inline__P69881(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50598,43 +47741,251 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 440; s.pc = 3; return s.tmp_2;
- case 3:
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["buttonMatch"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg0, undefined);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["queued"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__push(s.tmp_3, s.arg0);
+ case 1:
+ case 2:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P69881.info = {"start":8968,"length":222,"line":206,"column":36,"endLine":210,"endColumn":21,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+
+function inline__P69881_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P69881, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P69925(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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.caps[0].fields["vm"];
+ r0 = r0.fields["queued"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P69925.info = {"start":9681,"length":33,"line":222,"column":36,"endLine":222,"endColumn":69,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+
+function inline__P69925_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P69925, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_TileWorldVM_updateWorld__P69579(s) {
+let r0 = s.r0, 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___70589 = undefined;
+ s.inst___70596 = undefined;
+ s.arg___70600 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P70458);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["spawnedSprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 396; s.pc = 15; return s.tmp_1;
+ case 15:
r0 = s.retval;
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ r0 = (s.tmp_0).fields["spawnedSprites"] = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P70495);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["deadSprites"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 399; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P70507);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 407; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P70555);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["paintTile"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 409; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ s.i___70589 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___70589;
+ r0 = s.arg0.fields["globalInsts"];
s.tmp_3 = r0;
- r0 = (s.tmp_1 == s.tmp_3);
+ 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_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ r0 = s.arg0.fields["globalInsts"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.i___70589);
+ s.inst___70596 = (r0);
+ r0 = s.arg0.fields["globalArgs"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.i___70589);
+ s.arg___70600 = (r0);
+ s.tmp_0 = r0 = s.inst___70596;
+ r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
+ if (r0) { step = 2; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_5 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 441; s.pc = 4; return s.tmp_5;
+ { step = 13; continue; }
+ case 2:
+ r0 = (s.arg___70600 == 0);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_1;
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.arg___70600 == 1);
case 4:
- r0 = s.retval;
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 7; continue; }
+ r0 = (s.arg___70600 == 0);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 5; continue; }
+ r0 = 1;
+ { step = 6; continue; }
+ case 5:
+ r0 = 2;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.arg0.fields["vm"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5).fields["game"] = (s.tmp_4);
+ { step = 12; continue; }
+ case 7:
+ r0 = (s.arg___70600 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 10; continue; }
+ r0 = s.arg0.fields["vm"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["score"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 10);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1).fields["score"] = (s.tmp_2);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["score"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["highScore"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 > s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ r0 = s.arg0.fields["vm"];
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["score"];
s.tmp_4 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_6 = r0;
- r0 = (s.tmp_4 == s.tmp_6);
- case 2:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = s.tmp_7;
+ r0 = (s.tmp_3).fields["highScore"] = (s.tmp_4);
+ case 8:
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ case 13:
+ r0 = (s.i___70589 + 1);
+ s.i___70589 = (r0);
+ { step = 1; continue; }
+ case 14:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11077.info = {"start":26061,"length":42,"line":592,"column":59,"endLine":592,"endColumn":101,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_TileWorldVM_updateWorld__P69579.info = {"start":16940,"length":2613,"line":388,"column":8,"endLine":444,"endColumn":9,"fileName":"vm.ts","functionName":"updateWorld","argumentNames":["this"]}
-function inline__P11077_mk(s) {
+function tileworld_TileWorldVM_updateWorld__P69579_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11077, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_updateWorld__P69579, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -50642,8 +47993,9 @@ function inline__P11077_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
+ i___70589: undefined,
+ inst___70596: undefined,
+ arg___70600: undefined,
arg0: undefined,
} }
@@ -50651,7 +48003,7 @@ function inline__P11077_mk(s) {
-function inline__P11141(s) {
+function inline__P70458(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50665,52 +48017,66 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["sprites"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 443; s.pc = 3; return s.tmp_2;
+ s.callLocIdx = 391; s.pc = 3; return s.tmp_2;
case 3:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[0]);
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 392; s.pc = 4; return s.tmp_4;
+ case 4:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_1 == s.tmp_3);
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = false;
+ s.callLocIdx = 393; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ 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 = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_5 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 444; s.pc = 4; return s.tmp_5;
- case 4:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = scene_cameraFollowSprite__P62453_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 395; s.pc = 6; return s.tmp_2;
+ case 6:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
- s.tmp_6 = r0;
- r0 = (s.tmp_4 == s.tmp_6);
+ case 1:
case 2:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = s.tmp_7;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11141.info = {"start":27117,"length":42,"line":609,"column":56,"endLine":609,"endColumn":98,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+inline__P70458.info = {"start":17071,"length":282,"line":391,"column":43,"endLine":397,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11141_mk(s) {
+function inline__P70458_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11141, depth: s.depth + 1,
+ parent: s, fn: inline__P70458, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -50718,7 +48084,7 @@ function inline__P11141_mk(s) {
-function inline__P11260(s) {
+function inline__P70495(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50732,16 +48098,18 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.caps[0];
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 453; s.pc = 1; return s.tmp_2;
+ s.callLocIdx = 397; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 454; s.pc = 2; return s.tmp_4;
+ s.callLocIdx = 398; s.pc = 2; return s.tmp_4;
case 2:
r0 = s.retval;
s.tmp_3 = r0;
@@ -50750,12 +48118,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P11260.info = {"start":28970,"length":99,"line":643,"column":40,"endLine":645,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+inline__P70495.info = {"start":17492,"length":86,"line":400,"column":40,"endLine":402,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11260_mk(s) {
+function inline__P70495_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11260, depth: s.depth + 1,
+ parent: s, fn: inline__P70495, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -50769,7 +48137,7 @@ function inline__P11260_mk(s) {
-function inline__P11273(s) {
+function inline__P70507(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50783,36 +48151,104 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = r0 = s.caps[0];
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 456; s.pc = 1; return s.tmp_2;
- case 1:
+ s.tmp_0 = tileworld_TileSprite_update__P69368_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 400; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
+ r0 = s.arg0.fields["dir"];
s.tmp_1 = r0;
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 457; s.pc = 2; return s.tmp_4;
+ r0 = (s.tmp_1 != 4);
+ 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["dir"];
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["lastDir"];
+ 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; }
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_5 = r0;
+ s.tmp_7 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.callLocIdx = 401; s.pc = 6; return s.tmp_7;
+ case 6:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1);
+ s.tmp_6 = r0;
+ s.tmp_9 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_9.arg0 = s.arg0;
+ s.callLocIdx = 402; s.pc = 7; return s.tmp_9;
+ case 7:
+ r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_5, s.tmp_6, s.tmp_8, 1);
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_0 = r0;
+ s.tmp_3 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.callLocIdx = 403; s.pc = 8; return s.tmp_3;
+ case 8:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ s.tmp_5 = tileworld_moveXdelta__P63615_mk(s);
+ r0 = s.arg0.fields["dir"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 404; s.pc = 9; return s.tmp_5;
+ case 9:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = (s.tmp_2 + s.tmp_4);
+ s.tmp_1 = r0;
+ s.tmp_8 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.callLocIdx = 405; s.pc = 10; return s.tmp_8;
+ case 10:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ s.tmp_10 = tileworld_moveYdelta__P63616_mk(s);
+ r0 = s.arg0.fields["dir"];
+ s.tmp_10.arg0 = r0;
+ s.callLocIdx = 406; s.pc = 11; return s.tmp_10;
+ case 11:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_7 + s.tmp_9);
+ s.tmp_6 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_6, 1);
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P11273.info = {"start":29127,"length":100,"line":646,"column":55,"endLine":648,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+inline__P70507.info = {"start":17679,"length":475,"line":404,"column":28,"endLine":413,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P11273_mk(s) {
+function inline__P70507_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11273, depth: s.depth + 1,
+ parent: s, fn: inline__P70507, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -50820,7 +48256,7 @@ function inline__P11273_mk(s) {
-function tiles_TileMap_getTileIndex__P2327(s) {
+function inline__P70555(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50830,161 +48266,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.tm___70557 = undefined;
+ s.old___70561 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_0 = tiles_TileMapData_getTile__P2307_mk(s);
- s.tmp_1 = tiles_TileMap__C2314_v0_1_mk(s);
- s.tmp_1.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.data;
- s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 752; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 408; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- return leave(s, r0)
- default: oops()
-} } }
-tiles_TileMap_getTileIndex__P2327.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]}
-
-function tiles_TileMap_getTileIndex__P2327_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tiles_TileMap_getTileIndex__P2327, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
-} }
-
-
-
-
-
-function tiles_TileMap_data__P4221(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = s.arg0.fields["_map"];
- return leaveAccessor(s, r0)
- default: oops()
-} } }
-tiles_TileMap_data__P4221.info = {"start":6344,"length":75,"line":231,"column":8,"endLine":233,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]}
-tiles_TileMap_data__P4221.isGetter = true;
-
-function tiles_TileMap_data__P4221_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tiles_TileMap_data__P4221, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
-} }
-
-
-
-
-
-function tiles_TileMapData_getTile__P2307(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.arg2;
- s.callLocIdx = 733; s.pc = 4; return s.tmp_1;
+ r0 = r0.fields["tileMap"];
+ s.tm___70557 = (r0);
+ s.tmp_0 = tiles_TileMap__C62309_v8_3_mk(s);
+ s.tmp_0.arg0 = s.tm___70557;
+ r0 = s.arg0.fields["col"];
+ s.tmp_0.arg1 = r0;
+ r0 = s.arg0.fields["row"];
+ s.tmp_0.arg2 = r0;
+ if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.getTileIndex;
+ s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
+ s.old___70561 = (r0);
+ r0 = s.arg0.fields["kind"];
+ s.tmp_1 = r0;
+ r0 = (s.old___70561 != s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = 0;
- { step = 3; continue; }
+ s.tmp_2 = tiles_TileMap__C62309_v9_4_mk(s);
+ s.tmp_2.arg0 = s.tm___70557;
+ r0 = s.arg0.fields["col"];
+ s.tmp_2.arg1 = r0;
+ r0 = s.arg0.fields["row"];
+ s.tmp_2.arg2 = r0;
+ r0 = s.arg0.fields["kind"];
+ s.tmp_2.arg3 = r0;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.setTileAt;
+ s.pc = 5; return s.tmp_2;
+ case 5:
+ r0 = s.retval;
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["col"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["row"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, 1);
case 1:
case 2:
- r0 = s.arg0.fields["data"];
- s.tmp_2 = r0;
- r0 = (s.arg1 | 0);
- s.tmp_5 = r0;
- r0 = (4 + s.tmp_5);
- s.tmp_4 = r0;
- r0 = (s.arg2 | 0);
- s.tmp_7 = r0;
- r0 = s.arg0.fields["_width"];
- s.tmp_8 = r0;
- r0 = (s.tmp_7 * s.tmp_8);
- s.tmp_6 = r0;
- r0 = (s.tmp_4 + s.tmp_6);
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3);
- case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_getTile__P2307.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
+inline__P70555.info = {"start":18264,"length":316,"line":415,"column":38,"endLine":422,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["pt"]}
-function tiles_TileMapData_getTile__P2307_mk(s) {
+function inline__P70555_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_getTile__P2307, depth: s.depth + 1,
+ parent: s, fn: inline__P70555, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ tm___70557: undefined,
+ old___70561: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tiles_TileMapData_isOutsideMap__P2313(s) {
+function tiles_TileMap_setTileAt__P62323(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -50998,55 +48356,67 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- r0 = (s.arg1 < 0);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_3 = tiles_TileMapData_isOutsideMap__P62308_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.arg1;
+ s.tmp_3.arg2 = s.arg2;
+ s.callLocIdx = 753; s.pc = 5; return s.tmp_3;
+ case 5:
+ 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);
- if (!r0) { step = 1; continue; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["_width"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 >= s.tmp_2);
+ s.tmp_6 = tiles_TileMap__C62309_v10_2_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.arg3;
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
+ s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex;
+ s.pc = 6; return s.tmp_6;
+ case 6:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ s.tmp_4 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_4);
case 2:
// jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_7);
if (!r0) { step = 3; continue; }
- r0 = s.tmp_3;
- { step = 4; continue; }
+ s.tmp_8 = tiles_TileMapData_setTile__P62303_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_8.arg0 = r0;
+ s.tmp_8.arg1 = s.arg1;
+ s.tmp_8.arg2 = s.arg2;
+ s.tmp_8.arg3 = s.arg3;
+ s.callLocIdx = 754; s.pc = 7; return s.tmp_8;
+ case 7:
+ r0 = s.retval;
case 3:
- r0 = (s.arg2 < 0);
case 4:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (!r0) { step = 5; continue; }
- r0 = s.tmp_4;
- { step = 6; continue; }
- case 5:
- s.tmp_5 = r0 = s.arg2;
- r0 = s.arg0.fields["_height"];
- s.tmp_6 = r0;
- r0 = (s.tmp_5 >= s.tmp_6);
- case 6:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = s.tmp_7;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_isOutsideMap__P2313.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]}
+tiles_TileMap_setTileAt__P62323.info = {"start":7495,"length":209,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]}
-function tiles_TileMapData_isOutsideMap__P2313_mk(s) {
+function tiles_TileMap_setTileAt__P62323_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_isOutsideMap__P2313, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_setTileAt__P62323, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -51056,16 +48426,18 @@ function tiles_TileMapData_isOutsideMap__P2313_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
+ tmp_8: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_TileWorldVM_allSprites__P9572(s) {
+function tiles_TileMap_isInvalidIndex__P64219(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51081,28 +48453,28 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P9979);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = (s.arg1 < 0);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["sprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 322; 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 = undefined;
+ r0 = (s.arg1 > 255);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = s.tmp_1;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_allSprites__P9572.info = {"start":10446,"length":179,"line":244,"column":8,"endLine":248,"endColumn":9,"fileName":"vm.ts","functionName":"allSprites","argumentNames":["this","handler"]}
+tiles_TileMap_isInvalidIndex__P64219.info = {"start":10071,"length":106,"line":343,"column":8,"endLine":345,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]}
-function tileworld_TileWorldVM_allSprites__P9572_mk(s) {
+function tiles_TileMap_isInvalidIndex__P64219_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_allSprites__P9572, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_isInvalidIndex__P64219, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -51114,7 +48486,7 @@ function tileworld_TileWorldVM_allSprites__P9572_mk(s) {
-function inline__P9979(s) {
+function tiles_TileMapData_setTile__P62303(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51126,114 +48498,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.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(s.arg0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P9984);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ s.tmp_1 = tiles_TileMapData_isOutsideMap__P62308_mk(s);
s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 321; s.pc = 3; return s.tmp_1;
- case 3:
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.arg2;
+ s.callLocIdx = 735; s.pc = 6; return s.tmp_1;
+ case 6:
r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 5; continue; }
case 1:
case 2:
+ r0 = s.arg0.fields["data"];
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 3; continue; }
+ s.tmp_4 = r0 = s.arg0;
+ r0 = s.arg0.fields["data"];
+ s.tmp_6 = r0;
+ r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4).fields["data"] = (s.tmp_5);
+ case 3:
+ case 4:
+ r0 = s.arg0.fields["data"];
+ s.tmp_0 = r0;
+ r0 = (s.arg1 | 0);
+ s.tmp_3 = r0;
+ r0 = (4 + s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.arg2 | 0);
+ s.tmp_5 = r0;
+ r0 = s.arg0.fields["_width"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_5 * s.tmp_6);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_2 + s.tmp_4);
+ s.tmp_1 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3);
+ case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9979.info = {"start":10536,"length":77,"line":245,"column":36,"endLine":247,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ls"]}
+tiles_TileMapData_setTile__P62303.info = {"start":4207,"length":315,"line":158,"column":8,"endLine":166,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]}
-function inline__P9979_mk(s) {
+function tiles_TileMapData_setTile__P62303_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9979, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_setTile__P62303, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function inline__P9984(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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 = lambda_2_mk(s);
- s.tmp_0.argL = s.caps[0];
- s.tmp_0.arg0 = s.arg0;
- setupLambda(s.tmp_0, s.tmp_0.argL);
- s.callLocIdx = 320; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P9984.info = {"start":10580,"length":17,"line":246,"column":35,"endLine":246,"endColumn":52,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-
-function inline__P9984_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P9984, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_Tile_constructor__P9549(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_Tile__C9548_VT)) failedCast(r0);
- r0 = (s.arg0).fields["col"] = (s.arg1);
- r0 = (s.arg0).fields["row"] = (s.arg2);
- r0 = (s.arg0).fields["kind"] = (s.arg3);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Tile_constructor__P9549.info = {"start":2918,"length":84,"line":63,"column":8,"endLine":64,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","col","row","kind"]}
-
-function tileworld_Tile_constructor__P9549_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Tile_constructor__P9549, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -51244,7 +48576,7 @@ function tileworld_Tile_constructor__P9549_mk(s) {
-function tileworld_TileSprite_row__P9371(s) {
+function tileworld_TileSprite_update__P69368(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51259,26 +48591,117 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0);
- s.tmp_1 = Sprite_y__P2024_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 289; s.pc = 1; return s.tmp_1;
+ if (!checkSubtype(r0, tileworld_TileSprite__C69364_VT)) failedCast(r0);
+ r0 = s.arg0.fields["dir"];
+ s.tmp_0 = r0;
+ r0 = (s.arg0).fields["lastDir"] = (s.tmp_0);
+ r0 = s.arg0.fields["inst"];
+ 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 = s.arg0.fields["arg"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 < 4);
+ 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.fields["arg"];
+ { step = 4; continue; }
+ case 3:
+ r0 = 4;
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = (s.arg0).fields["dir"] = (s.tmp_4);
+ r0 = s.arg0.fields["dir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = -100;
+ { step = 8; continue; }
+ case 5:
+ r0 = s.arg0.fields["dir"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 2);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 6; continue; }
+ r0 = 100;
+ { step = 7; continue; }
+ case 6:
+ r0 = 0;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.tmp_6 = Sprite_vx__P62022_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.tmp_5;
+ s.callLocIdx = 292; s.pc = 13; return s.tmp_6;
+ case 13:
r0 = s.retval;
+ r0 = s.arg0.fields["dir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ r0 = -100;
+ { step = 12; continue; }
+ case 9:
+ r0 = s.arg0.fields["dir"];
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 10; continue; }
+ r0 = 100;
+ { step = 11; continue; }
+ case 10:
+ r0 = 0;
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.tmp_6 = Sprite_vy__P62024_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = s.tmp_5;
+ s.callLocIdx = 293; s.pc = 14; return s.tmp_6;
+ case 14:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite_row__P9371.info = {"start":1168,"length":36,"line":28,"column":8,"endLine":28,"endColumn":44,"fileName":"vm.ts","functionName":"row","argumentNames":["this"]}
+tileworld_TileSprite_update__P69368.info = {"start":1240,"length":442,"line":30,"column":8,"endLine":36,"endColumn":9,"fileName":"vm.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_TileSprite_row__P9371_mk(s) {
+function tileworld_TileSprite_update__P69368_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite_row__P9371, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileSprite_update__P69368, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -51286,7 +48709,7 @@ function tileworld_TileSprite_row__P9371_mk(s) {
-function tileworld_TileSprite_col__P9370(s) {
+function tileworld_TileWorldVM_collisionDetection__P69576(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51296,39 +48719,138 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.rcs___70166 = undefined;
+ s.wcol___70173 = undefined;
+ s.wrow___70182 = undefined;
+ s.tm___70197 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0);
- s.tmp_1 = Sprite_x__P2022_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 288; s.pc = 1; return s.tmp_1;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
+ s.rcs___70166 = (r0);
+ s.tmp_3 = tileworld_TileWorldVM_moving__P69575_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.arg1;
+ s.callLocIdx = 344; s.pc = 6; return s.tmp_3;
+ case 6:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.rcs___70166;
+ { step = 5; continue; }
case 1:
+ case 2:
+ s.tmp_5 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_5.arg0 = s.arg1;
+ s.callLocIdx = 345; s.pc = 7; return s.tmp_5;
+ case 7:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ s.tmp_7 = tileworld_moveXdelta__P63615_mk(s);
+ r0 = s.arg1.fields["arg"];
+ s.tmp_7.arg0 = r0;
+ s.callLocIdx = 346; s.pc = 8; return s.tmp_7;
+ case 8:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_4 + s.tmp_6);
+ s.wcol___70173 = (r0);
+ s.tmp_1 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.callLocIdx = 347; s.pc = 9; return s.tmp_1;
+ case 9:
r0 = s.retval;
s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
+ s.tmp_3 = tileworld_moveYdelta__P63616_mk(s);
+ r0 = s.arg1.fields["arg"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 348; s.pc = 10; return s.tmp_3;
+ case 10:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ s.wrow___70182 = (r0);
+ s.tmp_3 = tileworld_TileWorldVM_inBounds__P69582_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.wcol___70173;
+ s.tmp_3.arg2 = s.wrow___70182;
+ s.callLocIdx = 349; s.pc = 11; return s.tmp_3;
+ case 11:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.rcs___70166;
+ { step = 5; continue; }
+ case 3:
+ case 4:
+ s.tmp_4 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 350; s.pc = 12; return s.tmp_4;
+ case 12:
+ r0 = s.retval;
+ r0 = r0.fields["tileMap"];
+ s.tm___70197 = (r0);
+ r0 = pxsim_pxtcore_mkAction(6, inline__P70203);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.tm___70197);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.wcol___70173);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.wrow___70182);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rcs___70166);
+ s.tmp_1 = tileworld_TileWorldVM_collidingRules__P69574_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 388; s.pc = 13; return s.tmp_1;
+ case 13:
+ r0 = s.retval;
+ r0 = s.rcs___70166;
+ case 5:
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite_col__P9370.info = {"start":1080,"length":36,"line":27,"column":8,"endLine":27,"endColumn":44,"fileName":"vm.ts","functionName":"col","argumentNames":["this"]}
+tileworld_TileWorldVM_collisionDetection__P69576.info = {"start":13183,"length":3389,"line":310,"column":8,"endLine":375,"endColumn":9,"fileName":"vm.ts","functionName":"collisionDetection","argumentNames":["this","ts"]}
-function tileworld_TileSprite_col__P9370_mk(s) {
+function tileworld_TileWorldVM_collisionDetection__P69576_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite_col__P9370, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_collisionDetection__P69576, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ rcs___70166: undefined,
+ wcol___70173: undefined,
+ wrow___70182: undefined,
+ tm___70197: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_TileWorldVM_continueRound__P9571(s) {
+function inline__P70203(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51338,221 +48860,177 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ruleClosures___9821 = undefined;
- s.ts___9871 = undefined;
- s.ts___9913 = undefined;
- s.ts___9947 = undefined;
+ s.wd___70205 = undefined;
+ s.includePassed___70224 = undefined;
+ s.kind___70225 = undefined;
+ s.hasInclude___70256 = undefined;
+ s.kind___70257 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["phase"];
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_2 = tileworld_moveXdelta__P63615_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 351; s.pc = 17; return s.tmp_2;
+ case 17:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
+ r0 = (2 + s.tmp_1);
+ s.tmp_0.arg1 = r0;
+ s.tmp_4 = tileworld_moveYdelta__P63616_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 352; s.pc = 18; return s.tmp_4;
+ case 18:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (2 + s.tmp_3);
+ s.tmp_0.arg2 = r0;
+ s.callLocIdx = 353; s.pc = 16; return s.tmp_0;
+ case 16:
+ r0 = s.retval;
+ s.wd___70205 = (r0);
+ r0 = (s.wd___70205 == -1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
- s.ruleClosures___9821 = (r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P9827);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.ruleClosures___9821);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["ruleIndex"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_2, 3);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 312; s.pc = 22; return s.tmp_1;
- case 22:
- r0 = s.retval;
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["phase"] = (0);
- r0 = s.ruleClosures___9821;
- { step = 21; continue; }
+ { step = 15; continue; }
case 1:
case 2:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["phase"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
+ s.includePassed___70224 = (false);
+ s.kind___70225 = (0);
+ case 3:
+ s.tmp_1 = r0 = s.kind___70225;
+ r0 = s.caps[1].fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
s.tmp_4 = r0;
r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 0);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_7 = tileworld_RuleView_getSetBgAttr__P63644_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.wd___70205;
+ s.tmp_7.arg2 = s.kind___70225;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 355; s.pc = 19; return s.tmp_7;
+ case 19:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 == 1);
s.tmp_5 = r0;
- r0 = pxsim_Array_.pop(s.tmp_5);
- s.ts___9871 = (r0);
- s.tmp_0 = tileworld_TileWorldVM_applyRules__P9577_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.tmp_0.arg2 = s.ts___9871;
- s.callLocIdx = 313; s.pc = 23; return s.tmp_0;
- case 23:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 6; continue; }
+ s.tmp_10 = tiles_TileMap__C62309_v8_3_mk(s);
+ s.tmp_10.arg0 = s.caps[2];
+ s.tmp_10.arg1 = s.caps[3];
+ s.tmp_10.arg2 = s.caps[4];
+ if (!checkSubtype(s.tmp_10.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_10.arg0);
+ s.tmp_10.fn = s.tmp_10.arg0.vtable.methods.getTileIndex;
+ s.pc = 20; return s.tmp_10;
+ case 20:
r0 = s.retval;
- { step = 21; continue; }
- { step = 4; continue; }
- case 3:
- r0 = s.arg0.fields["vm"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1).fields["phase"] = (1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P9885);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 314; s.pc = 24; return s.tmp_1;
- case 24:
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 == s.kind___70225);
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_8);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C69557_VT);
+ s.tmp_11 = r0;
+ s.tmp_12 = tileworld_RuleClosure_constructor__P69558_mk(s);
+ s.tmp_12.arg0 = s.tmp_11;
+ s.tmp_12.arg1 = s.arg0;
+ s.tmp_12.arg2 = s.caps[0];
+ r0 = pxsim_Array__mk();
+ s.tmp_12.arg3 = r0;
+ s.callLocIdx = 356; s.pc = 21; return s.tmp_12;
+ case 21:
r0 = s.retval;
+ r0 = pxsim_Array__push(s.caps[5], s.tmp_11);
+ { step = 15; continue; }
case 4:
case 5:
case 6:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["phase"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 0);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 9; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_5 = r0;
- r0 = pxsim_Array_.pop(s.tmp_5);
- s.ts___9913 = (r0);
- s.tmp_1 = tileworld_TileWorldVM_contextChanged__P9573_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.ts___9913;
- s.callLocIdx = 315; s.pc = 25; return s.tmp_1;
- case 25:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_2 = tileworld_TileWorldVM_applyRules__P9577_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = 1;
- s.tmp_2.arg2 = s.ts___9913;
- s.callLocIdx = 316; s.pc = 26; return s.tmp_2;
- case 26:
- r0 = s.retval;
- { step = 21; continue; }
case 7:
+ r0 = (s.kind___70225 + 1);
+ s.kind___70225 = (r0);
+ { step = 3; continue; }
case 8:
- { step = 10; continue; }
+ s.hasInclude___70256 = (false);
+ s.kind___70257 = (0);
case 9:
- r0 = s.arg0.fields["vm"];
+ s.tmp_1 = r0 = s.kind___70257;
+ r0 = s.caps[1].fields["p"];
s.tmp_3 = r0;
- r0 = (s.tmp_3).fields["phase"] = (2);
- r0 = pxsim_pxtcore_mkAction(1, inline__P9929);
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 317; s.pc = 27; return s.tmp_1;
- case 27:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ s.tmp_7 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.wd___70205;
+ s.tmp_7.arg2 = s.kind___70257;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 358; s.pc = 22; return s.tmp_7;
+ case 22:
r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 == 1);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 10; continue; }
+ s.hasInclude___70256 = (true);
case 10:
case 11:
+ r0 = (s.kind___70257 + 1);
+ s.kind___70257 = (r0);
+ { step = 9; continue; }
case 12:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["phase"];
+ r0 = pxsim_numops_toBoolDecr(s.hasInclude___70256);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 17; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 > 0);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 13; continue; }
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_5 = r0;
- r0 = pxsim_Array_.pop(s.tmp_5);
- s.ts___9947 = (r0);
- s.tmp_0 = tileworld_TileWorldVM_collisionDetection__P9580_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.ts___9947;
- s.callLocIdx = 318; s.pc = 28; return s.tmp_0;
- case 28:
- r0 = s.retval;
- { step = 21; continue; }
- { step = 16; continue; }
- case 13:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["movingToResting"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 > 0);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 14; continue; }
{ step = 15; continue; }
+ case 13:
case 14:
- r0 = s.arg0.fields["vm"];
- s.tmp_4 = r0;
- r0 = (s.tmp_4).fields["phase"] = (-1);
- case 15:
- case 16:
- case 17:
- case 18:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["phase"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 19; continue; }
- s.tmp_2 = tileworld_TileWorldVM_updateWorld__P9583_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 319; s.pc = 29; return s.tmp_2;
- case 29:
+ r0 = pxsim_pxtcore_mkAction(7, inline__P70277);
+ s.tmp_2 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.caps[0]);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 2, s.wd___70205);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 3, s.caps[3]);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 4, s.caps[4]);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 5, s.caps[1]);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 6, s.caps[5]);
+ s.tmp_3 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_3.arg0 = s.caps[1];
+ s.tmp_3.arg1 = s.tmp_2;
+ s.callLocIdx = 387; s.pc = 23; return s.tmp_3;
+ case 23:
r0 = s.retval;
- case 19:
- case 20:
- r0 = null;
- case 21:
+ case 15:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_continueRound__P9571.info = {"start":7586,"length":2850,"line":178,"column":8,"endLine":242,"endColumn":10,"fileName":"vm.ts","functionName":"continueRound","argumentNames":["this"]}
+inline__P70203.info = {"start":13583,"length":2953,"line":318,"column":36,"endLine":373,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function tileworld_TileWorldVM_continueRound__P9571_mk(s) {
+function inline__P70203_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_continueRound__P9571, depth: s.depth + 1,
+ parent: s, fn: inline__P70203, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -51560,10 +49038,18 @@ function tileworld_TileWorldVM_continueRound__P9571_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- ruleClosures___9821: undefined,
- ts___9871: undefined,
- ts___9913: undefined,
- ts___9947: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ wd___70205: undefined,
+ includePassed___70224: undefined,
+ kind___70225: undefined,
+ hasInclude___70256: undefined,
+ kind___70257: undefined,
arg0: undefined,
} }
@@ -51571,7 +49057,7 @@ function tileworld_TileWorldVM_continueRound__P9571_mk(s) {
-function inline__P9827(s) {
+function inline__P70277(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51581,75 +49067,357 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.kind___9829 = undefined;
- s.witnesses___9836 = undefined;
+ s.leftRotate___70319 = undefined;
+ s.osCol___70324 = undefined;
+ s.osRow___70330 = undefined;
+ s.rightRotate___70357 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleView_findWitnessColRow__P3650_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.tmp_0.arg2 = 2;
- s.tmp_0.arg3 = false;
- s.callLocIdx = 310; s.pc = 8; return s.tmp_0;
+ r0 = (s.arg0 == s.caps[0]);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_2 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_2.arg0 = s.caps[1];
+ s.tmp_2.arg1 = s.caps[2];
+ r0 = s.arg0.fields["_kind"];
+ s.tmp_2.arg2 = r0;
+ s.tmp_2.arg3 = 65535;
+ s.callLocIdx = 360; s.pc = 34; return s.tmp_2;
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 != 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 = 33; continue; }
+ case 3:
+ case 4:
+ s.tmp_6 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.callLocIdx = 361; s.pc = 35; return s.tmp_6;
+ case 35:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 == s.caps[3]);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_4;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_8 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.callLocIdx = 362; s.pc = 36; return s.tmp_8;
+ case 36:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == s.caps[4]);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 11; continue; }
+ s.tmp_13 = tileworld_TileWorldVM_moving__P69575_mk(s);
+ s.tmp_13.arg0 = s.caps[5];
+ s.tmp_13.arg1 = s.arg0;
+ s.callLocIdx = 363; s.pc = 37; return s.tmp_13;
+ case 37:
+ r0 = s.retval;
+ s.tmp_12 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_12);
+ s.tmp_11 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_11);
+ s.tmp_10 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_10);
+ if (!r0) { step = 7; continue; }
+ r0 = s.tmp_10;
+ { step = 8; continue; }
+ case 7:
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_14 = r0;
+ r0 = s.arg0.fields["arg"];
+ s.tmp_15 = r0;
+ r0 = (s.tmp_14 + 2);
+ s.tmp_17 = r0;
+ r0 = (s.tmp_17 % 4);
+ s.tmp_16 = r0;
+ r0 = (s.tmp_16 == s.tmp_15);
case 8:
+ // jmp value (already in r0)
+ s.tmp_18 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_18);
+ if (!r0) { step = 9; continue; }
+ s.tmp_19 = tileworld_TileWorldVM_collide__P69578_mk(s);
+ s.tmp_19.arg0 = s.caps[5];
+ s.tmp_19.arg1 = s.caps[1];
+ s.tmp_19.arg2 = s.caps[0];
+ s.tmp_19.arg3 = s.arg0;
+ s.tmp_19.arg4 = s.caps[6];
+ s.callLocIdx = 365; s.pc = 38; return s.tmp_19;
+ case 38:
+ r0 = s.retval;
+ case 9:
+ case 10:
+ case 11:
+ case 12:
+ s.tmp_1 = tileworld_TileWorldVM_moving__P69575_mk(s);
+ s.tmp_1.arg0 = s.caps[5];
+ s.tmp_1.arg1 = s.arg0;
+ s.callLocIdx = 366; s.pc = 39; return s.tmp_1;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 31; continue; }
+ s.tmp_2 = tileworld_flipRotateDir__P63618_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = 3;
+ s.callLocIdx = 367; s.pc = 40; return s.tmp_2;
+ case 40:
+ r0 = s.retval;
+ s.leftRotate___70319 = (r0);
+ s.tmp_0 = r0 = s.caps[3];
+ s.tmp_2 = tileworld_moveXdelta__P63615_mk(s);
+ s.tmp_2.arg0 = s.leftRotate___70319;
+ s.callLocIdx = 368; s.pc = 41; return s.tmp_2;
+ case 41:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osCol___70324 = (r0);
+ s.tmp_0 = r0 = s.caps[4];
+ s.tmp_2 = tileworld_moveYdelta__P63616_mk(s);
+ s.tmp_2.arg0 = s.leftRotate___70319;
+ s.callLocIdx = 369; s.pc = 42; return s.tmp_2;
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osRow___70330 = (r0);
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 370; s.pc = 43; return s.tmp_2;
+ case 43:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.osCol___70324);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_0;
+ { step = 14; continue; }
+ case 13:
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 371; s.pc = 44; return s.tmp_4;
+ case 44:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == s.osRow___70330);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 15; continue; }
+ r0 = s.tmp_5;
+ { step = 16; continue; }
+ case 15:
+ r0 = s.arg0.fields["arg"];
+ s.tmp_6 = r0;
+ r0 = (s.leftRotate___70319 + 2);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 % 4);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == s.tmp_6);
+ case 16:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 17; continue; }
+ s.tmp_10 = tileworld_TileWorldVM_collide__P69578_mk(s);
+ s.tmp_10.arg0 = s.caps[5];
+ s.tmp_10.arg1 = s.caps[1];
+ s.tmp_10.arg2 = s.caps[0];
+ s.tmp_10.arg3 = s.arg0;
+ s.tmp_10.arg4 = s.caps[6];
+ s.callLocIdx = 373; s.pc = 45; return s.tmp_10;
+ case 45:
+ r0 = s.retval;
+ case 17:
+ case 18:
+ s.tmp_0 = tileworld_flipRotateDir__P63618_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 5;
+ s.callLocIdx = 374; s.pc = 46; return s.tmp_0;
+ case 46:
+ r0 = s.retval;
+ s.rightRotate___70357 = (r0);
+ s.tmp_0 = r0 = s.caps[3];
+ s.tmp_2 = tileworld_moveXdelta__P63615_mk(s);
+ s.tmp_2.arg0 = s.rightRotate___70357;
+ s.callLocIdx = 375; s.pc = 47; return s.tmp_2;
+ case 47:
r0 = s.retval;
- s.kind___9829 = (r0);
- r0 = (s.kind___9829 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 7; continue; }
- case 1:
- case 2:
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["sprites"];
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.kind___9829);
- s.witnesses___9836 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.witnesses___9836);
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osCol___70324 = (r0);
+ s.tmp_0 = r0 = s.caps[4];
+ s.tmp_2 = tileworld_moveYdelta__P63616_mk(s);
+ s.tmp_2.arg0 = s.rightRotate___70357;
+ s.callLocIdx = 376; s.pc = 48; return s.tmp_2;
+ case 48:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osRow___70330 = (r0);
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 377; s.pc = 49; return s.tmp_2;
+ case 49:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.osCol___70324);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 3; continue; }
+ if (r0) { step = 19; continue; }
r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- r0 = pxsim_Array__length(s.witnesses___9836);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == 0);
- case 4:
+ { step = 20; continue; }
+ case 19:
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 378; s.pc = 50; return s.tmp_4;
+ case 50:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == s.osRow___70330);
+ case 20:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 21; continue; }
+ r0 = s.tmp_5;
+ { step = 22; continue; }
+ case 21:
+ r0 = s.arg0.fields["arg"];
+ s.tmp_6 = r0;
+ r0 = (s.rightRotate___70357 + 2);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 % 4);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == s.tmp_6);
+ case 22:
// jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 23; continue; }
+ s.tmp_10 = tileworld_TileWorldVM_collide__P69578_mk(s);
+ s.tmp_10.arg0 = s.caps[5];
+ s.tmp_10.arg1 = s.caps[1];
+ s.tmp_10.arg2 = s.caps[0];
+ s.tmp_10.arg3 = s.arg0;
+ s.tmp_10.arg4 = s.caps[6];
+ s.callLocIdx = 380; s.pc = 51; return s.tmp_10;
+ case 51:
+ r0 = s.retval;
+ case 23:
+ case 24:
+ s.tmp_0 = r0 = s.caps[3];
+ s.tmp_2 = tileworld_moveXdelta__P63615_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 381; s.pc = 52; return s.tmp_2;
+ case 52:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osCol___70324 = (r0);
+ s.tmp_0 = r0 = s.caps[4];
+ s.tmp_2 = tileworld_moveYdelta__P63616_mk(s);
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 382; s.pc = 53; return s.tmp_2;
+ case 53:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.osRow___70330 = (r0);
+ s.tmp_2 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.callLocIdx = 383; s.pc = 54; return s.tmp_2;
+ case 54:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.osCol___70324);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 25; continue; }
+ r0 = s.tmp_0;
+ { step = 26; continue; }
+ case 25:
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.callLocIdx = 384; s.pc = 55; return s.tmp_4;
+ case 55:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT);
- s.tmp_4 = r0;
- s.tmp_5 = tileworld_RuleClosure_constructor__P9562_mk(s);
- s.tmp_5.arg0 = s.tmp_4;
- s.tmp_5.arg1 = s.arg0;
- s.tmp_5.arg2 = null;
- r0 = pxsim_Array__mk();
- s.tmp_5.arg3 = r0;
- s.callLocIdx = 311; s.pc = 9; return s.tmp_5;
- case 9:
+ r0 = (s.tmp_3 == s.osRow___70330);
+ case 26:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 27; continue; }
+ r0 = s.tmp_5;
+ { step = 28; continue; }
+ case 27:
+ r0 = s.caps[0].fields["arg"];
+ s.tmp_6 = r0;
+ r0 = s.arg0.fields["arg"];
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 + 2);
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 % 4);
+ s.tmp_8 = r0;
+ r0 = (s.tmp_8 == s.tmp_7);
+ case 28:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_10);
+ if (!r0) { step = 29; continue; }
+ s.tmp_11 = tileworld_TileWorldVM_collide__P69578_mk(s);
+ s.tmp_11.arg0 = s.caps[5];
+ s.tmp_11.arg1 = s.caps[1];
+ s.tmp_11.arg2 = s.caps[0];
+ s.tmp_11.arg3 = s.arg0;
+ s.tmp_11.arg4 = s.caps[6];
+ s.callLocIdx = 386; s.pc = 56; return s.tmp_11;
+ case 56:
r0 = s.retval;
- r0 = pxsim_Array__push(s.caps[1], s.tmp_4);
- case 5:
- case 6:
- case 7:
+ case 29:
+ case 30:
+ case 31:
+ case 32:
+ case 33:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9827.info = {"start":7843,"length":640,"line":182,"column":63,"endLine":195,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+inline__P70277.info = {"start":14830,"length":1690,"line":343,"column":32,"endLine":372,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["os"]}
-function inline__P9827_mk(s) {
+function inline__P70277_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9827, depth: s.depth + 1,
+ parent: s, fn: inline__P70277, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -51657,8 +49425,24 @@ function inline__P9827_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- kind___9829: undefined,
- witnesses___9836: 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,
+ leftRotate___70319: undefined,
+ osCol___70324: undefined,
+ osRow___70330: undefined,
+ rightRotate___70357: undefined,
arg0: undefined,
} }
@@ -51666,7 +49450,7 @@ function inline__P9827_mk(s) {
-function inline__P9885(s) {
+function tileworld_TileWorldVM_collide__P69578(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51678,46 +49462,54 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["buttonMatch"];
- s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg0, undefined);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == -1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C69557_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__push(s.tmp_3, s.arg0);
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.arg3);
+ s.tmp_2 = tileworld_RuleClosure_constructor__P69558_mk(s);
+ s.tmp_2.arg0 = s.tmp_0;
+ s.tmp_2.arg1 = s.arg1;
+ s.tmp_2.arg2 = s.arg2;
+ s.tmp_2.arg3 = s.tmp_1;
+ s.callLocIdx = 389; s.pc = 1; return s.tmp_2;
case 1:
- case 2:
+ r0 = s.retval;
+ r0 = pxsim_Array__push(s.arg4, s.tmp_0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9885.info = {"start":8970,"length":222,"line":206,"column":36,"endLine":210,"endColumn":21,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_TileWorldVM_collide__P69578.info = {"start":16647,"length":150,"line":381,"column":8,"endLine":383,"endColumn":9,"fileName":"vm.ts","functionName":"collide","argumentNames":["this","rv","ts","os","rcs"]}
-function inline__P9885_mk(s) {
+function tileworld_TileWorldVM_collide__P69578_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9885, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_collide__P69578, depth: s.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 inline__P9929(s) {
+function tileworld_oppDir__P63617(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51729,32 +49521,35 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["queued"];
+ r0 = (s.arg0 + 2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 % 4);
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
- r0 = undefined;
+ r0 = (s.tmp_0 == s.arg1);
return leave(s, r0)
default: oops()
} } }
-inline__P9929.info = {"start":9683,"length":33,"line":222,"column":36,"endLine":222,"endColumn":69,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_oppDir__P63617.info = {"start":5124,"length":109,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"rule.ts","functionName":"oppDir","argumentNames":["dir","dir2"]}
-function inline__P9929_mk(s) {
+function tileworld_oppDir__P63617_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9929, depth: s.depth + 1,
+ parent: s, fn: tileworld_oppDir__P63617, 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 tileworld_TileWorldVM_updateWorld__P9583(s) {
+function tileworld_TileWorldVM_collidingRules__P69574(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51764,185 +49559,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___10593 = undefined;
- s.inst___10600 = undefined;
- s.arg___10604 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P10462);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["spawnedSprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 394; s.pc = 15; return s.tmp_1;
- case 15:
- r0 = s.retval;
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spawnedSprites"] = (s.tmp_1);
- r0 = pxsim_pxtcore_mkAction(1, inline__P10499);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["deadSprites"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 397; s.pc = 16; return s.tmp_1;
- case 16:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P10511);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 405; s.pc = 17; return s.tmp_1;
- case 17:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P10559);
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkAction(3, inline__P70140);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["paintTile"];
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["ruleIndex"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_2, 2);
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 407; s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- s.i___10593 = (0);
+ s.callLocIdx = 343; s.pc = 1; return s.tmp_1;
case 1:
- s.tmp_1 = r0 = s.i___10593;
- r0 = s.arg0.fields["globalInsts"];
- 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 = 14; continue; }
- r0 = s.arg0.fields["globalInsts"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.i___10593);
- s.inst___10600 = (r0);
- r0 = s.arg0.fields["globalArgs"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.i___10593);
- s.arg___10604 = (r0);
- s.tmp_0 = r0 = s.inst___10600;
- r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_0;
- { step = 13; continue; }
- case 2:
- r0 = (s.arg___10604 == 0);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_1;
- { step = 4; continue; }
- case 3:
- r0 = (s.arg___10604 == 1);
- case 4:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 7; continue; }
- r0 = (s.arg___10604 == 0);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 5; continue; }
- r0 = 1;
- { step = 6; continue; }
- case 5:
- r0 = 2;
- case 6:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.arg0.fields["vm"];
- s.tmp_5 = r0;
- r0 = (s.tmp_5).fields["game"] = (s.tmp_4);
- { step = 12; continue; }
- case 7:
- r0 = (s.arg___10604 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 10; continue; }
- r0 = s.arg0.fields["vm"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["score"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 10);
- s.tmp_2 = r0;
- r0 = (s.tmp_1).fields["score"] = (s.tmp_2);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["score"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["highScore"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 > s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- r0 = s.arg0.fields["vm"];
- s.tmp_3 = r0;
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["score"];
- s.tmp_4 = r0;
- r0 = (s.tmp_3).fields["highScore"] = (s.tmp_4);
- case 8:
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- r0 = (s.i___10593 + 1);
- s.i___10593 = (r0);
- { step = 1; continue; }
- case 14:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_updateWorld__P9583.info = {"start":16942,"length":2613,"line":388,"column":8,"endLine":444,"endColumn":9,"fileName":"vm.ts","functionName":"updateWorld","argumentNames":["this"]}
+tileworld_TileWorldVM_collidingRules__P69574.info = {"start":12433,"length":308,"line":293,"column":8,"endLine":299,"endColumn":9,"fileName":"vm.ts","functionName":"collidingRules","argumentNames":["this","ts","handler"]}
-function tileworld_TileWorldVM_updateWorld__P9583_mk(s) {
+function tileworld_TileWorldVM_collidingRules__P69574_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_updateWorld__P9583, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_collidingRules__P69574, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- i___10593: undefined,
- inst___10600: undefined,
- arg___10604: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P10462(s) {
+function inline__P70140(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -51956,60 +49618,51 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["sprites"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["_kind"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 389; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 390; s.pc = 4; return s.tmp_4;
- case 4:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = false;
- s.callLocIdx = 391; s.pc = 5; return s.tmp_0;
+ s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P69570_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.caps[1];
+ s.callLocIdx = 340; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- r0 = s.arg0.fields["_kind"];
- 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_2 = scene_cameraFollowSprite__P2456_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 393; s.pc = 6; return s.tmp_2;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_2 = tileworld_TileWorldVM_ruleMatchesDirection__P69572_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = s.arg0;
+ r0 = s.caps[1].fields["arg"];
+ s.tmp_2.arg2 = r0;
+ s.callLocIdx = 341; s.pc = 6; return s.tmp_2;
case 6:
r0 = s.retval;
- case 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.tmp_4 = lambda_2_mk(s);
+ s.tmp_4.argL = s.caps[2];
+ s.tmp_4.arg0 = s.arg0;
+ setupLambda(s.tmp_4, s.tmp_4.argL);
+ s.callLocIdx = 342; s.pc = 7; return s.tmp_4;
+ case 7:
+ r0 = s.retval;
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P10462.info = {"start":17073,"length":282,"line":391,"column":43,"endLine":397,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+inline__P70140.info = {"start":12562,"length":167,"line":294,"column":55,"endLine":298,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function inline__P10462_mk(s) {
+function inline__P70140_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10462, depth: s.depth + 1,
+ parent: s, fn: inline__P70140, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -52023,7 +49676,7 @@ function inline__P10462_mk(s) {
-function inline__P10499(s) {
+function tileworld_TileWorldVM_ruleMatchesDirection__P69572(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52035,48 +49688,46 @@ 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.caps[0].fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 395; s.pc = 1; return s.tmp_2;
- case 1:
- r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 396; s.pc = 2; return s.tmp_4;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_TileWorldVM_exprMatchesDirection__P69571_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_1 = tileworld_RuleView_getDirFromRule__P63639_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.callLocIdx = 333; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1);
- r0 = undefined;
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.arg2;
+ s.callLocIdx = 334; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-inline__P10499.info = {"start":17494,"length":86,"line":400,"column":40,"endLine":402,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_TileWorldVM_ruleMatchesDirection__P69572.info = {"start":11613,"length":141,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesDirection","argumentNames":["this","rv","dir"]}
-function inline__P10499_mk(s) {
+function tileworld_TileWorldVM_ruleMatchesDirection__P69572_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10499, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_ruleMatchesDirection__P69572, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P10511(s) {
+function tileworld_TileWorldVM_exprMatchesDirection__P69571(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52088,114 +49739,69 @@ 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 = tileworld_TileSprite_update__P9372_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 398; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- r0 = s.arg0.fields["dir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != 4);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = (s.arg1 == 6);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 2; continue; }
+ { step = 4; continue; }
case 1:
- r0 = s.arg0.fields["dir"];
- s.tmp_2 = r0;
- r0 = s.arg0.fields["lastDir"];
- s.tmp_3 = r0;
- r0 = (s.tmp_2 != s.tmp_3);
+ r0 = (s.arg1 == 5);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (r0) { step = 2; continue; }
+ r0 = s.tmp_1;
+ { step = 3; continue; }
case 2:
+ r0 = (s.arg2 != 4);
+ case 3:
// jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 3; continue; }
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_5 = r0;
- s.tmp_7 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.callLocIdx = 399; s.pc = 6; return s.tmp_7;
- case 6:
- r0 = s.retval;
- s.tmp_6 = r0;
- s.tmp_9 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_9.arg0 = s.arg0;
- s.callLocIdx = 400; s.pc = 7; return s.tmp_9;
- case 7:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_5, s.tmp_6, s.tmp_8, 1);
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- s.tmp_3 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 401; s.pc = 8; return s.tmp_3;
- case 8:
- r0 = s.retval;
s.tmp_2 = r0;
- s.tmp_5 = tileworld_moveXdelta__P3618_mk(s);
- r0 = s.arg0.fields["dir"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 402; s.pc = 9; return s.tmp_5;
- case 9:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_2 + s.tmp_4);
- s.tmp_1 = r0;
- s.tmp_8 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.callLocIdx = 403; s.pc = 10; return s.tmp_8;
- case 10:
- r0 = s.retval;
- s.tmp_7 = r0;
- s.tmp_10 = tileworld_moveYdelta__P3619_mk(s);
- r0 = s.arg0.fields["dir"];
- s.tmp_10.arg0 = r0;
- s.callLocIdx = 404; s.pc = 11; return s.tmp_10;
- case 11:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_7 + s.tmp_9);
- s.tmp_6 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_6, 1);
- case 3:
+ r0 = s.tmp_2;
case 4:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 5; continue; }
+ r0 = s.tmp_3;
+ { step = 6; continue; }
+ case 5:
+ r0 = (s.arg1 == s.arg2);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
return leave(s, r0)
default: oops()
} } }
-inline__P10511.info = {"start":17681,"length":475,"line":404,"column":28,"endLine":413,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tileworld_TileWorldVM_exprMatchesDirection__P69571.info = {"start":11428,"length":175,"line":270,"column":8,"endLine":272,"endColumn":9,"fileName":"vm.ts","functionName":"exprMatchesDirection","argumentNames":["this","dirExpr","dir"]}
-function inline__P10511_mk(s) {
+function tileworld_TileWorldVM_exprMatchesDirection__P69571_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10511, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_exprMatchesDirection__P69571, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ arg2: undefined,
} }
-function inline__P10559(s) {
+function tileworld_TileWorldVM_ruleMatchesSprite__P69570(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52205,83 +49811,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tm___10561 = undefined;
- s.old___10565 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 406; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- r0 = r0.fields["tileMap"];
- s.tm___10561 = (r0);
- s.tmp_0 = tiles_TileMap__C2314_v8_3_mk(s);
- s.tmp_0.arg0 = s.tm___10561;
- r0 = s.arg0.fields["col"];
- s.tmp_0.arg1 = r0;
- r0 = s.arg0.fields["row"];
- s.tmp_0.arg2 = r0;
- if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.getTileIndex;
- s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.old___10565 = (r0);
- r0 = s.arg0.fields["kind"];
- s.tmp_1 = r0;
- r0 = (s.old___10565 != s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = tiles_TileMap__C2314_v9_4_mk(s);
- s.tmp_2.arg0 = s.tm___10561;
- r0 = s.arg0.fields["col"];
- s.tmp_2.arg1 = r0;
- r0 = s.arg0.fields["row"];
- s.tmp_2.arg2 = r0;
- r0 = s.arg0.fields["kind"];
- s.tmp_2.arg3 = r0;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
- s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.setTileAt;
- s.pc = 5; return s.tmp_2;
- case 5:
+ 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, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_1 = tileworld_RuleView_hasSpriteKind__P63657_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ r0 = s.arg2.fields["_kind"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 331; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["changed"];
s.tmp_0 = r0;
- r0 = s.arg0.fields["col"];
- s.tmp_1 = r0;
- r0 = s.arg0.fields["row"];
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, 1);
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
case 1:
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["blockedSpriteKinds"];
+ s.tmp_3 = r0;
+ r0 = s.arg2.fields["_kind"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_3, s.tmp_4, undefined);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 == -1);
case 2:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
return leave(s, r0)
default: oops()
} } }
-inline__P10559.info = {"start":18266,"length":316,"line":415,"column":38,"endLine":422,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["pt"]}
+tileworld_TileWorldVM_ruleMatchesSprite__P69570.info = {"start":11248,"length":170,"line":266,"column":8,"endLine":268,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesSprite","argumentNames":["this","rv","ts"]}
-function inline__P10559_mk(s) {
+function tileworld_TileWorldVM_ruleMatchesSprite__P69570_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10559, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_ruleMatchesSprite__P69570, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tm___10561: undefined,
- old___10565: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tiles_TileMap_setTileAt__P2328(s) {
+function tileworld_TileWorldVM_inBounds__P69582(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52295,67 +49883,61 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_3 = tiles_TileMapData_isOutsideMap__P2313_mk(s);
- r0 = s.arg0.fields["_map"];
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.arg1;
- s.tmp_3.arg2 = s.arg2;
- s.callLocIdx = 753; s.pc = 5; return s.tmp_3;
- case 5:
- 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);
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = (0 <= s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_6 = tiles_TileMap__C2314_v10_2_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.arg3;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
- s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex;
- s.pc = 6; return s.tmp_6;
- case 6:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- s.tmp_4 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_4);
+ s.tmp_1 = r0 = s.arg1;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.width(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
case 2:
// jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_7);
- if (!r0) { step = 3; continue; }
- s.tmp_8 = tiles_TileMapData_setTile__P2308_mk(s);
- r0 = s.arg0.fields["_map"];
- s.tmp_8.arg0 = r0;
- s.tmp_8.arg1 = s.arg1;
- s.tmp_8.arg2 = s.arg2;
- s.tmp_8.arg3 = s.arg3;
- s.callLocIdx = 754; s.pc = 7; return s.tmp_8;
- case 7:
- r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_4;
+ { step = 4; continue; }
case 3:
+ r0 = (0 <= s.arg2);
case 4:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_5;
+ { step = 6; continue; }
+ case 5:
+ s.tmp_6 = r0 = s.arg2;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_8 = r0;
+ r0 = pxsim_ImageMethods.height(s.tmp_8);
+ s.tmp_7 = r0;
+ r0 = (s.tmp_6 < s.tmp_7);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = s.tmp_9;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_setTileAt__P2328.info = {"start":7495,"length":209,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]}
+tileworld_TileWorldVM_inBounds__P69582.info = {"start":20654,"length":177,"line":471,"column":8,"endLine":474,"endColumn":9,"fileName":"vm.ts","functionName":"inBounds","argumentNames":["this","col","row"]}
-function tiles_TileMap_setTileAt__P2328_mk(s) {
+function tileworld_TileWorldVM_inBounds__P69582_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_setTileAt__P2328, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_inBounds__P69582, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -52366,17 +49948,17 @@ function tiles_TileMap_setTileAt__P2328_mk(s) {
tmp_6: undefined,
tmp_7: undefined,
tmp_8: undefined,
+ tmp_9: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
- arg3: undefined,
} }
-function tiles_TileMap_isInvalidIndex__P4222(s) {
+function tileworld_TileWorldVM_moving__P69575(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52392,31 +49974,37 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = (s.arg1 < 0);
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = s.arg1.fields["inst"];
+ 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; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = (s.arg1 > 255);
+ r0 = s.arg1.fields["arg"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 < 4);
case 2:
// jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = s.tmp_1;
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_isInvalidIndex__P4222.info = {"start":8960,"length":106,"line":317,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]}
+tileworld_TileWorldVM_moving__P69575.info = {"start":12836,"length":115,"line":302,"column":8,"endLine":304,"endColumn":9,"fileName":"vm.ts","functionName":"moving","argumentNames":["this","ts"]}
-function tiles_TileMap_isInvalidIndex__P4222_mk(s) {
+function tileworld_TileWorldVM_moving__P69575_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_isInvalidIndex__P4222, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_moving__P69575, depth: s.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,
} }
@@ -52425,7 +50013,7 @@ function tiles_TileMap_isInvalidIndex__P4222_mk(s) {
-function tiles_TileMapData_setTile__P2308(s) {
+function tileworld_TileWorldVM_contextChanged__P69569(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52435,68 +50023,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.i___69986 = undefined;
+ s.j___69992 = undefined;
+ s.x___70006 = undefined;
+ s.y___70012 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.arg2;
- s.callLocIdx = 735; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.i___69986 = (-2);
+ case 1:
+ r0 = (s.i___69986 <= 2);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
- case 1:
+ if (!r0) { step = 10; continue; }
+ s.j___69992 = (-2);
case 2:
- r0 = s.arg0.fields["data"];
+ r0 = (s.j___69992 <= 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ s.tmp_4 = Math_abs__P60115_mk(s);
+ s.tmp_4.arg0 = s.i___69986;
+ s.callLocIdx = 325; s.pc = 12; return s.tmp_4;
+ case 12:
+ r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- s.tmp_4 = r0 = s.arg0;
- r0 = s.arg0.fields["data"];
- s.tmp_6 = r0;
- r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1);
+ s.tmp_6 = Math_abs__P60115_mk(s);
+ s.tmp_6.arg0 = s.j___69992;
+ s.callLocIdx = 326; s.pc = 13; return s.tmp_6;
+ case 13:
+ r0 = s.retval;
s.tmp_5 = r0;
- r0 = (s.tmp_4).fields["data"] = (s.tmp_5);
+ r0 = (s.tmp_3 + s.tmp_5);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 <= 2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 7; continue; }
+ s.tmp_8 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_8.arg0 = s.arg1;
+ s.callLocIdx = 327; s.pc = 14; return s.tmp_8;
+ case 14:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 + s.i___69986);
+ s.x___70006 = (r0);
+ s.tmp_1 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.callLocIdx = 328; s.pc = 15; return s.tmp_1;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 + s.j___69992);
+ s.y___70012 = (r0);
+ s.tmp_1 = tileworld_TileWorldVM_inBounds__P69582_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.x___70006;
+ s.tmp_1.arg2 = s.y___70012;
+ s.callLocIdx = 329; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
case 3:
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["changed"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___70006, s.y___70012);
case 4:
- r0 = s.arg0.fields["data"];
- s.tmp_0 = r0;
- r0 = (s.arg1 | 0);
+ // jmp value (already in r0)
s.tmp_3 = r0;
- r0 = (4 + s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.arg2 | 0);
- s.tmp_5 = r0;
- r0 = s.arg0.fields["_width"];
- s.tmp_6 = r0;
- r0 = (s.tmp_5 * s.tmp_6);
- s.tmp_4 = r0;
- r0 = (s.tmp_2 + s.tmp_4);
- s.tmp_1 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 5; continue; }
+ r0 = true;
+ { step = 11; continue; }
case 5:
- r0 = undefined;
+ case 6:
+ case 7:
+ case 8:
+ r0 = (s.j___69992 + 1);
+ s.j___69992 = (r0);
+ { step = 2; continue; }
+ case 9:
+ r0 = (s.i___69986 + 1);
+ s.i___69986 = (r0);
+ { step = 1; continue; }
+ case 10:
+ r0 = false;
+ case 11:
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_setTile__P2308.info = {"start":4207,"length":315,"line":158,"column":8,"endLine":166,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]}
+tileworld_TileWorldVM_contextChanged__P69569.info = {"start":10711,"length":527,"line":251,"column":8,"endLine":264,"endColumn":9,"fileName":"vm.ts","functionName":"contextChanged","argumentNames":["this","ts"]}
-function tiles_TileMapData_setTile__P2308_mk(s) {
+function tileworld_TileWorldVM_contextChanged__P69569_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_setTile__P2308, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_contextChanged__P69569, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -52505,17 +50135,21 @@ function tiles_TileMapData_setTile__P2308_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ i___69986: undefined,
+ j___69992: undefined,
+ x___70006: undefined,
+ y___70012: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_TileSprite_update__P9372(s) {
+function tileworld_TileWorldVM_applyRules__P69573(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52525,130 +50159,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.ruleClosures___70086 = 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, tileworld_TileSprite__C9368_VT)) failedCast(r0);
- r0 = s.arg0.fields["dir"];
- s.tmp_0 = r0;
- r0 = (s.arg0).fields["lastDir"] = (s.tmp_0);
- r0 = s.arg0.fields["inst"];
- 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 = s.arg0.fields["arg"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 < 4);
- 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.fields["arg"];
- { step = 4; continue; }
- case 3:
- r0 = 4;
- case 4:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = (s.arg0).fields["dir"] = (s.tmp_4);
- r0 = s.arg0.fields["dir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = -100;
- { step = 8; continue; }
- case 5:
- r0 = s.arg0.fields["dir"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 2);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 6; continue; }
- r0 = 100;
- { step = 7; continue; }
- case 6:
- r0 = 0;
- case 7:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- case 8:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.tmp_6 = Sprite_vx__P2027_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.tmp_5;
- s.callLocIdx = 290; s.pc = 13; return s.tmp_6;
- case 13:
- r0 = s.retval;
- r0 = s.arg0.fields["dir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
+ s.ruleClosures___70086 = (r0);
+ r0 = pxsim_pxtcore_mkAction(4, inline__P70092);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- r0 = -100;
- { step = 12; continue; }
- case 9:
- r0 = s.arg0.fields["dir"];
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 3);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.ruleClosures___70086);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["ruleIndex"];
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 10; continue; }
- r0 = 100;
- { step = 11; continue; }
- case 10:
- r0 = 0;
- case 11:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- case 12:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.tmp_6 = Sprite_vy__P2029_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = s.tmp_5;
- s.callLocIdx = 291; s.pc = 14; return s.tmp_6;
- case 14:
+ r0 = pxsim_Array__getAt(s.tmp_2, s.arg1);
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 339; s.pc = 1; return s.tmp_1;
+ case 1:
r0 = s.retval;
- r0 = undefined;
+ r0 = s.ruleClosures___70086;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite_update__P9372.info = {"start":1240,"length":442,"line":30,"column":8,"endLine":36,"endColumn":9,"fileName":"vm.ts","functionName":"update","argumentNames":["this"]}
+tileworld_TileWorldVM_applyRules__P69573.info = {"start":11764,"length":623,"line":278,"column":8,"endLine":290,"endColumn":9,"fileName":"vm.ts","functionName":"applyRules","argumentNames":["this","phase","ts"]}
-function tileworld_TileSprite_update__P9372_mk(s) {
+function tileworld_TileWorldVM_applyRules__P69573_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite_update__P9372, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_applyRules__P69573, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ ruleClosures___70086: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_TileWorldVM_collisionDetection__P9580(s) {
+function inline__P70092(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52658,116 +50219,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rcs___10170 = undefined;
- s.wcol___10177 = undefined;
- s.wrow___10186 = undefined;
- s.tm___10201 = undefined;
+ s.closure___70123 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.rcs___10170 = (r0);
- s.tmp_3 = tileworld_TileWorldVM_moving__P9579_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.arg1;
- s.callLocIdx = 342; s.pc = 6; return s.tmp_3;
- case 6:
+ s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P69570_mk(s);
+ s.tmp_1.arg0 = s.caps[0];
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.caps[1];
+ s.callLocIdx = 335; s.pc = 13; return s.tmp_1;
+ case 13:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.rcs___10170;
- { step = 5; continue; }
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
case 1:
+ r0 = (s.caps[2] == 1);
+ 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:
- s.tmp_5 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_5.arg0 = s.arg1;
- s.callLocIdx = 343; s.pc = 7; return s.tmp_5;
- case 7:
+ s.tmp_3 = tileworld_TileWorldVM_ruleMatchesDirection__P69572_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ s.tmp_3.arg1 = s.arg0;
+ r0 = s.caps[1].fields["dir"];
+ s.tmp_3.arg2 = r0;
+ s.callLocIdx = 336; s.pc = 14; return s.tmp_3;
+ case 14:
r0 = s.retval;
+ case 3:
+ // jmp value (already in r0)
s.tmp_4 = r0;
- s.tmp_7 = tileworld_moveXdelta__P3618_mk(s);
- r0 = s.arg1.fields["arg"];
- s.tmp_7.arg0 = r0;
- s.callLocIdx = 344; s.pc = 8; return s.tmp_7;
- case 8:
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (!r0) { step = 4; continue; }
+ r0 = s.tmp_4;
+ { step = 7; continue; }
+ case 4:
+ r0 = (s.caps[2] == 0);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (r0) { step = 5; continue; }
+ r0 = s.tmp_5;
+ { step = 6; continue; }
+ case 5:
+ r0 = s.caps[0].fields["dpad"];
+ s.tmp_7 = r0;
+ s.tmp_9 = tileworld_RuleView_getRuleArg__P63637_mk(s);
+ s.tmp_9.arg0 = s.arg0;
+ s.callLocIdx = 337; s.pc = 15; return s.tmp_9;
+ case 15:
r0 = s.retval;
+ s.tmp_8 = r0;
+ r0 = pxsim_Array_.indexOf(s.tmp_7, s.tmp_8, undefined);
s.tmp_6 = r0;
- r0 = (s.tmp_4 + s.tmp_6);
- s.wcol___10177 = (r0);
- s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.callLocIdx = 345; s.pc = 9; return s.tmp_1;
- case 9:
+ r0 = (s.tmp_6 != -1);
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = s.tmp_10;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = s.tmp_11;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_12);
+ if (!r0) { step = 11; continue; }
+ s.tmp_13 = tileworld_TileWorldVM_evaluateRule__P69580_mk(s);
+ s.tmp_13.arg0 = s.caps[0];
+ s.tmp_13.arg1 = s.caps[1];
+ s.tmp_13.arg2 = s.arg0;
+ s.callLocIdx = 338; s.pc = 16; return s.tmp_13;
+ case 16:
r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_3 = tileworld_moveYdelta__P3619_mk(s);
- r0 = s.arg1.fields["arg"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 346; s.pc = 10; return s.tmp_3;
+ s.closure___70123 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.closure___70123);
+ if (!r0) { step = 9; continue; }
+ r0 = pxsim_Array__push(s.caps[3], s.closure___70123);
+ case 9:
case 10:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- s.wrow___10186 = (r0);
- s.tmp_3 = tileworld_TileWorldVM_inBounds__P9586_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.wcol___10177;
- s.tmp_3.arg2 = s.wrow___10186;
- s.callLocIdx = 347; s.pc = 11; return s.tmp_3;
case 11:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.rcs___10170;
- { step = 5; continue; }
- case 3:
- case 4:
- s.tmp_4 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 348; s.pc = 12; return s.tmp_4;
case 12:
- r0 = s.retval;
- r0 = r0.fields["tileMap"];
- s.tm___10201 = (r0);
- r0 = pxsim_pxtcore_mkAction(6, inline__P10207);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.tm___10201);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.wcol___10177);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.wrow___10186);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rcs___10170);
- s.tmp_1 = tileworld_TileWorldVM_collidingRules__P9578_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 386; s.pc = 13; return s.tmp_1;
- case 13:
- r0 = s.retval;
- r0 = s.rcs___10170;
- case 5:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_collisionDetection__P9580.info = {"start":13185,"length":3389,"line":310,"column":8,"endLine":375,"endColumn":9,"fileName":"vm.ts","functionName":"collisionDetection","argumentNames":["this","ts"]}
+inline__P70092.info = {"start":11910,"length":432,"line":280,"column":42,"endLine":288,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function tileworld_TileWorldVM_collisionDetection__P9580_mk(s) {
+function inline__P70092_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_collisionDetection__P9580, depth: s.depth + 1,
+ parent: s, fn: inline__P70092, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -52777,19 +50325,21 @@ function tileworld_TileWorldVM_collisionDetection__P9580_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- rcs___10170: undefined,
- wcol___10177: undefined,
- wrow___10186: undefined,
- tm___10201: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ tmp_13: undefined,
+ closure___70123: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P10207(s) {
+function tileworld_TileWorldVM_evaluateRule__P69580(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -52799,204 +50349,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wd___10209 = undefined;
- s.includePassed___10228 = undefined;
- s.kind___10229 = undefined;
- s.hasInclude___10260 = undefined;
- s.kind___10261 = undefined;
+ s.witnesses___70654 = undefined;
+ s.col___70656 = undefined;
+ s.row___70660 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = tileworld_moveXdelta__P3618_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 349; s.pc = 17; return s.tmp_2;
- case 17:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (2 + s.tmp_1);
- s.tmp_0.arg1 = r0;
- s.tmp_4 = tileworld_moveYdelta__P3619_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 350; s.pc = 18; return s.tmp_4;
- case 18:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (2 + s.tmp_3);
- s.tmp_0.arg2 = r0;
- s.callLocIdx = 351; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.wd___10209 = (r0);
- r0 = (s.wd___10209 == -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 15; continue; }
- case 1:
- case 2:
- s.includePassed___10228 = (false);
- s.kind___10229 = (0);
- case 3:
- s.tmp_1 = r0 = s.kind___10229;
- r0 = s.caps[1].fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.wd___10209;
- s.tmp_7.arg2 = s.kind___10229;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 353; s.pc = 19; return s.tmp_7;
- case 19:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 == 1);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 6; continue; }
- s.tmp_10 = tiles_TileMap__C2314_v8_3_mk(s);
- s.tmp_10.arg0 = s.caps[2];
- s.tmp_10.arg1 = s.caps[3];
- s.tmp_10.arg2 = s.caps[4];
- if (!checkSubtype(s.tmp_10.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_10.arg0);
- s.tmp_10.fn = s.tmp_10.arg0.vtable.methods.getTileIndex;
- s.pc = 20; return s.tmp_10;
- case 20:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 == s.kind___10229);
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_8);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT);
- s.tmp_11 = r0;
- s.tmp_12 = tileworld_RuleClosure_constructor__P9562_mk(s);
- s.tmp_12.arg0 = s.tmp_11;
- s.tmp_12.arg1 = s.arg0;
- s.tmp_12.arg2 = s.caps[0];
- r0 = pxsim_Array__mk();
- s.tmp_12.arg3 = r0;
- s.callLocIdx = 354; s.pc = 21; return s.tmp_12;
- case 21:
- r0 = s.retval;
- r0 = pxsim_Array__push(s.caps[5], s.tmp_11);
- { step = 15; continue; }
- case 4:
- case 5:
- case 6:
- case 7:
- r0 = (s.kind___10229 + 1);
- s.kind___10229 = (r0);
- { step = 3; continue; }
- case 8:
- s.hasInclude___10260 = (false);
- s.kind___10261 = (0);
- case 9:
- s.tmp_1 = r0 = s.kind___10261;
- r0 = s.caps[1].fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = pxsim_Array__mk();
+ s.witnesses___70654 = (r0);
+ s.col___70656 = (1);
+ case 1:
+ r0 = (s.col___70656 <= 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.wd___10209;
- s.tmp_7.arg2 = s.kind___10261;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 356; s.pc = 22; return s.tmp_7;
- case 22:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 == 1);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 10; continue; }
- s.hasInclude___10260 = (true);
- case 10:
- case 11:
- r0 = (s.kind___10261 + 1);
- s.kind___10261 = (r0);
- { step = 9; continue; }
- case 12:
- r0 = pxsim_numops_toBoolDecr(s.hasInclude___10260);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ if (!r0) { step = 6; continue; }
+ s.row___70660 = (1);
+ case 2:
+ r0 = (s.row___70660 <= 3);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- { step = 15; continue; }
- case 13:
- case 14:
- r0 = pxsim_pxtcore_mkAction(7, inline__P10281);
+ if (!r0) { step = 5; continue; }
+ s.tmp_4 = tileworld_TileWorldVM_evaluateWhenDo__P69583_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = s.arg1;
+ s.tmp_4.arg2 = s.arg2;
+ s.tmp_4.arg3 = s.col___70656;
+ s.tmp_4.arg4 = s.row___70660;
+ s.tmp_4.arg5 = s.witnesses___70654;
+ s.callLocIdx = 410; s.pc = 8; return s.tmp_4;
+ case 8:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.caps[0]);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 2, s.wd___10209);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 3, s.caps[3]);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 4, s.caps[4]);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 5, s.caps[1]);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 6, s.caps[5]);
- s.tmp_3 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_3.arg0 = s.caps[1];
- s.tmp_3.arg1 = s.tmp_2;
- s.callLocIdx = 385; s.pc = 23; return s.tmp_3;
- case 23:
+ r0 = pxsim_Boolean__bang(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 3; continue; }
+ r0 = null;
+ { step = 7; continue; }
+ case 3:
+ case 4:
+ r0 = (s.row___70660 + 1);
+ s.row___70660 = (r0);
+ { step = 2; continue; }
+ case 5:
+ r0 = (s.col___70656 + 1);
+ s.col___70656 = (r0);
+ { step = 1; continue; }
+ case 6:
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C69557_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_RuleClosure_constructor__P69558_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg2;
+ s.tmp_1.arg2 = s.arg1;
+ s.tmp_1.arg3 = s.witnesses___70654;
+ s.callLocIdx = 411; s.pc = 9; return s.tmp_1;
+ case 9:
r0 = s.retval;
- case 15:
- r0 = undefined;
+ r0 = s.tmp_0;
+ case 7:
return leave(s, r0)
default: oops()
} } }
-inline__P10207.info = {"start":13585,"length":2953,"line":318,"column":36,"endLine":373,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+tileworld_TileWorldVM_evaluateRule__P69580.info = {"start":19704,"length":726,"line":449,"column":8,"endLine":464,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRule","argumentNames":["this","ts","rv"]}
-function inline__P10207_mk(s) {
+function tileworld_TileWorldVM_evaluateRule__P69580_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10207, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_evaluateRule__P69580, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- wd___10209: undefined,
- includePassed___10228: undefined,
- kind___10229: undefined,
- hasInclude___10260: undefined,
- kind___10261: undefined,
+ witnesses___70654: undefined,
+ col___70656: undefined,
+ row___70660: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P10281(s) {
+function tileworld_TileWorldVM_evaluateWhenDo__P69583(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53006,357 +50452,544 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.leftRotate___10323 = undefined;
- s.osCol___10328 = undefined;
- s.osRow___10334 = undefined;
- s.rightRotate___10361 = undefined;
+ s.whendo___70740 = undefined;
+ s.wcol___70753 = undefined;
+ s.wrow___70761 = undefined;
+ s.hasInclude___70774 = undefined;
+ s.includePassed___70775 = undefined;
+ s.includeWitness___70776 = undefined;
+ s.hasInclude2___70778 = undefined;
+ s.include2Passed___70779 = undefined;
+ s.tm___70780 = undefined;
+ s.kind___70784 = undefined;
+ s.hasKind___70791 = undefined;
+ s.attr___70799 = undefined;
+ s.adjacent___70823 = undefined;
+ s.kind___70829 = undefined;
+ s.attr___70836 = undefined;
+ s.witness___70841 = undefined;
+ s.ret___70871 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
+ s.arg5 = (s.lambdaArgs[5]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 == s.caps[0]);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_0.arg0 = s.arg2;
+ s.tmp_0.arg1 = s.arg3;
+ s.tmp_0.arg2 = s.arg4;
+ s.callLocIdx = 415; s.pc = 52; return s.tmp_0;
+ case 52:
+ r0 = s.retval;
+ s.whendo___70740 = (r0);
+ r0 = (s.whendo___70740 == -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 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_2.arg0 = s.caps[1];
- s.tmp_2.arg1 = s.caps[2];
- r0 = s.arg0.fields["_kind"];
- s.tmp_2.arg2 = r0;
- s.tmp_2.arg3 = 65535;
- s.callLocIdx = 358; s.pc = 34; return s.tmp_2;
- case 34:
+ s.tmp_1 = tileworld_RuleView_whendoTrue__P63658_mk(s);
+ s.tmp_1.arg0 = s.arg2;
+ s.tmp_1.arg1 = s.whendo___70740;
+ s.callLocIdx = 416; s.pc = 53; return s.tmp_1;
+ case 53:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 != 1);
case 2:
// jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 3; continue; }
- { step = 33; continue; }
+ r0 = true;
+ { step = 51; continue; }
case 3:
case 4:
- s.tmp_6 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 359; s.pc = 35; return s.tmp_6;
- case 35:
+ s.tmp_4 = tileworld_TileSprite_col__P69366_mk(s);
+ s.tmp_4.arg0 = s.arg1;
+ s.callLocIdx = 417; s.pc = 54; return s.tmp_4;
+ case 54:
r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.arg3 - 2);
s.tmp_5 = r0;
- r0 = (s.tmp_5 == s.caps[3]);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_4;
- { step = 6; continue; }
- case 5:
- s.tmp_8 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.callLocIdx = 360; s.pc = 36; return s.tmp_8;
- case 36:
+ r0 = (s.tmp_3 + s.tmp_5);
+ s.wcol___70753 = (r0);
+ s.tmp_1 = tileworld_TileSprite_row__P69367_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ s.callLocIdx = 418; s.pc = 55; return s.tmp_1;
+ case 55:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 == s.caps[4]);
+ s.tmp_0 = r0;
+ r0 = (s.arg4 - 2);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
+ s.wrow___70761 = (r0);
+ s.tmp_3 = tileworld_TileWorldVM_inBounds__P69582_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ s.tmp_3.arg1 = s.wcol___70753;
+ s.tmp_3.arg2 = s.wrow___70761;
+ s.callLocIdx = 419; s.pc = 56; return s.tmp_3;
+ case 56:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ r0 = false;
+ { step = 51; continue; }
+ case 5:
case 6:
- // jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
- if (!r0) { step = 11; continue; }
- s.tmp_13 = tileworld_TileWorldVM_moving__P9579_mk(s);
- s.tmp_13.arg0 = s.caps[5];
- s.tmp_13.arg1 = s.arg0;
- s.callLocIdx = 361; s.pc = 37; return s.tmp_13;
- case 37:
+ s.hasInclude___70774 = (false);
+ s.includePassed___70775 = (false);
+ s.includeWitness___70776 = (null);
+ s.hasInclude2___70778 = (false);
+ s.include2Passed___70779 = (false);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 420; s.pc = 57; return s.tmp_0;
+ case 57:
r0 = s.retval;
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_12);
- s.tmp_11 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_11);
- s.tmp_10 = r0;
- r0 = pxsim_numops_toBool(s.tmp_10);
- if (!r0) { step = 7; continue; }
- r0 = s.tmp_10;
- { step = 8; continue; }
+ r0 = r0.fields["tileMap"];
+ s.tm___70780 = (r0);
+ s.kind___70784 = (0);
case 7:
- r0 = s.caps[0].fields["arg"];
- s.tmp_14 = r0;
- r0 = s.arg0.fields["arg"];
- s.tmp_15 = r0;
- r0 = (s.tmp_14 + 2);
- s.tmp_17 = r0;
- r0 = (s.tmp_17 % 4);
- s.tmp_16 = r0;
- r0 = (s.tmp_16 == s.tmp_15);
- case 8:
- // jmp value (already in r0)
- s.tmp_18 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_18);
- if (!r0) { step = 9; continue; }
- s.tmp_19 = tileworld_TileWorldVM_collide__P9582_mk(s);
- s.tmp_19.arg0 = s.caps[5];
- s.tmp_19.arg1 = s.caps[1];
- s.tmp_19.arg2 = s.caps[0];
- s.tmp_19.arg3 = s.arg0;
- s.tmp_19.arg4 = s.caps[6];
- s.callLocIdx = 363; s.pc = 38; return s.tmp_19;
- case 38:
+ s.tmp_1 = r0 = s.kind___70784;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ 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.tmp_6 = tiles_TileMap__C62309_v8_3_mk(s);
+ s.tmp_6.arg0 = s.tm___70780;
+ s.tmp_6.arg1 = s.wcol___70753;
+ s.tmp_6.arg2 = s.wrow___70761;
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
+ s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
+ s.pc = 58; return s.tmp_6;
+ case 58:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 == s.kind___70784);
+ s.hasKind___70791 = (r0);
+ s.tmp_0 = tileworld_RuleView_getSetBgAttr__P63644_mk(s);
+ s.tmp_0.arg0 = s.arg2;
+ s.tmp_0.arg1 = s.whendo___70740;
+ s.tmp_0.arg2 = s.kind___70784;
+ s.tmp_0.arg3 = 65535;
+ s.callLocIdx = 422; s.pc = 59; return s.tmp_0;
+ case 59:
r0 = s.retval;
+ s.attr___70799 = (r0);
+ r0 = (s.attr___70799 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 8; continue; }
+ r0 = s.tmp_0;
+ { step = 9; continue; }
+ case 8:
+ r0 = s.hasKind___70791;
case 9:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 10; continue; }
+ r0 = false;
+ { step = 51; continue; }
+ { step = 19; continue; }
case 10:
+ r0 = (s.attr___70799 == 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 13; continue; }
+ s.hasInclude___70774 = (true);
+ r0 = pxsim_numops_toBoolDecr(s.hasKind___70791);
+ if (!r0) { step = 11; continue; }
+ s.includePassed___70775 = (true);
case 11:
case 12:
- s.tmp_1 = tileworld_TileWorldVM_moving__P9579_mk(s);
- s.tmp_1.arg0 = s.caps[5];
- s.tmp_1.arg1 = s.arg0;
- s.callLocIdx = 364; s.pc = 39; return s.tmp_1;
- case 39:
+ { step = 18; continue; }
+ case 13:
+ r0 = (s.attr___70799 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ s.hasInclude2___70778 = (true);
+ r0 = pxsim_numops_toBoolDecr(s.hasKind___70791);
+ if (!r0) { step = 14; continue; }
+ s.include2Passed___70779 = (true);
+ case 14:
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ r0 = (s.kind___70784 + 1);
+ s.kind___70784 = (r0);
+ { step = 7; continue; }
+ case 20:
+ s.tmp_1 = tileworld_TileWorldVM_manhattan__P69584_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg3;
+ s.tmp_1.arg2 = s.arg4;
+ s.callLocIdx = 423; s.pc = 60; return s.tmp_1;
+ case 60:
r0 = s.retval;
s.tmp_0 = r0;
+ r0 = (s.tmp_0 <= 1);
+ s.adjacent___70823 = (r0);
+ s.kind___70829 = (0);
+ case 21:
+ s.tmp_1 = r0 = s.kind___70829;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 31; continue; }
- s.tmp_2 = tileworld_flipRotateDir__P3621_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = 3;
- s.callLocIdx = 365; s.pc = 40; return s.tmp_2;
- case 40:
+ if (!r0) { step = 38; continue; }
+ s.tmp_5 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_5.arg0 = s.arg2;
+ s.tmp_5.arg1 = s.whendo___70740;
+ s.tmp_5.arg2 = s.kind___70829;
+ s.tmp_5.arg3 = 65535;
+ s.callLocIdx = 425; s.pc = 61; return s.tmp_5;
+ case 61:
r0 = s.retval;
- s.leftRotate___10323 = (r0);
- s.tmp_0 = r0 = s.caps[3];
- s.tmp_2 = tileworld_moveXdelta__P3618_mk(s);
- s.tmp_2.arg0 = s.leftRotate___10323;
- s.callLocIdx = 366; s.pc = 41; return s.tmp_2;
- case 41:
+ s.attr___70836 = (r0);
+ s.tmp_0 = tileworld_TileWorldVM_getWitness__P69581_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.kind___70829;
+ s.tmp_0.arg2 = s.wcol___70753;
+ s.tmp_0.arg3 = s.wrow___70761;
+ s.callLocIdx = 426; s.pc = 62; return s.tmp_0;
+ case 62:
r0 = s.retval;
+ s.witness___70841 = (r0);
+ r0 = (s.attr___70836 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 22; continue; }
+ r0 = s.tmp_0;
+ { step = 23; continue; }
+ case 22:
+ r0 = s.witness___70841;
+ case 23:
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osCol___10328 = (r0);
- s.tmp_0 = r0 = s.caps[4];
- s.tmp_2 = tileworld_moveYdelta__P3619_mk(s);
- s.tmp_2.arg0 = s.leftRotate___10323;
- s.callLocIdx = 367; s.pc = 42; return s.tmp_2;
- case 42:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 24; continue; }
+ r0 = false;
+ { step = 51; continue; }
+ { step = 37; continue; }
+ case 24:
+ r0 = (s.attr___70836 == 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 31; continue; }
+ s.hasInclude___70774 = (true);
+ r0 = pxsim_numops_toBoolDecr(s.witness___70841);
+ if (!r0) { step = 29; continue; }
+ s.includePassed___70775 = (true);
+ s.tmp_0 = r0 = s.adjacent___70823;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 25; continue; }
+ r0 = s.tmp_0;
+ { step = 26; continue; }
+ case 25:
+ r0 = pxsim_numops_toBoolDecr(s.includeWitness___70776);
s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osRow___10334 = (r0);
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 368; s.pc = 43; return s.tmp_2;
- case 43:
- r0 = s.retval;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ case 26:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 27; continue; }
+ s.includeWitness___70776 = (s.witness___70841);
+ case 27:
+ case 28:
+ case 29:
+ case 30:
+ { step = 36; continue; }
+ case 31:
+ r0 = (s.attr___70836 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 34; continue; }
+ s.hasInclude2___70778 = (true);
+ r0 = pxsim_numops_toBoolDecr(s.witness___70841);
+ if (!r0) { step = 32; continue; }
+ s.include2Passed___70779 = (true);
+ case 32:
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ case 37:
+ r0 = (s.kind___70829 + 1);
+ s.kind___70829 = (r0);
+ { step = 21; continue; }
+ case 38:
+ r0 = pxsim_numops_toBoolDecr(s.hasInclude___70774);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.osCol___10328);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 13; continue; }
+ if (!r0) { step = 39; continue; }
r0 = s.tmp_0;
- { step = 14; continue; }
- case 13:
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 369; s.pc = 44; return s.tmp_4;
- case 44:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.osRow___10334);
- case 14:
+ { step = 40; continue; }
+ case 39:
+ r0 = s.includePassed___70775;
+ case 40:
// jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 15; continue; }
- r0 = s.tmp_5;
- { step = 16; continue; }
- case 15:
- r0 = s.arg0.fields["arg"];
- s.tmp_6 = r0;
- r0 = (s.leftRotate___10323 + 2);
- s.tmp_8 = r0;
- r0 = (s.tmp_8 % 4);
- s.tmp_7 = r0;
- r0 = (s.tmp_7 == s.tmp_6);
- case 16:
+ s.tmp_2 = r0;
+ s.ret___70871 = (s.tmp_2);
+ s.tmp_0 = r0 = s.ret___70871;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 41; continue; }
+ r0 = s.tmp_0;
+ { step = 42; continue; }
+ case 41:
+ r0 = s.includeWitness___70776;
+ case 42:
// jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
- if (!r0) { step = 17; continue; }
- s.tmp_10 = tileworld_TileWorldVM_collide__P9582_mk(s);
- s.tmp_10.arg0 = s.caps[5];
- s.tmp_10.arg1 = s.caps[1];
- s.tmp_10.arg2 = s.caps[0];
- s.tmp_10.arg3 = s.arg0;
- s.tmp_10.arg4 = s.caps[6];
- s.callLocIdx = 371; s.pc = 45; return s.tmp_10;
- case 45:
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 45; continue; }
+ s.tmp_5 = tileworld_TileWorldVM_exprMatchesDirection__P69571_mk(s);
+ s.tmp_5.arg0 = s.arg0;
+ s.tmp_6 = tileworld_RuleView_getWitnessDirection__P63648_mk(s);
+ s.tmp_6.arg0 = s.arg2;
+ s.tmp_6.arg1 = s.whendo___70740;
+ s.callLocIdx = 427; s.pc = 64; return s.tmp_6;
+ case 64:
r0 = s.retval;
- case 17:
- case 18:
- s.tmp_0 = tileworld_flipRotateDir__P3621_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 5;
- s.callLocIdx = 372; s.pc = 46; return s.tmp_0;
- case 46:
+ s.tmp_5.arg1 = r0;
+ r0 = s.includeWitness___70776.fields["dir"];
+ s.tmp_5.arg2 = r0;
+ s.callLocIdx = 428; s.pc = 63; return s.tmp_5;
+ case 63:
r0 = s.retval;
- s.rightRotate___10361 = (r0);
- s.tmp_0 = r0 = s.caps[3];
- s.tmp_2 = tileworld_moveXdelta__P3618_mk(s);
- s.tmp_2.arg0 = s.rightRotate___10361;
- s.callLocIdx = 373; s.pc = 47; return s.tmp_2;
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 43; continue; }
+ r0 = false;
+ { step = 51; continue; }
+ case 43:
+ case 44:
+ r0 = pxsim_Array__push(s.arg5, s.includeWitness___70776);
+ case 45:
+ case 46:
+ s.tmp_0 = r0 = s.ret___70871;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 47; continue; }
+ r0 = s.tmp_0;
+ { step = 50; continue; }
case 47:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.hasInclude2___70778);
+ s.tmp_2 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_2);
s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osCol___10328 = (r0);
- s.tmp_0 = r0 = s.caps[4];
- s.tmp_2 = tileworld_moveYdelta__P3619_mk(s);
- s.tmp_2.arg0 = s.rightRotate___10361;
- s.callLocIdx = 374; s.pc = 48; return s.tmp_2;
+ r0 = pxsim_numops_toBool(s.tmp_1);
+ if (!r0) { step = 48; continue; }
+ r0 = s.tmp_1;
+ { step = 49; continue; }
case 48:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osRow___10334 = (r0);
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 375; s.pc = 49; return s.tmp_2;
+ r0 = s.include2Passed___70779;
case 49:
- r0 = s.retval;
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
+ case 50:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 51:
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_TileWorldVM_evaluateWhenDo__P69583.info = {"start":20889,"length":3062,"line":477,"column":8,"endLine":542,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDo","argumentNames":["this","ts","rv","col","row","witnesses"]}
+
+function tileworld_TileWorldVM_evaluateWhenDo__P69583_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_TileWorldVM_evaluateWhenDo__P69583, depth: s.depth + 1,
+ pc: 0, retval: undefined, 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,
+ whendo___70740: undefined,
+ wcol___70753: undefined,
+ wrow___70761: undefined,
+ hasInclude___70774: undefined,
+ includePassed___70775: undefined,
+ includeWitness___70776: undefined,
+ hasInclude2___70778: undefined,
+ include2Passed___70779: undefined,
+ tm___70780: undefined,
+ kind___70784: undefined,
+ hasKind___70791: undefined,
+ attr___70799: undefined,
+ adjacent___70823: undefined,
+ kind___70829: undefined,
+ attr___70836: undefined,
+ witness___70841: undefined,
+ ret___70871: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+ arg4: undefined,
+ arg5: undefined,
+} }
+
+
+
+
+
+function tileworld_TileWorldVM_getWitness__P69581(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["sprites"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.osCol___10328);
+ r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 19; continue; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 20; continue; }
- case 19:
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 376; s.pc = 50; return s.tmp_4;
- case 50:
+ { step = 2; continue; }
+ case 1:
+ r0 = pxsim_pxtcore_mkAction(2, inline__P70697);
+ s.tmp_2 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg2);
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg3);
+ s.tmp_3 = helpers_arrayFind__P60101_mk(s);
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["sprites"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.arg1);
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.tmp_2;
+ s.callLocIdx = 414; s.pc = 3; return s.tmp_3;
+ case 3:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.osRow___10334);
- case 20:
+ case 2:
// jmp value (already in r0)
s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 21; continue; }
r0 = s.tmp_5;
- { step = 22; continue; }
- case 21:
- r0 = s.arg0.fields["arg"];
- s.tmp_6 = r0;
- r0 = (s.rightRotate___10361 + 2);
- s.tmp_8 = r0;
- r0 = (s.tmp_8 % 4);
- s.tmp_7 = r0;
- r0 = (s.tmp_7 == s.tmp_6);
- case 22:
- // jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
- if (!r0) { step = 23; continue; }
- s.tmp_10 = tileworld_TileWorldVM_collide__P9582_mk(s);
- s.tmp_10.arg0 = s.caps[5];
- s.tmp_10.arg1 = s.caps[1];
- s.tmp_10.arg2 = s.caps[0];
- s.tmp_10.arg3 = s.arg0;
- s.tmp_10.arg4 = s.caps[6];
- s.callLocIdx = 378; s.pc = 51; return s.tmp_10;
- case 51:
- r0 = s.retval;
- case 23:
- case 24:
- s.tmp_0 = r0 = s.caps[3];
- s.tmp_2 = tileworld_moveXdelta__P3618_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 379; s.pc = 52; return s.tmp_2;
- case 52:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osCol___10328 = (r0);
- s.tmp_0 = r0 = s.caps[4];
- s.tmp_2 = tileworld_moveYdelta__P3619_mk(s);
- r0 = s.caps[0].fields["arg"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 380; s.pc = 53; return s.tmp_2;
- case 53:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.osRow___10334 = (r0);
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_TileWorldVM_getWitness__P69581.info = {"start":20440,"length":204,"line":466,"column":8,"endLine":469,"endColumn":9,"fileName":"vm.ts","functionName":"getWitness","argumentNames":["this","kind","col","row"]}
+
+function tileworld_TileWorldVM_getWitness__P69581_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_TileWorldVM_getWitness__P69581, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
+} }
+
+
+
+
+
+function inline__P70697(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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_2 = tileworld_TileSprite_col__P69366_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 381; s.pc = 54; return s.tmp_2;
- case 54:
+ s.callLocIdx = 412; s.pc = 3; return s.tmp_2;
+ case 3:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.osCol___10328);
+ r0 = (s.tmp_1 == s.caps[0]);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 25; continue; }
+ if (r0) { step = 1; continue; }
r0 = s.tmp_0;
- { step = 26; continue; }
- case 25:
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
+ { step = 2; continue; }
+ case 1:
+ s.tmp_4 = tileworld_TileSprite_row__P69367_mk(s);
s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 382; s.pc = 55; return s.tmp_4;
- case 55:
+ s.callLocIdx = 413; s.pc = 4; return s.tmp_4;
+ case 4:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.osRow___10334);
- case 26:
+ r0 = (s.tmp_3 == s.caps[1]);
+ case 2:
// jmp value (already in r0)
s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 27; continue; }
r0 = s.tmp_5;
- { step = 28; continue; }
- case 27:
- r0 = s.caps[0].fields["arg"];
- s.tmp_6 = r0;
- r0 = s.arg0.fields["arg"];
- s.tmp_7 = r0;
- r0 = (s.tmp_6 + 2);
- s.tmp_9 = r0;
- r0 = (s.tmp_9 % 4);
- s.tmp_8 = r0;
- r0 = (s.tmp_8 == s.tmp_7);
- case 28:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_10);
- if (!r0) { step = 29; continue; }
- s.tmp_11 = tileworld_TileWorldVM_collide__P9582_mk(s);
- s.tmp_11.arg0 = s.caps[5];
- s.tmp_11.arg1 = s.caps[1];
- s.tmp_11.arg2 = s.caps[0];
- s.tmp_11.arg3 = s.arg0;
- s.tmp_11.arg4 = s.caps[6];
- s.callLocIdx = 384; s.pc = 56; return s.tmp_11;
- case 56:
- r0 = s.retval;
- case 29:
- case 30:
- case 31:
- case 32:
- case 33:
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P10281.info = {"start":14832,"length":1690,"line":343,"column":32,"endLine":372,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["os"]}
+inline__P70697.info = {"start":20592,"length":40,"line":468,"column":46,"endLine":468,"endColumn":86,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P10281_mk(s) {
+function inline__P70697_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10281, depth: s.depth + 1,
+ parent: s, fn: inline__P70697, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -53364,24 +50997,6 @@ function inline__P10281_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,
- leftRotate___10323: undefined,
- osCol___10328: undefined,
- osRow___10334: undefined,
- rightRotate___10361: undefined,
arg0: undefined,
} }
@@ -53389,7 +51004,7 @@ function inline__P10281_mk(s) {
-function tileworld_TileWorldVM_collide__P9582(s) {
+function tileworld_TileWorldVM_manhattan__P69584(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53403,52 +51018,49 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT);
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.arg3);
- s.tmp_2 = tileworld_RuleClosure_constructor__P9562_mk(s);
- s.tmp_2.arg0 = s.tmp_0;
- s.tmp_2.arg1 = s.arg1;
- s.tmp_2.arg2 = s.arg2;
- s.tmp_2.arg3 = s.tmp_1;
- s.callLocIdx = 387; s.pc = 1; return s.tmp_2;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ s.tmp_1 = Math_abs__P60115_mk(s);
+ r0 = (2 - s.arg1);
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 429; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
- r0 = pxsim_Array__push(s.arg4, s.tmp_0);
- r0 = undefined;
+ s.tmp_0 = r0;
+ s.tmp_3 = Math_abs__P60115_mk(s);
+ r0 = (2 - s.arg2);
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 430; s.pc = 2; return s.tmp_3;
+ case 2:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = (s.tmp_0 + s.tmp_2);
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_collide__P9582.info = {"start":16649,"length":150,"line":381,"column":8,"endLine":383,"endColumn":9,"fileName":"vm.ts","functionName":"collide","argumentNames":["this","rv","ts","os","rcs"]}
+tileworld_TileWorldVM_manhattan__P69584.info = {"start":23961,"length":113,"line":544,"column":8,"endLine":546,"endColumn":9,"fileName":"vm.ts","functionName":"manhattan","argumentNames":["this","col","row"]}
-function tileworld_TileWorldVM_collide__P9582_mk(s) {
+function tileworld_TileWorldVM_manhattan__P69584_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_collide__P9582, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_manhattan__P69584, depth: s.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 tileworld_oppDir__P3620(s) {
+function tileworld_RuleClosure_constructor__P69558(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53461,34 +51073,37 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 + 2);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 % 4);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 == s.arg1);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleClosure__C69557_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["rv"] = (s.arg1);
+ r0 = (s.arg0).fields["self"] = (s.arg2);
+ r0 = (s.arg0).fields["witnesses"] = (s.arg3);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_oppDir__P3620.info = {"start":5124,"length":109,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"rule.ts","functionName":"oppDir","argumentNames":["dir","dir2"]}
+tileworld_RuleClosure_constructor__P69558.info = {"start":4446,"length":147,"line":97,"column":8,"endLine":102,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","rv","self","witnesses"]}
-function tileworld_oppDir__P3620_mk(s) {
+function tileworld_RuleClosure_constructor__P69558_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_oppDir__P3620, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleClosure_constructor__P69558, 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 tileworld_TileWorldVM_collidingRules__P9578(s) {
+function tileworld_TileWorldVM_startRound__P69565(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53501,49 +51116,107 @@ 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkAction(3, inline__P10144);
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = s.arg0.fields["vm"];
+ 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["dpad"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["globalInsts"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["globalArgs"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["vm"];
+ r0 = r0.fields["nextBlockedSprites"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["blockedSpriteKinds"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["deadSprites"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["spawnedSprites"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["paintTile"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["buttonMatch"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["nextBlockedSprites"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["movingToResting"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["queued"] = (s.tmp_1);
+ r0 = s.arg0.fields["vm"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["phase"] = (3);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69704);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["ruleIndex"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_2, 2);
- s.tmp_1.arg0 = r0;
+ s.tmp_1 = tileworld_TileWorldVM_allSprites__P69568_mk(s);
+ s.tmp_1.arg0 = s.arg0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 341; s.pc = 1; return s.tmp_1;
- case 1:
+ s.callLocIdx = 309; s.pc = 4; return s.tmp_1;
+ case 4:
r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_collidingRules__P9578.info = {"start":12435,"length":308,"line":293,"column":8,"endLine":299,"endColumn":9,"fileName":"vm.ts","functionName":"collidingRules","argumentNames":["this","ts","handler"]}
+tileworld_TileWorldVM_startRound__P69565.info = {"start":5645,"length":955,"line":134,"column":8,"endLine":157,"endColumn":9,"fileName":"vm.ts","functionName":"startRound","argumentNames":["this","currDir"]}
-function tileworld_TileWorldVM_collidingRules__P9578_mk(s) {
+function tileworld_TileWorldVM_startRound__P69565_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_collidingRules__P9578, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_startRound__P69565, 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 inline__P10144(s) {
+function inline__P69704(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53557,51 +51230,56 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.caps[1];
- s.callLocIdx = 338; s.pc = 5; return s.tmp_1;
- case 5:
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_4 = Sprite_x__P62017_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_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 8);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 306; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_2 = tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = s.arg0;
- r0 = s.caps[1].fields["arg"];
- s.tmp_2.arg2 = r0;
- s.callLocIdx = 339; s.pc = 6; return s.tmp_2;
- case 6:
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; }
- s.tmp_4 = lambda_2_mk(s);
- s.tmp_4.argL = s.caps[2];
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_4 = Sprite_y__P62019_mk(s);
s.tmp_4.arg0 = s.arg0;
- setupLambda(s.tmp_4, s.tmp_4.argL);
- s.callLocIdx = 340; s.pc = 7; return s.tmp_4;
- case 7:
+ s.callLocIdx = 307; s.pc = 4; return s.tmp_4;
+ case 4:
r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 8);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 308; s.pc = 3; return s.tmp_0;
case 3:
- case 4:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["inst"] = (-1);
+ r0 = (s.arg0).fields["movedToStopped"] = (false);
+ r0 = s.caps[0].fields["vm"];
+ r0 = r0.fields["queued"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P10144.info = {"start":12564,"length":167,"line":294,"column":55,"endLine":298,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+inline__P69704.info = {"start":6259,"length":329,"line":150,"column":28,"endLine":156,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
-function inline__P10144_mk(s) {
+function inline__P69704_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10144, depth: s.depth + 1,
+ parent: s, fn: inline__P69704, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -53615,7 +51293,7 @@ function inline__P10144_mk(s) {
-function tileworld_TileWorldVM_ruleMatchesDirection__P9576(s) {
+function tileworld_TileWorldVM_setState__P69564(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53628,45 +51306,31 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_0 = tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = tileworld_RuleView_getDirFromRule__P3642_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.callLocIdx = 331; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 332; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["vm"] = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_ruleMatchesDirection__P9576.info = {"start":11615,"length":141,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesDirection","argumentNames":["this","rv","dir"]}
+tileworld_TileWorldVM_setState__P69564.info = {"start":5571,"length":64,"line":130,"column":8,"endLine":132,"endColumn":9,"fileName":"vm.ts","functionName":"setState","argumentNames":["this","v"]}
-function tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s) {
+function tileworld_TileWorldVM_setState__P69564_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_ruleMatchesDirection__P9576, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_setState__P69564, 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 tileworld_TileWorldVM_exprMatchesDirection__P9575(s) {
+function scene_cameraFollowSprite__P62453(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53676,71 +51340,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___86140 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = (s.arg1 == 6);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 846; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.arg1 == 5);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_1;
- { step = 3; continue; }
- case 2:
- r0 = (s.arg2 != 4);
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = s.tmp_2;
- case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (!r0) { step = 5; continue; }
- r0 = s.tmp_3;
- { step = 6; continue; }
- case 5:
- r0 = (s.arg1 == s.arg2);
- case 6:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
+ r0 = s.retval;
+ s.scene___86140 = (r0);
+ r0 = s.scene___86140.fields["camera"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["sprite"] = (s.arg0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_exprMatchesDirection__P9575.info = {"start":11430,"length":175,"line":270,"column":8,"endLine":272,"endColumn":9,"fileName":"vm.ts","functionName":"exprMatchesDirection","argumentNames":["this","dirExpr","dir"]}
+scene_cameraFollowSprite__P62453.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]}
-function tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s) {
+function scene_cameraFollowSprite__P62453_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_exprMatchesDirection__P9575, depth: s.depth + 1,
+ parent: s, fn: scene_cameraFollowSprite__P62453, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
+ scene___86140: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tileworld_TileWorldVM_ruleMatchesSprite__P9574(s) {
+function tileworld_Project_getPlayer__P63683(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53752,63 +51385,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_1 = tileworld_RuleView_hasSpriteKind__P3660_mk(s);
- s.tmp_1.arg0 = s.arg1;
- r0 = s.arg2.fields["_kind"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 329; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["blockedSpriteKinds"];
- s.tmp_3 = r0;
- r0 = s.arg2.fields["_kind"];
- s.tmp_4 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_3, s.tmp_4, undefined);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 == -1);
- case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_player"];
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_ruleMatchesSprite__P9574.info = {"start":11250,"length":170,"line":266,"column":8,"endLine":268,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesSprite","argumentNames":["this","rv","ts"]}
+tileworld_Project_getPlayer__P63683.info = {"start":2574,"length":63,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"project.ts","functionName":"getPlayer","argumentNames":["this"]}
-function tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s) {
+function tileworld_Project_getPlayer__P63683_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_ruleMatchesSprite__P9574, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getPlayer__P63683, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_TileWorldVM_inBounds__P9586(s) {
+function tileworld_TileSprite_constructor__P69371(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53818,86 +51417,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___69378 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = (0 <= s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ if (!checkSubtype(r0, tileworld_TileSprite__C69364_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_constructor__P62045_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 286; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.width(s.tmp_3);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = s.retval;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 287; s.pc = 2; return s.tmp_0;
case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_4;
- { step = 4; continue; }
+ r0 = s.retval;
+ s.scene___69378 = (r0);
+ s.tmp_0 = PhysicsEngine__C62151_v0_2_mk(s);
+ r0 = s.scene___69378.fields["physicsEngine"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg0;
+ if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C62151_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite;
+ s.pc = 3; return s.tmp_0;
case 3:
- r0 = (0 <= s.arg2);
+ r0 = s.retval;
+ s.tmp_0 = Sprite_setKind__P62063_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg2;
+ s.callLocIdx = 288; s.pc = 4; return s.tmp_0;
case 4:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_5;
- { step = 6; continue; }
+ r0 = s.retval;
+ r0 = (s.arg0).fields["debug"] = (s.arg3);
+ r0 = (s.arg0).fields["dir"] = (4);
+ r0 = (s.arg0).fields["lastDir"] = (4);
+ r0 = (s.arg0).fields["inst"] = (-1);
+ r0 = (s.arg0).fields["state"] = (0);
+ s.tmp_0 = if_z_2_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ r0 = (100 - s.arg2);
+ s.tmp_0.arg1 = r0;
+ 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 = 289; s.pc = 5; return s.tmp_0; }
+ }
case 5:
- s.tmp_6 = r0 = s.arg2;
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["changed"];
- s.tmp_8 = r0;
- r0 = pxsim_ImageMethods.height(s.tmp_8);
- s.tmp_7 = r0;
- r0 = (s.tmp_6 < s.tmp_7);
- case 6:
- // jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = s.tmp_9;
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_inBounds__P9586.info = {"start":20656,"length":177,"line":471,"column":8,"endLine":474,"endColumn":9,"fileName":"vm.ts","functionName":"inBounds","argumentNames":["this","col","row"]}
+tileworld_TileSprite_constructor__P69371.info = {"start":648,"length":422,"line":14,"column":8,"endLine":25,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","img","kind","d"]}
-function tileworld_TileWorldVM_inBounds__P9586_mk(s) {
+function tileworld_TileSprite_constructor__P69371_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_inBounds__P9586, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileSprite_constructor__P69371, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
+ scene___69378: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_TileWorldVM_moving__P9579(s) {
+function tileworld_Project_getWorldSprites__P63687(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53909,50 +51507,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = s.arg1.fields["inst"];
- 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 = s.arg1.fields["arg"];
- s.tmp_2 = r0;
- r0 = (s.tmp_2 < 4);
- case 2:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_sprites"];
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_moving__P9579.info = {"start":12838,"length":115,"line":302,"column":8,"endLine":304,"endColumn":9,"fileName":"vm.ts","functionName":"moving","argumentNames":["this","ts"]}
+tileworld_Project_getWorldSprites__P63687.info = {"start":3049,"length":70,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"project.ts","functionName":"getWorldSprites","argumentNames":["this"]}
-function tileworld_TileWorldVM_moving__P9579_mk(s) {
+function tileworld_Project_getWorldSprites__P63687_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_moving__P9579, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getWorldSprites__P63687, depth: s.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 tileworld_TileWorldVM_contextChanged__P9573(s) {
+function tileworld_RunGame_setWorld__P63772(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -53962,110 +51539,212 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.i___9990 = undefined;
- s.j___9996 = undefined;
- s.x___10010 = undefined;
- s.y___10016 = undefined;
+ s.currScene___71422 = undefined;
+ s.kind___71464 = undefined;
+ s.x___71479 = undefined;
+ s.y___71485 = undefined;
+ s.kind___71491 = undefined;
+ s.art___71499 = undefined;
+ s.ts___71504 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.i___9990 = (-2);
- case 1:
- r0 = (s.i___9990 <= 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 10; continue; }
- s.j___9996 = (-2);
- case 2:
- r0 = (s.j___9996 <= 2);
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["signal"] = (null);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_VMState__C69550_VT);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.tmp_4 = Math_abs__P120_mk(s);
- s.tmp_4.arg0 = s.i___9990;
- s.callLocIdx = 323; s.pc = 12; return s.tmp_4;
+ s.tmp_1 = tileworld_VMState_constructor__P69551_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.callLocIdx = 464; s.pc = 12; return s.tmp_1;
case 12:
r0 = s.retval;
- s.tmp_3 = r0;
- s.tmp_6 = Math_abs__P120_mk(s);
- s.tmp_6.arg0 = s.j___9996;
- s.callLocIdx = 324; s.pc = 13; return s.tmp_6;
+ r0 = (s.arg0).fields["state"] = (s.tmp_0);
+ r0 = s.arg0.fields["state"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["game"] = (0);
+ r0 = s.arg0.fields["state"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0).fields["score"] = (0);
+ r0 = s.arg0.fields["state"];
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["p"];
+ r0 = r0.fields["highScore"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["highScore"] = (s.tmp_1);
+ r0 = s.arg0.fields["state"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 465; s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_3 + s.tmp_5);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 <= 2);
+ s.currScene___71422 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_LegacyTilemap__C63847_VT);
+ s.tmp_0 = r0;
+ r0 = s.arg0.fields["debug"];
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 7; continue; }
- s.tmp_8 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_8.arg0 = s.arg1;
- s.callLocIdx = 325; s.pc = 14; return s.tmp_8;
+ if (!r0) { step = 1; continue; }
+ r0 = 2;
+ { step = 2; continue; }
+ case 1:
+ r0 = 0;
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ s.tmp_3 = tiles_legacy_LegacyTilemap_constructor__P63849_mk(s);
+ s.tmp_3.arg0 = s.tmp_0;
+ s.tmp_3.arg1 = 4;
+ s.tmp_3.arg2 = s.tmp_2;
+ s.callLocIdx = 466; s.pc = 14; return s.tmp_3;
case 14:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 + s.i___9990);
- s.x___10010 = (r0);
- s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.callLocIdx = 326; s.pc = 15; return s.tmp_1;
+ r0 = (s.currScene___71422).fields["tileMap"] = (s.tmp_0);
+ s.tmp_0 = scene_setTileMap__P63843_mk(s);
+ r0 = pxsim_ImageMethods.clone(s.arg1);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 467; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
+ r0 = s.arg0.fields["state"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.clone(s.arg1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["changed"] = (s.tmp_1);
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["changed"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.j___9996);
- s.y___10016 = (r0);
- s.tmp_1 = tileworld_TileWorldVM_inBounds__P9586_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.x___10010;
- s.tmp_1.arg2 = s.y___10016;
- s.callLocIdx = 327; s.pc = 16; return s.tmp_1;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_backgroundsI"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = inline__P71457;
+ s.callLocIdx = 470; s.pc = 16; return s.tmp_0;
case 16:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
+ s.kind___71464 = (0);
case 3:
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["changed"];
+ s.tmp_1 = r0 = s.kind___71464;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___10010, s.y___10016);
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["sprites"];
+ s.tmp_5 = r0;
+ s.tmp_6 = r0 = s.kind___71464;
+ r0 = pxsim_Array__mk();
+ s.tmp_7 = r0;
+ r0 = pxsim_Array_.setAt(s.tmp_5, s.tmp_6, s.tmp_7);
+ r0 = (s.kind___71464 + 1);
+ s.kind___71464 = (r0);
+ { step = 3; continue; }
case 4:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 5; continue; }
- r0 = true;
- { step = 11; continue; }
+ s.x___71479 = (0);
case 5:
+ s.tmp_1 = r0 = s.x___71479;
+ r0 = pxsim_ImageMethods.width(s.arg2);
+ 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; }
+ s.y___71485 = (0);
case 6:
+ s.tmp_1 = r0 = s.y___71485;
+ r0 = pxsim_ImageMethods.height(s.arg2);
+ 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_ImageMethods.getPixel(s.arg2, s.x___71479, s.y___71485);
+ s.kind___71491 = (r0);
+ r0 = (s.kind___71491 == 15);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ { step = 9; continue; }
case 7:
case 8:
- r0 = (s.j___9996 + 1);
- s.j___9996 = (r0);
- { step = 2; continue; }
+ s.tmp_1 = tileworld_Project_getSpriteImage__P63694_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.kind___71491;
+ s.callLocIdx = 472; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ s.art___71499 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C69364_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_TileSprite_constructor__P69371_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.art___71499;
+ s.tmp_1.arg2 = s.kind___71491;
+ r0 = s.arg0.fields["debug"];
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 473; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ s.ts___71504 = (s.tmp_0);
+ r0 = s.arg0.fields["state"];
+ r0 = r0.fields["sprites"];
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_1, s.kind___71491);
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.ts___71504);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ s.tmp_0.arg0 = s.ts___71504;
+ r0 = (s.x___71479 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 8);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 474; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ s.tmp_0.arg0 = s.ts___71504;
+ r0 = (s.y___71485 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 8);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 475; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
case 9:
- r0 = (s.i___9990 + 1);
- s.i___9990 = (r0);
- { step = 1; continue; }
+ r0 = (s.y___71485 + 1);
+ s.y___71485 = (r0);
+ { step = 6; continue; }
case 10:
- r0 = false;
+ r0 = (s.x___71479 + 1);
+ s.x___71479 = (r0);
+ { step = 5; continue; }
case 11:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_contextChanged__P9573.info = {"start":10713,"length":527,"line":251,"column":8,"endLine":264,"endColumn":9,"fileName":"vm.ts","functionName":"contextChanged","argumentNames":["this","ts"]}
+tileworld_RunGame_setWorld__P63772.info = {"start":31616,"length":1417,"line":706,"column":8,"endLine":738,"endColumn":9,"fileName":"vm.ts","functionName":"setWorld","argumentNames":["this","w","sprites"]}
-function tileworld_TileWorldVM_contextChanged__P9573_mk(s) {
+function tileworld_RunGame_setWorld__P63772_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_contextChanged__P9573, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_setWorld__P63772, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -54075,20 +51754,23 @@ function tileworld_TileWorldVM_contextChanged__P9573_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- tmp_8: undefined,
- i___9990: undefined,
- j___9996: undefined,
- x___10010: undefined,
- y___10016: undefined,
+ currScene___71422: undefined,
+ kind___71464: undefined,
+ x___71479: undefined,
+ y___71485: undefined,
+ kind___71491: undefined,
+ art___71499: undefined,
+ ts___71504: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_TileWorldVM_applyRules__P9577(s) {
+function inline__P71457(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54098,57 +51780,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ruleClosures___10090 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.ruleClosures___10090 = (r0);
- r0 = pxsim_pxtcore_mkAction(4, inline__P10096);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.ruleClosures___10090);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["ruleIndex"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_2, s.arg1);
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 337; s.pc = 1; return s.tmp_1;
+ s.tmp_0 = scene_setTile__P63844_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = undefined;
+ s.callLocIdx = 469; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = s.ruleClosures___10090;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_applyRules__P9577.info = {"start":11766,"length":623,"line":278,"column":8,"endLine":290,"endColumn":9,"fileName":"vm.ts","functionName":"applyRules","argumentNames":["this","phase","ts"]}
+inline__P71457.info = {"start":32282,"length":71,"line":720,"column":46,"endLine":722,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["img","kind"]}
-function tileworld_TileWorldVM_applyRules__P9577_mk(s) {
+function inline__P71457_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_applyRules__P9577, depth: s.depth + 1,
+ parent: s, fn: inline__P71457, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- ruleClosures___10090: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function inline__P10096(s) {
+function scene_setTile__P63844(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54158,127 +51822,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.closure___10127 = undefined;
+ s.scene___80113 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s);
- s.tmp_1.arg0 = s.caps[0];
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.caps[1];
- s.callLocIdx = 333; 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 = 1; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 1646; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.caps[2] == 1);
+ r0 = s.retval;
+ s.scene___80113 = (r0);
+ s.tmp_0 = tiles_legacy_LegacyTilemap_setTile__P63861_mk(s);
+ r0 = s.scene___80113.fields["tileMap"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = s.arg1;
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ s.tmp_3 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_2;
- { step = 3; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 1647; s.pc = 2; return s.tmp_0;
case 2:
- s.tmp_3 = tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- s.tmp_3.arg1 = s.arg0;
- r0 = s.caps[1].fields["dir"];
- s.tmp_3.arg2 = r0;
- s.callLocIdx = 334; s.pc = 14; return s.tmp_3;
- case 14:
- r0 = s.retval;
- case 3:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (!r0) { step = 4; continue; }
- r0 = s.tmp_4;
- { step = 7; continue; }
- case 4:
- r0 = (s.caps[2] == 0);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (r0) { step = 5; continue; }
- r0 = s.tmp_5;
- { step = 6; continue; }
- case 5:
- r0 = s.caps[0].fields["dpad"];
- s.tmp_7 = r0;
- s.tmp_9 = tileworld_RuleView_getRuleArg__P3640_mk(s);
- s.tmp_9.arg0 = s.arg0;
- s.callLocIdx = 335; s.pc = 15; return s.tmp_9;
- case 15:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_7, s.tmp_8, undefined);
- s.tmp_6 = r0;
- r0 = (s.tmp_6 != -1);
- case 6:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = s.tmp_10;
- case 7:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- r0 = s.tmp_11;
- case 8:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_12);
- if (!r0) { step = 11; continue; }
- s.tmp_13 = tileworld_TileWorldVM_evaluateRule__P9584_mk(s);
- s.tmp_13.arg0 = s.caps[0];
- s.tmp_13.arg1 = s.caps[1];
- s.tmp_13.arg2 = s.arg0;
- s.callLocIdx = 336; s.pc = 16; return s.tmp_13;
- case 16:
r0 = s.retval;
- s.closure___10127 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.closure___10127);
- if (!r0) { step = 9; continue; }
- r0 = pxsim_Array__push(s.caps[3], s.closure___10127);
- case 9:
- case 10:
- case 11:
- case 12:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P10096.info = {"start":11912,"length":432,"line":280,"column":42,"endLine":288,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+scene_setTile__P63844.info = {"start":249,"length":200,"line":8,"column":4,"endLine":11,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["index","img","wall"]}
-function inline__P10096_mk(s) {
+function scene_setTile__P63844_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10096, depth: s.depth + 1,
+ parent: s, fn: scene_setTile__P63844, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- closure___10127: undefined,
+ scene___80113: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_TileWorldVM_evaluateRule__P9584(s) {
+function tiles_legacy_LegacyTilemap_setTile__P63861(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54288,528 +51885,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.witnesses___10658 = undefined;
- s.col___10660 = undefined;
- s.row___10664 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = pxsim_Array__mk();
- s.witnesses___10658 = (r0);
- s.col___10660 = (1);
- case 1:
- r0 = (s.col___10660 <= 3);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_1 = tiles_legacy_LegacyTilemap__C63847_v10_2_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.arg1;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isInvalidIndex;
+ s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.row___10664 = (1);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
case 2:
- r0 = (s.row___10664 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_4 = tileworld_TileWorldVM_evaluateWhenDo__P9587_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = s.arg1;
- s.tmp_4.arg2 = s.arg2;
- s.tmp_4.arg3 = s.col___10660;
- s.tmp_4.arg4 = s.row___10664;
- s.tmp_4.arg5 = s.witnesses___10658;
- s.callLocIdx = 408; s.pc = 8; return s.tmp_4;
- case 8:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C80124_VT);
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 = 3; continue; }
- r0 = null;
- { step = 7; continue; }
- case 3:
- case 4:
- r0 = (s.row___10664 + 1);
- s.row___10664 = (r0);
- { step = 2; continue; }
+ s.tmp_3 = tiles_legacy_TileSet_constructor__P80126_mk(s);
+ s.tmp_3.arg0 = s.tmp_2;
+ s.tmp_3.arg1 = s.arg2;
+ s.tmp_3.arg2 = s.arg3;
+ s.tmp_3.arg3 = s.arg0;
+ s.callLocIdx = 1659; s.pc = 5; return s.tmp_3;
case 5:
- r0 = (s.col___10660 + 1);
- s.col___10660 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_RuleClosure_constructor__P9562_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg2;
- s.tmp_1.arg2 = s.arg1;
- s.tmp_1.arg3 = s.witnesses___10658;
- s.callLocIdx = 409; s.pc = 9; return s.tmp_1;
- case 9:
r0 = s.retval;
- r0 = s.tmp_0;
- case 7:
+ r0 = s.arg0.fields["_tileSets"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array_.setAt(s.tmp_4, s.arg1, s.tmp_2);
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_evaluateRule__P9584.info = {"start":19706,"length":726,"line":449,"column":8,"endLine":464,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRule","argumentNames":["this","ts","rv"]}
+tiles_legacy_LegacyTilemap_setTile__P63861.info = {"start":2976,"length":192,"line":103,"column":8,"endLine":106,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["this","index","img","collisions"]}
-function tileworld_TileWorldVM_evaluateRule__P9584_mk(s) {
+function tiles_legacy_LegacyTilemap_setTile__P63861_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_evaluateRule__P9584, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_setTile__P63861, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- witnesses___10658: undefined,
- col___10660: undefined,
- row___10664: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_TileWorldVM_evaluateWhenDo__P9587(s) {
+function tiles_legacy_TileSet_constructor__P80126(s) {
let r0 = s.r0, 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.whendo___10744 = undefined;
- s.wcol___10757 = undefined;
- s.wrow___10765 = undefined;
- s.hasInclude___10778 = undefined;
- s.includePassed___10779 = undefined;
- s.includeWitness___10780 = undefined;
- s.hasInclude2___10782 = undefined;
- s.include2Passed___10783 = undefined;
- s.tm___10784 = undefined;
- s.kind___10788 = undefined;
- s.hasKind___10795 = undefined;
- s.attr___10803 = undefined;
- s.adjacent___10827 = undefined;
- s.kind___10833 = undefined;
- s.attr___10840 = undefined;
- s.witness___10845 = undefined;
- s.ret___10875 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.arg4 = (s.lambdaArgs[4]);
- s.arg5 = (s.lambdaArgs[5]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_0.arg0 = s.arg2;
- s.tmp_0.arg1 = s.arg3;
- s.tmp_0.arg2 = s.arg4;
- s.callLocIdx = 413; s.pc = 52; return s.tmp_0;
- case 52:
- r0 = s.retval;
- s.whendo___10744 = (r0);
- r0 = (s.whendo___10744 == -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_1 = tileworld_RuleView_whendoTrue__P3661_mk(s);
- s.tmp_1.arg0 = s.arg2;
- s.tmp_1.arg1 = s.whendo___10744;
- s.callLocIdx = 414; s.pc = 53; return s.tmp_1;
- case 53:
- r0 = s.retval;
- case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 3; continue; }
- r0 = true;
- { step = 51; continue; }
- case 3:
- case 4:
- s.tmp_4 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_4.arg0 = s.arg1;
- s.callLocIdx = 415; s.pc = 54; return s.tmp_4;
- case 54:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.arg3 - 2);
- s.tmp_5 = r0;
- r0 = (s.tmp_3 + s.tmp_5);
- s.wcol___10757 = (r0);
- s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_1.arg0 = s.arg1;
- s.callLocIdx = 416; s.pc = 55; return s.tmp_1;
- case 55:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.arg4 - 2);
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
- s.wrow___10765 = (r0);
- s.tmp_3 = tileworld_TileWorldVM_inBounds__P9586_mk(s);
- s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.wcol___10757;
- s.tmp_3.arg2 = s.wrow___10765;
- s.callLocIdx = 417; s.pc = 56; return s.tmp_3;
- case 56:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = false;
- { step = 51; continue; }
- case 5:
- case 6:
- s.hasInclude___10778 = (false);
- s.includePassed___10779 = (false);
- s.includeWitness___10780 = (null);
- s.hasInclude2___10782 = (false);
- s.include2Passed___10783 = (false);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 418; s.pc = 57; return s.tmp_0;
- case 57:
- r0 = s.retval;
- r0 = r0.fields["tileMap"];
- s.tm___10784 = (r0);
- s.kind___10788 = (0);
- case 7:
- s.tmp_1 = r0 = s.kind___10788;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- 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.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s);
- s.tmp_6.arg0 = s.tm___10784;
- s.tmp_6.arg1 = s.wcol___10757;
- s.tmp_6.arg2 = s.wrow___10765;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
- s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex;
- s.pc = 58; return s.tmp_6;
- case 58:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 == s.kind___10788);
- s.hasKind___10795 = (r0);
- s.tmp_0 = tileworld_RuleView_getSetBgAttr__P3647_mk(s);
- s.tmp_0.arg0 = s.arg2;
- s.tmp_0.arg1 = s.whendo___10744;
- s.tmp_0.arg2 = s.kind___10788;
- s.tmp_0.arg3 = 65535;
- s.callLocIdx = 420; s.pc = 59; return s.tmp_0;
- case 59:
- r0 = s.retval;
- s.attr___10803 = (r0);
- r0 = (s.attr___10803 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 8; continue; }
- r0 = s.tmp_0;
- { step = 9; continue; }
- case 8:
- r0 = s.hasKind___10795;
- case 9:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 10; continue; }
- r0 = false;
- { step = 51; continue; }
- { step = 19; continue; }
- case 10:
- r0 = (s.attr___10803 == 1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 13; continue; }
- s.hasInclude___10778 = (true);
- r0 = pxsim_numops_toBoolDecr(s.hasKind___10795);
- if (!r0) { step = 11; continue; }
- s.includePassed___10779 = (true);
- case 11:
- case 12:
- { step = 18; continue; }
- case 13:
- r0 = (s.attr___10803 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- s.hasInclude2___10782 = (true);
- r0 = pxsim_numops_toBoolDecr(s.hasKind___10795);
- if (!r0) { step = 14; continue; }
- s.include2Passed___10783 = (true);
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- r0 = (s.kind___10788 + 1);
- s.kind___10788 = (r0);
- { step = 7; continue; }
- case 20:
- s.tmp_1 = tileworld_TileWorldVM_manhattan__P9588_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg3;
- s.tmp_1.arg2 = s.arg4;
- s.callLocIdx = 421; s.pc = 60; return s.tmp_1;
- case 60:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 <= 1);
- s.adjacent___10827 = (r0);
- s.kind___10833 = (0);
- case 21:
- s.tmp_1 = r0 = s.kind___10833;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- 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.tmp_5 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_5.arg0 = s.arg2;
- s.tmp_5.arg1 = s.whendo___10744;
- s.tmp_5.arg2 = s.kind___10833;
- s.tmp_5.arg3 = 65535;
- s.callLocIdx = 423; s.pc = 61; return s.tmp_5;
- case 61:
- r0 = s.retval;
- s.attr___10840 = (r0);
- s.tmp_0 = tileworld_TileWorldVM_getWitness__P9585_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.kind___10833;
- s.tmp_0.arg2 = s.wcol___10757;
- s.tmp_0.arg3 = s.wrow___10765;
- s.callLocIdx = 424; s.pc = 62; return s.tmp_0;
- case 62:
- r0 = s.retval;
- s.witness___10845 = (r0);
- r0 = (s.attr___10840 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 22; continue; }
- r0 = s.tmp_0;
- { step = 23; continue; }
- case 22:
- r0 = s.witness___10845;
- case 23:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 24; continue; }
- r0 = false;
- { step = 51; continue; }
- { step = 37; continue; }
- case 24:
- r0 = (s.attr___10840 == 1);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 31; continue; }
- s.hasInclude___10778 = (true);
- r0 = pxsim_numops_toBoolDecr(s.witness___10845);
- if (!r0) { step = 29; continue; }
- s.includePassed___10779 = (true);
- s.tmp_0 = r0 = s.adjacent___10827;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 25; continue; }
- r0 = s.tmp_0;
- { step = 26; continue; }
- case 25:
- r0 = pxsim_numops_toBoolDecr(s.includeWitness___10780);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- case 26:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 27; continue; }
- s.includeWitness___10780 = (s.witness___10845);
- case 27:
- case 28:
- case 29:
- case 30:
- { step = 36; continue; }
- case 31:
- r0 = (s.attr___10840 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 34; continue; }
- s.hasInclude2___10782 = (true);
- r0 = pxsim_numops_toBoolDecr(s.witness___10845);
- if (!r0) { step = 32; continue; }
- s.include2Passed___10783 = (true);
- case 32:
- case 33:
- case 34:
- case 35:
- case 36:
- case 37:
- r0 = (s.kind___10833 + 1);
- s.kind___10833 = (r0);
- { step = 21; continue; }
- case 38:
- r0 = pxsim_numops_toBoolDecr(s.hasInclude___10778);
- 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 = 39; continue; }
- r0 = s.tmp_0;
- { step = 40; continue; }
- case 39:
- r0 = s.includePassed___10779;
- case 40:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.ret___10875 = (s.tmp_2);
- s.tmp_0 = r0 = s.ret___10875;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 41; continue; }
- r0 = s.tmp_0;
- { step = 42; continue; }
- case 41:
- r0 = s.includeWitness___10780;
- case 42:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 45; continue; }
- s.tmp_5 = tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s);
- s.tmp_5.arg0 = s.arg0;
- s.tmp_6 = tileworld_RuleView_getWitnessDirection__P3651_mk(s);
- s.tmp_6.arg0 = s.arg2;
- s.tmp_6.arg1 = s.whendo___10744;
- s.callLocIdx = 425; s.pc = 64; return s.tmp_6;
- case 64:
- r0 = s.retval;
- s.tmp_5.arg1 = r0;
- r0 = s.includeWitness___10780.fields["dir"];
- s.tmp_5.arg2 = r0;
- s.callLocIdx = 426; s.pc = 63; return s.tmp_5;
- case 63:
- r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- s.tmp_3 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 43; continue; }
- r0 = false;
- { step = 51; continue; }
- case 43:
- case 44:
- r0 = pxsim_Array__push(s.arg5, s.includeWitness___10780);
- case 45:
- case 46:
- s.tmp_0 = r0 = s.ret___10875;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 47; continue; }
- r0 = s.tmp_0;
- { step = 50; continue; }
- case 47:
- r0 = pxsim_numops_toBoolDecr(s.hasInclude2___10782);
- s.tmp_2 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBool(s.tmp_1);
- if (!r0) { step = 48; continue; }
- r0 = s.tmp_1;
- { step = 49; continue; }
- case 48:
- r0 = s.include2Passed___10783;
- case 49:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = s.tmp_3;
- case 50:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
- case 51:
+
+
+while (true) {
+if (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, tiles_legacy_TileSet__C80124_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["originalImage"] = (s.arg1);
+ r0 = (s.arg0).fields["obstacle"] = (s.arg2);
+ r0 = (s.arg0).fields["map"] = (s.arg3);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_evaluateWhenDo__P9587.info = {"start":20891,"length":3062,"line":477,"column":8,"endLine":542,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDo","argumentNames":["this","ts","rv","col","row","witnesses"]}
+tiles_legacy_TileSet_constructor__P80126.info = {"start":638,"length":186,"line":21,"column":8,"endLine":25,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","image","collisions","map"]}
-function tileworld_TileWorldVM_evaluateWhenDo__P9587_mk(s) {
+function tiles_legacy_TileSet_constructor__P80126_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_evaluateWhenDo__P9587, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_TileSet_constructor__P80126, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- whendo___10744: undefined,
- wcol___10757: undefined,
- wrow___10765: undefined,
- hasInclude___10778: undefined,
- includePassed___10779: undefined,
- includeWitness___10780: undefined,
- hasInclude2___10782: undefined,
- include2Passed___10783: undefined,
- tm___10784: undefined,
- kind___10788: undefined,
- hasKind___10795: undefined,
- attr___10803: undefined,
- adjacent___10827: undefined,
- kind___10833: undefined,
- attr___10840: undefined,
- witness___10845: undefined,
- ret___10875: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
- arg4: undefined,
- arg5: undefined,
} }
-function tileworld_TileWorldVM_getWitness__P9585(s) {
+function tiles_legacy_LegacyTilemap_isInvalidIndex__P71432(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54822,67 +52004,43 @@ 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["sprites"];
- s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ r0 = (s.arg1 < 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
+ if (!r0) { step = 1; continue; }
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = pxsim_pxtcore_mkAction(2, inline__P10701);
- s.tmp_2 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg2);
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg3);
- s.tmp_3 = helpers_arrayFind__P106_mk(s);
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["sprites"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.arg1);
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.tmp_2;
- s.callLocIdx = 412; s.pc = 3; return s.tmp_3;
- case 3:
- r0 = s.retval;
+ r0 = (s.arg1 > 15);
case 2:
// jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ s.tmp_1 = r0;
+ r0 = s.tmp_1;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_getWitness__P9585.info = {"start":20442,"length":204,"line":466,"column":8,"endLine":469,"endColumn":9,"fileName":"vm.ts","functionName":"getWitness","argumentNames":["this","kind","col","row"]}
+tiles_legacy_LegacyTilemap_isInvalidIndex__P71432.info = {"start":5347,"length":105,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]}
-function tileworld_TileWorldVM_getWitness__P9585_mk(s) {
+function tiles_legacy_LegacyTilemap_isInvalidIndex__P71432_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_getWitness__P9585, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_isInvalidIndex__P71432, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function inline__P10701(s) {
+function scene_setTileMap__P63843(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54892,58 +52050,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.scene___80099 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 410; s.pc = 3; return s.tmp_2;
- case 3:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.caps[0]);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 1643; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 411; s.pc = 4; return s.tmp_4;
- case 4:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == s.caps[1]);
+ s.scene___80099 = (r0);
+ s.tmp_0 = tiles_legacy_LegacyTilemap_setMap__P63862_mk(s);
+ r0 = s.scene___80099.fields["tileMap"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 1644; s.pc = 2; return s.tmp_0;
case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
+ r0 = s.retval;
+ s.tmp_0 = tiles_TileMap_scale__P62312_mk(s);
+ r0 = s.scene___80099.fields["tileMap"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1645; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P10701.info = {"start":20594,"length":40,"line":468,"column":46,"endLine":468,"endColumn":86,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+scene_setTileMap__P63843.info = {"start":23,"length":220,"line":2,"column":4,"endLine":6,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTileMap","argumentNames":["map","scale"]}
-function inline__P10701_mk(s) {
+function scene_setTileMap__P63843_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P10701, depth: s.depth + 1,
+ parent: s, fn: scene_setTileMap__P63843, depth: s.depth + 1,
pc: 0, retval: undefined, 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___80099: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_TileWorldVM_manhattan__P9588(s) {
+function tiles_TileMap_scale__P62312(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -54956,50 +52109,46 @@ 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- s.tmp_1 = Math_abs__P120_mk(s);
- r0 = (2 - s.arg1);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_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__P62301_mk(s);
+ r0 = s.arg0.fields["_map"];
s.tmp_1.arg0 = r0;
- s.callLocIdx = 427; s.pc = 1; return s.tmp_1;
- case 1:
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 742; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_3 = Math_abs__P120_mk(s);
- r0 = (2 - s.arg2);
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 428; s.pc = 2; return s.tmp_3;
+ case 1:
case 2:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_0 + s.tmp_2);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_manhattan__P9588.info = {"start":23963,"length":113,"line":544,"column":8,"endLine":546,"endColumn":9,"fileName":"vm.ts","functionName":"manhattan","argumentNames":["this","col","row"]}
+tiles_TileMap_scale__P62312.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]}
-function tileworld_TileWorldVM_manhattan__P9588_mk(s) {
+function tiles_TileMap_scale__P62312_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_manhattan__P9588, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_scale__P62312, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_RuleClosure_constructor__P9562(s) {
+function tiles_TileMapData_scale__P62301(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55012,37 +52161,72 @@ 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, tileworld_RuleClosure__C9561_VT)) failedCast(r0);
- r0 = (s.arg0).fields["rv"] = (s.arg1);
- r0 = (s.arg0).fields["self"] = (s.arg2);
- r0 = (s.arg0).fields["witnesses"] = (s.arg3);
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_scale"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleClosure_constructor__P9562.info = {"start":4448,"length":147,"line":97,"column":8,"endLine":102,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","rv","self","witnesses"]}
+tiles_TileMapData_scale__P62301.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]}
-function tileworld_RuleClosure_constructor__P9562_mk(s) {
+function tiles_TileMapData_scale__P62301_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleClosure_constructor__P9562, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_scale__P62301, 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 tileworld_TileWorldVM_startRound__P9569(s) {
+function tiles_TileMapData_scale__P62300(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_scale"];
+ return leaveAccessor(s, r0)
+ default: oops()
+} } }
+tiles_TileMapData_scale__P62300.info = {"start":3809,"length":66,"line":143,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]}
+tiles_TileMapData_scale__P62300.isGetter = true;
+
+function tiles_TileMapData_scale__P62300_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tiles_TileMapData_scale__P62300, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tiles_legacy_LegacyTilemap_setMap__P63862(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55058,95 +52242,126 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = s.arg0.fields["vm"];
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_mapImage"] = (s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tiles_legacy_LegacyTilemap_setMap__P63862.info = {"start":3178,"length":64,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setMap","argumentNames":["this","map"]}
+
+function tiles_legacy_LegacyTilemap_setMap__P63862_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tiles_legacy_LegacyTilemap_setMap__P63862, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tiles_legacy_LegacyTilemap_constructor__P63849(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_0 = tiles_TileMap_constructor__P62310_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1649; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- r0 = (s.arg0).fields["dpad"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["globalInsts"] = (s.tmp_1);
+ r0 = s.retval;
+ r0 = (s.arg0).fields["_screenX"] = (s.arg2);
s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["globalArgs"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = s.arg0.fields["vm"];
- r0 = r0.fields["nextBlockedSprites"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["blockedSpriteKinds"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["deadSprites"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["spawnedSprites"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["paintTile"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["buttonMatch"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["nextBlockedSprites"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["movingToResting"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["queued"] = (s.tmp_1);
- r0 = s.arg0.fields["vm"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["phase"] = (3);
- r0 = pxsim_pxtcore_mkAction(1, inline__P9708);
+ r0 = (s.tmp_0).fields["_tileSets"] = (s.tmp_1);
+ r0 = (s.arg0).fields["isLegacy"] = (true);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tiles_legacy_LegacyTilemap_constructor__P63849.info = {"start":1614,"length":206,"line":48,"column":8,"endLine":53,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","scale","left"]}
+
+function tiles_legacy_LegacyTilemap_constructor__P63849_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tiles_legacy_LegacyTilemap_constructor__P63849, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function tiles_TileMap_constructor__P62310(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_layer"] = (1);
+ s.tmp_0 = tiles_TileMap_scale__P62312_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 740; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P80940);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s);
- s.tmp_1.arg0 = s.arg0;
+ s.tmp_1 = scene_createRenderable__P62372_mk(s);
+ s.tmp_1.arg0 = -1;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 307; s.pc = 4; return s.tmp_1;
- case 4:
+ s.tmp_1.arg2 = undefined;
+ s.callLocIdx = 741; s.pc = 2; return s.tmp_1;
+ case 2:
r0 = s.retval;
- case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_startRound__P9569.info = {"start":5647,"length":955,"line":134,"column":8,"endLine":157,"endColumn":9,"fileName":"vm.ts","functionName":"startRound","argumentNames":["this","currDir"]}
+tiles_TileMap_constructor__P62310.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]}
-function tileworld_TileWorldVM_startRound__P9569_mk(s) {
+function tiles_TileMap_constructor__P62310_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_startRound__P9569, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_constructor__P62310, 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,
} }
@@ -55155,7 +52370,7 @@ function tileworld_TileWorldVM_startRound__P9569_mk(s) {
-function inline__P9708(s) {
+function inline__P80940(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55167,72 +52382,373 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = Sprite_x__P2023_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_4 = Sprite_x__P2022_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 303; s.pc = 2; return s.tmp_4;
+ s.tmp_0 = tiles_TileMap__C62309_v11_3_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = s.arg1;
+ if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw;
+ s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P80940.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]}
+
+function inline__P80940_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P80940, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tiles_TileMap_draw__P64220(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.bitmask___80951 = undefined;
+ s.offsetX___80957 = undefined;
+ s.offsetY___80962 = undefined;
+ s.x0___80967 = undefined;
+ s.xn___80974 = undefined;
+ s.y0___80992 = undefined;
+ s.yn___80999 = undefined;
+ s.x___81016 = undefined;
+ s.y___81022 = undefined;
+ s.index___81028 = undefined;
+ s.tile___81035 = undefined;
+ s.x___81071 = undefined;
+ s.xLine___81077 = undefined;
+ s.y___81103 = undefined;
+ s.yLine___81109 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_3 = tiles_TileMap__C62309_v6_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
+ s.pc = 24; return s.tmp_3;
+ case 24:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 23; continue; }
+ case 1:
case 2:
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_5 = r0;
+ r0 = (1 << s.tmp_5);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 - 1);
+ s.bitmask___80951 = (r0);
+ r0 = s.arg2.fields["drawOffsetX"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 & s.bitmask___80951);
+ s.offsetX___80957 = (r0);
+ r0 = s.arg2.fields["drawOffsetY"];
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 & s.bitmask___80951);
+ s.offsetY___80962 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
+ s.tmp_0.arg0 = 0;
+ r0 = s.arg2.fields["drawOffsetX"];
+ s.tmp_1 = r0;
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >> s.tmp_2);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 757; s.pc = 25; return s.tmp_0;
+ case 25:
r0 = s.retval;
+ s.x0___80967 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_width"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg2.fields["drawOffsetX"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.width(s.arg1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 + s.tmp_5);
s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 4);
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_3 >> s.tmp_6);
s.tmp_2 = r0;
- r0 = (s.tmp_2 << 4);
+ r0 = (s.tmp_2 + 1);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 760; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ s.xn___80974 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
+ s.tmp_0.arg0 = 0;
+ r0 = s.arg2.fields["drawOffsetY"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 >> s.tmp_2);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 304; s.pc = 1; return s.tmp_0;
- case 1:
+ s.callLocIdx = 762; s.pc = 27; return s.tmp_0;
+ case 27:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_4 = Sprite_y__P2024_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 305; s.pc = 4; return s.tmp_4;
+ s.y0___80992 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_1 = r0;
+ r0 = s.tmp_1.fields["_height"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg2.fields["drawOffsetY"];
+ s.tmp_4 = r0;
+ r0 = pxsim_ImageMethods.height(s.arg1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_4 + s.tmp_5);
+ s.tmp_3 = r0;
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_6 = r0;
+ r0 = (s.tmp_3 >> s.tmp_6);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 1);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 765; s.pc = 28; return s.tmp_0;
+ case 28:
+ r0 = s.retval;
+ s.yn___80999 = (r0);
+ s.x___81016 = (s.x0___80967);
+ case 3:
+ r0 = (s.x___81016 <= s.xn___80974);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.y___81022 = (s.y0___80992);
case 4:
+ r0 = (s.y___81022 <= s.yn___80999);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ s.tmp_1 = tiles_TileMapData_getTile__P62302_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.x___81016;
+ s.tmp_1.arg2 = s.y___81022;
+ s.callLocIdx = 766; s.pc = 29; return s.tmp_1;
+ case 29:
+ r0 = s.retval;
+ s.index___81028 = (r0);
+ s.tmp_0 = tiles_TileMapData_getTileImage__P62305_mk(s);
+ r0 = s.arg0.fields["_map"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.index___81028;
+ s.callLocIdx = 767; s.pc = 30; return s.tmp_0;
+ case 30:
+ r0 = s.retval;
+ s.tile___81035 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.tile___81035);
+ if (!r0) { step = 5; continue; }
+ s.tmp_0 = r0 = s.arg1;
+ s.tmp_1 = r0 = s.tile___81035;
+ r0 = (s.x___81016 - s.x0___80967);
+ 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___80957);
+ s.tmp_2 = r0;
+ r0 = (s.y___81022 - s.y0___80992);
+ 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___80962);
+ 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___81022 + 1);
+ s.y___81022 = (r0);
+ { step = 4; continue; }
+ case 7:
+ r0 = (s.x___81016 + 1);
+ s.x___81016 = (r0);
+ { step = 3; continue; }
+ case 8:
+ r0 = pxsim_numops_toBoolDecr(globals.debug___62517);
+ if (!r0) { step = 21; continue; }
+ s.x___81071 = (s.x0___80967);
+ case 9:
+ r0 = (s.x___81071 <= s.xn___80974);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ r0 = (s.x___81071 - s.x0___80967);
+ 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___80957);
+ s.xLine___81077 = (r0);
+ r0 = (s.xLine___81077 >= 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___81077;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 <= s.tmp_2);
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 12; continue; }
+ s.tmp_4 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_4.arg0 = s.arg1;
+ s.tmp_4.arg1 = s.xLine___81077;
+ s.tmp_4.arg2 = 0;
+ s.tmp_4.arg3 = s.xLine___81077;
+ r0 = pxsim_ImageMethods.height(s.arg1);
+ s.tmp_4.arg4 = r0;
+ s.tmp_4.arg5 = 1;
+ s.callLocIdx = 771; s.pc = 31; return s.tmp_4;
+ case 31:
r0 = s.retval;
+ case 12:
+ case 13:
+ r0 = (s.x___81071 + 1);
+ s.x___81071 = (r0);
+ { step = 9; continue; }
+ case 14:
+ s.y___81103 = (s.y0___80992);
+ case 15:
+ r0 = (s.y___81103 <= s.yn___80999);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 20; continue; }
+ r0 = (s.y___81103 - s.y0___80992);
+ s.tmp_2 = r0;
+ r0 = s.arg0.fields["_scale"];
s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 4);
+ r0 = (s.tmp_2 << s.tmp_3);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - s.offsetY___80962);
+ s.yLine___81109 = (r0);
+ r0 = (s.yLine___81109 >= 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___81109;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_2 = r0;
- r0 = (s.tmp_2 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 306; s.pc = 3; return s.tmp_0;
- case 3:
+ r0 = (s.tmp_1 <= s.tmp_2);
+ case 17:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_3);
+ if (!r0) { step = 18; continue; }
+ s.tmp_4 = helpers_imageDrawLine__P61722_mk(s);
+ s.tmp_4.arg0 = s.arg1;
+ s.tmp_4.arg1 = 0;
+ s.tmp_4.arg2 = s.yLine___81109;
+ r0 = pxsim_ImageMethods.width(s.arg1);
+ s.tmp_4.arg3 = r0;
+ s.tmp_4.arg4 = s.yLine___81109;
+ s.tmp_4.arg5 = 1;
+ s.callLocIdx = 773; s.pc = 32; return s.tmp_4;
+ case 32:
r0 = s.retval;
- r0 = (s.arg0).fields["inst"] = (-1);
- r0 = (s.arg0).fields["movedToStopped"] = (false);
- r0 = s.caps[0].fields["vm"];
- r0 = r0.fields["queued"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ case 18:
+ case 19:
+ r0 = (s.y___81103 + 1);
+ s.y___81103 = (r0);
+ { step = 15; continue; }
+ case 20:
+ case 21:
+ case 22:
+ case 23:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9708.info = {"start":6261,"length":329,"line":150,"column":28,"endLine":156,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]}
+tiles_TileMap_draw__P64220.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]}
-function inline__P9708_mk(s) {
+function tiles_TileMap_draw__P64220_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9708, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_draw__P64220, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ bitmask___80951: undefined,
+ offsetX___80957: undefined,
+ offsetY___80962: undefined,
+ x0___80967: undefined,
+ xn___80974: undefined,
+ y0___80992: undefined,
+ yn___80999: undefined,
+ x___81016: undefined,
+ y___81022: undefined,
+ index___81028: undefined,
+ tile___81035: undefined,
+ x___81071: undefined,
+ xLine___81077: undefined,
+ y___81103: undefined,
+ yLine___81109: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_TileWorldVM_setState__P9568(s) {
+function tiles_TileMapData_getTileImage__P62305(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55242,25 +52758,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.size___81137 = undefined;
+ s.cachedImage___81141 = undefined;
+ s.originalImage___81148 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = (s.arg0).fields["vm"] = (s.arg1);
- r0 = undefined;
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
+ r0 = s.arg0.fields["_scale"];
+ s.tmp_0 = r0;
+ r0 = (1 << s.tmp_0);
+ s.size___81137 = (r0);
+ r0 = s.arg0.fields["cachedTileView"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
+ s.cachedImage___81141 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.cachedImage___81141);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 7; continue; }
+ r0 = s.arg0.fields["tileset"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_2, s.arg1);
+ s.originalImage___81148 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.originalImage___81148);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_ImageMethods.width(s.originalImage___81148);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 <= s.size___81137);
+ 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___81148);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 <= s.size___81137);
+ 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___81141 = (s.originalImage___81148);
+ { step = 4; continue; }
+ case 3:
+ r0 = pxsim.image.create(s.size___81137, s.size___81137);
+ s.cachedImage___81141 = (r0);
+ r0 = pxsim_ImageMethods.drawImage(s.cachedImage___81141, s.originalImage___81148, 0, 0);
+ case 4:
+ r0 = s.arg0.fields["cachedTileView"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___81141);
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ r0 = s.cachedImage___81141;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_setState__P9568.info = {"start":5573,"length":64,"line":130,"column":8,"endLine":132,"endColumn":9,"fileName":"vm.ts","functionName":"setState","argumentNames":["this","v"]}
+tiles_TileMapData_getTileImage__P62305.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
-function tileworld_TileWorldVM_setState__P9568_mk(s) {
+function tiles_TileMapData_getTileImage__P62305_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_setState__P9568, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_getTileImage__P62305, depth: s.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___81137: undefined,
+ cachedImage___81141: undefined,
+ originalImage___81148: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -55269,7 +52845,7 @@ function tileworld_TileWorldVM_setState__P9568_mk(s) {
-function scene_cameraFollowSprite__P2456(s) {
+function tileworld_VMState_constructor__P69551(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55279,32 +52855,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___26154 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 846; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.scene___26154 = (r0);
- r0 = s.scene___26154.fields["camera"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["sprite"] = (s.arg0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_VMState__C69550_VT)) failedCast(r0);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["nextBlockedSprites"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_cameraFollowSprite__P2456.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]}
+tileworld_VMState_constructor__P69551.info = {"start":4222,"length":67,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this"]}
-function scene_cameraFollowSprite__P2456_mk(s) {
+function tileworld_VMState_constructor__P69551_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_cameraFollowSprite__P2456, depth: s.depth + 1,
+ parent: s, fn: tileworld_VMState_constructor__P69551, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- scene___26154: undefined,
+ tmp_1: undefined,
arg0: undefined,
} }
@@ -55312,7 +52885,7 @@ function scene_cameraFollowSprite__P2456_mk(s) {
-function tileworld_Project_getPlayer__P3686(s) {
+function tileworld_RunGame_constructor__P63771(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55324,29 +52897,54 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_player"];
+ if (!checkSubtype(r0, tileworld_RunGame__C63770_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ r0 = (s.arg0).fields["debug"] = (s.arg3);
+ s.tmp_0 = tileworld_BackgroundBase_constructor__P63780_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 462; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileWorldVM__C69563_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_TileWorldVM_constructor__P69587_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg1;
+ s.tmp_1.arg2 = s.arg2;
+ s.callLocIdx = 463; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ r0 = (s.arg0).fields["vm"] = (s.tmp_0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getPlayer__P3686.info = {"start":2574,"length":63,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"project.ts","functionName":"getPlayer","argumentNames":["this"]}
+tileworld_RunGame_constructor__P63771.info = {"start":31434,"length":164,"line":701,"column":8,"endLine":704,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules","debug"]}
-function tileworld_Project_getPlayer__P3686_mk(s) {
+function tileworld_RunGame_constructor__P63771_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getPlayer__P3686, depth: s.depth + 1,
+ parent: s, fn: tileworld_RunGame_constructor__P63771, 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 tileworld_TileSprite_constructor__P9375(s) {
+function tileworld_TileWorldVM_constructor__P69587(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55356,85 +52954,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___9382 = undefined;
+ s.rt___69597 = 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, tileworld_TileSprite__C9368_VT)) failedCast(r0);
- s.tmp_0 = Sprite_constructor__P2050_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 284; s.pc = 1; return s.tmp_0;
+ if (!checkSubtype(r0, tileworld_TileWorldVM__C69563_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ r0 = (s.arg0).fields["rules"] = (s.arg2);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["ruleIndex"] = (s.tmp_1);
+ r0 = (s.arg0).fields["vm"] = (null);
+ s.rt___69597 = (0);
case 1:
- r0 = s.retval;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 285; s.pc = 2; return s.tmp_0;
+ r0 = (s.rt___69597 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ r0 = s.arg0.fields["ruleIndex"];
+ s.tmp_1 = r0;
+ s.tmp_2 = r0 = s.rt___69597;
+ r0 = pxsim_Array__mk();
+ s.tmp_3 = r0;
+ r0 = pxsim_Array_.setAt(s.tmp_1, s.tmp_2, s.tmp_3);
+ r0 = (s.rt___69597 + 1);
+ s.rt___69597 = (r0);
+ { step = 1; continue; }
case 2:
- r0 = s.retval;
- s.scene___9382 = (r0);
- s.tmp_0 = PhysicsEngine__C2156_v0_2_mk(s);
- r0 = s.scene___9382.fields["physicsEngine"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite;
- s.pc = 3; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69613);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["rules"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 304; s.pc = 3; return s.tmp_1;
case 3:
- r0 = s.retval;
- s.tmp_0 = Sprite_setKind__P2068_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg2;
- s.callLocIdx = 286; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- r0 = (s.arg0).fields["debug"] = (s.arg3);
- r0 = (s.arg0).fields["dir"] = (4);
- r0 = (s.arg0).fields["lastDir"] = (4);
- r0 = (s.arg0).fields["inst"] = (-1);
- r0 = (s.arg0).fields["state"] = (0);
- s.tmp_0 = if_z_2_mk(s);
- s.tmp_0.arg0 = s.arg0;
- r0 = (100 - s.arg2);
- s.tmp_0.arg1 = r0;
- 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 = 287; s.pc = 5; return s.tmp_0; }
- }
- case 5:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite_constructor__P9375.info = {"start":648,"length":422,"line":14,"column":8,"endLine":25,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","img","kind","d"]}
+tileworld_TileWorldVM_constructor__P69587.info = {"start":4907,"length":654,"line":113,"column":8,"endLine":128,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules"]}
-function tileworld_TileSprite_constructor__P9375_mk(s) {
+function tileworld_TileWorldVM_constructor__P69587_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite_constructor__P9375, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileWorldVM_constructor__P69587, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- scene___9382: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ rt___69597: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
- arg3: undefined,
} }
-function tileworld_Project_getWorldSprites__P3690(s) {
+function inline__P69613(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55444,23 +53031,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.derivedRules___69615 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["_sprites"];
+ s.tmp_0 = tileworld_RuleView_getDerivedRules__P63630_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 301; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.derivedRules___69615 = (r0);
+ r0 = pxsim_Array__push(s.derivedRules___69615, s.arg0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P69624);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.derivedRules___69615;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 303; s.pc = 2; return s.tmp_1;
+ case 2:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getWorldSprites__P3690.info = {"start":3049,"length":70,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"project.ts","functionName":"getWorldSprites","argumentNames":["this"]}
+inline__P69613.info = {"start":5271,"length":278,"line":120,"column":31,"endLine":127,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function tileworld_Project_getWorldSprites__P3690_mk(s) {
+function inline__P69613_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getWorldSprites__P3690, depth: s.depth + 1,
+ parent: s, fn: inline__P69613, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ derivedRules___69615: undefined,
arg0: undefined,
} }
@@ -55468,7 +53073,7 @@ function tileworld_Project_getWorldSprites__P3690_mk(s) {
-function tileworld_RunGame_setWorld__P3775(s) {
+function inline__P69624(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55478,238 +53083,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.currScene___11430 = undefined;
- s.kind___11472 = undefined;
- s.x___11487 = undefined;
- s.y___11493 = undefined;
- s.kind___11499 = undefined;
- s.art___11507 = undefined;
- s.ts___11512 = undefined;
+ s.rt___69626 = 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, tileworld_RunGame__C3773_VT)) failedCast(r0);
- r0 = (s.arg0).fields["signal"] = (null);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_VMState__C9554_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_VMState_constructor__P9555_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.callLocIdx = 462; s.pc = 12; return s.tmp_1;
- case 12:
- r0 = s.retval;
- r0 = (s.arg0).fields["state"] = (s.tmp_0);
- r0 = s.arg0.fields["state"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["game"] = (0);
- r0 = s.arg0.fields["state"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0).fields["score"] = (0);
- r0 = s.arg0.fields["state"];
- s.tmp_0 = r0;
- r0 = s.arg0.fields["p"];
- r0 = r0.fields["highScore"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["highScore"] = (s.tmp_1);
- r0 = s.arg0.fields["state"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1);
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 463; s.pc = 13; return s.tmp_0;
- case 13:
- r0 = s.retval;
- s.currScene___11430 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_LegacyTilemap__C3850_VT);
- s.tmp_0 = r0;
- r0 = s.arg0.fields["debug"];
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 1; continue; }
- r0 = 2;
- { step = 2; continue; }
- case 1:
- r0 = 0;
- case 2:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- s.tmp_3 = tiles_legacy_LegacyTilemap_constructor__P3852_mk(s);
- s.tmp_3.arg0 = s.tmp_0;
- s.tmp_3.arg1 = 4;
- s.tmp_3.arg2 = s.tmp_2;
- s.callLocIdx = 464; s.pc = 14; return s.tmp_3;
- case 14:
- r0 = s.retval;
- r0 = (s.currScene___11430).fields["tileMap"] = (s.tmp_0);
- s.tmp_0 = scene_setTileMap__P3846_mk(s);
- r0 = pxsim_ImageMethods.clone(s.arg1);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 4;
- s.callLocIdx = 465; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- r0 = s.arg0.fields["state"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.clone(s.arg1);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["changed"] = (s.tmp_1);
- r0 = s.arg0.fields["state"];
- r0 = r0.fields["changed"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_backgroundsI"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P11465;
- s.callLocIdx = 468; s.pc = 16; return s.tmp_0;
- case 16:
- r0 = s.retval;
- s.kind___11472 = (0);
- case 3:
- s.tmp_1 = r0 = s.kind___11472;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- 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 = s.arg0.fields["state"];
- r0 = r0.fields["sprites"];
- s.tmp_5 = r0;
- s.tmp_6 = r0 = s.kind___11472;
- r0 = pxsim_Array__mk();
- s.tmp_7 = r0;
- r0 = pxsim_Array_.setAt(s.tmp_5, s.tmp_6, s.tmp_7);
- r0 = (s.kind___11472 + 1);
- s.kind___11472 = (r0);
- { step = 3; continue; }
- case 4:
- s.x___11487 = (0);
- case 5:
- s.tmp_1 = r0 = s.x___11487;
- r0 = pxsim_ImageMethods.width(s.arg2);
- 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; }
- s.y___11493 = (0);
- case 6:
- s.tmp_1 = r0 = s.y___11493;
- r0 = pxsim_ImageMethods.height(s.arg2);
- 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_ImageMethods.getPixel(s.arg2, s.x___11487, s.y___11493);
- s.kind___11499 = (r0);
- r0 = (s.kind___11499 == 15);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- { step = 9; continue; }
- case 7:
- case 8:
- s.tmp_1 = tileworld_Project_getSpriteImage__P3697_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.kind___11499;
- s.callLocIdx = 470; s.pc = 17; return s.tmp_1;
- case 17:
- r0 = s.retval;
- s.art___11507 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_TileSprite_constructor__P9375_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.art___11507;
- s.tmp_1.arg2 = s.kind___11499;
- r0 = s.arg0.fields["debug"];
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 471; s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- s.ts___11512 = (s.tmp_0);
- r0 = s.arg0.fields["state"];
- r0 = r0.fields["sprites"];
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["ruleType"];
+ s.rt___69626 = (r0);
+ r0 = s.caps[0].fields["ruleIndex"];
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.kind___11499);
+ r0 = pxsim_Array__getAt(s.tmp_1, s.rt___69626);
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.ts___11512);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- s.tmp_0.arg0 = s.ts___11512;
- r0 = (s.x___11487 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 472; s.pc = 19; return s.tmp_0;
- case 19:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- s.tmp_0.arg0 = s.ts___11512;
- r0 = (s.y___11493 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 8);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 473; s.pc = 20; return s.tmp_0;
- case 20:
- r0 = s.retval;
- case 9:
- r0 = (s.y___11493 + 1);
- s.y___11493 = (r0);
- { step = 6; continue; }
- case 10:
- r0 = (s.x___11487 + 1);
- s.x___11487 = (r0);
- { step = 5; continue; }
- case 11:
+ r0 = pxsim_Array__push(s.tmp_0, s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RunGame_setWorld__P3775.info = {"start":31626,"length":1417,"line":706,"column":8,"endLine":738,"endColumn":9,"fileName":"vm.ts","functionName":"setWorld","argumentNames":["this","w","sprites"]}
+inline__P69624.info = {"start":5412,"length":121,"line":123,"column":37,"endLine":126,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
-function tileworld_RunGame_setWorld__P3775_mk(s) {
+function inline__P69624_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RunGame_setWorld__P3775, depth: s.depth + 1,
+ parent: s, fn: inline__P69624, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- currScene___11430: undefined,
- kind___11472: undefined,
- x___11487: undefined,
- y___11493: undefined,
- kind___11499: undefined,
- art___11507: undefined,
- ts___11512: undefined,
+ rt___69626: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function inline__P11465(s) {
+function tileworld_Project_getRules__P63681(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55721,37 +53129,29 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = scene_setTile__P3847_mk(s);
- s.tmp_0.arg0 = s.arg1;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = undefined;
- s.callLocIdx = 467; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["rules"];
return leave(s, r0)
default: oops()
} } }
-inline__P11465.info = {"start":32292,"length":71,"line":720,"column":46,"endLine":722,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["img","kind"]}
+tileworld_Project_getRules__P63681.info = {"start":2419,"length":60,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"project.ts","functionName":"getRules","argumentNames":["this"]}
-function inline__P11465_mk(s) {
+function tileworld_Project_getRules__P63681_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P11465, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_getRules__P63681, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function scene_setTile__P3847(s) {
+function tileworld_SwitchExport_constructor__P63664(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55761,50 +53161,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___20129 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 1699; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.scene___20129 = (r0);
- s.tmp_0 = tiles_legacy_LegacyTilemap_setTile__P3864_mk(s);
- r0 = s.scene___20129.fields["tileMap"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = s.arg1;
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- 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.arg3 = r0;
- s.callLocIdx = 1700; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_SwitchExport__C63663_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ r0 = (s.arg0).fields["backgrounds"] = (s.arg2);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_setTile__P3847.info = {"start":249,"length":200,"line":8,"column":4,"endLine":11,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["index","img","wall"]}
+tileworld_SwitchExport_constructor__P63664.info = {"start":107,"length":80,"line":5,"column":8,"endLine":6,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p","backgrounds"]}
-function scene_setTile__P3847_mk(s) {
+function tileworld_SwitchExport_constructor__P63664_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_setTile__P3847, depth: s.depth + 1,
+ parent: s, fn: tileworld_SwitchExport_constructor__P63664, depth: s.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___20129: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -55814,7 +53191,7 @@ function scene_setTile__P3847_mk(s) {
-function tiles_legacy_LegacyTilemap_setTile__P3864(s) {
+function tileworld_Gallery_constructor__P63821(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55829,65 +53206,114 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.arg2 = (s.lambdaArgs[2]);
s.arg3 = (s.lambdaArgs[3]);
+ s.arg4 = (s.lambdaArgs[4]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_1 = tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_1.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_1.arg0);
- s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isInvalidIndex;
- s.pc = 4; return s.tmp_1;
- case 4:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
+ if (!checkSubtype(r0, tileworld_Gallery__C63820_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["kind"] = (s.arg2);
+ r0 = (s.arg0).fields["wrapper"] = (s.arg3);
+ r0 = (s.arg0).fields["gallery"] = (s.arg4);
+ s.tmp_0 = tileworld_RuleVisualsBase_constructor__P63782_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.callLocIdx = 1293; s.pc = 1; return s.tmp_0;
case 1:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_3 = tileworld_SwitchExport_getImage__P63666_mk(s);
+ r0 = s.arg0.fields["wrapper"];
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = s.arg2;
+ s.callLocIdx = 1294; s.pc = 2; return s.tmp_3;
case 2:
- r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C20140_VT);
+ r0 = s.retval;
s.tmp_2 = r0;
- s.tmp_3 = tiles_legacy_TileSet_constructor__P20142_mk(s);
- s.tmp_3.arg0 = s.tmp_2;
- s.tmp_3.arg1 = s.arg2;
- s.tmp_3.arg2 = s.arg3;
- s.tmp_3.arg3 = s.arg0;
- s.callLocIdx = 1712; s.pc = 5; return s.tmp_3;
+ r0 = pxsim_ImageMethods.clone(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["current"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = s.arg0.fields["current"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.clone(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["newImage"] = (s.tmp_1);
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 1295; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 1296; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1297; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- r0 = s.arg0.fields["_tileSets"];
- s.tmp_4 = r0;
- r0 = pxsim_Array_.setAt(s.tmp_4, s.arg1, s.tmp_2);
- case 3:
+ s.tmp_0 = tileworld_RuleVisualsBase_setCol__P72684_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1298; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_setRow__P72685_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1299; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77176);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1305; s.pc = 8; return s.tmp_1;
+ case 8:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77212);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.B___61870;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 1309; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_setTile__P3864.info = {"start":2976,"length":192,"line":103,"column":8,"endLine":106,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["this","index","img","collisions"]}
+tileworld_Gallery_constructor__P63821.info = {"start":147,"length":1126,"line":5,"column":8,"endLine":30,"endColumn":9,"fileName":"gallery.ts","functionName":"inline","argumentNames":["this","p","kind","wrapper","gallery"]}
-function tiles_legacy_LegacyTilemap_setTile__P3864_mk(s) {
+function tileworld_Gallery_constructor__P63821_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_setTile__P3864, depth: s.depth + 1,
+ parent: s, fn: tileworld_Gallery_constructor__P63821, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
arg3: undefined,
+ arg4: undefined,
} }
-function tiles_legacy_TileSet_constructor__P20142(s) {
+function inline__P77176(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55897,40 +53323,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_TileSet__C20140_VT)) failedCast(r0);
- r0 = (s.arg0).fields["originalImage"] = (s.arg1);
- r0 = (s.arg0).fields["obstacle"] = (s.arg2);
- r0 = (s.arg0).fields["map"] = (s.arg3);
+ s.isCurrent___77177 = undefined;
+ s.index___77185 = undefined;
+ s.img___77197 = undefined;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1300; s.pc = 9; return s.tmp_2;
+ case 9:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1301; s.pc = 10; return s.tmp_4;
+ case 10:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 == 1);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ s.isCurrent___77177 = (s.tmp_5);
+ r0 = s.caps[0].fields["dirMap"];
+ s.tmp_0 = r0;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1302; s.pc = 11; return s.tmp_2;
+ case 11:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1303; s.pc = 12; return s.tmp_4;
+ case 12:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
+ s.index___77185 = (r0);
+ s.tmp_0 = r0 = s.isCurrent___77177;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_0;
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.index___77185 != 15);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 7; continue; }
+ s.tmp_2 = tileworld_RuleVisualsBase_setTileSaved__P72692_mk(s);
+ s.tmp_2.arg0 = s.caps[0];
+ s.callLocIdx = 1304; s.pc = 13; return s.tmp_2;
+ case 13:
+ r0 = s.retval;
+ r0 = s.caps[0].fields["gallery"];
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.index___77185);
+ s.img___77197 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.isCurrent___77177);
+ if (!r0) { step = 5; continue; }
+ r0 = s.caps[0].fields["current"];
+ { step = 6; continue; }
+ case 5:
+ r0 = s.img___77197;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ r0 = s.caps[0].fields["newImage"];
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.copyFrom(s.tmp_1, s.tmp_0);
+ case 7:
+ case 8:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_TileSet_constructor__P20142.info = {"start":638,"length":186,"line":21,"column":8,"endLine":25,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","image","collisions","map"]}
+inline__P77176.info = {"start":615,"length":399,"line":15,"column":64,"endLine":23,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]}
-function tiles_legacy_TileSet_constructor__P20142_mk(s) {
+function inline__P77176_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_TileSet_constructor__P20142, depth: s.depth + 1,
+ parent: s, fn: inline__P77176, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ isCurrent___77177: undefined,
+ index___77185: undefined,
+ img___77197: undefined,
} }
-function tiles_legacy_LegacyTilemap_isInvalidIndex__P11440(s) {
+function inline__P77212(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55940,46 +53441,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- r0 = (s.arg1 < 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
+ s.tmp_1 = tileworld_SwitchExport_getImage__P63666_mk(s);
+ r0 = s.caps[0].fields["wrapper"];
+ s.tmp_1.arg0 = r0;
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_1.arg1 = r0;
+ s.callLocIdx = 1306; s.pc = 1; return s.tmp_1;
case 1:
- r0 = (s.arg1 > 15);
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = s.caps[0].fields["newImage"];
+ s.tmp_2 = r0;
+ r0 = pxsim_ImageMethods.copyFrom(s.tmp_0, s.tmp_2);
+ s.tmp_0 = tileworld_SwitchExport_saveImage__P63667_mk(s);
+ r0 = s.caps[0].fields["wrapper"];
+ s.tmp_0.arg0 = r0;
+ r0 = s.caps[0].fields["kind"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1307; s.pc = 2; return s.tmp_0;
case 2:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = s.tmp_1;
+ r0 = s.retval;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1308; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_isInvalidIndex__P11440.info = {"start":5347,"length":105,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]}
+inline__P77212.info = {"start":1082,"length":179,"line":25,"column":64,"endLine":29,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]}
-function tiles_legacy_LegacyTilemap_isInvalidIndex__P11440_mk(s) {
+function inline__P77212_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_isInvalidIndex__P11440, depth: s.depth + 1,
+ parent: s, fn: inline__P77212, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- arg0: undefined,
- arg1: undefined,
+ tmp_2: undefined,
} }
-function scene_setTileMap__P3846(s) {
+function tileworld_SwitchExport_saveImage__P63667(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -55989,44 +53495,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___20115 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 1696; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_SwitchExport__C63663_VT)) failedCast(r0);
+ r0 = s.arg0.fields["backgrounds"];
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = tileworld_Project_saveBackgroundImage__P63695_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.arg1;
+ s.callLocIdx = 153; s.pc = 3; return s.tmp_1;
+ case 3:
+ r0 = s.retval;
+ { step = 2; continue; }
case 1:
+ s.tmp_2 = tileworld_Project_saveSpriteImage__P63696_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.arg1;
+ s.callLocIdx = 154; s.pc = 4; return s.tmp_2;
+ case 4:
r0 = s.retval;
- s.scene___20115 = (r0);
- s.tmp_0 = tiles_legacy_LegacyTilemap_setMap__P3865_mk(s);
- r0 = s.scene___20115.fields["tileMap"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg0;
- s.callLocIdx = 1697; s.pc = 2; return s.tmp_0;
case 2:
- r0 = s.retval;
- s.tmp_0 = tiles_TileMap_scale__P2317_mk(s);
- r0 = s.scene___20115.fields["tileMap"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1698; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
+ // jmp value (already in r0)
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_setTileMap__P3846.info = {"start":23,"length":220,"line":2,"column":4,"endLine":6,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTileMap","argumentNames":["map","scale"]}
+tileworld_SwitchExport_saveImage__P63667.info = {"start":475,"length":137,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","kind"]}
-function scene_setTileMap__P3846_mk(s) {
+function tileworld_SwitchExport_saveImage__P63667_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_setTileMap__P3846, depth: s.depth + 1,
+ parent: s, fn: tileworld_SwitchExport_saveImage__P63667, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- scene___20115: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -56035,7 +53546,7 @@ function scene_setTileMap__P3846_mk(s) {
-function tiles_TileMap_scale__P2317(s) {
+function tileworld_SwitchExport_getImage__P63666(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56051,34 +53562,45 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_scale"] = (s.arg1);
- r0 = s.arg0.fields["_map"];
+ if (!checkSubtype(r0, tileworld_SwitchExport__C63663_VT)) failedCast(r0);
+ r0 = s.arg0.fields["backgrounds"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = tiles_TileMapData_scale__P2306_mk(s);
- r0 = s.arg0.fields["_map"];
+ s.tmp_1 = tileworld_Project_getBackgroundImage__P63693_mk(s);
+ r0 = s.arg0.fields["p"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 742; s.pc = 3; return s.tmp_1;
+ s.callLocIdx = 151; s.pc = 3; return s.tmp_1;
case 3:
r0 = s.retval;
+ { step = 2; continue; }
case 1:
+ s.tmp_2 = tileworld_Project_getSpriteImage__P63694_mk(s);
+ r0 = s.arg0.fields["p"];
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.arg1;
+ s.callLocIdx = 152; s.pc = 4; return s.tmp_2;
+ case 4:
+ r0 = s.retval;
case 2:
- r0 = undefined;
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ r0 = s.tmp_3;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_scale__P2317.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]}
+tileworld_SwitchExport_getImage__P63666.info = {"start":324,"length":142,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","kind"]}
-function tiles_TileMap_scale__P2317_mk(s) {
+function tileworld_SwitchExport_getImage__P63666_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_scale__P2317, depth: s.depth + 1,
+ parent: s, fn: tileworld_SwitchExport_getImage__P63666, depth: s.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,
} }
@@ -56087,7 +53609,7 @@ function tiles_TileMap_scale__P2317_mk(s) {
-function tiles_TileMapData_scale__P2306(s) {
+function game_pushScene__P62525(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56097,40 +53619,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_scale"] = (s.arg1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
+ s.oldScene___82757 = undefined;
+ s.tmp_0 = game_currentScene__P62521_mk(s);
+ s.callLocIdx = 854; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.oldScene___82757 = (r0);
+ s.tmp_0 = particles_clearAll__P62697_mk(s);
+ s.callLocIdx = 855; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = particles_disableAll__P62698_mk(s);
+ s.callLocIdx = 856; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(globals._sceneStack___64275);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1);
+ 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___64275 = (r0);
+ case 1:
+ case 2:
+ r0 = pxsim_Array__push(globals._sceneStack___64275, globals._scene___64274);
+ s.tmp_0 = game_init__P64282_mk(s);
+ s.tmp_0.arg0 = true;
+ s.callLocIdx = 857; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___64276);
+ if (!r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P82774);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___82757);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals._scenePushHandlers___64276;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 859; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ case 3:
+ case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_scale__P2306.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]}
+game_pushScene__P62525.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]}
-function tiles_TileMapData_scale__P2306_mk(s) {
+function game_pushScene__P62525_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_scale__P2306, depth: s.depth + 1,
+ parent: s, fn: game_pushScene__P62525, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- arg0: undefined,
- arg1: undefined,
+ oldScene___82757: undefined,
} }
-function tiles_TileMapData_scale__P2305(s) {
+function inline__P82774(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56144,20 +53696,25 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
- r0 = s.arg0.fields["_scale"];
- return leaveAccessor(s, r0)
+ s.tmp_0 = lambda_2_mk(s);
+ s.tmp_0.argL = s.arg0;
+ s.tmp_0.arg0 = s.caps[0];
+ setupLambda(s.tmp_0, s.tmp_0.argL);
+ s.callLocIdx = 858; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_scale__P2305.info = {"start":3809,"length":66,"line":143,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]}
-tiles_TileMapData_scale__P2305.isGetter = true;
+inline__P82774.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]}
-function tiles_TileMapData_scale__P2305_mk(s) {
+function inline__P82774_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_scale__P2305, depth: s.depth + 1,
+ parent: s, fn: inline__P82774, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
} }
@@ -56165,7 +53722,7 @@ function tiles_TileMapData_scale__P2305_mk(s) {
-function tiles_legacy_LegacyTilemap_setMap__P3865(s) {
+function particles_disableAll__P62698(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56175,34 +53732,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.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_mapImage"] = (s.arg1);
+ s.sources___85425 = undefined;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1122; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.sources___85425 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.sources___85425);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = s.sources___85425;
+ s.tmp_0.arg1 = inline__P85431;
+ s.callLocIdx = 1124; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = particles_pruneParticles__P64634_mk(s);
+ s.callLocIdx = 1125; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_setMap__P3865.info = {"start":3178,"length":64,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setMap","argumentNames":["this","map"]}
+particles_disableAll__P62698.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]}
-function tiles_legacy_LegacyTilemap_setMap__P3865_mk(s) {
+function particles_disableAll__P62698_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_setMap__P3865, depth: s.depth + 1,
+ parent: s, fn: particles_disableAll__P62698, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
+ tmp_0: undefined,
+ sources___85425: undefined,
} }
-function tiles_legacy_LegacyTilemap_constructor__P3852(s) {
+function inline__P85431(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56214,47 +53783,34 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_0 = tiles_TileMap_constructor__P2315_mk(s);
+ s.tmp_0 = particles_ParticleSource_enabled__P62680_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1702; s.pc = 1; return s.tmp_0;
+ s.tmp_0.arg1 = false;
+ s.callLocIdx = 1123; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = (s.arg0).fields["_screenX"] = (s.arg2);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_tileSets"] = (s.tmp_1);
- r0 = (s.arg0).fields["isLegacy"] = (true);
- r0 = undefined;
+ r0 = false;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_constructor__P3852.info = {"start":1614,"length":206,"line":48,"column":8,"endLine":53,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","scale","left"]}
+inline__P85431.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
-function tiles_legacy_LegacyTilemap_constructor__P3852_mk(s) {
+function inline__P85431_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_constructor__P3852, depth: s.depth + 1,
+ parent: s, fn: inline__P85431, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function tiles_TileMap_constructor__P2315(s) {
+function particles_clearAll__P62697(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56264,52 +53820,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.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_layer"] = (1);
- s.tmp_0 = tiles_TileMap_scale__P2317_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 740; s.pc = 1; return s.tmp_0;
- case 1:
+ s.sources___85436 = undefined;
+ s.tmp_0 = particles_particleSources__P64638_mk(s);
+ s.callLocIdx = 1118; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P20954);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = scene_createRenderable__P2375_mk(s);
- s.tmp_1.arg0 = -1;
- s.tmp_1.arg1 = s.tmp_0;
- s.tmp_1.arg2 = undefined;
- s.callLocIdx = 741; s.pc = 2; return s.tmp_1;
- case 2:
+ s.sources___85436 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.sources___85436);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_0.arg0 = s.sources___85436;
+ s.tmp_0.arg1 = inline__P85442;
+ s.callLocIdx = 1120; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = particles_pruneParticles__P64634_mk(s);
+ s.callLocIdx = 1121; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
+ case 1:
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_constructor__P2315.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]}
+particles_clearAll__P62697.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]}
-function tiles_TileMap_constructor__P2315_mk(s) {
+function particles_clearAll__P62697_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_constructor__P2315, depth: s.depth + 1,
+ parent: s, fn: particles_clearAll__P62697, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- arg0: undefined,
- arg1: undefined,
+ sources___85436: undefined,
} }
-function inline__P20954(s) {
+function inline__P85442(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56321,39 +53871,33 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tiles_TileMap__C2314_v11_3_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = s.arg1;
- if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw;
- s.pc = 1; return s.tmp_0;
+ s.tmp_0 = particles_ParticleSource_clear__P62682_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 1119; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P20954.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]}
+inline__P85442.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
-function inline__P20954_mk(s) {
+function inline__P85442_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P20954, depth: s.depth + 1,
+ parent: s, fn: inline__P85442, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tiles_TileMap_draw__P4223(s) {
+function tileworld_Project_saveProject__P63703(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56363,331 +53907,329 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.bitmask___20965 = undefined;
- s.offsetX___20971 = undefined;
- s.offsetY___20976 = undefined;
- s.x0___20981 = undefined;
- s.xn___20988 = undefined;
- s.y0___21006 = undefined;
- s.yn___21013 = undefined;
- s.x___21030 = undefined;
- s.y___21036 = undefined;
- s.index___21042 = undefined;
- s.tile___21049 = undefined;
- s.x___21085 = undefined;
- s.xLine___21091 = undefined;
- s.y___21117 = undefined;
- s.yLine___21123 = undefined;
+ s.prefix___68383 = undefined;
+ s.worldBuf___68451 = undefined;
+ s.spritesBuf___68461 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_3 = tiles_TileMap__C2314_v6_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
- s.pc = 24; return s.tmp_3;
- case 24:
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = s.arg0.fields["prefix"];
+ s.prefix___68383 = (r0);
+ s.tmp_0 = settings_writeString__P61820_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 4:
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);
+ if ((globals.VersionKey___68391) && (globals.VersionKey___68391).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(globals.VersionKey___68391);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.VersionKey___68391) + ""; }
+ case 5:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["version"];
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 199; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ r0 = s.arg0.fields["help"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 23; continue; }
+ r0 = 1;
+ { step = 2; continue; }
case 1:
+ r0 = 0;
case 2:
- r0 = s.arg0.fields["_scale"];
- s.tmp_5 = r0;
- r0 = (1 << s.tmp_5);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 - 1);
- s.bitmask___20965 = (r0);
- r0 = s.arg2.fields["drawOffsetX"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 & s.bitmask___20965);
- s.offsetX___20971 = (r0);
- r0 = s.arg2.fields["drawOffsetY"];
- s.tmp_0 = r0;
- r0 = (s.tmp_0 & s.bitmask___20965);
- s.offsetY___20976 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
- s.tmp_0.arg0 = 0;
- r0 = s.arg2.fields["drawOffsetX"];
+ // jmp value (already in r0)
s.tmp_1 = r0;
- r0 = s.arg0.fields["_scale"];
- s.tmp_2 = r0;
- r0 = (s.tmp_1 >> s.tmp_2);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 757; s.pc = 25; return s.tmp_0;
- case 25:
+ s.tmp_2 = settings_writeNumber__P61821_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 7:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ if ((globals.HelpKey___68339) && (globals.HelpKey___68339).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(globals.HelpKey___68339);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.HelpKey___68339) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 200; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 10:
r0 = s.retval;
- s.x0___20981 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
- r0 = s.arg0.fields["_map"];
s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_width"];
+ if ((globals.BackImgCntKey___68409) && (globals.BackImgCntKey___68409).vtable) {
+ setupResume(s, 11);
+ pxsim_String__stringConv(globals.BackImgCntKey___68409);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.BackImgCntKey___68409) + ""; }
+ case 11:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
s.tmp_0.arg0 = r0;
- r0 = s.arg2.fields["drawOffsetX"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.width(s.arg1);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 + s.tmp_5);
+ r0 = s.arg0.fields["_backgroundsI"];
s.tmp_3 = r0;
- r0 = s.arg0.fields["_scale"];
- s.tmp_6 = r0;
- r0 = (s.tmp_3 >> s.tmp_6);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ r0 = pxsim_Array__length(s.tmp_3);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 760; s.pc = 26; return s.tmp_0;
- case 26:
+ s.callLocIdx = 202; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 13);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 13:
r0 = s.retval;
- s.xn___20988 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
- s.tmp_0.arg0 = 0;
- r0 = s.arg2.fields["drawOffsetY"];
s.tmp_1 = r0;
- r0 = s.arg0.fields["_scale"];
+ if ((globals.SpriteImgCntKey___68418) && (globals.SpriteImgCntKey___68418).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(globals.SpriteImgCntKey___68418);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.SpriteImgCntKey___68418) + ""; }
+ case 14:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_1 >> s.tmp_2);
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["_spritesI"];
+ s.tmp_3 = r0;
+ r0 = pxsim_Array__length(s.tmp_3);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 762; s.pc = 27; return s.tmp_0;
- case 27:
+ s.callLocIdx = 204; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 16:
r0 = s.retval;
- s.y0___21006 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
- r0 = s.arg0.fields["_map"];
s.tmp_1 = r0;
- r0 = s.tmp_1.fields["_height"];
- s.tmp_0.arg0 = r0;
- r0 = s.arg2.fields["drawOffsetY"];
- s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.height(s.arg1);
- s.tmp_5 = r0;
- r0 = (s.tmp_4 + s.tmp_5);
- s.tmp_3 = r0;
- r0 = s.arg0.fields["_scale"];
- s.tmp_6 = r0;
- r0 = (s.tmp_3 >> s.tmp_6);
+ if ((globals.PlayerIndexKey___68427) && (globals.PlayerIndexKey___68427).vtable) {
+ setupResume(s, 17);
+ pxsim_String__stringConv(globals.PlayerIndexKey___68427);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.PlayerIndexKey___68427) + ""; }
+ case 17:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_2 + 1);
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ r0 = s.arg0.fields["_player"];
s.tmp_0.arg1 = r0;
- s.callLocIdx = 765; s.pc = 28; return s.tmp_0;
- case 28:
+ s.callLocIdx = 206; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- s.yn___21013 = (r0);
- s.x___21030 = (s.x0___20981);
- case 3:
- r0 = (s.x___21030 <= s.xn___20988);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68433);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.y___21036 = (s.y0___21006);
- case 4:
- r0 = (s.y___21036 <= s.yn___21013);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___68383);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["_backgroundsI"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 209; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68443);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- s.tmp_1 = tiles_TileMapData_getTile__P2307_mk(s);
- r0 = s.arg0.fields["_map"];
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___68383);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["_spritesI"];
s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.x___21030;
- s.tmp_1.arg2 = s.y___21036;
- s.callLocIdx = 766; s.pc = 29; return s.tmp_1;
- case 29:
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 212; s.pc = 19; return s.tmp_1;
+ case 19:
r0 = s.retval;
- s.index___21042 = (r0);
- s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s);
- r0 = s.arg0.fields["_map"];
+ s.tmp_0 = tileworld_imageToBuffer__P63539_mk(s);
+ r0 = s.arg0.fields["_backgrounds"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.index___21042;
- s.callLocIdx = 767; s.pc = 30; return s.tmp_0;
- case 30:
+ s.callLocIdx = 214; s.pc = 20; return s.tmp_0;
+ case 20:
+ r0 = s.retval;
+ s.worldBuf___68451 = (r0);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 22:
r0 = s.retval;
- s.tile___21049 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.tile___21049);
- if (!r0) { step = 5; continue; }
- s.tmp_0 = r0 = s.arg1;
- s.tmp_1 = r0 = s.tile___21049;
- r0 = (s.x___21030 - s.x0___20981);
- 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___20971);
- s.tmp_2 = r0;
- r0 = (s.y___21036 - s.y0___21006);
- 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___20976);
- 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___21036 + 1);
- s.y___21036 = (r0);
- { step = 4; continue; }
- case 7:
- r0 = (s.x___21030 + 1);
- s.x___21030 = (r0);
- { step = 3; continue; }
- case 8:
- r0 = pxsim_numops_toBoolDecr(globals.debug___2520);
- if (!r0) { step = 21; continue; }
- s.x___21085 = (s.x0___20981);
- case 9:
- r0 = (s.x___21085 <= s.xn___20988);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- r0 = (s.x___21085 - s.x0___20981);
- 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___20971);
- s.xLine___21091 = (r0);
- r0 = (s.xLine___21091 >= 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___21091;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 <= s.tmp_2);
- case 11:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 12; continue; }
- s.tmp_4 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_4.arg0 = s.arg1;
- s.tmp_4.arg1 = s.xLine___21091;
- s.tmp_4.arg2 = 0;
- s.tmp_4.arg3 = s.xLine___21091;
- r0 = pxsim_ImageMethods.height(s.arg1);
- s.tmp_4.arg4 = r0;
- s.tmp_4.arg5 = 1;
- s.callLocIdx = 771; s.pc = 31; return s.tmp_4;
- case 31:
+ if ((globals.WorldBackgroundsKey___68314) && (globals.WorldBackgroundsKey___68314).vtable) {
+ setupResume(s, 23);
+ pxsim_String__stringConv(globals.WorldBackgroundsKey___68314);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.WorldBackgroundsKey___68314) + ""; }
+ case 23:
r0 = s.retval;
- case 12:
- case 13:
- r0 = (s.x___21085 + 1);
- s.x___21085 = (r0);
- { step = 9; continue; }
- case 14:
- s.y___21117 = (s.y0___21006);
- case 15:
- r0 = (s.y___21117 <= s.yn___21013);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 20; continue; }
- r0 = (s.y___21117 - s.y0___21006);
s.tmp_2 = r0;
- r0 = s.arg0.fields["_scale"];
- s.tmp_3 = r0;
- r0 = (s.tmp_2 << s.tmp_3);
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.worldBuf___68451;
+ s.callLocIdx = 215; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_imageToBuffer__P63539_mk(s);
+ r0 = s.arg0.fields["_sprites"];
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 217; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ s.spritesBuf___68461 = (r0);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.prefix___68383) && (s.prefix___68383).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.prefix___68383);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.prefix___68383) + ""; }
+ case 26:
+ r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 - s.offsetY___20976);
- s.yLine___21123 = (r0);
- r0 = (s.yLine___21123 >= 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___21123;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ if ((globals.WorldSpritesKey___68328) && (globals.WorldSpritesKey___68328).vtable) {
+ setupResume(s, 27);
+ pxsim_String__stringConv(globals.WorldSpritesKey___68328);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.WorldSpritesKey___68328) + ""; }
+ case 27:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_1 <= s.tmp_2);
- case 17:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_3);
- if (!r0) { step = 18; continue; }
- s.tmp_4 = helpers_imageDrawLine__P1727_mk(s);
- s.tmp_4.arg0 = s.arg1;
- s.tmp_4.arg1 = 0;
- s.tmp_4.arg2 = s.yLine___21123;
- r0 = pxsim_ImageMethods.width(s.arg1);
- s.tmp_4.arg3 = r0;
- s.tmp_4.arg4 = s.yLine___21123;
- s.tmp_4.arg5 = 1;
- s.callLocIdx = 773; s.pc = 32; return s.tmp_4;
- case 32:
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = s.spritesBuf___68461;
+ s.callLocIdx = 218; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(2, inline__P68473);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.prefix___68383);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.arg0.fields["rules"];
+ s.tmp_1.arg0 = r0;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 223; s.pc = 28; return s.tmp_1;
+ case 28:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_saveProject__P63703.info = {"start":6082,"length":1127,"line":172,"column":8,"endLine":192,"endColumn":9,"fileName":"project.ts","functionName":"saveProject","argumentNames":["this"]}
+
+function tileworld_Project_saveProject__P63703_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_saveProject__P63703, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ prefix___68383: undefined,
+ worldBuf___68451: undefined,
+ spritesBuf___68461: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function inline__P68433(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.buf___68436 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = tileworld_saveImage__P68201_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg0;
+ s.tmp_0.arg3 = true;
+ s.callLocIdx = 208; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- case 18:
- case 19:
- r0 = (s.y___21117 + 1);
- s.y___21117 = (r0);
- { step = 15; continue; }
- case 20:
- case 21:
- case 22:
- case 23:
+ s.buf___68436 = (r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_draw__P4223.info = {"start":9076,"length":2224,"line":321,"column":8,"endLine":376,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]}
+inline__P68433.info = {"start":6556,"length":86,"line":179,"column":44,"endLine":181,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]}
-function tiles_TileMap_draw__P4223_mk(s) {
+function inline__P68433_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_draw__P4223, depth: s.depth + 1,
+ parent: s, fn: inline__P68433, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- bitmask___20965: undefined,
- offsetX___20971: undefined,
- offsetY___20976: undefined,
- x0___20981: undefined,
- xn___20988: undefined,
- y0___21006: undefined,
- yn___21013: undefined,
- x___21030: undefined,
- y___21036: undefined,
- index___21042: undefined,
- tile___21049: undefined,
- x___21085: undefined,
- xLine___21091: undefined,
- y___21117: undefined,
- yLine___21123: undefined,
+ buf___68436: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tiles_TileMapData_getTileImage__P2310(s) {
+function inline__P68443(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56697,85 +54239,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.size___21151 = undefined;
- s.cachedImage___21155 = undefined;
- s.originalImage___21162 = undefined;
+ s.buf___68446 = 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__C2301_VT)) failedCast(r0);
- r0 = s.arg0.fields["_scale"];
- s.tmp_0 = r0;
- r0 = (1 << s.tmp_0);
- s.size___21151 = (r0);
- r0 = s.arg0.fields["cachedTileView"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.arg1);
- s.cachedImage___21155 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.cachedImage___21155);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 7; continue; }
- r0 = s.arg0.fields["tileset"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_2, s.arg1);
- s.originalImage___21162 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.originalImage___21162);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_ImageMethods.width(s.originalImage___21162);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 <= s.size___21151);
- 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 = tileworld_saveImage__P68201_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg0;
+ s.tmp_0.arg3 = false;
+ s.callLocIdx = 211; s.pc = 1; return s.tmp_0;
case 1:
- r0 = pxsim_ImageMethods.height(s.originalImage___21162);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 <= s.size___21151);
- 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___21155 = (s.originalImage___21162);
- { step = 4; continue; }
- case 3:
- r0 = pxsim.image.create(s.size___21151, s.size___21151);
- s.cachedImage___21155 = (r0);
- r0 = pxsim_ImageMethods.drawImage(s.cachedImage___21155, s.originalImage___21162, 0, 0);
- case 4:
- r0 = s.arg0.fields["cachedTileView"];
- s.tmp_0 = r0;
- r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___21155);
- case 5:
- case 6:
- case 7:
- case 8:
- r0 = s.cachedImage___21155;
+ r0 = s.retval;
+ s.buf___68446 = (r0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_getTileImage__P2310.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
+inline__P68443.info = {"start":6685,"length":87,"line":182,"column":40,"endLine":184,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]}
-function tiles_TileMapData_getTileImage__P2310_mk(s) {
+function inline__P68443_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_getTileImage__P2310, depth: s.depth + 1,
+ parent: s, fn: inline__P68443, depth: s.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___21151: undefined,
- cachedImage___21155: undefined,
- originalImage___21162: undefined,
+ buf___68446: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -56784,7 +54275,7 @@ function tiles_TileMapData_getTileImage__P2310_mk(s) {
-function tileworld_VMState_constructor__P9555(s) {
+function inline__P68473(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56794,29 +54285,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___68475 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_VMState__C9554_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["nextBlockedSprites"] = (s.tmp_1);
+ s.tmp_0 = tileworld_Project_storeRule__P68102_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = s.caps[1];
+ r0 = s.arg0.fields["rid"];
+ s.tmp_0.arg2 = r0;
+ r0 = s.arg0.fields["r"];
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 222; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.buf___68475 = (r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_VMState_constructor__P9555.info = {"start":4224,"length":67,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this"]}
+inline__P68473.info = {"start":7095,"length":102,"line":189,"column":36,"endLine":191,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
-function tileworld_VMState_constructor__P9555_mk(s) {
+function inline__P68473_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_VMState_constructor__P9555, depth: s.depth + 1,
+ parent: s, fn: inline__P68473, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
+ buf___68475: undefined,
arg0: undefined,
} }
@@ -56824,7 +54321,7 @@ function tileworld_VMState_constructor__P9555_mk(s) {
-function tileworld_RunGame_constructor__P3774(s) {
+function settings_writeString__P61820(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56837,53 +54334,36 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- r0 = (s.arg0).fields["debug"] = (s.arg3);
- s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 460; s.pc = 1; return s.tmp_0;
+ r0 = pxsim.control.createBufferFromUTF8(s.arg1);
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 132; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileWorldVM__C9567_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_TileWorldVM_constructor__P9591_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg1;
- s.tmp_1.arg2 = s.arg2;
- s.callLocIdx = 461; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
- r0 = (s.arg0).fields["vm"] = (s.tmp_0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RunGame_constructor__P3774.info = {"start":31444,"length":164,"line":701,"column":8,"endLine":704,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules","debug"]}
+settings_writeString__P61820.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 tileworld_RunGame_constructor__P3774_mk(s) {
+function settings_writeString__P61820_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RunGame_constructor__P3774, depth: s.depth + 1,
+ parent: s, fn: settings_writeString__P61820, 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 tileworld_TileWorldVM_constructor__P9591(s) {
+function tileworld_emptyProject__P63707(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56893,74 +54373,169 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rt___9601 = undefined;
+ s.fixed___69110 = undefined;
+ s.movable___69112 = undefined;
+ s.f___69114 = undefined;
+ s.f___69131 = undefined;
+ s.rules___69147 = undefined;
+ s.p___69149 = undefined;
+ s.world___69155 = undefined;
+ s.sprites___69160 = 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, tileworld_TileWorldVM__C9567_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- r0 = (s.arg0).fields["rules"] = (s.arg2);
- s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ruleIndex"] = (s.tmp_1);
- r0 = (s.arg0).fields["vm"] = (null);
- s.rt___9601 = (0);
+ s.fixed___69110 = (r0);
+ r0 = pxsim_Array__mk();
+ s.movable___69112 = (r0);
+ s.f___69114 = (0);
case 1:
- r0 = (s.rt___9601 <= 3);
+ r0 = (s.f___69114 < 4);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 2; continue; }
- r0 = s.arg0.fields["ruleIndex"];
- s.tmp_1 = r0;
- s.tmp_2 = r0 = s.rt___9601;
- r0 = pxsim_Array__mk();
+ s.tmp_1 = r0 = s.fixed___69110;
+ r0 = pxsim_Array__getAt(globals.galleryTiles___63768, s.f___69114);
s.tmp_3 = r0;
- r0 = pxsim_Array_.setAt(s.tmp_1, s.tmp_2, s.tmp_3);
- r0 = (s.rt___9601 + 1);
- s.rt___9601 = (r0);
+ r0 = pxsim_ImageMethods.clone(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
+ r0 = (s.f___69114 + 1);
+ s.f___69114 = (r0);
{ step = 1; continue; }
case 2:
- r0 = pxsim_pxtcore_mkAction(1, inline__P9617);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["rules"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 302; s.pc = 3; return s.tmp_1;
+ s.f___69131 = (0);
case 3:
+ r0 = (s.f___69131 < 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.tmp_1 = r0 = s.movable___69112;
+ r0 = pxsim_Array__getAt(globals.gallerySprites___63767, s.f___69131);
+ s.tmp_3 = r0;
+ r0 = pxsim_ImageMethods.clone(s.tmp_3);
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
+ r0 = (s.f___69131 + 1);
+ s.f___69131 = (r0);
+ { step = 3; continue; }
+ case 4:
+ r0 = pxsim_Array__mk();
+ s.rules___69147 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C63674_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_Project_constructor__P63679_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.fixed___69110;
+ s.tmp_1.arg3 = s.movable___69112;
+ s.callLocIdx = 281; s.pc = 5; return s.tmp_1;
+ case 5:
r0 = s.retval;
- r0 = undefined;
+ s.p___69149 = (s.tmp_0);
+ r0 = pxsim.image.create(32, 24);
+ s.world___69155 = (r0);
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = s.world___69155;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = 30;
+ s.tmp_0.arg4 = 22;
+ s.tmp_0.arg5 = 1;
+ s.callLocIdx = 282; s.pc = 6; return s.tmp_0;
+ case 6:
+ r0 = s.retval;
+ r0 = pxsim.image.create(32, 24);
+ s.sprites___69160 = (r0);
+ r0 = pxsim_ImageMethods.fill(s.sprites___69160, 15);
+ s.tmp_0 = tileworld_Project_setWorldBackgrounds__P63684_mk(s);
+ s.tmp_0.arg0 = s.p___69149;
+ s.tmp_0.arg1 = s.world___69155;
+ s.callLocIdx = 283; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_Project_setWorldSprites__P63686_mk(s);
+ s.tmp_0.arg0 = s.p___69149;
+ s.tmp_0.arg1 = s.sprites___69160;
+ s.callLocIdx = 284; s.pc = 8; return s.tmp_0;
+ case 8:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_Project_setPlayer__P63682_mk(s);
+ s.tmp_0.arg0 = s.p___69149;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 285; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ r0 = (s.p___69149).fields["version"] = (globals.TileWorldVersion___63662);
+ r0 = s.p___69149;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileWorldVM_constructor__P9591.info = {"start":4909,"length":654,"line":113,"column":8,"endLine":128,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules"]}
+tileworld_emptyProject__P63707.info = {"start":14014,"length":719,"line":357,"column":4,"endLine":377,"endColumn":5,"fileName":"project.ts","functionName":"emptyProject","argumentNames":["prefix"]}
-function tileworld_TileWorldVM_constructor__P9591_mk(s) {
+function tileworld_emptyProject__P63707_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileWorldVM_constructor__P9591, depth: s.depth + 1,
+ parent: s, fn: tileworld_emptyProject__P63707, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- rt___9601: undefined,
+ fixed___69110: undefined,
+ movable___69112: undefined,
+ f___69114: undefined,
+ f___69131: undefined,
+ rules___69147: undefined,
+ p___69149: undefined,
+ world___69155: undefined,
+ sprites___69160: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_Project_setPlayer__P63682(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_player"] = (s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_setPlayer__P63682.info = {"start":2489,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"project.ts","functionName":"setPlayer","argumentNames":["this","kind"]}
+
+function tileworld_Project_setPlayer__P63682_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_setPlayer__P63682, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function inline__P9617(s) {
+function tileworld_Project_setWorldSprites__P63686(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -56970,49 +54545,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.derivedRules___9619 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleView_getDerivedRules__P3633_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 299; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- s.derivedRules___9619 = (r0);
- r0 = pxsim_Array__push(s.derivedRules___9619, s.arg0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P9628);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = s.derivedRules___9619;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 301; s.pc = 2; return s.tmp_1;
- case 2:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_sprites"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9617.info = {"start":5273,"length":278,"line":120,"column":31,"endLine":127,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+tileworld_Project_setWorldSprites__P63686.info = {"start":2959,"length":80,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"project.ts","functionName":"setWorldSprites","argumentNames":["this","img"]}
-function inline__P9617_mk(s) {
+function tileworld_Project_setWorldSprites__P63686_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9617, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_setWorldSprites__P63686, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- derivedRules___9619: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P9628(s) {
+function tileworld_Project_setWorldBackgrounds__P63684(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57022,41 +54582,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rt___9630 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["ruleType"];
- s.rt___9630 = (r0);
- r0 = s.caps[0].fields["ruleIndex"];
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["_backgrounds"] = (s.arg1);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_Project_setWorldBackgrounds__P63684.info = {"start":2774,"length":87,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"project.ts","functionName":"setWorldBackgrounds","argumentNames":["this","img"]}
+
+function tileworld_Project_setWorldBackgrounds__P63684_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_Project_setWorldBackgrounds__P63684, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_Project_constructor__P63679(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["prefix"] = (s.arg1);
+ r0 = (s.arg0).fields["_backgroundsI"] = (s.arg2);
+ r0 = (s.arg0).fields["_spritesI"] = (s.arg3);
+ r0 = (s.arg0).fields["lastRule"] = (null);
+ r0 = (s.arg0).fields["_player"] = (-1);
+ r0 = (s.arg0).fields["_backgrounds"] = (null);
+ r0 = (s.arg0).fields["_sprites"] = (null);
+ r0 = (s.arg0).fields["highScore"] = (0);
+ r0 = (s.arg0).fields["debug"] = (false);
+ r0 = (s.arg0).fields["help"] = (true);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_Array__mk();
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.rt___9630);
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.arg0);
+ r0 = (s.tmp_0).fields["rules"] = (s.tmp_1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P9628.info = {"start":5414,"length":121,"line":123,"column":37,"endLine":126,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]}
+tileworld_Project_constructor__P63679.info = {"start":1935,"length":390,"line":50,"column":8,"endLine":57,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","prefix","_backgroundsI","_spritesI"]}
-function inline__P9628_mk(s) {
+function tileworld_Project_constructor__P63679_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P9628, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_constructor__P63679, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- rt___9630: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_Project_getRules__P3684(s) {
+function tileworld_LoadScreen_update__P77806(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57066,23 +54675,385 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.col___77999 = undefined;
+ s.row___78003 = undefined;
+ s.i___78015 = undefined;
+ s.i___78035 = undefined;
+ s.r___78141 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["rules"];
+ if (!checkSubtype(r0, tileworld_LoadScreen__C63829_VT)) failedCast(r0);
+ s.col___77999 = (0);
+ case 1:
+ r0 = (s.col___77999 < 10);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 4; continue; }
+ s.row___78003 = (0);
+ case 2:
+ r0 = (s.row___78003 < 7);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.col___77999;
+ s.tmp_1.arg2 = s.row___78003;
+ s.tmp_1.arg3 = globals.emptyTile___63718;
+ s.callLocIdx = 1446; s.pc = 22; return s.tmp_1;
+ case 22:
+ r0 = s.retval;
+ r0 = (s.row___78003 + 1);
+ s.row___78003 = (r0);
+ { step = 2; continue; }
+ case 3:
+ r0 = (s.col___77999 + 1);
+ s.col___77999 = (r0);
+ { step = 1; continue; }
+ case 4:
+ s.i___78015 = (0);
+ case 5:
+ r0 = (s.i___78015 < 10);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 9; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.i___78015;
+ s.tmp_1.arg2 = 0;
+ s.tmp_1.arg3 = globals.genericSprite___63723;
+ s.callLocIdx = 1447; s.pc = 23; return s.tmp_1;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.i___78015;
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = globals.genericSprite___63723;
+ s.callLocIdx = 1448; s.pc = 24; return s.tmp_0;
+ case 24:
+ r0 = s.retval;
+ r0 = (s.i___78015 > 6);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ { step = 8; continue; }
+ case 6:
+ case 7:
+ s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = 0;
+ s.tmp_1.arg2 = s.i___78015;
+ s.tmp_1.arg3 = globals.genericSprite___63723;
+ s.callLocIdx = 1449; s.pc = 25; return s.tmp_1;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 9;
+ s.tmp_0.arg2 = s.i___78015;
+ s.tmp_0.arg3 = globals.genericSprite___63723;
+ s.callLocIdx = 1450; s.pc = 26; return s.tmp_0;
+ case 26:
+ r0 = s.retval;
+ case 8:
+ r0 = (s.i___78015 + 1);
+ s.i___78015 = (r0);
+ { step = 5; continue; }
+ case 9:
+ s.i___78035 = (0);
+ case 10:
+ r0 = (s.i___78035 < 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 11; continue; }
+ s.tmp_1 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.i___78035;
+ s.tmp_1.arg2 = 0;
+ s.tmp_1.arg3 = 12;
+ s.callLocIdx = 1451; s.pc = 27; return s.tmp_1;
+ case 27:
+ r0 = s.retval;
+ r0 = (s.i___78035 + 1);
+ s.i___78035 = (r0);
+ { step = 10; continue; }
+ case 11:
+ r0 = s.arg0.fields["lastDir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 12; continue; }
+ r0 = globals.downButton___63737;
+ { step = 13; continue; }
+ case 12:
+ s.tmp_2 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_2.arg0 = globals.downButton___63737;
+ s.callLocIdx = 1452; s.pc = 28; return s.tmp_2;
+ case 28:
+ r0 = s.retval;
+ case 13:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = 1;
+ s.tmp_4.arg2 = 6;
+ s.tmp_4.arg3 = s.tmp_3;
+ s.callLocIdx = 1453; s.pc = 29; return s.tmp_4;
+ case 29:
+ r0 = s.retval;
+ r0 = s.arg0.fields["lastDir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 14; continue; }
+ r0 = globals.upButton___63738;
+ { step = 15; continue; }
+ case 14:
+ s.tmp_2 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_2.arg0 = globals.upButton___63738;
+ s.callLocIdx = 1454; s.pc = 30; return s.tmp_2;
+ case 30:
+ r0 = s.retval;
+ case 15:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = 1;
+ s.tmp_4.arg2 = 4;
+ s.tmp_4.arg3 = s.tmp_3;
+ s.callLocIdx = 1455; s.pc = 31; return s.tmp_4;
+ case 31:
+ r0 = s.retval;
+ r0 = s.arg0.fields["lastDir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 16; continue; }
+ r0 = globals.leftButton___63735;
+ { step = 17; continue; }
+ case 16:
+ s.tmp_2 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_2.arg0 = globals.leftButton___63735;
+ s.callLocIdx = 1456; s.pc = 32; return s.tmp_2;
+ case 32:
+ r0 = s.retval;
+ case 17:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = 0;
+ s.tmp_4.arg2 = 5;
+ s.tmp_4.arg3 = s.tmp_3;
+ s.callLocIdx = 1457; s.pc = 33; return s.tmp_4;
+ case 33:
+ r0 = s.retval;
+ r0 = s.arg0.fields["lastDir"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 18; continue; }
+ r0 = globals.rightButton___63736;
+ { step = 19; continue; }
+ case 18:
+ s.tmp_2 = tileworld_greyImage__P63536_mk(s);
+ s.tmp_2.arg0 = globals.rightButton___63736;
+ s.callLocIdx = 1458; s.pc = 34; return s.tmp_2;
+ case 34:
+ r0 = s.retval;
+ case 19:
+ // jmp value (already in r0)
+ s.tmp_3 = r0;
+ s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = 2;
+ s.tmp_4.arg2 = 5;
+ s.tmp_4.arg3 = s.tmp_3;
+ s.callLocIdx = 1459; s.pc = 35; return s.tmp_4;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "TileCode";
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = 10;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1460; s.pc = 36; return s.tmp_0;
+ case 36:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 3;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1461; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 4;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1462; s.pc = 38; return s.tmp_0;
+ case 38:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Load";
+ r0 = (48 + 4);
+ s.tmp_0.arg2 = r0;
+ r0 = (16 + 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 6);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1463; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 5;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1464; s.pc = 40; return s.tmp_0;
+ case 40:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 6;
+ s.tmp_0.arg2 = 1;
+ s.tmp_0.arg3 = 12;
+ s.callLocIdx = 1465; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = "Game";
+ r0 = (5 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 4);
+ s.tmp_0.arg2 = r0;
+ r0 = (16 + 4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 6);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1466; s.pc = 42; return s.tmp_0;
+ case 42:
+ r0 = s.retval;
+ s.r___78141 = (0);
+ case 20:
+ r0 = (s.r___78141 < 4);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 21; continue; }
+ s.tmp_1 = tileworld_LoadScreen_makeIt__P77805_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = 3;
+ r0 = (2 + s.r___78141);
+ s.tmp_1.arg2 = r0;
+ r0 = (s.r___78141 + 1);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops.toString(s.tmp_2);
+ s.tmp_1.arg3 = r0;
+ s.callLocIdx = 1467; s.pc = 43; return s.tmp_1;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_LoadScreen_makeIt__P77805_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 5;
+ r0 = (2 + s.r___78141);
+ s.tmp_0.arg2 = r0;
+ r0 = (s.r___78141 + 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + 4);
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.tmp_1);
+ s.tmp_0.arg3 = r0;
+ s.callLocIdx = 1468; s.pc = 44; return s.tmp_0;
+ case 44:
+ r0 = s.retval;
+ r0 = (s.r___78141 + 1);
+ s.r___78141 = (r0);
+ { step = 20; continue; }
+ case 21:
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 8;
+ s.tmp_0.arg2 = 4;
+ s.tmp_0.arg3 = globals.player___63765;
+ s.callLocIdx = 1469; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 8;
+ s.tmp_0.arg2 = 6;
+ s.tmp_0.arg3 = globals.dog___63764;
+ s.callLocIdx = 1470; s.pc = 46; return s.tmp_0;
+ case 46:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 7;
+ s.tmp_0.arg2 = 5;
+ s.tmp_0.arg3 = globals.snakeHead___63763;
+ s.callLocIdx = 1471; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 9;
+ s.tmp_0.arg2 = 5;
+ s.tmp_0.arg3 = globals.enemy___63766;
+ s.callLocIdx = 1472; s.pc = 48; return s.tmp_0;
+ case 48:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 9;
+ s.tmp_0.arg2 = 0;
+ s.tmp_0.arg3 = globals.settingsIcon___63716;
+ s.callLocIdx = 1473; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_getRules__P3684.info = {"start":2419,"length":60,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"project.ts","functionName":"getRules","argumentNames":["this"]}
+tileworld_LoadScreen_update__P77806.info = {"start":2047,"length":1909,"line":48,"column":8,"endLine":86,"endColumn":9,"fileName":"loadScreen.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_Project_getRules__P3684_mk(s) {
+function tileworld_LoadScreen_update__P77806_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_getRules__P3684, depth: s.depth + 1,
+ parent: s, fn: tileworld_LoadScreen_update__P77806, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ col___77999: undefined,
+ row___78003: undefined,
+ i___78015: undefined,
+ i___78035: undefined,
+ r___78141: undefined,
arg0: undefined,
} }
@@ -57090,7 +55061,7 @@ function tileworld_Project_getRules__P3684_mk(s) {
-function tileworld_SwitchExport_constructor__P3667(s) {
+function tileworld_LoadScreen_makeIt__P77805(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57100,37 +55071,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.prefix___77935 = undefined;
+ s.projectAvailable___77945 = 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, tileworld_SwitchExport__C3666_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- r0 = (s.arg0).fields["backgrounds"] = (s.arg2);
+ if (!checkSubtype(r0, tileworld_LoadScreen__C63829_VT)) failedCast(r0);
+ if ((s.arg3) && (s.arg3).vtable) {
+ setupResume(s, 9);
+ pxsim_String__stringConv(s.arg3);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg3) + ""; }
+ case 9:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat("TW", s.tmp_2);
+ s.tmp_1 = r0;
+ if ((s.tmp_1) && (s.tmp_1).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.tmp_1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_1) + ""; }
+ case 10:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, "-");
+ s.prefix___77935 = (r0);
+ s.tmp_2 = settings_list__P61827_mk(s);
+ s.tmp_2.arg0 = s.prefix___77935;
+ s.callLocIdx = 1439; s.pc = 11; return s.tmp_2;
+ case 11:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_Array__length(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 > 0);
+ s.projectAvailable___77945 = (r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = globals.diskIcon___63760;
+ s.callLocIdx = 1440; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = true;
+ s.callLocIdx = 1441; s.pc = 13; return s.tmp_2;
+ case 13:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 2; continue; }
+ case 1:
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_4.arg0 = s.arg0;
+ s.tmp_4.arg1 = true;
+ s.callLocIdx = 1442; s.pc = 14; return s.tmp_4;
+ case 14:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = (s.arg1 + 1);
+ s.tmp_5 = r0;
+ r0 = (s.tmp_3 == s.tmp_5);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_6);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_6;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_8 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_8.arg0 = s.arg0;
+ s.tmp_8.arg1 = true;
+ s.callLocIdx = 1443; s.pc = 15; return s.tmp_8;
+ case 15:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = (s.tmp_7 == s.arg2);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_9 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_9);
+ if (!r0) { step = 5; continue; }
+ r0 = 7;
+ { step = 8; continue; }
+ case 5:
+ r0 = pxsim_numops_toBoolDecr(s.projectAvailable___77945);
+ if (!r0) { step = 6; continue; }
+ r0 = 6;
+ { step = 7; continue; }
+ case 6:
+ r0 = 12;
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_10 = r0;
+ r0 = s.tmp_10;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ s.tmp_12 = tileworld_RuleVisualsBase_fillTile__P72691_mk(s);
+ s.tmp_12.arg0 = s.arg0;
+ r0 = (s.arg1 + 1);
+ s.tmp_12.arg1 = r0;
+ s.tmp_12.arg2 = s.arg2;
+ s.tmp_12.arg3 = s.tmp_11;
+ s.callLocIdx = 1444; s.pc = 16; return s.tmp_12;
+ case 16:
+ r0 = s.retval;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = s.arg3;
+ r0 = (s.arg1 + 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 << 4);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 + 6);
+ s.tmp_0.arg2 = r0;
+ r0 = (s.arg2 << 4);
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 + 4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 + 6);
+ s.tmp_0.arg3 = r0;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 1445; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_SwitchExport_constructor__P3667.info = {"start":107,"length":80,"line":5,"column":8,"endLine":6,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p","backgrounds"]}
+tileworld_LoadScreen_makeIt__P77805.info = {"start":1571,"length":464,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"loadScreen.ts","functionName":"makeIt","argumentNames":["this","col","row","id"]}
-function tileworld_SwitchExport_constructor__P3667_mk(s) {
+function tileworld_LoadScreen_makeIt__P77805_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_SwitchExport_constructor__P3667, depth: s.depth + 1,
+ parent: s, fn: tileworld_LoadScreen_makeIt__P77805, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ prefix___77935: undefined,
+ projectAvailable___77945: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
+ arg3: undefined,
} }
-function tileworld_Gallery_constructor__P3824(s) {
+function tileworld_loadProject__P63706(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57140,220 +55259,652 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.names___68755 = undefined;
+ s.version___68766 = undefined;
+ s.buf___68771 = undefined;
+ s.world___68776 = undefined;
+ s.sprites___68795 = undefined;
+ s.backCnt___68809 = undefined;
+ s.backImages___68814 = undefined;
+ s.spriteCnt___68820 = undefined;
+ s.spriteImages___68825 = undefined;
+ s.helpNum___68831 = undefined;
+ s.help___68836 = undefined;
+ s.highScore___68838 = undefined;
+ s.p___68848 = undefined;
+ s.ruleName___68854 = undefined;
+ s.ruleids___68860 = undefined;
+ s.rules___68882 = undefined;
+ s.derivedRules___68884 = undefined;
+ s.whenDoCount___68885 = undefined;
+ s.commandCount___68886 = undefined;
+ s.attrCount___68887 = undefined;
+ s.player___68961 = 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, tileworld_Gallery__C3823_VT)) failedCast(r0);
- r0 = (s.arg0).fields["kind"] = (s.arg2);
- r0 = (s.arg0).fields["wrapper"] = (s.arg3);
- r0 = (s.arg0).fields["gallery"] = (s.arg4);
- s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s);
+ s.tmp_0 = settings_list__P61827_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1292; s.pc = 1; return s.tmp_0;
- case 1:
+ s.callLocIdx = 242; s.pc = 28; return s.tmp_0;
+ case 28:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_3 = tileworld_SwitchExport_getImage__P3669_mk(s);
- r0 = s.arg0.fields["wrapper"];
- s.tmp_3.arg0 = r0;
- s.tmp_3.arg1 = s.arg2;
- s.callLocIdx = 1293; s.pc = 2; return s.tmp_3;
+ s.names___68755 = (r0);
+ r0 = pxsim_Array__length(s.names___68755);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = null;
+ { step = 27; continue; }
+ case 1:
case 2:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 3; continue; }
+ s.tmp_2 = console_log__P60361_mk(s);
+ s.tmp_2.arg0 = "function createNAME(prefix: string) {";
+ s.callLocIdx = 243; s.pc = 29; return s.tmp_2;
+ case 29:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_2);
+ case 3:
+ case 4:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 5; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ s.tmp_0.arg0 = "if (settings.exists(prefix+\"-VersionS\")) return;";
+ s.callLocIdx = 244; s.pc = 30; return s.tmp_0;
+ case 30:
+ r0 = s.retval;
+ case 5:
+ case 6:
+ s.tmp_0 = tileworld_settingsReadString__P68651_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.VersionKey___68391;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 245; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.version___68766 = (r0);
+ s.tmp_0 = tileworld_settingsReadBuffer__P68682_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.WorldBackgroundsKey___68314;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 246; s.pc = 32; return s.tmp_0;
+ case 32:
+ r0 = s.retval;
+ s.buf___68771 = (r0);
+ s.tmp_0 = r0 = s.buf___68771;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = s.tmp_0;
+ { step = 8; continue; }
+ case 7:
+ r0 = pxsim.BufferMethods.length(s.buf___68771);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["current"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = s.arg0.fields["current"];
+ r0 = (s.tmp_1 > 0);
+ case 8:
+ // jmp value (already in r0)
s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 9; continue; }
+ s.tmp_3 = tileworld_bufferToImage__P63540_mk(s);
+ s.tmp_3.arg0 = s.buf___68771;
+ s.callLocIdx = 247; s.pc = 33; return s.tmp_3;
+ case 33:
+ r0 = s.retval;
+ { step = 10; continue; }
+ case 9:
+ r0 = null;
+ case 10:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.world___68776 = (s.tmp_4);
+ r0 = pxsim_numops_toBoolDecr(s.world___68776);
+ if (!r0) { step = 11; continue; }
+ r0 = s.world___68776;
+ { step = 12; continue; }
+ case 11:
+ r0 = pxsim.image.create(32, 24);
+ case 12:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ s.world___68776 = (s.tmp_0);
+ s.tmp_0 = tileworld_settingsReadBuffer__P68682_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.WorldSpritesKey___68328;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 248; s.pc = 34; return s.tmp_0;
+ case 34:
+ r0 = s.retval;
+ s.buf___68771 = (r0);
+ s.tmp_0 = r0 = s.buf___68771;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 13; continue; }
+ r0 = s.tmp_0;
+ { step = 14; continue; }
+ case 13:
+ r0 = pxsim.BufferMethods.length(s.buf___68771);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["newImage"] = (s.tmp_1);
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
+ r0 = (s.tmp_1 > 0);
+ case 14:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 15; continue; }
+ s.tmp_3 = tileworld_bufferToImage__P63540_mk(s);
+ s.tmp_3.arg0 = s.buf___68771;
+ s.callLocIdx = 249; s.pc = 35; return s.tmp_3;
+ case 35:
+ r0 = s.retval;
+ { step = 16; continue; }
+ case 15:
+ r0 = null;
+ case 16:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.sprites___68795 = (s.tmp_4);
+ r0 = pxsim_numops_toBoolDecr(s.sprites___68795);
+ if (!r0) { step = 17; continue; }
+ r0 = s.sprites___68795;
+ { step = 18; continue; }
+ case 17:
+ r0 = pxsim.image.create(32, 24);
+ case 18:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ s.sprites___68795 = (s.tmp_0);
+ s.tmp_0 = tileworld_settingsReadNumber__P68618_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 1294; s.pc = 3; return s.tmp_0;
- case 3:
+ s.tmp_0.arg1 = globals.BackImgCntKey___68409;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 250; s.pc = 36; return s.tmp_0;
+ case 36:
+ r0 = s.retval;
+ s.backCnt___68809 = (r0);
+ s.tmp_0 = tileworld_readImages__P68703_mk(s);
+ s.tmp_0.arg0 = s.backCnt___68809;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = globals.BackImageKey___68699;
+ s.tmp_0.arg3 = s.arg1;
+ s.callLocIdx = 251; s.pc = 37; return s.tmp_0;
+ case 37:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
+ s.backImages___68814 = (r0);
+ s.tmp_0 = tileworld_settingsReadNumber__P68618_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.callLocIdx = 1295; s.pc = 4; return s.tmp_0;
- case 4:
+ s.tmp_0.arg1 = globals.SpriteImgCntKey___68418;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 252; s.pc = 38; return s.tmp_0;
+ case 38:
+ r0 = s.retval;
+ s.spriteCnt___68820 = (r0);
+ s.tmp_0 = tileworld_readImages__P68703_mk(s);
+ s.tmp_0.arg0 = s.spriteCnt___68820;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = globals.SpriteImageKey___68701;
+ s.tmp_0.arg3 = s.arg1;
+ s.callLocIdx = 253; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.spriteImages___68825 = (r0);
+ s.tmp_0 = tileworld_settingsReadNumber__P68618_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.HelpKey___68339;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 254; s.pc = 40; return s.tmp_0;
+ case 40:
+ r0 = s.retval;
+ s.helpNum___68831 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.helpNum___68831);
+ if (!r0) { step = 19; continue; }
+ r0 = true;
+ { step = 20; continue; }
+ case 19:
+ r0 = false;
+ case 20:
+ // jmp value (already in r0)
+ s.tmp_0 = r0;
+ s.help___68836 = (s.tmp_0);
+ s.tmp_0 = tileworld_settingsReadNumber__P68618_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.HighScoreKey___68355;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 255; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.highScore___68838 = (r0);
+ r0 = (s.highScore___68838 == undefined);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 21; continue; }
+ r0 = 0;
+ { step = 22; continue; }
+ case 21:
+ r0 = s.highScore___68838;
+ case 22:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ s.highScore___68838 = (s.tmp_1);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C63674_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_Project_constructor__P63679_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.arg0;
+ s.tmp_1.arg2 = s.backImages___68814;
+ s.tmp_1.arg3 = s.spriteImages___68825;
+ s.callLocIdx = 256; s.pc = 42; return s.tmp_1;
+ case 42:
+ r0 = s.retval;
+ s.p___68848 = (s.tmp_0);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 43);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = r0;
+ if ((globals.RuleKey___68296) && (globals.RuleKey___68296).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(globals.RuleKey___68296);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.RuleKey___68296) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.ruleName___68854 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68864);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.ruleName___68854);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P68872);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.ruleName___68854);
+ s.tmp_2 = helpers_arrayMap__P60096_mk(s);
+ s.tmp_3 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_3.arg0 = s.names___68755;
+ s.tmp_3.arg1 = s.tmp_0;
+ s.callLocIdx = 257; s.pc = 46; return s.tmp_3;
+ case 46:
+ r0 = s.retval;
+ s.tmp_2.arg0 = r0;
+ s.tmp_2.arg1 = s.tmp_1;
+ s.callLocIdx = 259; s.pc = 45; return s.tmp_2;
+ case 45:
+ r0 = s.retval;
+ s.ruleids___68860 = (r0);
+ r0 = pxsim_Array__mk();
+ s.rules___68882 = (r0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.derivedRules___68884 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.derivedRules___68884, 0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.whenDoCount___68885 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.whenDoCount___68885, 0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.commandCount___68886 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.commandCount___68886, 0);
+ r0 = pxsim_pxtrt.mklocRef();
+ s.attrCount___68887 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.attrCount___68887, 0);
+ r0 = pxsim_pxtcore_mkAction(10, inline__P68890);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.backCnt___68809);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.spriteCnt___68820);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.p___68848);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rules___68882);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.derivedRules___68884);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.whenDoCount___68885);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.commandCount___68886);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.attrCount___68887);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.ruleids___68860;
+ s.tmp_1.arg1 = s.tmp_0;
+ s.callLocIdx = 267; s.pc = 47; return s.tmp_1;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_settingsReadNumber__P68618_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = globals.PlayerIndexKey___68427;
+ s.tmp_0.arg2 = s.arg1;
+ s.callLocIdx = 268; s.pc = 48; return s.tmp_0;
+ case 48:
+ r0 = s.retval;
+ s.player___68961 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 23; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ s.tmp_0.arg0 = "}";
+ s.callLocIdx = 269; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ case 23:
+ case 24:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 25; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim_Array__length(s.ruleids___68860);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 51);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 51:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat("// base rules: ", s.tmp_1);
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 270; s.pc = 50; return s.tmp_0;
+ case 50:
+ r0 = s.retval;
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___68884);
+ s.tmp_8 = r0;
+ if ((s.tmp_8) && (s.tmp_8).vtable) {
+ setupResume(s, 53);
+ pxsim_String__stringConv(s.tmp_8);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_8) + ""; }
+ case 53:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat("// derived rules: ", s.tmp_7);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 54);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 54:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, " (");
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 55);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 55:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___68884);
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__length(s.ruleids___68860);
+ s.tmp_12 = r0;
+ r0 = (s.tmp_11 / s.tmp_12);
+ s.tmp_10 = r0;
+ if ((s.tmp_10) && (s.tmp_10).vtable) {
+ setupResume(s, 56);
+ pxsim_String__stringConv(s.tmp_10);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_10) + ""; }
+ case 56:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 57);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 57:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ")");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 271; s.pc = 52; return s.tmp_0;
+ case 52:
+ r0 = s.retval;
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___68885);
+ s.tmp_8 = r0;
+ if ((s.tmp_8) && (s.tmp_8).vtable) {
+ setupResume(s, 59);
+ pxsim_String__stringConv(s.tmp_8);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_8) + ""; }
+ case 59:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat("// whendos: ", s.tmp_7);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 60);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 60:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, " (");
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 61);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 61:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___68885);
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__length(s.ruleids___68860);
+ s.tmp_12 = r0;
+ r0 = (s.tmp_11 / s.tmp_12);
+ s.tmp_10 = r0;
+ if ((s.tmp_10) && (s.tmp_10).vtable) {
+ setupResume(s, 62);
+ pxsim_String__stringConv(s.tmp_10);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_10) + ""; }
+ case 62:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 63);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 63:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ")");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 272; s.pc = 58; return s.tmp_0;
+ case 58:
+ r0 = s.retval;
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.commandCount___68886);
+ s.tmp_8 = r0;
+ if ((s.tmp_8) && (s.tmp_8).vtable) {
+ setupResume(s, 65);
+ pxsim_String__stringConv(s.tmp_8);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_8) + ""; }
+ case 65:
+ r0 = s.retval;
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat("// commands: ", s.tmp_7);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 66);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 66:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, " (");
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 67);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 67:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.commandCount___68886);
+ s.tmp_11 = r0;
+ r0 = pxsim_Array__length(s.ruleids___68860);
+ s.tmp_12 = r0;
+ r0 = (s.tmp_11 / s.tmp_12);
+ s.tmp_10 = r0;
+ if ((s.tmp_10) && (s.tmp_10).vtable) {
+ setupResume(s, 68);
+ pxsim_String__stringConv(s.tmp_10);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_10) + ""; }
+ case 68:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 69);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 69:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1296; s.pc = 5; return s.tmp_0;
- case 5:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ")");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 273; s.pc = 64; return s.tmp_0;
+ case 64:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1297; s.pc = 6; return s.tmp_0;
- case 6:
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim_pxtrt_ldlocRef(s.attrCount___68887);
+ s.tmp_8 = r0;
+ if ((s.tmp_8) && (s.tmp_8).vtable) {
+ setupResume(s, 71);
+ pxsim_String__stringConv(s.tmp_8);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_8) + ""; }
+ case 71:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 1298; s.pc = 7; return s.tmp_0;
- case 7:
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat("// attrs: ", s.tmp_7);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 72);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 72:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17188);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1304; s.pc = 8; return s.tmp_1;
- case 8:
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, " (");
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 73);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 73:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17224);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.B___1875;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 1308; s.pc = 9; return s.tmp_1;
- case 9:
+ s.tmp_3 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.attrCount___68887);
+ s.tmp_11 = r0;
+ r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___68885);
+ s.tmp_12 = r0;
+ r0 = (s.tmp_11 / s.tmp_12);
+ s.tmp_10 = r0;
+ if ((s.tmp_10) && (s.tmp_10).vtable) {
+ setupResume(s, 74);
+ pxsim_String__stringConv(s.tmp_10);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_10) + ""; }
+ case 74:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Gallery_constructor__P3824.info = {"start":147,"length":1126,"line":5,"column":8,"endLine":30,"endColumn":9,"fileName":"gallery.ts","functionName":"inline","argumentNames":["this","p","kind","wrapper","gallery"]}
-
-function tileworld_Gallery_constructor__P3824_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Gallery_constructor__P3824, depth: s.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 inline__P17188(s) {
-let r0 = s.r0, 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.isCurrent___17189 = undefined;
- s.index___17197 = undefined;
- s.img___17209 = undefined;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1299; s.pc = 9; return s.tmp_2;
- case 9:
+ s.tmp_9 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 75);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 75:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = s.tmp_0;
- { step = 2; continue; }
- case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1300; s.pc = 10; return s.tmp_4;
- case 10:
+ r0 = pxsim_String__concat(s.tmp_1, ")");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 274; s.pc = 70; return s.tmp_0;
+ case 70:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_3 == 1);
- case 2:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- s.isCurrent___17189 = (s.tmp_5);
- r0 = s.caps[0].fields["dirMap"];
- s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1301; s.pc = 11; return s.tmp_2;
- case 11:
+ case 25:
+ case 26:
+ s.tmp_0 = tileworld_Project_setRules__P63680_mk(s);
+ s.tmp_0.arg0 = s.p___68848;
+ s.tmp_0.arg1 = s.rules___68882;
+ s.callLocIdx = 275; s.pc = 76; return s.tmp_0;
+ case 76:
r0 = s.retval;
- s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1302; s.pc = 12; return s.tmp_4;
- case 12:
+ s.tmp_0 = tileworld_Project_setWorldBackgrounds__P63684_mk(s);
+ s.tmp_0.arg0 = s.p___68848;
+ s.tmp_0.arg1 = s.world___68776;
+ s.callLocIdx = 276; s.pc = 77; return s.tmp_0;
+ case 77:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.index___17197 = (r0);
- s.tmp_0 = r0 = s.isCurrent___17189;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_0;
- { step = 4; continue; }
- case 3:
- r0 = (s.index___17197 != 15);
- case 4:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 7; continue; }
- s.tmp_2 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s);
- s.tmp_2.arg0 = s.caps[0];
- s.callLocIdx = 1303; s.pc = 13; return s.tmp_2;
- case 13:
+ s.tmp_0 = tileworld_Project_setWorldSprites__P63686_mk(s);
+ s.tmp_0.arg0 = s.p___68848;
+ s.tmp_0.arg1 = s.sprites___68795;
+ s.callLocIdx = 277; s.pc = 78; return s.tmp_0;
+ case 78:
r0 = s.retval;
- r0 = s.caps[0].fields["gallery"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.index___17197);
- s.img___17209 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.isCurrent___17189);
- if (!r0) { step = 5; continue; }
- r0 = s.caps[0].fields["current"];
- { step = 6; continue; }
- case 5:
- r0 = s.img___17209;
- case 6:
- // jmp value (already in r0)
- s.tmp_0 = r0;
- r0 = s.caps[0].fields["newImage"];
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.copyFrom(s.tmp_1, s.tmp_0);
- case 7:
- case 8:
- r0 = undefined;
+ s.tmp_0 = tileworld_Project_setPlayer__P63682_mk(s);
+ s.tmp_0.arg0 = s.p___68848;
+ s.tmp_0.arg1 = s.player___68961;
+ s.callLocIdx = 278; s.pc = 79; return s.tmp_0;
+ case 79:
+ r0 = s.retval;
+ r0 = (s.p___68848).fields["help"] = (s.help___68836);
+ r0 = (s.p___68848).fields["version"] = (s.version___68766);
+ r0 = (s.p___68848).fields["highScore"] = (s.highScore___68838);
+ r0 = s.p___68848;
+ case 27:
return leave(s, r0)
default: oops()
} } }
-inline__P17188.info = {"start":615,"length":399,"line":15,"column":64,"endLine":23,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]}
+tileworld_loadProject__P63706.info = {"start":10263,"length":3484,"line":280,"column":4,"endLine":349,"endColumn":5,"fileName":"project.ts","functionName":"loadProject","argumentNames":["prefix","output"]}
-function inline__P17188_mk(s) {
+function tileworld_loadProject__P63706_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17188, depth: s.depth + 1,
+ parent: s, fn: tileworld_loadProject__P63706, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -57361,16 +55912,43 @@ function inline__P17188_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- isCurrent___17189: undefined,
- index___17197: undefined,
- img___17209: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ names___68755: undefined,
+ version___68766: undefined,
+ buf___68771: undefined,
+ world___68776: undefined,
+ sprites___68795: undefined,
+ backCnt___68809: undefined,
+ backImages___68814: undefined,
+ spriteCnt___68820: undefined,
+ spriteImages___68825: undefined,
+ helpNum___68831: undefined,
+ help___68836: undefined,
+ highScore___68838: undefined,
+ p___68848: undefined,
+ ruleName___68854: undefined,
+ ruleids___68860: undefined,
+ rules___68882: undefined,
+ derivedRules___68884: undefined,
+ whenDoCount___68885: undefined,
+ commandCount___68886: undefined,
+ attrCount___68887: undefined,
+ player___68961: undefined,
+ arg0: undefined,
+ arg1: undefined,
} }
-function inline__P17224(s) {
+function inline__P68864(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57380,51 +55958,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_1 = tileworld_SwitchExport_getImage__P3669_mk(s);
- r0 = s.caps[0].fields["wrapper"];
- s.tmp_1.arg0 = r0;
- r0 = s.caps[0].fields["kind"];
- s.tmp_1.arg1 = r0;
- s.callLocIdx = 1305; s.pc = 1; return s.tmp_1;
- case 1:
- r0 = s.retval;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim_String_.indexOf(s.arg0, s.caps[0], undefined);
s.tmp_0 = r0;
- r0 = s.caps[0].fields["newImage"];
- s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.copyFrom(s.tmp_0, s.tmp_2);
- s.tmp_0 = tileworld_SwitchExport_saveImage__P3670_mk(s);
- r0 = s.caps[0].fields["wrapper"];
- s.tmp_0.arg0 = r0;
- r0 = s.caps[0].fields["kind"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 1306; s.pc = 2; return s.tmp_0;
- case 2:
- r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1307; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- r0 = undefined;
+ r0 = (s.tmp_0 == 0);
return leave(s, r0)
default: oops()
} } }
-inline__P17224.info = {"start":1082,"length":179,"line":25,"column":64,"endLine":29,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]}
+inline__P68864.info = {"start":11928,"length":29,"line":308,"column":35,"endLine":308,"endColumn":64,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]}
-function inline__P17224_mk(s) {
+function inline__P68864_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17224, depth: s.depth + 1,
+ parent: s, fn: inline__P68864, 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 tileworld_SwitchExport_saveImage__P3670(s) {
+function inline__P68872(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57436,56 +55995,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, tileworld_SwitchExport__C3666_VT)) failedCast(r0);
- r0 = s.arg0.fields["backgrounds"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = tileworld_Project_saveBackgroundImage__P3698_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 152; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- { step = 2; continue; }
+ s.tmp_0 = parseInt__P60087_mk(s);
+ s.tmp_1 = r0 = s.arg0;
+ r0 = pxsim_String_.length(s.caps[0]);
+ s.tmp_2 = r0;
+ r0 = pxsim_String_.substr(s.tmp_1, s.tmp_2, 10);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = undefined;
+ s.callLocIdx = 258; s.pc = 1; return s.tmp_0;
case 1:
- s.tmp_2 = tileworld_Project_saveSpriteImage__P3699_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.arg1;
- s.callLocIdx = 153; s.pc = 4; return s.tmp_2;
- case 4:
r0 = s.retval;
- case 2:
- // jmp value (already in r0)
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_SwitchExport_saveImage__P3670.info = {"start":475,"length":137,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","kind"]}
+inline__P68872.info = {"start":11963,"length":40,"line":308,"column":70,"endLine":308,"endColumn":110,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]}
-function tileworld_SwitchExport_saveImage__P3670_mk(s) {
+function inline__P68872_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_SwitchExport_saveImage__P3670, depth: s.depth + 1,
+ parent: s, fn: inline__P68872, 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 tileworld_SwitchExport_getImage__P3669(s) {
+function inline__P68890(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57495,133 +56037,189 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.buf___68892 = undefined;
+ s.rule___68904 = undefined;
+ s.rv___68909 = undefined;
+ s.wdCnt___68929 = undefined;
+ s.cmdCnt___68930 = undefined;
+ s.attrCnt___68931 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_SwitchExport__C3666_VT)) failedCast(r0);
- r0 = s.arg0.fields["backgrounds"];
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = tileworld_Project_getBackgroundImage__P3696_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.arg1;
- s.callLocIdx = 150; s.pc = 3; return s.tmp_1;
- case 3:
- r0 = s.retval;
- { step = 2; continue; }
- case 1:
- s.tmp_2 = tileworld_Project_getSpriteImage__P3697_mk(s);
- r0 = s.arg0.fields["p"];
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.arg1;
- s.callLocIdx = 151; s.pc = 4; return s.tmp_2;
- case 4:
+ s.tmp_0 = tileworld_settingsReadBuffer__P68682_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ if ((globals.RuleKey___68296) && (globals.RuleKey___68296).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(globals.RuleKey___68296);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (globals.RuleKey___68296) + ""; }
+ case 6:
r0 = s.retval;
- case 2:
- // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops.toString(s.arg0);
s.tmp_3 = r0;
- r0 = s.tmp_3;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_SwitchExport_getImage__P3669.info = {"start":324,"length":142,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","kind"]}
-
-function tileworld_SwitchExport_getImage__P3669_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_SwitchExport_getImage__P3669, depth: s.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 game_pushScene__P2528(s) {
-let r0 = s.r0, 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___22771 = undefined;
- s.tmp_0 = game_currentScene__P2524_mk(s);
- s.callLocIdx = 854; s.pc = 5; return s.tmp_0;
+ if ((s.tmp_3) && (s.tmp_3).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.tmp_3);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_3) + ""; }
+ case 7:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.caps[1];
+ s.callLocIdx = 260; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.oldScene___22771 = (r0);
- s.tmp_0 = particles_clearAll__P2700_mk(s);
- s.callLocIdx = 855; s.pc = 6; return s.tmp_0;
- case 6:
+ s.buf___68892 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.buf___68892);
+ if (!r0) { step = 3; continue; }
+ s.tmp_0 = tileworld_unPackRule__P63625_mk(s);
+ s.tmp_0.arg0 = s.buf___68892;
+ s.tmp_0.arg1 = s.caps[2];
+ s.tmp_0.arg2 = s.caps[3];
+ s.callLocIdx = 261; s.pc = 8; return s.tmp_0;
+ case 8:
r0 = s.retval;
- s.tmp_0 = particles_disableAll__P2701_mk(s);
- s.callLocIdx = 856; s.pc = 7; return s.tmp_0;
- case 7:
+ s.rule___68904 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C63627_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_RuleView_constructor__P63628_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.caps[4];
+ s.tmp_1.arg2 = s.arg0;
+ s.tmp_1.arg3 = s.rule___68904;
+ s.callLocIdx = 262; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ s.rv___68909 = (s.tmp_0);
+ r0 = pxsim_Array__push(s.caps[5], s.rv___68909);
+ r0 = pxsim_numops_toBoolDecr(s.caps[1]);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = r0 = s.caps[6];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
+ s.tmp_2 = r0;
+ s.tmp_5 = tileworld_RuleView_getDerivedRules__P63630_mk(s);
+ s.tmp_5.arg0 = s.rv___68909;
+ s.callLocIdx = 263; s.pc = 10; return s.tmp_5;
+ case 10:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(globals._sceneStack___4275);
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_1 = tileworld_ruleStats__P63623_mk(s);
+ s.tmp_1.arg0 = s.rv___68909;
+ s.callLocIdx = 264; s.pc = 11; return s.tmp_1;
+ case 11:
+ r0 = s.retval;
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = pxsim_Array__mk();
- globals._sceneStack___4275 = (r0);
+ r0 = pxsim_Array__getAt(s.tmp_0, 0);
+ s.wdCnt___68929 = (r0);
+ r0 = pxsim_Array__getAt(s.tmp_0, 1);
+ s.cmdCnt___68930 = (r0);
+ r0 = pxsim_Array__getAt(s.tmp_0, 2);
+ s.attrCnt___68931 = (r0);
+ s.tmp_0 = r0 = s.caps[7];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.wdCnt___68929);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_0 = r0 = s.caps[8];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[8]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.cmdCnt___68930);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
+ s.tmp_0 = r0 = s.caps[9];
+ r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 + s.attrCnt___68931);
+ s.tmp_1 = r0;
+ r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
case 1:
case 2:
- r0 = pxsim_Array__push(globals._sceneStack___4275, globals._scene___4274);
- s.tmp_0 = game_init__P4282_mk(s);
- s.tmp_0.arg0 = true;
- s.callLocIdx = 857; s.pc = 8; return s.tmp_0;
- case 8:
+ { step = 4; continue; }
+ case 3:
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ r0 = pxsim_numops.toString(s.arg0);
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 13);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 13:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4276);
- if (!r0) { step = 3; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P22788);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___22771);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals._scenePushHandlers___4276;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 859; s.pc = 9; return s.tmp_1;
- case 9:
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat("Read (", s.tmp_3);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ") failed");
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = 10;
+ s.tmp_0.arg3 = 10;
+ s.tmp_0.arg4 = undefined;
+ s.tmp_0.arg5 = undefined;
+ s.tmp_0.arg6 = undefined;
+ s.callLocIdx = 265; s.pc = 12; return s.tmp_0;
+ case 12:
+ r0 = s.retval;
+ s.tmp_0 = control_assert__P60314_mk(s);
+ s.tmp_0.arg0 = false;
+ s.tmp_0.arg1 = 42;
+ s.callLocIdx = 266; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_pushScene__P2528.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]}
+inline__P68890.info = {"start":12182,"length":732,"line":314,"column":24,"endLine":331,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["rid"]}
-function game_pushScene__P2528_mk(s) {
+function inline__P68890_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_pushScene__P2528, depth: s.depth + 1,
+ parent: s, fn: inline__P68890, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- oldScene___22771: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ buf___68892: undefined,
+ rule___68904: undefined,
+ rv___68909: undefined,
+ wdCnt___68929: undefined,
+ cmdCnt___68930: undefined,
+ attrCnt___68931: undefined,
+ arg0: undefined,
} }
-function inline__P22788(s) {
+function tileworld_Project_setRules__P63680(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57633,84 +56231,32 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = lambda_2_mk(s);
- s.tmp_0.argL = s.arg0;
- s.tmp_0.arg0 = s.caps[0];
- setupLambda(s.tmp_0, s.tmp_0.argL);
- s.callLocIdx = 858; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_Project__C63674_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["rules"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P22788.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]}
+tileworld_Project_setRules__P63680.info = {"start":2335,"length":74,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"project.ts","functionName":"setRules","argumentNames":["this","rvl"]}
-function inline__P22788_mk(s) {
+function tileworld_Project_setRules__P63680_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P22788, depth: s.depth + 1,
+ parent: s, fn: tileworld_Project_setRules__P63680, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function particles_disableAll__P2701(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.sources___25439 = undefined;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1116; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.sources___25439 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.sources___25439);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = s.sources___25439;
- s.tmp_0.arg1 = inline__P25445;
- s.callLocIdx = 1118; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = particles_pruneParticles__P4631_mk(s);
- s.callLocIdx = 1119; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- case 1:
- case 2:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-particles_disableAll__P2701.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]}
-
-function particles_disableAll__P2701_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: particles_disableAll__P2701, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- sources___25439: undefined,
-} }
-
-
-
-
-
-function inline__P25445(s) {
+function tileworld_ruleStats__P63623(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57720,85 +56266,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.wdCnt___66662 = undefined;
+ s.cmdCnt___66663 = undefined;
+ s.attrCnt___66664 = undefined;
+ s.col___66665 = undefined;
+ s.row___66669 = undefined;
+ s.whendo___66673 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = false;
- s.callLocIdx = 1117; s.pc = 1; return s.tmp_0;
+ s.wdCnt___66662 = (0);
+ s.cmdCnt___66663 = (0);
+ s.attrCnt___66664 = (0);
+ s.col___66665 = (1);
case 1:
+ r0 = (s.col___66665 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.row___66669 = (1);
+ case 2:
+ r0 = (s.row___66669 <= 3);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 5; continue; }
+ s.tmp_1 = tileworld_RuleView_getWhenDo__P63640_mk(s);
+ s.tmp_1.arg0 = s.arg0;
+ s.tmp_1.arg1 = s.col___66665;
+ s.tmp_1.arg2 = s.row___66669;
+ s.callLocIdx = 74; s.pc = 7; return s.tmp_1;
+ case 7:
r0 = s.retval;
- r0 = false;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P25445.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
-
-function inline__P25445_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P25445, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function particles_clearAll__P2700(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.sources___25450 = undefined;
- s.tmp_0 = particles_particleSources__P4635_mk(s);
- s.callLocIdx = 1112; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.sources___25450 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.sources___25450);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- s.tmp_0.arg0 = s.sources___25450;
- s.tmp_0.arg1 = inline__P25456;
- s.callLocIdx = 1114; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = particles_pruneParticles__P4631_mk(s);
- s.callLocIdx = 1115; s.pc = 5; return s.tmp_0;
- case 5:
+ s.whendo___66673 = (r0);
+ r0 = (s.whendo___66673 != -1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = (s.wdCnt___66662 + 1);
+ s.wdCnt___66662 = (r0);
+ s.tmp_0 = r0 = s.cmdCnt___66663;
+ r0 = s.arg0.fields["r"];
+ r0 = r0.fields["whenDo"];
+ s.tmp_2 = r0;
+ r0 = pxsim_Array__getAt(s.tmp_2, s.whendo___66673);
+ r0 = r0.fields["commandsLen"];
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.cmdCnt___66663 = (r0);
+ s.tmp_0 = r0 = s.attrCnt___66664;
+ s.tmp_2 = tileworld_RuleView_attrCnt__P63646_mk(s);
+ s.tmp_2.arg0 = s.arg0;
+ s.tmp_2.arg1 = s.whendo___66673;
+ s.callLocIdx = 76; s.pc = 8; return s.tmp_2;
+ case 8:
r0 = s.retval;
- case 1:
- case 2:
- r0 = undefined;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.attrCnt___66664 = (r0);
+ case 3:
+ case 4:
+ r0 = (s.row___66669 + 1);
+ s.row___66669 = (r0);
+ { step = 2; continue; }
+ case 5:
+ r0 = (s.col___66665 + 1);
+ s.col___66665 = (r0);
+ { step = 1; continue; }
+ case 6:
+ r0 = pxsim_Array__mk();
+ s.tmp_0 = r0;
+ r0 = pxsim_Array__push(s.tmp_0, s.wdCnt___66662);
+ r0 = pxsim_Array__push(s.tmp_0, s.cmdCnt___66663);
+ r0 = pxsim_Array__push(s.tmp_0, s.attrCnt___66664);
+ r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-particles_clearAll__P2700.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]}
+tileworld_ruleStats__P63623.info = {"start":8007,"length":517,"line":215,"column":4,"endLine":230,"endColumn":5,"fileName":"rule.ts","functionName":"ruleStats","argumentNames":["rv"]}
-function particles_clearAll__P2700_mk(s) {
+function tileworld_ruleStats__P63623_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_clearAll__P2700, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleStats__P63623, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- sources___25450: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ wdCnt___66662: undefined,
+ cmdCnt___66663: undefined,
+ attrCnt___66664: undefined,
+ col___66665: undefined,
+ row___66669: undefined,
+ whendo___66673: undefined,
+ arg0: undefined,
} }
-function inline__P25456(s) {
+function tileworld_RuleView_attrCnt__P63646(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57808,35 +56376,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.cnt___67395 = undefined;
+ s.i___67396 = undefined;
+ s.i___67413 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = particles_ParticleSource_clear__P2685_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 1113; s.pc = 1; return s.tmp_0;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleView__C63627_VT)) failedCast(r0);
+ s.cnt___67395 = (0);
+ s.i___67396 = (0);
case 1:
+ s.tmp_1 = r0 = s.i___67396;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_backgroundsI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ 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_7 = tileworld_RuleView_getSetBgAttr__P63644_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.arg1;
+ s.tmp_7.arg2 = s.i___67396;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 131; s.pc = 9; return s.tmp_7;
+ case 9:
r0 = s.retval;
- r0 = undefined;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 != 0);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 2; continue; }
+ r0 = (s.cnt___67395 + 1);
+ s.cnt___67395 = (r0);
+ case 2:
+ case 3:
+ r0 = (s.i___67396 + 1);
+ s.i___67396 = (r0);
+ { step = 1; continue; }
+ case 4:
+ s.i___67413 = (0);
+ case 5:
+ s.tmp_1 = r0 = s.i___67413;
+ r0 = s.arg0.fields["p"];
+ s.tmp_3 = r0;
+ r0 = s.tmp_3.fields["_spritesI"];
+ s.tmp_4 = r0;
+ r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_7 = tileworld_RuleView_getSetSpAttr__P63645_mk(s);
+ s.tmp_7.arg0 = s.arg0;
+ s.tmp_7.arg1 = s.arg1;
+ s.tmp_7.arg2 = s.i___67413;
+ s.tmp_7.arg3 = 65535;
+ s.callLocIdx = 133; s.pc = 10; return s.tmp_7;
+ case 10:
+ r0 = s.retval;
+ s.tmp_6 = r0;
+ r0 = (s.tmp_6 != 0);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_5);
+ if (!r0) { step = 6; continue; }
+ r0 = (s.cnt___67395 + 1);
+ s.cnt___67395 = (r0);
+ case 6:
+ case 7:
+ r0 = (s.i___67413 + 1);
+ s.i___67413 = (r0);
+ { step = 5; continue; }
+ case 8:
+ r0 = s.cnt___67395;
return leave(s, r0)
default: oops()
} } }
-inline__P25456.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]}
+tileworld_RuleView_attrCnt__P63646.info = {"start":4924,"length":419,"line":142,"column":8,"endLine":153,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrCnt","argumentNames":["this","whendo"]}
-function inline__P25456_mk(s) {
+function tileworld_RuleView_attrCnt__P63646_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P25456, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleView_attrCnt__P63646, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
+ cnt___67395: undefined,
+ i___67396: undefined,
+ i___67413: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_Project_saveProject__P3706(s) {
+function tileworld_unPackRule__P63625(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -57846,283 +56495,173 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.prefix___8386 = undefined;
- s.worldBuf___8454 = undefined;
- s.spritesBuf___8464 = undefined;
+ s.rt___66956 = undefined;
+ s.ra___66958 = undefined;
+ s.rv___66960 = undefined;
+ s.rule___66962 = undefined;
+ s.whenDoLen___66969 = undefined;
+ s.i___66971 = undefined;
+ s.col___66976 = undefined;
+ s.row___66978 = undefined;
+ s.wd___66980 = 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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = s.arg0.fields["prefix"];
- s.prefix___8386 = (r0);
- s.tmp_0 = settings_writeString__P1825_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
+ globals.ruleBuf___66707 = (s.arg0);
+ globals.bitIndex___66709 = (0);
+ s.tmp_0 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_0.arg0 = 4;
+ s.callLocIdx = 99; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.rt___66956 = (r0);
+ s.tmp_0 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_0.arg0 = 4;
+ s.callLocIdx = 100; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.VersionKey___8394) && (globals.VersionKey___8394).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(globals.VersionKey___8394);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.VersionKey___8394) + ""; }
+ s.ra___66958 = (r0);
+ s.tmp_0 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_0.arg0 = 4;
+ s.callLocIdx = 101; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["version"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 197; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- r0 = s.arg0.fields["help"];
+ s.rv___66960 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C63612_VT);
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;
- s.tmp_2 = settings_writeNumber__P1826_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
+ s.tmp_1 = tileworld_Rule_constructor__P63613_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.rt___66956;
+ s.tmp_1.arg2 = s.ra___66958;
+ r0 = pxsim_Array__mk();
+ s.tmp_1.arg3 = r0;
+ s.tmp_1.arg4 = s.rv___66960;
+ s.callLocIdx = 102; s.pc = 6; return s.tmp_1;
+ case 6:
+ r0 = s.retval;
+ s.rule___66962 = (s.tmp_0);
+ s.tmp_0 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_0.arg0 = 4;
+ s.callLocIdx = 103; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_3 = r0;
- if ((globals.HelpKey___8342) && (globals.HelpKey___8342).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(globals.HelpKey___8342);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.HelpKey___8342) + ""; }
+ s.whenDoLen___66969 = (r0);
+ s.i___66971 = (0);
+ case 1:
+ r0 = (s.i___66971 < s.whenDoLen___66969);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_1.arg0 = 4;
+ s.callLocIdx = 104; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_4);
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 198; s.pc = 6; return s.tmp_2;
- case 6:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
- case 10:
+ s.col___66976 = (r0);
+ s.tmp_0 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_0.arg0 = 4;
+ s.callLocIdx = 105; s.pc = 9; return s.tmp_0;
+ case 9:
r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.BackImgCntKey___8412) && (globals.BackImgCntKey___8412).vtable) {
- setupResume(s, 11);
- pxsim_String__stringConv(globals.BackImgCntKey___8412);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.BackImgCntKey___8412) + ""; }
+ s.row___66978 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C63600_VT);
+ s.tmp_0 = r0;
+ s.tmp_1 = tileworld_WhenDo_constructor__P63601_mk(s);
+ s.tmp_1.arg0 = s.tmp_0;
+ s.tmp_1.arg1 = s.col___66976;
+ s.tmp_1.arg2 = s.row___66978;
+ s.tmp_2 = tileworld_readBufRaw__P66824_mk(s);
+ r0 = (s.arg1 >> 2);
+ s.tmp_2.arg0 = r0;
+ r0 = (s.arg1 >> 2);
+ s.tmp_2.arg1 = r0;
+ s.callLocIdx = 106; s.pc = 11; return s.tmp_2;
case 11:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["_backgroundsI"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 200; s.pc = 9; return s.tmp_0;
- case 9:
+ s.tmp_1.arg3 = r0;
+ s.tmp_3 = tileworld_readBufRaw__P66824_mk(s);
+ r0 = (s.arg2 >> 2);
+ s.tmp_3.arg0 = r0;
+ r0 = (s.arg2 >> 2);
+ s.tmp_3.arg1 = r0;
+ s.callLocIdx = 107; s.pc = 12; return s.tmp_3;
+ case 12:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 13);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
+ s.tmp_1.arg4 = r0;
+ s.tmp_1.arg5 = -1;
+ s.tmp_1.arg6 = null;
+ s.tmp_1.arg7 = 0;
+ s.callLocIdx = 108; s.pc = 10; return s.tmp_1;
+ case 10:
+ r0 = s.retval;
+ s.wd___66980 = (s.tmp_0);
+ s.tmp_0 = r0 = s.wd___66980;
+ s.tmp_2 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_2.arg0 = 4;
+ s.callLocIdx = 109; s.pc = 13; return s.tmp_2;
case 13:
r0 = s.retval;
s.tmp_1 = r0;
- if ((globals.SpriteImgCntKey___8421) && (globals.SpriteImgCntKey___8421).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(globals.SpriteImgCntKey___8421);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.SpriteImgCntKey___8421) + ""; }
+ r0 = (s.tmp_0).fields["dir"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.wd___66980;
+ s.tmp_2 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_2.arg0 = 4;
+ s.callLocIdx = 110; s.pc = 14; return s.tmp_2;
case 14:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["_spritesI"];
- s.tmp_3 = r0;
- r0 = pxsim_Array__length(s.tmp_3);
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 202; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
- case 16:
r0 = s.retval;
s.tmp_1 = r0;
- if ((globals.PlayerIndexKey___8430) && (globals.PlayerIndexKey___8430).vtable) {
- setupResume(s, 17);
- pxsim_String__stringConv(globals.PlayerIndexKey___8430);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.PlayerIndexKey___8430) + ""; }
- case 17:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- r0 = s.arg0.fields["_player"];
- s.tmp_0.arg1 = r0;
- s.callLocIdx = 204; s.pc = 15; return s.tmp_0;
- case 15:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P8436);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___8386);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["_backgroundsI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 207; s.pc = 18; return s.tmp_1;
- case 18:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P8446);
+ r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1);
+ r0 = s.rule___66962.fields["whenDo"];
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___8386);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["_spritesI"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 210; s.pc = 19; return s.tmp_1;
- case 19:
- r0 = s.retval;
- s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s);
- r0 = s.arg0.fields["_backgrounds"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 212; s.pc = 20; return s.tmp_0;
- case 20:
- r0 = s.retval;
- s.worldBuf___8454 = (r0);
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 22);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
- case 22:
- r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.WorldBackgroundsKey___8317) && (globals.WorldBackgroundsKey___8317).vtable) {
- setupResume(s, 23);
- pxsim_String__stringConv(globals.WorldBackgroundsKey___8317);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.WorldBackgroundsKey___8317) + ""; }
- case 23:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.worldBuf___8454;
- s.callLocIdx = 213; s.pc = 21; return s.tmp_0;
- case 21:
- r0 = s.retval;
- s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s);
- r0 = s.arg0.fields["_sprites"];
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 215; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- s.spritesBuf___8464 = (r0);
- s.tmp_0 = settings_writeBuffer__P1824_mk(s);
- if ((s.prefix___8386) && (s.prefix___8386).vtable) {
- setupResume(s, 26);
- pxsim_String__stringConv(s.prefix___8386);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.prefix___8386) + ""; }
- case 26:
- r0 = s.retval;
- s.tmp_1 = r0;
- if ((globals.WorldSpritesKey___8331) && (globals.WorldSpritesKey___8331).vtable) {
- setupResume(s, 27);
- pxsim_String__stringConv(globals.WorldSpritesKey___8331);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.WorldSpritesKey___8331) + ""; }
- case 27:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ r0 = pxsim_Array__push(s.tmp_0, s.wd___66980);
+ r0 = (s.i___66971 + 1);
+ s.i___66971 = (r0);
+ { step = 1; continue; }
+ case 2:
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
+ r0 = s.rule___66962.fields["whenDo"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.spritesBuf___8464;
- s.callLocIdx = 216; s.pc = 25; return s.tmp_0;
- case 25:
- r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(2, inline__P8476);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.prefix___8386);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- r0 = s.arg0.fields["rules"];
- s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 221; s.pc = 28; return s.tmp_1;
- case 28:
+ s.tmp_0.arg1 = inline__P67014;
+ s.callLocIdx = 112; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- r0 = undefined;
+ r0 = s.rule___66962;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_saveProject__P3706.info = {"start":5927,"length":1127,"line":168,"column":8,"endLine":188,"endColumn":9,"fileName":"project.ts","functionName":"saveProject","argumentNames":["this"]}
+tileworld_unPackRule__P63625.info = {"start":11735,"length":1027,"line":327,"column":4,"endLine":355,"endColumn":5,"fileName":"rule.ts","functionName":"unPackRule","argumentNames":["buf","bgLen","spLen"]}
-function tileworld_Project_saveProject__P3706_mk(s) {
+function tileworld_unPackRule__P63625_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_saveProject__P3706, depth: s.depth + 1,
+ parent: s, fn: tileworld_unPackRule__P63625, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- tmp_4: undefined,
- prefix___8386: undefined,
- worldBuf___8454: undefined,
- spritesBuf___8464: undefined,
+ rt___66956: undefined,
+ ra___66958: undefined,
+ rv___66960: undefined,
+ rule___66962: undefined,
+ whenDoLen___66969: undefined,
+ i___66971: undefined,
+ col___66976: undefined,
+ row___66978: undefined,
+ wd___66980: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P8436(s) {
+function inline__P67014(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58132,43 +56671,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8439 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_saveImage__P8209_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg0;
- s.tmp_0.arg3 = true;
- s.callLocIdx = 206; s.pc = 1; return s.tmp_0;
- case 1:
+ r0 = s.arg0.fields["commandsLen"];
+ 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_2 = r0 = s.arg0;
+ s.tmp_4 = tileworld_readBufRaw__P66824_mk(s);
+ s.tmp_4.arg0 = 8;
+ r0 = s.arg0.fields["commandsLen"];
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 << 1);
+ s.tmp_4.arg1 = r0;
+ s.callLocIdx = 111; s.pc = 3; return s.tmp_4;
+ case 3:
r0 = s.retval;
- s.buf___8439 = (r0);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_2).fields["commands"] = (s.tmp_3);
+ { step = 2; continue; }
+ case 1:
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim.control.createBuffer(8);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["commands"] = (s.tmp_1);
+ case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8436.info = {"start":6401,"length":86,"line":175,"column":44,"endLine":177,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P67014.info = {"start":12492,"length":241,"line":347,"column":28,"endLine":353,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
-function inline__P8436_mk(s) {
+function inline__P67014_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8436, depth: s.depth + 1,
+ parent: s, fn: inline__P67014, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- buf___8439: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function inline__P8446(s) {
+function tileworld_readBufRaw__P66824(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58178,34 +56734,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8449 = undefined;
+ s.b___66827 = undefined;
+ s.i___66831 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_saveImage__P8209_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg0;
- s.tmp_0.arg3 = false;
- s.callLocIdx = 209; s.pc = 1; return s.tmp_0;
+ r0 = pxsim.control.createBuffer(s.arg0);
+ s.b___66827 = (r0);
+ s.i___66831 = (0);
case 1:
+ r0 = (s.i___66831 < s.arg1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = r0 = s.b___66827;
+ s.tmp_2 = r0 = s.i___66831;
+ s.tmp_4 = tileworld_readBuf__P66820_mk(s);
+ s.tmp_4.arg0 = 8;
+ s.callLocIdx = 83; s.pc = 3; return s.tmp_4;
+ case 3:
r0 = s.retval;
- s.buf___8449 = (r0);
- r0 = undefined;
+ s.tmp_3 = r0;
+ r0 = pxsim.BufferMethods.setUint8(s.tmp_1, s.tmp_2, s.tmp_3);
+ r0 = (s.i___66831 + 1);
+ s.i___66831 = (r0);
+ { step = 1; continue; }
+ case 2:
+ r0 = s.b___66827;
return leave(s, r0)
default: oops()
} } }
-inline__P8446.info = {"start":6530,"length":87,"line":178,"column":40,"endLine":180,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]}
+tileworld_readBufRaw__P66824.info = {"start":10235,"length":207,"line":288,"column":4,"endLine":294,"endColumn":5,"fileName":"rule.ts","functionName":"readBufRaw","argumentNames":["bytes","cnt"]}
-function inline__P8446_mk(s) {
+function tileworld_readBufRaw__P66824_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8446, depth: s.depth + 1,
+ parent: s, fn: tileworld_readBufRaw__P66824, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- buf___8449: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ b___66827: undefined,
+ i___66831: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -58214,7 +56788,7 @@ function inline__P8446_mk(s) {
-function inline__P8476(s) {
+function tileworld_readBuf__P66820(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58224,35 +56798,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8478 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_Project_storeRule__P8110_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = s.caps[1];
- r0 = s.arg0.fields["rid"];
- s.tmp_0.arg2 = r0;
- r0 = s.arg0.fields["r"];
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 220; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_readWriteBuf__P66710_mk(s);
+ s.tmp_0.arg0 = 0;
+ s.tmp_0.arg1 = s.arg0;
+ s.tmp_0.arg2 = false;
+ s.callLocIdx = 82; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.buf___8478 = (r0);
- r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8476.info = {"start":6940,"length":102,"line":185,"column":36,"endLine":187,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]}
+tileworld_readBuf__P66820.info = {"start":10092,"length":83,"line":283,"column":4,"endLine":285,"endColumn":5,"fileName":"rule.ts","functionName":"readBuf","argumentNames":["bits"]}
-function inline__P8476_mk(s) {
+function tileworld_readBuf__P66820_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8476, depth: s.depth + 1,
+ parent: s, fn: tileworld_readBuf__P66820, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- buf___8478: undefined,
arg0: undefined,
} }
@@ -58260,7 +56827,7 @@ function inline__P8476_mk(s) {
-function tileworld_emptyProject__P3710(s) {
+function parseInt__P60087(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58270,197 +56837,304 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.fixed___9114 = undefined;
- s.movable___9116 = undefined;
- s.f___9118 = undefined;
- s.f___9135 = undefined;
- s.rules___9151 = undefined;
- s.p___9153 = undefined;
- s.world___9159 = undefined;
- s.sprites___9164 = undefined;
+ s.start___86797 = undefined;
+ s.sign___86827 = undefined;
+ s.output___86872 = undefined;
+ s.hasDigit___86873 = undefined;
+ s.i___86874 = undefined;
+ s.code___86881 = undefined;
+ s.val___86888 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_Array__mk();
- s.fixed___9114 = (r0);
- r0 = pxsim_Array__mk();
- s.movable___9116 = (r0);
- s.f___9118 = (0);
+ r0 = pxsim_numops_toBoolDecr(s.arg0);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = s.tmp_0;
+ { step = 6; continue; }
case 1:
- r0 = (s.f___9118 < 4);
+ r0 = (s.arg1 != null);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 2; continue; }
+ r0 = s.tmp_2;
+ { step = 5; continue; }
+ case 2:
+ r0 = (s.arg1 < 2);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_3);
+ if (!r0) { step = 3; continue; }
+ r0 = s.tmp_3;
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.arg1 > 36);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_5 = r0;
+ r0 = s.tmp_5;
+ case 6:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_6);
+ if (!r0) { step = 7; continue; }
+ r0 = NaN;
+ { step = 46; continue; }
+ case 7:
+ case 8:
+ s.start___86797 = (0);
+ case 9:
+ s.tmp_1 = r0 = s.start___86797;
+ r0 = pxsim_String_.length(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 10; continue; }
+ r0 = s.tmp_0;
+ { step = 11; continue; }
+ case 10:
+ s.tmp_3 = helpers_isWhitespace__P60111_mk(s);
+ r0 = pxsim_String_.charCodeAt(s.arg0, s.start___86797);
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 0; s.pc = 47; return s.tmp_3;
+ case 47:
+ r0 = s.retval;
+ case 11:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 12; continue; }
+ r0 = (s.start___86797 + 1);
+ s.start___86797 = (r0);
+ { step = 9; continue; }
+ case 12:
+ s.tmp_1 = r0 = s.start___86797;
+ 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_1 = r0 = s.fixed___9114;
- r0 = pxsim_Array__getAt(globals.galleryTiles___3771, s.f___9118);
+ if (!r0) { step = 13; continue; }
+ r0 = NaN;
+ { step = 46; continue; }
+ case 13:
+ case 14:
+ s.sign___86827 = (1);
+ r0 = pxsim_String_.charAt(s.arg0, s.start___86797);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0);
+ if (r0) { step = 15; continue; }
+ r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0);
+ if (r0) { step = 16; continue; }
+ r0 = s.tmp_0;
+ { step = 17; continue; }
+ case 15:
+ s.sign___86827 = (-1);
+ case 16:
+ r0 = (s.start___86797 + 1);
+ s.start___86797 = (r0);
+ case 17:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 18; continue; }
+ r0 = s.tmp_0;
+ { step = 19; continue; }
+ case 18:
+ r0 = (s.arg1 == 16);
+ case 19:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_2);
+ if (r0) { step = 20; continue; }
+ r0 = s.tmp_2;
+ { step = 21; continue; }
+ case 20:
+ r0 = pxsim_String_.charAt(s.arg0, s.start___86797);
s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_3);
+ r0 = ("0" === s.tmp_3);
+ case 21:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 22; continue; }
+ r0 = s.tmp_4;
+ { step = 25; continue; }
+ case 22:
+ s.tmp_7 = r0 = s.arg0;
+ r0 = (s.start___86797 + 1);
+ s.tmp_8 = r0;
+ r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8);
+ s.tmp_6 = r0;
+ r0 = ("x" === s.tmp_6);
+ s.tmp_5 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_5);
+ if (!r0) { step = 23; continue; }
+ r0 = s.tmp_5;
+ { step = 24; continue; }
+ case 23:
+ s.tmp_10 = r0 = s.arg0;
+ r0 = (s.start___86797 + 1);
+ s.tmp_11 = r0;
+ r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11);
+ s.tmp_9 = r0;
+ r0 = ("X" === s.tmp_9);
+ case 24:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ r0 = s.tmp_12;
+ case 25:
+ // jmp value (already in r0)
+ s.tmp_13 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_13);
+ if (!r0) { step = 26; continue; }
+ s.arg1 = (16);
+ r0 = (s.start___86797 + 2);
+ s.start___86797 = (r0);
+ { step = 29; continue; }
+ case 26:
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 27; continue; }
+ s.arg1 = (10);
+ case 27:
+ case 28:
+ case 29:
+ s.output___86872 = (0);
+ s.hasDigit___86873 = (false);
+ s.i___86874 = (s.start___86797);
+ case 30:
+ s.tmp_1 = r0 = s.i___86874;
+ r0 = pxsim_String_.length(s.arg0);
s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.f___9118 + 1);
- s.f___9118 = (r0);
- { step = 1; continue; }
- case 2:
- s.f___9135 = (0);
- case 3:
- r0 = (s.f___9135 < 4);
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 45; continue; }
+ r0 = pxsim_String_.charCodeAt(s.arg0, s.i___86874);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 | 32);
+ s.code___86881 = (r0);
+ s.val___86888 = (undefined);
+ r0 = (s.code___86881 >= 48);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 31; continue; }
+ r0 = s.tmp_0;
+ { step = 32; continue; }
+ case 31:
+ r0 = (s.code___86881 < 58);
+ case 32:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 33; continue; }
+ r0 = (s.code___86881 - 48);
+ s.val___86888 = (r0);
+ { step = 38; continue; }
+ case 33:
+ r0 = (s.code___86881 >= 97);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 34; continue; }
+ r0 = s.tmp_0;
+ { step = 35; continue; }
+ case 34:
+ r0 = (s.code___86881 < 123);
+ case 35:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 36; continue; }
+ r0 = (10 + s.code___86881);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 - 97);
+ s.val___86888 = (r0);
+ case 36:
+ case 37:
+ case 38:
+ r0 = (s.val___86888 == undefined);
s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_1 = r0 = s.movable___9116;
- r0 = pxsim_Array__getAt(globals.gallerySprites___3770, s.f___9135);
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (!r0) { step = 39; continue; }
+ r0 = s.tmp_0;
+ { step = 40; continue; }
+ case 39:
+ r0 = (s.val___86888 >= s.arg1);
+ case 40:
+ // jmp value (already in r0)
+ s.tmp_1 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_1);
+ if (!r0) { step = 43; continue; }
+ r0 = pxsim_numops_toBoolDecr(s.hasDigit___86873);
s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.clone(s.tmp_3);
+ r0 = pxsim_Boolean__bang(s.tmp_3);
s.tmp_2 = r0;
- r0 = pxsim_Array__push(s.tmp_1, s.tmp_2);
- r0 = (s.f___9135 + 1);
- s.f___9135 = (r0);
- { step = 3; continue; }
- case 4:
- r0 = pxsim_Array__mk();
- s.rules___9151 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C3677_VT);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 41; continue; }
+ r0 = NaN;
+ { step = 46; continue; }
+ case 41:
+ case 42:
+ { step = 45; continue; }
+ case 43:
+ case 44:
+ s.hasDigit___86873 = (true);
+ r0 = (s.output___86872 * s.arg1);
s.tmp_0 = r0;
- s.tmp_1 = tileworld_Project_constructor__P3682_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.fixed___9114;
- s.tmp_1.arg3 = s.movable___9116;
- s.callLocIdx = 279; s.pc = 5; return s.tmp_1;
- case 5:
- r0 = s.retval;
- s.p___9153 = (s.tmp_0);
- r0 = pxsim.image.create(32, 24);
- s.world___9159 = (r0);
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = s.world___9159;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = 30;
- s.tmp_0.arg4 = 22;
- s.tmp_0.arg5 = 1;
- s.callLocIdx = 280; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
- r0 = pxsim.image.create(32, 24);
- s.sprites___9164 = (r0);
- r0 = pxsim_ImageMethods.fill(s.sprites___9164, 15);
- s.tmp_0 = tileworld_Project_setWorldBackgrounds__P3687_mk(s);
- s.tmp_0.arg0 = s.p___9153;
- s.tmp_0.arg1 = s.world___9159;
- s.callLocIdx = 281; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.tmp_0 = tileworld_Project_setWorldSprites__P3689_mk(s);
- s.tmp_0.arg0 = s.p___9153;
- s.tmp_0.arg1 = s.sprites___9164;
- s.callLocIdx = 282; s.pc = 8; return s.tmp_0;
- case 8:
- r0 = s.retval;
- s.tmp_0 = tileworld_Project_setPlayer__P3685_mk(s);
- s.tmp_0.arg0 = s.p___9153;
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 283; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- r0 = (s.p___9153).fields["version"] = (globals.TileWorldVersion___3665);
- r0 = s.p___9153;
+ r0 = (s.tmp_0 + s.val___86888);
+ s.output___86872 = (r0);
+ r0 = (s.i___86874 + 1);
+ s.i___86874 = (r0);
+ { step = 30; continue; }
+ case 45:
+ r0 = (s.sign___86827 * s.output___86872);
+ case 46:
return leave(s, r0)
default: oops()
} } }
-tileworld_emptyProject__P3710.info = {"start":13861,"length":719,"line":353,"column":4,"endLine":373,"endColumn":5,"fileName":"project.ts","functionName":"emptyProject","argumentNames":["prefix"]}
+parseInt__P60087.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]}
-function tileworld_emptyProject__P3710_mk(s) {
+function parseInt__P60087_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_emptyProject__P3710, depth: s.depth + 1,
+ parent: s, fn: parseInt__P60087, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
- fixed___9114: undefined,
- movable___9116: undefined,
- f___9118: undefined,
- f___9135: undefined,
- rules___9151: undefined,
- p___9153: undefined,
- world___9159: undefined,
- sprites___9164: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_Project_setPlayer__P3685(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_player"] = (s.arg1);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Project_setPlayer__P3685.info = {"start":2489,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"project.ts","functionName":"setPlayer","argumentNames":["this","kind"]}
-
-function tileworld_Project_setPlayer__P3685_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Project_setPlayer__P3685, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_Project_setWorldSprites__P3689(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_sprites"] = (s.arg1);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_Project_setWorldSprites__P3689.info = {"start":2959,"length":80,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"project.ts","functionName":"setWorldSprites","argumentNames":["this","img"]}
-
-function tileworld_Project_setWorldSprites__P3689_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_Project_setWorldSprites__P3689, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ tmp_13: undefined,
+ start___86797: undefined,
+ sign___86827: undefined,
+ output___86872: undefined,
+ hasDigit___86873: undefined,
+ i___86874: undefined,
+ code___86881: undefined,
+ val___86888: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -58469,7 +57143,7 @@ function tileworld_Project_setWorldSprites__P3689_mk(s) {
-function tileworld_Project_setWorldBackgrounds__P3687(s) {
+function helpers_isWhitespace__P60111(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58481,32 +57155,67 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["_backgrounds"] = (s.arg1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0);
+ if (r0) { step = 1; continue; }
+ r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0);
+ if (r0) { step = 2; continue; }
+ r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0);
+ if (r0) { step = 3; continue; }
+ r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0);
+ if (r0) { step = 4; continue; }
+ r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0);
+ if (r0) { step = 5; continue; }
+ r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0);
+ if (r0) { step = 6; continue; }
+ r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0);
+ if (r0) { step = 7; continue; }
+ r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0);
+ if (r0) { step = 8; continue; }
+ r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0);
+ if (r0) { step = 9; continue; }
+ r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0);
+ if (r0) { step = 10; continue; }
+ r0 = s.tmp_0;
+ { step = 11; continue; }
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ case 10:
+ r0 = true;
+ { step = 12; continue; }
+ case 11:
+ r0 = false;
+ { step = 12; continue; }
r0 = undefined;
+ case 12:
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_setWorldBackgrounds__P3687.info = {"start":2774,"length":87,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"project.ts","functionName":"setWorldBackgrounds","argumentNames":["this","img"]}
+helpers_isWhitespace__P60111.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]}
-function tileworld_Project_setWorldBackgrounds__P3687_mk(s) {
+function helpers_isWhitespace__P60111_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_setWorldBackgrounds__P3687, depth: s.depth + 1,
+ parent: s, fn: helpers_isWhitespace__P60111, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_Project_constructor__P3682(s) {
+function tileworld_readImages__P68703(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58516,6 +57225,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
+ s.images___68708 = undefined;
+ s.i___68710 = undefined;
+ s.buf___68715 = undefined;
+ s.img___68726 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -58523,35 +57236,108 @@ switch (step) {
s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["prefix"] = (s.arg1);
- r0 = (s.arg0).fields["_backgroundsI"] = (s.arg2);
- r0 = (s.arg0).fields["_spritesI"] = (s.arg3);
- r0 = (s.arg0).fields["lastRule"] = (null);
- r0 = (s.arg0).fields["_player"] = (-1);
- r0 = (s.arg0).fields["_backgrounds"] = (null);
- r0 = (s.arg0).fields["_sprites"] = (null);
- r0 = (s.arg0).fields["highScore"] = (0);
- r0 = (s.arg0).fields["debug"] = (false);
- r0 = (s.arg0).fields["help"] = (true);
- s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
+ s.images___68708 = (r0);
+ s.i___68710 = (0);
+ case 1:
+ r0 = (s.i___68710 < s.arg0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 8; continue; }
+ s.tmp_1 = tileworld_settingsReadBuffer__P68682_mk(s);
+ s.tmp_1.arg0 = s.arg1;
+ if ((s.arg2) && (s.arg2).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg2) + ""; }
+ case 10:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops.toString(s.i___68710);
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 11);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 11:
+ r0 = s.retval;
+ s.tmp_3 = r0;
+ r0 = pxsim_String__concat(s.tmp_2, s.tmp_3);
+ s.tmp_1.arg1 = r0;
+ s.tmp_1.arg2 = s.arg3;
+ s.callLocIdx = 240; s.pc = 9; return s.tmp_1;
+ case 9:
+ r0 = s.retval;
+ s.buf___68715 = (r0);
+ s.tmp_0 = r0 = s.buf___68715;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 2; continue; }
+ r0 = s.tmp_0;
+ { step = 3; continue; }
+ case 2:
+ r0 = pxsim.BufferMethods.length(s.buf___68715);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["rules"] = (s.tmp_1);
- r0 = undefined;
+ r0 = (s.tmp_1 > 0);
+ case 3:
+ // jmp value (already in r0)
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ s.tmp_3 = tileworld_bufferToImage__P63540_mk(s);
+ s.tmp_3.arg0 = s.buf___68715;
+ s.callLocIdx = 241; s.pc = 12; return s.tmp_3;
+ case 12:
+ r0 = s.retval;
+ { step = 5; continue; }
+ case 4:
+ r0 = null;
+ case 5:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ s.img___68726 = (s.tmp_4);
+ r0 = pxsim_numops_toBoolDecr(s.img___68726);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ r0 = pxsim.image.create(16, 16);
+ s.img___68726 = (r0);
+ s.tmp_0 = r0 = s.img___68726;
+ r0 = (1 + s.i___68710);
+ s.tmp_1 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, s.tmp_1);
+ case 6:
+ case 7:
+ r0 = pxsim_Array__push(s.images___68708, s.img___68726);
+ r0 = (s.i___68710 + 1);
+ s.i___68710 = (r0);
+ { step = 1; continue; }
+ case 8:
+ r0 = s.images___68708;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_constructor__P3682.info = {"start":1935,"length":390,"line":50,"column":8,"endLine":57,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","prefix","_backgroundsI","_spritesI"]}
+tileworld_readImages__P68703.info = {"start":9717,"length":442,"line":266,"column":4,"endLine":275,"endColumn":5,"fileName":"project.ts","functionName":"readImages","argumentNames":["cnt","prefix","key","output"]}
-function tileworld_Project_constructor__P3682_mk(s) {
+function tileworld_readImages__P68703_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_constructor__P3682, depth: s.depth + 1,
+ parent: s, fn: tileworld_readImages__P68703, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ images___68708: undefined,
+ i___68710: undefined,
+ buf___68715: undefined,
+ img___68726: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -58562,7 +57348,7 @@ function tileworld_Project_constructor__P3682_mk(s) {
-function tileworld_LoadScreen_update__P17818(s) {
+function tileworld_settingsReadNumber__P68618(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58572,393 +57358,133 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___18011 = undefined;
- s.row___18015 = undefined;
- s.i___18027 = undefined;
- s.i___18047 = undefined;
- s.r___18153 = undefined;
+ s.val___68622 = 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, tileworld_LoadScreen__C3832_VT)) failedCast(r0);
- s.col___18011 = (0);
- case 1:
- r0 = (s.col___18011 < 10);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.row___18015 = (0);
- case 2:
- r0 = (s.row___18015 < 7);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.col___18011;
- s.tmp_1.arg2 = s.row___18015;
- s.tmp_1.arg3 = globals.emptyTile___3721;
- s.callLocIdx = 1445; s.pc = 22; return s.tmp_1;
- case 22:
- r0 = s.retval;
- r0 = (s.row___18015 + 1);
- s.row___18015 = (r0);
- { step = 2; continue; }
- case 3:
- r0 = (s.col___18011 + 1);
- s.col___18011 = (r0);
- { step = 1; continue; }
+ s.tmp_0 = settings_readNumber__P61825_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 4:
- s.i___18027 = (0);
- case 5:
- r0 = (s.i___18027 < 10);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.i___18027;
- s.tmp_1.arg2 = 0;
- s.tmp_1.arg3 = globals.genericSprite___3726;
- s.callLocIdx = 1446; s.pc = 23; return s.tmp_1;
- case 23:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.i___18027;
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = globals.genericSprite___3726;
- s.callLocIdx = 1447; s.pc = 24; return s.tmp_0;
- case 24:
- r0 = s.retval;
- r0 = (s.i___18027 > 6);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- { step = 8; continue; }
- case 6:
- case 7:
- s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = 0;
- s.tmp_1.arg2 = s.i___18027;
- s.tmp_1.arg3 = globals.genericSprite___3726;
- s.callLocIdx = 1448; s.pc = 25; return s.tmp_1;
- case 25:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 9;
- s.tmp_0.arg2 = s.i___18027;
- s.tmp_0.arg3 = globals.genericSprite___3726;
- s.callLocIdx = 1449; s.pc = 26; return s.tmp_0;
- case 26:
- r0 = s.retval;
- case 8:
- r0 = (s.i___18027 + 1);
- s.i___18027 = (r0);
- { step = 5; continue; }
- case 9:
- s.i___18047 = (0);
- case 10:
- r0 = (s.i___18047 < 4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 11; continue; }
- s.tmp_1 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.i___18047;
- s.tmp_1.arg2 = 0;
- s.tmp_1.arg3 = 12;
- s.callLocIdx = 1450; s.pc = 27; return s.tmp_1;
- case 27:
- r0 = s.retval;
- r0 = (s.i___18047 + 1);
- s.i___18047 = (r0);
- { step = 10; continue; }
- case 11:
- r0 = s.arg0.fields["lastDir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 12; continue; }
- r0 = globals.downButton___3740;
- { step = 13; continue; }
- case 12:
- s.tmp_2 = tileworld_greyImage__P3539_mk(s);
- s.tmp_2.arg0 = globals.downButton___3740;
- s.callLocIdx = 1451; s.pc = 28; return s.tmp_2;
- case 28:
- r0 = s.retval;
- case 13:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = 1;
- s.tmp_4.arg2 = 6;
- s.tmp_4.arg3 = s.tmp_3;
- s.callLocIdx = 1452; s.pc = 29; return s.tmp_4;
- case 29:
- r0 = s.retval;
- r0 = s.arg0.fields["lastDir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 14; continue; }
- r0 = globals.upButton___3741;
- { step = 15; continue; }
- case 14:
- s.tmp_2 = tileworld_greyImage__P3539_mk(s);
- s.tmp_2.arg0 = globals.upButton___3741;
- s.callLocIdx = 1453; s.pc = 30; return s.tmp_2;
- case 30:
- r0 = s.retval;
- case 15:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = 1;
- s.tmp_4.arg2 = 4;
- s.tmp_4.arg3 = s.tmp_3;
- s.callLocIdx = 1454; s.pc = 31; return s.tmp_4;
- case 31:
- r0 = s.retval;
- r0 = s.arg0.fields["lastDir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 16; continue; }
- r0 = globals.leftButton___3738;
- { step = 17; continue; }
- case 16:
- s.tmp_2 = tileworld_greyImage__P3539_mk(s);
- s.tmp_2.arg0 = globals.leftButton___3738;
- s.callLocIdx = 1455; s.pc = 32; return s.tmp_2;
- case 32:
- r0 = s.retval;
- case 17:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = 0;
- s.tmp_4.arg2 = 5;
- s.tmp_4.arg3 = s.tmp_3;
- s.callLocIdx = 1456; s.pc = 33; return s.tmp_4;
- case 33:
- r0 = s.retval;
- r0 = s.arg0.fields["lastDir"];
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 18; continue; }
- r0 = globals.rightButton___3739;
- { step = 19; continue; }
- case 18:
- s.tmp_2 = tileworld_greyImage__P3539_mk(s);
- s.tmp_2.arg0 = globals.rightButton___3739;
- s.callLocIdx = 1457; s.pc = 34; return s.tmp_2;
- case 34:
- r0 = s.retval;
- case 19:
- // jmp value (already in r0)
- s.tmp_3 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = 2;
- s.tmp_4.arg2 = 5;
- s.tmp_4.arg3 = s.tmp_3;
- s.callLocIdx = 1458; s.pc = 35; return s.tmp_4;
- case 35:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "TileCode";
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = 10;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1459; s.pc = 36; return s.tmp_0;
- case 36:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 3;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1460; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 4;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1461; s.pc = 38; return s.tmp_0;
- case 38:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Load";
- r0 = (48 + 4);
- s.tmp_0.arg2 = r0;
- r0 = (16 + 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 6);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1462; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 5;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1463; s.pc = 40; return s.tmp_0;
- case 40:
- r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 6;
- s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = 12;
- s.callLocIdx = 1464; s.pc = 41; return s.tmp_0;
- case 41:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = "Game";
- r0 = (5 << 4);
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 4);
- s.tmp_0.arg2 = r0;
- r0 = (16 + 4);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 6);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1465; s.pc = 42; return s.tmp_0;
- case 42:
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(s.arg1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg1) + ""; }
+ case 5:
r0 = s.retval;
- s.r___18153 = (0);
- case 20:
- r0 = (s.r___18153 < 4);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 21; continue; }
- s.tmp_1 = tileworld_LoadScreen_makeIt__P17817_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = 3;
- r0 = (2 + s.r___18153);
- s.tmp_1.arg2 = r0;
- r0 = (s.r___18153 + 1);
s.tmp_2 = r0;
- r0 = pxsim_numops.toString(s.tmp_2);
- s.tmp_1.arg3 = r0;
- s.callLocIdx = 1466; s.pc = 43; return s.tmp_1;
- case 43:
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 234; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_0 = tileworld_LoadScreen_makeIt__P17817_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 5;
- r0 = (2 + s.r___18153);
- s.tmp_0.arg2 = r0;
- r0 = (s.r___18153 + 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + 4);
- s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.tmp_1);
- s.tmp_0.arg3 = r0;
- s.callLocIdx = 1467; s.pc = 44; return s.tmp_0;
- case 44:
+ s.val___68622 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.arg1);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg1) + ""; }
+ case 7:
r0 = s.retval;
- r0 = (s.r___18153 + 1);
- s.r___18153 = (r0);
- { step = 20; continue; }
- case 21:
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 8;
- s.tmp_0.arg2 = 4;
- s.tmp_0.arg3 = globals.player___3768;
- s.callLocIdx = 1468; s.pc = 45; return s.tmp_0;
- case 45:
+ s.tmp_7 = r0;
+ r0 = pxsim_String__concat("settings.writeNumber(prefix+\"", s.tmp_7);
+ s.tmp_6 = r0;
+ if ((s.tmp_6) && (s.tmp_6).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.tmp_6);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_6) + ""; }
+ case 8:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 8;
- s.tmp_0.arg2 = 6;
- s.tmp_0.arg3 = globals.dog___3767;
- s.callLocIdx = 1469; s.pc = 46; return s.tmp_0;
- case 46:
+ s.tmp_5 = r0;
+ r0 = pxsim_String__concat(s.tmp_5, "\",");
+ s.tmp_4 = r0;
+ if ((s.tmp_4) && (s.tmp_4).vtable) {
+ setupResume(s, 9);
+ pxsim_String__stringConv(s.tmp_4);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_4) + ""; }
+ case 9:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 7;
- s.tmp_0.arg2 = 5;
- s.tmp_0.arg3 = globals.snakeHead___3766;
- s.callLocIdx = 1470; s.pc = 47; return s.tmp_0;
- case 47:
+ s.tmp_3 = r0;
+ r0 = pxsim_numops.toString(s.val___68622);
+ s.tmp_9 = r0;
+ if ((s.tmp_9) && (s.tmp_9).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.tmp_9);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_9) + ""; }
+ case 10:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 9;
- s.tmp_0.arg2 = 5;
- s.tmp_0.arg3 = globals.enemy___3769;
- s.callLocIdx = 1471; s.pc = 48; return s.tmp_0;
- case 48:
+ s.tmp_8 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
+ s.tmp_2 = r0;
+ if ((s.tmp_2) && (s.tmp_2).vtable) {
+ setupResume(s, 11);
+ pxsim_String__stringConv(s.tmp_2);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.tmp_2) + ""; }
+ case 11:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 9;
- s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.settingsIcon___3719;
- s.callLocIdx = 1472; s.pc = 49; return s.tmp_0;
- case 49:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, ");");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 235; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- r0 = undefined;
+ case 1:
+ case 2:
+ r0 = s.val___68622;
return leave(s, r0)
default: oops()
} } }
-tileworld_LoadScreen_update__P17818.info = {"start":2047,"length":1909,"line":48,"column":8,"endLine":86,"endColumn":9,"fileName":"loadScreen.ts","functionName":"update","argumentNames":["this"]}
+tileworld_settingsReadNumber__P68618.info = {"start":8600,"length":249,"line":236,"column":4,"endLine":240,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadNumber","argumentNames":["prefix","key","output"]}
-function tileworld_LoadScreen_update__P17818_mk(s) {
+function tileworld_settingsReadNumber__P68618_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_LoadScreen_update__P17818, depth: s.depth + 1,
+ parent: s, fn: tileworld_settingsReadNumber__P68618, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- col___18011: undefined,
- row___18015: undefined,
- i___18027: undefined,
- i___18047: undefined,
- r___18153: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ val___68622: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_LoadScreen_makeIt__P17817(s) {
+function settings_readNumber__P61825(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -58968,185 +57494,109 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.prefix___17947 = undefined;
- s.projectAvailable___17957 = undefined;
+ s.buf___86967 = undefined;
+ s.nums___86974 = 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, tileworld_LoadScreen__C3832_VT)) failedCast(r0);
- if ((s.arg3) && (s.arg3).vtable) {
- setupResume(s, 9);
- pxsim_String__stringConv(s.arg3);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg3) + ""; }
- case 9:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat("TW", s.tmp_2);
- s.tmp_1 = r0;
- if ((s.tmp_1) && (s.tmp_1).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.tmp_1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_1) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_0 = r0;
- r0 = pxsim_String__concat(s.tmp_0, "-");
- s.prefix___17947 = (r0);
- s.tmp_2 = settings_list__P1832_mk(s);
- s.tmp_2.arg0 = s.prefix___17947;
- s.callLocIdx = 1438; s.pc = 11; return s.tmp_2;
- case 11:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_Array__length(s.tmp_1);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 > 0);
- s.projectAvailable___17957 = (r0);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = globals.diskIcon___3763;
- s.callLocIdx = 1439; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = true;
- s.callLocIdx = 1440; s.pc = 13; return s.tmp_2;
- case 13:
- r0 = s.retval;
+ r0 = pxsim.settings._get(s.arg0);
+ s.buf___86967 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.buf___86967);
s.tmp_1 = r0;
- r0 = (s.tmp_1 == s.arg1);
+ 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; }
+ r0 = undefined;
+ { step = 7; continue; }
+ { step = 6; continue; }
case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_4.arg0 = s.arg0;
- s.tmp_4.arg1 = true;
- s.callLocIdx = 1441; s.pc = 14; return s.tmp_4;
- case 14:
+ s.tmp_2 = msgpack_unpackNumberArray__P60168_mk(s);
+ s.tmp_2.arg0 = s.buf___86967;
+ s.tmp_2.arg1 = 0;
+ s.callLocIdx = 137; s.pc = 8; return s.tmp_2;
+ case 8:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.arg1 + 1);
- s.tmp_5 = r0;
- r0 = (s.tmp_3 == s.tmp_5);
+ s.nums___86974 = (r0);
+ s.tmp_0 = r0 = s.nums___86974;
+ r0 = pxsim_numops_toBool(s.tmp_0);
+ if (r0) { step = 2; continue; }
+ r0 = s.tmp_0;
+ { step = 3; continue; }
case 2:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBool(s.tmp_6);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_6;
- { step = 4; continue; }
+ r0 = pxsim_Array__length(s.nums___86974);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 >= 1);
case 3:
- s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_8.arg0 = s.arg0;
- s.tmp_8.arg1 = true;
- s.callLocIdx = 1442; s.pc = 15; return s.tmp_8;
- case 15:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = (s.tmp_7 == s.arg2);
- case 4:
// jmp value (already in r0)
- s.tmp_9 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_9);
- if (!r0) { step = 5; continue; }
- r0 = 7;
- { step = 8; continue; }
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ if (!r0) { step = 4; continue; }
+ r0 = pxsim_Array__getAt(s.nums___86974, 0);
+ { step = 7; continue; }
+ case 4:
case 5:
- r0 = pxsim_numops_toBoolDecr(s.projectAvailable___17957);
- if (!r0) { step = 6; continue; }
- r0 = 6;
+ r0 = undefined;
{ step = 7; continue; }
case 6:
- r0 = 12;
- case 7:
- // jmp value (already in r0)
- s.tmp_10 = r0;
- r0 = s.tmp_10;
- case 8:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- s.tmp_12 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s);
- s.tmp_12.arg0 = s.arg0;
- r0 = (s.arg1 + 1);
- s.tmp_12.arg1 = r0;
- s.tmp_12.arg2 = s.arg2;
- s.tmp_12.arg3 = s.tmp_11;
- s.callLocIdx = 1443; s.pc = 16; return s.tmp_12;
- case 16:
- r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_0.arg1 = s.arg3;
- r0 = (s.arg1 + 1);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 << 4);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 + 6);
- s.tmp_0.arg2 = r0;
- r0 = (s.arg2 << 4);
- s.tmp_4 = r0;
- r0 = (s.tmp_4 + 4);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 + 6);
- s.tmp_0.arg3 = r0;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1444; s.pc = 17; return s.tmp_0;
- case 17:
- r0 = s.retval;
r0 = undefined;
+ case 7:
return leave(s, r0)
default: oops()
} } }
-tileworld_LoadScreen_makeIt__P17817.info = {"start":1571,"length":464,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"loadScreen.ts","functionName":"makeIt","argumentNames":["this","col","row","id"]}
+settings_readNumber__P61825.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]}
-function tileworld_LoadScreen_makeIt__P17817_mk(s) {
+function settings_readNumber__P61825_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_LoadScreen_makeIt__P17817, depth: s.depth + 1,
+ parent: s, fn: settings_readNumber__P61825, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- prefix___17947: undefined,
- projectAvailable___17957: undefined,
+ buf___86967: undefined,
+ nums___86974: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function settings_readBuffer__P61823(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim.settings._get(s.arg0);
+ return leave(s, r0)
+ default: oops()
+} } }
+settings_readBuffer__P61823.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]}
+
+function settings_readBuffer__P61823_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: settings_readBuffer__P61823, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_loadProject__P3709(s) {
+function msgpack_unpackNumberArray__P60168(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -59156,687 +57606,825 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.names___8758 = undefined;
- s.version___8769 = undefined;
- s.buf___8774 = undefined;
- s.world___8779 = undefined;
- s.sprites___8798 = undefined;
- s.backCnt___8812 = undefined;
- s.backImages___8817 = undefined;
- s.spriteCnt___8823 = undefined;
- s.spriteImages___8828 = undefined;
- s.helpNum___8834 = undefined;
- s.help___8839 = undefined;
- s.highScore___8841 = undefined;
- s.p___8851 = undefined;
- s.ruleName___8857 = undefined;
- s.ruleids___8863 = undefined;
- s.rules___8886 = undefined;
- s.derivedRules___8888 = undefined;
- s.whenDoCount___8889 = undefined;
- s.commandCount___8890 = undefined;
- s.attrCount___8891 = undefined;
- s.player___8965 = undefined;
+ s.res___86987 = undefined;
+ s.fmt___86994 = undefined;
+ s.v___87003 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = settings_list__P1832_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 240; s.pc = 28; return s.tmp_0;
- case 28:
+ r0 = pxsim_Array__mk();
+ s.res___86987 = (r0);
+ case 1:
+ s.tmp_1 = r0 = s.arg1;
+ r0 = pxsim.BufferMethods.length(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 < s.tmp_2);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 10; continue; }
+ s.tmp_3 = r0 = s.arg1;
+ r0 = (s.tmp_3 + 1);
+ s.arg1 = (r0);
+ s.tmp_4 = msgpack_tagFormat__P63898_mk(s);
+ r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3);
+ s.tmp_4.arg0 = r0;
+ s.callLocIdx = 21; s.pc = 12; return s.tmp_4;
+ case 12:
r0 = s.retval;
- s.names___8758 = (r0);
- r0 = pxsim_Array__length(s.names___8758);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 == 0);
+ s.fmt___86994 = (r0);
+ r0 = (s.fmt___86994 === null);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = null;
- { step = 27; continue; }
- case 1:
+ if (!r0) { step = 6; continue; }
+ s.tmp_1 = r0 = s.arg0;
+ r0 = (s.arg1 - 1);
+ s.tmp_2 = r0;
+ r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2);
+ s.v___87003 = (r0);
+ r0 = (-31 <= s.v___87003);
+ 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_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 3; continue; }
- s.tmp_2 = console_log__P366_mk(s);
- s.tmp_2.arg0 = "function createNAME(prefix: string) {";
- s.callLocIdx = 241; s.pc = 29; return s.tmp_2;
- case 29:
- r0 = s.retval;
+ r0 = (s.v___87003 <= 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___86987, s.v___87003);
+ { step = 5; continue; }
case 4:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 5; continue; }
- s.tmp_0 = console_log__P366_mk(s);
- s.tmp_0.arg0 = "if (settings.exists(prefix+\"-VersionS\")) return;";
- s.callLocIdx = 242; s.pc = 30; return s.tmp_0;
- case 30:
- r0 = s.retval;
+ r0 = null;
+ { step = 11; continue; }
case 5:
+ { step = 7; continue; }
case 6:
- s.tmp_0 = tileworld_settingsReadString__P8654_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.VersionKey___8394;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 243; s.pc = 31; return s.tmp_0;
- case 31:
- r0 = s.retval;
- s.version___8769 = (r0);
- s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.WorldBackgroundsKey___8317;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 244; s.pc = 32; return s.tmp_0;
- case 32:
+ s.tmp_0 = r0 = s.res___86987;
+ r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___86994, 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__P60160_mk(s);
+ s.tmp_2.arg0 = s.fmt___86994;
+ s.callLocIdx = 22; s.pc = 13; return s.tmp_2;
+ case 13:
r0 = s.retval;
- s.buf___8774 = (r0);
- s.tmp_0 = r0 = s.buf___8774;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = s.tmp_0;
- { step = 8; continue; }
- case 7:
- r0 = pxsim.BufferMethods.length(s.buf___8774);
s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
+ r0 = (s.tmp_0 + s.tmp_1);
+ s.arg1 = (r0);
+ case 7:
case 8:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 === 193);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 9; continue; }
- s.tmp_3 = tileworld_bufferToImage__P3543_mk(s);
- s.tmp_3.arg0 = s.buf___8774;
- s.callLocIdx = 245; s.pc = 33; return s.tmp_3;
- case 33:
- r0 = s.retval;
- { step = 10; continue; }
+ r0 = (s.arg1 + 1);
+ s.arg1 = (r0);
+ { step = 8; continue; }
case 9:
- r0 = null;
+ { step = 1; continue; }
case 10:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.world___8779 = (s.tmp_4);
- r0 = pxsim_numops_toBoolDecr(s.world___8779);
- if (!r0) { step = 11; continue; }
- r0 = s.world___8779;
- { step = 12; continue; }
+ r0 = s.res___86987;
case 11:
- r0 = pxsim.image.create(32, 24);
- case 12:
- // jmp value (already in r0)
- s.tmp_0 = r0;
- s.world___8779 = (s.tmp_0);
- s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.WorldSpritesKey___8331;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 246; s.pc = 34; return s.tmp_0;
- case 34:
- r0 = s.retval;
- s.buf___8774 = (r0);
- s.tmp_0 = r0 = s.buf___8774;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 13; continue; }
- r0 = s.tmp_0;
- { step = 14; continue; }
- case 13:
- r0 = pxsim.BufferMethods.length(s.buf___8774);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- case 14:
- // jmp value (already in r0)
+ return leave(s, r0)
+ default: oops()
+} } }
+msgpack_unpackNumberArray__P60168.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__P60168_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: msgpack_unpackNumberArray__P60168, depth: s.depth + 1,
+ pc: 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___86987: undefined,
+ fmt___86994: undefined,
+ v___87003: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_bufferToImage__P63540(s) {
+let r0 = s.r0, 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.width___66319 = undefined;
+ s.height___66324 = undefined;
+ s.index___66329 = undefined;
+ s.img___66330 = undefined;
+ s.x___66335 = undefined;
+ s.y___66336 = undefined;
+ s.pair___66342 = undefined;
+ s.pixel___66348 = undefined;
+ s.len___66351 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 0);
+ s.width___66319 = (r0);
+ r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 1);
+ s.height___66324 = (r0);
+ s.index___66329 = (2);
+ r0 = pxsim.image.create(s.width___66319, s.height___66324);
+ s.img___66330 = (r0);
+ s.x___66335 = (0);
+ s.y___66336 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.index___66329;
+ r0 = pxsim.BufferMethods.length(s.arg0);
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 15; continue; }
- s.tmp_3 = tileworld_bufferToImage__P3543_mk(s);
- s.tmp_3.arg0 = s.buf___8774;
- s.callLocIdx = 247; s.pc = 35; return s.tmp_3;
- case 35:
- r0 = s.retval;
- { step = 16; continue; }
- case 15:
- r0 = null;
- case 16:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.sprites___8798 = (s.tmp_4);
- r0 = pxsim_numops_toBoolDecr(s.sprites___8798);
- if (!r0) { step = 17; continue; }
- r0 = s.sprites___8798;
- { step = 18; continue; }
- case 17:
- r0 = pxsim.image.create(32, 24);
- case 18:
- // jmp value (already in r0)
+ r0 = (s.tmp_1 < s.tmp_2);
s.tmp_0 = r0;
- s.sprites___8798 = (s.tmp_0);
- s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.BackImgCntKey___8412;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 248; s.pc = 36; return s.tmp_0;
- case 36:
- r0 = s.retval;
- s.backCnt___8812 = (r0);
- s.tmp_0 = tileworld_readImages__P8706_mk(s);
- s.tmp_0.arg0 = s.backCnt___8812;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = globals.BackImageKey___8702;
- s.tmp_0.arg3 = s.arg1;
- s.callLocIdx = 249; s.pc = 37; return s.tmp_0;
- case 37:
- r0 = s.retval;
- s.backImages___8817 = (r0);
- s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.SpriteImgCntKey___8421;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 250; s.pc = 38; return s.tmp_0;
- case 38:
- r0 = s.retval;
- s.spriteCnt___8823 = (r0);
- s.tmp_0 = tileworld_readImages__P8706_mk(s);
- s.tmp_0.arg0 = s.spriteCnt___8823;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = globals.SpriteImageKey___8704;
- s.tmp_0.arg3 = s.arg1;
- s.callLocIdx = 251; s.pc = 39; return s.tmp_0;
- case 39:
- r0 = s.retval;
- s.spriteImages___8828 = (r0);
- s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.HelpKey___8342;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 252; s.pc = 40; return s.tmp_0;
- case 40:
- r0 = s.retval;
- s.helpNum___8834 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.helpNum___8834);
- if (!r0) { step = 19; continue; }
- r0 = true;
- { step = 20; continue; }
- case 19:
- r0 = false;
- case 20:
- // jmp value (already in r0)
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 6; continue; }
+ s.tmp_3 = r0 = s.index___66329;
+ r0 = (s.tmp_3 + 1);
+ s.index___66329 = (r0);
+ r0 = pxsim.BufferMethods.getUint8(s.arg0, s.tmp_3);
+ s.pair___66342 = (r0);
+ r0 = (s.pair___66342 & 15);
+ s.pixel___66348 = (r0);
+ r0 = (s.pair___66342 & 240);
s.tmp_0 = r0;
- s.help___8839 = (s.tmp_0);
- s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.HighScoreKey___8358;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 253; s.pc = 41; return s.tmp_0;
- case 41:
- r0 = s.retval;
- s.highScore___8841 = (r0);
- r0 = (s.highScore___8841 == undefined);
+ r0 = (s.tmp_0 >> 4);
+ s.len___66351 = (r0);
+ case 2:
+ r0 = (s.len___66351 > 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 21; continue; }
- r0 = 0;
- { step = 22; continue; }
- case 21:
- r0 = s.highScore___8841;
- case 22:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- s.highScore___8841 = (s.tmp_1);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C3677_VT);
+ if (!r0) { step = 5; continue; }
+ r0 = pxsim_ImageMethods.setPixel(s.img___66330, s.x___66335, s.y___66336, s.pixel___66348);
+ s.tmp_1 = r0 = s.y___66336;
+ r0 = (s.height___66324 - 1);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 == s.tmp_2);
s.tmp_0 = r0;
- s.tmp_1 = tileworld_Project_constructor__P3682_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.arg0;
- s.tmp_1.arg2 = s.backImages___8817;
- s.tmp_1.arg3 = s.spriteImages___8828;
- s.callLocIdx = 254; s.pc = 42; return s.tmp_1;
- case 42:
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 3; continue; }
+ r0 = (s.x___66335 + 1);
+ s.x___66335 = (r0);
+ s.y___66336 = (0);
+ { step = 4; continue; }
+ case 3:
+ r0 = (s.y___66336 + 1);
+ s.y___66336 = (r0);
+ case 4:
+ r0 = (s.len___66351 - 1);
+ s.len___66351 = (r0);
+ { step = 2; continue; }
+ case 5:
+ { step = 1; continue; }
+ case 6:
+ s.tmp_0 = control_assert__P60314_mk(s);
+ s.tmp_1 = r0 = s.index___66329;
+ r0 = pxsim.BufferMethods.length(s.arg0);
+ s.tmp_2 = r0;
+ r0 = (s.tmp_1 == s.tmp_2);
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 54;
+ s.callLocIdx = 72; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.p___8851 = (s.tmp_0);
+ r0 = s.img___66330;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_bufferToImage__P63540.info = {"start":3821,"length":694,"line":108,"column":4,"endLine":127,"endColumn":5,"fileName":"utilities.ts","functionName":"bufferToImage","argumentNames":["buf"]}
+
+function tileworld_bufferToImage__P63540_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_bufferToImage__P63540, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ width___66319: undefined,
+ height___66324: undefined,
+ index___66329: undefined,
+ img___66330: undefined,
+ x___66335: undefined,
+ y___66336: undefined,
+ pair___66342: undefined,
+ pixel___66348: undefined,
+ len___66351: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_settingsReadBuffer__P68682(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.buf___68686 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 43);
+ setupResume(s, 3);
pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
} else { s.retval = (s.arg0) + ""; }
- case 43:
+ case 3:
r0 = s.retval;
- s.tmp_0 = r0;
- if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) {
- setupResume(s, 44);
- pxsim_String__stringConv(globals.RuleKey___8299);
+ s.tmp_1 = r0;
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg1);
checkResumeConsumed();
return;
- } else { s.retval = (globals.RuleKey___8299) + ""; }
- case 44:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.ruleName___8857 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P8867);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.ruleName___8857);
- r0 = pxsim_pxtcore_mkAction(1, inline__P8875);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.ruleName___8857);
- s.tmp_2 = helpers_arrayMap__P101_mk(s);
- s.tmp_3 = helpers_arrayFilter__P105_mk(s);
- s.tmp_3.arg0 = s.names___8758;
- s.tmp_3.arg1 = s.tmp_0;
- s.callLocIdx = 255; s.pc = 46; return s.tmp_3;
- case 46:
- r0 = s.retval;
- s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.tmp_1;
- s.callLocIdx = 257; s.pc = 45; return s.tmp_2;
- case 45:
+ } else { s.retval = (s.arg1) + ""; }
+ case 4:
r0 = s.retval;
- s.ruleids___8863 = (r0);
- r0 = pxsim_Array__mk();
- s.rules___8886 = (r0);
- r0 = pxsim_pxtrt.mklocRef();
- s.derivedRules___8888 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.derivedRules___8888, 0);
- r0 = pxsim_pxtrt.mklocRef();
- s.whenDoCount___8889 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.whenDoCount___8889, 0);
- r0 = pxsim_pxtrt.mklocRef();
- s.commandCount___8890 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.commandCount___8890, 0);
- r0 = pxsim_pxtrt.mklocRef();
- s.attrCount___8891 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.attrCount___8891, 0);
- r0 = pxsim_pxtcore_mkAction(10, inline__P8894);
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.backCnt___8812);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.spriteCnt___8823);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.p___8851);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rules___8886);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.derivedRules___8888);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.whenDoCount___8889);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.commandCount___8890);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.attrCount___8891);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = s.ruleids___8863;
- s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 265; s.pc = 47; return s.tmp_1;
- case 47:
- r0 = s.retval;
- s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s);
+ r0 = pxsim.settings._get(s.tmp_0);
+ s.buf___68686 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = tileworld_outputKeyBuffer__P68548_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.PlayerIndexKey___8430;
- s.tmp_0.arg2 = s.arg1;
- s.callLocIdx = 266; s.pc = 48; return s.tmp_0;
- case 48:
- r0 = s.retval;
- s.player___8965 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 23; continue; }
- s.tmp_0 = console_log__P366_mk(s);
- s.tmp_0.arg0 = "}";
- s.callLocIdx = 267; s.pc = 49; return s.tmp_0;
- case 49:
+ s.tmp_0.arg1 = s.arg1;
+ s.tmp_0.arg2 = s.buf___68686;
+ s.callLocIdx = 239; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
- case 23:
- case 24:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 25; continue; }
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim_Array__length(s.ruleids___8863);
+ case 1:
+ case 2:
+ r0 = s.buf___68686;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_settingsReadBuffer__P68682.info = {"start":9110,"length":207,"line":248,"column":4,"endLine":252,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadBuffer","argumentNames":["prefix","key","output"]}
+
+function tileworld_settingsReadBuffer__P68682_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_settingsReadBuffer__P68682, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ buf___68686: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function tileworld_outputKeyBuffer__P68548(s) {
+let r0 = s.r0, 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.chunk___68571 = undefined;
+ s.str___68572 = undefined;
+ s.i___68573 = undefined;
+ s.byte___68579 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = console_log__P60361_mk(s);
+ r0 = pxsim.BufferMethods.length(s.arg2);
+ s.tmp_3 = r0;
+ r0 = pxsim_numops.toString(s.tmp_3);
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 51);
+ setupResume(s, 6);
pxsim_String__stringConv(s.tmp_2);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_2) + ""; }
- case 51:
+ case 6:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat("// base rules: ", s.tmp_1);
+ r0 = pxsim_String__concat("// buffer length = ", s.tmp_1);
s.tmp_0.arg0 = r0;
- s.callLocIdx = 268; s.pc = 50; return s.tmp_0;
- case 50:
- r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___8888);
- s.tmp_8 = r0;
- if ((s.tmp_8) && (s.tmp_8).vtable) {
- setupResume(s, 53);
- pxsim_String__stringConv(s.tmp_8);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_8) + ""; }
- case 53:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = pxsim_String__concat("// derived rules: ", s.tmp_7);
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 54);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 54:
+ s.callLocIdx = 230; s.pc = 5; return s.tmp_0;
+ case 5:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, " (");
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 55);
- pxsim_String__stringConv(s.tmp_4);
+ s.tmp_0 = console_log__P60361_mk(s);
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg1);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 55:
+ } else { s.retval = (s.arg1) + ""; }
+ case 8:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___8888);
- s.tmp_11 = r0;
- r0 = pxsim_Array__length(s.ruleids___8863);
- s.tmp_12 = r0;
- r0 = (s.tmp_11 / s.tmp_12);
- s.tmp_10 = r0;
- if ((s.tmp_10) && (s.tmp_10).vtable) {
- setupResume(s, 56);
- pxsim_String__stringConv(s.tmp_10);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_10) + ""; }
- case 56:
- r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ r0 = pxsim_String__concat("settings.writeBuffer(prefix+\"", s.tmp_3);
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 57);
+ setupResume(s, 9);
pxsim_String__stringConv(s.tmp_2);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_2) + ""; }
- case 57:
+ case 9:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ")");
+ r0 = pxsim_String__concat(s.tmp_1, "\", hex`");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 269; s.pc = 52; return s.tmp_0;
- case 52:
+ s.callLocIdx = 231; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889);
- s.tmp_8 = r0;
- if ((s.tmp_8) && (s.tmp_8).vtable) {
- setupResume(s, 59);
- pxsim_String__stringConv(s.tmp_8);
+ s.chunk___68571 = (40);
+ r0 = pxsim_String_.mkEmpty();
+ s.str___68572 = (r0);
+ s.i___68573 = (0);
+ case 1:
+ s.tmp_1 = r0 = s.i___68573;
+ r0 = pxsim.BufferMethods.length(s.arg2);
+ 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.BufferMethods.getUint8(s.arg2, s.i___68573);
+ s.byte___68579 = (r0);
+ if ((s.str___68572) && (s.str___68572).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.str___68572);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_8) + ""; }
- case 59:
+ } else { s.retval = (s.str___68572) + ""; }
+ case 10:
r0 = s.retval;
+ s.tmp_0 = r0;
+ s.tmp_5 = r0 = globals.toHex___68546;
+ r0 = (s.byte___68579 & 240);
s.tmp_7 = r0;
- r0 = pxsim_String__concat("// whendos: ", s.tmp_7);
+ r0 = (s.tmp_7 >> 4);
s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 60);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 60:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, " (");
+ r0 = pxsim_String_.charAt(s.tmp_5, s.tmp_6);
s.tmp_4 = r0;
if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 61);
+ setupResume(s, 11);
pxsim_String__stringConv(s.tmp_4);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_4) + ""; }
- case 61:
+ case 11:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889);
+ s.tmp_10 = r0 = globals.toHex___68546;
+ r0 = (s.byte___68579 & 15);
s.tmp_11 = r0;
- r0 = pxsim_Array__length(s.ruleids___8863);
- s.tmp_12 = r0;
- r0 = (s.tmp_11 / s.tmp_12);
- s.tmp_10 = r0;
- if ((s.tmp_10) && (s.tmp_10).vtable) {
- setupResume(s, 62);
- pxsim_String__stringConv(s.tmp_10);
+ r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11);
+ s.tmp_9 = r0;
+ if ((s.tmp_9) && (s.tmp_9).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.tmp_9);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_10) + ""; }
- case 62:
+ } else { s.retval = (s.tmp_9) + ""; }
+ case 12:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 63);
+ setupResume(s, 13);
pxsim_String__stringConv(s.tmp_2);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_2) + ""; }
- case 63:
+ case 13:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ")");
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 270; s.pc = 58; return s.tmp_0;
- case 58:
+ r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
+ s.str___68572 = (r0);
+ r0 = (s.chunk___68571 - 1);
+ s.chunk___68571 = (r0);
+ r0 = (s.chunk___68571 == 0);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 2; continue; }
+ s.tmp_1 = console_log__P60361_mk(s);
+ s.tmp_1.arg0 = s.str___68572;
+ s.callLocIdx = 232; s.pc = 14; return s.tmp_1;
+ case 14:
r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.commandCount___8890);
- s.tmp_8 = r0;
- if ((s.tmp_8) && (s.tmp_8).vtable) {
- setupResume(s, 65);
- pxsim_String__stringConv(s.tmp_8);
+ s.chunk___68571 = (40);
+ r0 = pxsim_String_.mkEmpty();
+ s.str___68572 = (r0);
+ case 2:
+ case 3:
+ r0 = (s.i___68573 + 1);
+ s.i___68573 = (r0);
+ { step = 1; continue; }
+ case 4:
+ s.tmp_0 = console_log__P60361_mk(s);
+ if ((s.str___68572) && (s.str___68572).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.str___68572);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_8) + ""; }
- case 65:
+ } else { s.retval = (s.str___68572) + ""; }
+ case 16:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = pxsim_String__concat("// commands: ", s.tmp_7);
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 66);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 66:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "`);");
+ s.tmp_0.arg0 = r0;
+ s.callLocIdx = 233; s.pc = 15; return s.tmp_0;
+ case 15:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, " (");
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 67);
- pxsim_String__stringConv(s.tmp_4);
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_outputKeyBuffer__P68548.info = {"start":8016,"length":578,"line":221,"column":4,"endLine":234,"endColumn":5,"fileName":"project.ts","functionName":"outputKeyBuffer","argumentNames":["prefix","key","val"]}
+
+function tileworld_outputKeyBuffer__P68548_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_outputKeyBuffer__P68548, depth: s.depth + 1,
+ pc: 0, retval: undefined, 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,
+ chunk___68571: undefined,
+ str___68572: undefined,
+ i___68573: undefined,
+ byte___68579: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function tileworld_settingsReadString__P68651(s) {
+let r0 = s.r0, 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.val___68655 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
+ s.lambdaArgs = null;
+ }
+ s.tmp_0 = settings_readString__P61824_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 67:
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.commandCount___8890);
- s.tmp_11 = r0;
- r0 = pxsim_Array__length(s.ruleids___8863);
- s.tmp_12 = r0;
- r0 = (s.tmp_11 / s.tmp_12);
- s.tmp_10 = r0;
- if ((s.tmp_10) && (s.tmp_10).vtable) {
- setupResume(s, 68);
- pxsim_String__stringConv(s.tmp_10);
+ s.tmp_1 = r0;
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 5);
+ pxsim_String__stringConv(s.arg1);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_10) + ""; }
- case 68:
+ } else { s.retval = (s.arg1) + ""; }
+ case 5:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 69);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 69:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ")");
+ r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
s.tmp_0.arg0 = r0;
- s.callLocIdx = 271; s.pc = 64; return s.tmp_0;
- case 64:
+ s.callLocIdx = 236; s.pc = 3; return s.tmp_0;
+ case 3:
r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim_pxtrt_ldlocRef(s.attrCount___8891);
- s.tmp_8 = r0;
- if ((s.tmp_8) && (s.tmp_8).vtable) {
- setupResume(s, 71);
- pxsim_String__stringConv(s.tmp_8);
+ s.val___68655 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg2);
+ if (!r0) { step = 1; continue; }
+ s.tmp_0 = console_log__P60361_mk(s);
+ if ((s.arg1) && (s.arg1).vtable) {
+ setupResume(s, 7);
+ pxsim_String__stringConv(s.arg1);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_8) + ""; }
- case 71:
+ } else { s.retval = (s.arg1) + ""; }
+ case 7:
r0 = s.retval;
s.tmp_7 = r0;
- r0 = pxsim_String__concat("// attrs: ", s.tmp_7);
+ r0 = pxsim_String__concat("settings.writeString(prefix+\"", s.tmp_7);
s.tmp_6 = r0;
if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 72);
+ setupResume(s, 8);
pxsim_String__stringConv(s.tmp_6);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_6) + ""; }
- case 72:
+ case 8:
r0 = s.retval;
s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, " (");
+ r0 = pxsim_String__concat(s.tmp_5, "\",\"");
s.tmp_4 = r0;
if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 73);
+ setupResume(s, 9);
pxsim_String__stringConv(s.tmp_4);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_4) + ""; }
- case 73:
+ case 9:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.attrCount___8891);
- s.tmp_11 = r0;
- r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889);
- s.tmp_12 = r0;
- r0 = (s.tmp_11 / s.tmp_12);
- s.tmp_10 = r0;
- if ((s.tmp_10) && (s.tmp_10).vtable) {
- setupResume(s, 74);
- pxsim_String__stringConv(s.tmp_10);
+ if ((s.val___68655) && (s.val___68655).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.val___68655);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_10) + ""; }
- case 74:
+ } else { s.retval = (s.val___68655) + ""; }
+ case 10:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_9);
+ s.tmp_8 = r0;
+ r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 75);
+ setupResume(s, 11);
pxsim_String__stringConv(s.tmp_2);
checkResumeConsumed();
return;
} else { s.retval = (s.tmp_2) + ""; }
- case 75:
+ case 11:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ")");
+ r0 = pxsim_String__concat(s.tmp_1, "\");");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 272; s.pc = 70; return s.tmp_0;
- case 70:
+ s.callLocIdx = 237; s.pc = 6; return s.tmp_0;
+ case 6:
r0 = s.retval;
- case 25:
- case 26:
- s.tmp_0 = tileworld_Project_setRules__P3683_mk(s);
- s.tmp_0.arg0 = s.p___8851;
- s.tmp_0.arg1 = s.rules___8886;
- s.callLocIdx = 273; s.pc = 76; return s.tmp_0;
- case 76:
+ case 1:
+ case 2:
+ r0 = s.val___68655;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_settingsReadString__P68651.info = {"start":8855,"length":249,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadString","argumentNames":["prefix","key","output"]}
+
+function tileworld_settingsReadString__P68651_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_settingsReadString__P68651, depth: s.depth + 1,
+ pc: 0, retval: undefined, 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,
+ val___68655: undefined,
+ arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
+} }
+
+
+
+
+
+function settings_readString__P61824(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
+switch (step) {
+ case 0:
+
+ s.buf___86956 = undefined;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ r0 = pxsim.settings._get(s.arg0);
+ s.buf___86956 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.buf___86956);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ r0 = undefined;
+ { step = 3; continue; }
+ { step = 2; continue; }
+ case 1:
+ r0 = pxsim.BufferMethods.toString(s.buf___86956);
+ { step = 3; continue; }
+ case 2:
+ r0 = undefined;
+ case 3:
+ return leave(s, r0)
+ default: oops()
+} } }
+settings_readString__P61824.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]}
+
+function settings_readString__P61824_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: settings_readString__P61824, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ buf___86956: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleVisualsBase_row__P72687(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 1; continue; }
+ s.tmp_2 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_2.arg0 = r0;
+ s.callLocIdx = 684; s.pc = 3; return s.tmp_2;
+ case 3:
r0 = s.retval;
- s.tmp_0 = tileworld_Project_setWorldBackgrounds__P3687_mk(s);
- s.tmp_0.arg0 = s.p___8851;
- s.tmp_0.arg1 = s.world___8779;
- s.callLocIdx = 274; s.pc = 77; return s.tmp_0;
- case 77:
+ s.tmp_1 = r0;
+ r0 = (s.tmp_1 - 6);
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 4);
+ { step = 2; continue; }
+ case 1:
+ s.tmp_5 = Sprite_y__P62019_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_5.arg0 = r0;
+ s.callLocIdx = 685; s.pc = 4; return s.tmp_5;
+ case 4:
r0 = s.retval;
- s.tmp_0 = tileworld_Project_setWorldSprites__P3689_mk(s);
- s.tmp_0.arg0 = s.p___8851;
- s.tmp_0.arg1 = s.sprites___8798;
- s.callLocIdx = 275; s.pc = 78; return s.tmp_0;
- case 78:
+ s.tmp_4 = r0;
+ r0 = (s.tmp_4 - 6);
+ s.tmp_3 = r0;
+ r0 = (s.tmp_3 >> 4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_6 = r0;
+ r0 = s.tmp_6;
+ return leave(s, r0)
+ default: oops()
+} } }
+tileworld_RuleVisualsBase_row__P72687.info = {"start":4214,"length":135,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"rulesBase.ts","functionName":"row","argumentNames":["this","curr"]}
+
+function tileworld_RuleVisualsBase_row__P72687_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: tileworld_RuleVisualsBase_row__P72687, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ tmp_2: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ arg0: undefined,
+ arg1: undefined,
+} }
+
+
+
+
+
+function tileworld_RuleVisualsBase_col__P72686(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(s.arg1);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_1.arg0 = r0;
+ s.callLocIdx = 682; s.pc = 3; return s.tmp_1;
+ case 3:
r0 = s.retval;
- s.tmp_0 = tileworld_Project_setPlayer__P3685_mk(s);
- s.tmp_0.arg0 = s.p___8851;
- s.tmp_0.arg1 = s.player___8965;
- s.callLocIdx = 276; s.pc = 79; return s.tmp_0;
- case 79:
+ s.tmp_0 = r0;
+ r0 = (s.tmp_0 >> 4);
+ { step = 2; continue; }
+ case 1:
+ s.tmp_3 = Sprite_x__P62017_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_3.arg0 = r0;
+ s.callLocIdx = 683; s.pc = 4; return s.tmp_3;
+ case 4:
r0 = s.retval;
- r0 = (s.p___8851).fields["help"] = (s.help___8839);
- r0 = (s.p___8851).fields["version"] = (s.version___8769);
- r0 = (s.p___8851).fields["highScore"] = (s.highScore___8841);
- r0 = s.p___8851;
- case 27:
+ s.tmp_2 = r0;
+ r0 = (s.tmp_2 >> 4);
+ case 2:
+ // jmp value (already in r0)
+ s.tmp_4 = r0;
+ r0 = s.tmp_4;
return leave(s, r0)
default: oops()
} } }
-tileworld_loadProject__P3709.info = {"start":10108,"length":3486,"line":276,"column":4,"endLine":345,"endColumn":5,"fileName":"project.ts","functionName":"loadProject","argumentNames":["prefix","output"]}
+tileworld_RuleVisualsBase_col__P72686.info = {"start":4087,"length":117,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"rulesBase.ts","functionName":"col","argumentNames":["this","curr"]}
-function tileworld_loadProject__P3709_mk(s) {
+function tileworld_RuleVisualsBase_col__P72686_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_loadProject__P3709, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_col__P72686, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- names___8758: undefined,
- version___8769: undefined,
- buf___8774: undefined,
- world___8779: undefined,
- sprites___8798: undefined,
- backCnt___8812: undefined,
- backImages___8817: undefined,
- spriteCnt___8823: undefined,
- spriteImages___8828: undefined,
- helpNum___8834: undefined,
- help___8839: undefined,
- highScore___8841: undefined,
- p___8851: undefined,
- ruleName___8857: undefined,
- ruleids___8863: undefined,
- rules___8886: undefined,
- derivedRules___8888: undefined,
- whenDoCount___8889: undefined,
- commandCount___8890: undefined,
- attrCount___8891: undefined,
- player___8965: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -59845,7 +58433,7 @@ function tileworld_loadProject__P3709_mk(s) {
-function inline__P8867(s) {
+function controller_Button_onEvent__P61902(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -59857,30 +58445,43 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
+ s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- r0 = pxsim_String_.indexOf(s.arg0, s.caps[0], undefined);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 == 0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ s.tmp_0 = control_onEvent__P60372_mk(s);
+ s.tmp_0.arg0 = s.arg1;
+ r0 = s.arg0.fields["id"];
+ s.tmp_0.arg1 = r0;
+ s.tmp_0.arg2 = s.arg2;
+ s.tmp_0.arg3 = 16;
+ s.callLocIdx = 152; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8867.info = {"start":11773,"length":29,"line":304,"column":35,"endLine":304,"endColumn":64,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]}
+controller_Button_onEvent__P61902.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]}
-function inline__P8867_mk(s) {
+function controller_Button_onEvent__P61902_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8867, depth: s.depth + 1,
+ parent: s, fn: controller_Button_onEvent__P61902, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
+ arg1: undefined,
+ arg2: undefined,
} }
-function inline__P8875(s) {
+function controller_setRepeatDefault__P61908(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -59892,39 +58493,31 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = parseInt__P92_mk(s);
- s.tmp_1 = r0 = s.arg0;
- r0 = pxsim_String_.length(s.caps[0]);
- s.tmp_2 = r0;
- r0 = pxsim_String_.substr(s.tmp_1, s.tmp_2, 10);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = undefined;
- s.callLocIdx = 256; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
+ globals.defaultRepeatDelay___64105 = (s.arg0);
+ globals.defaultRepeatInterval___64107 = (s.arg1);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8875.info = {"start":11808,"length":42,"line":304,"column":70,"endLine":304,"endColumn":112,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]}
+controller_setRepeatDefault__P61908.info = {"start":6423,"length":151,"line":200,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"setRepeatDefault","argumentNames":["delay","interval"]}
-function inline__P8875_mk(s) {
+function controller_setRepeatDefault__P61908_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8875, depth: s.depth + 1,
+ parent: s, fn: controller_setRepeatDefault__P61908, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function inline__P8894(s) {
+function tileworld_RuleVisualsBase_constructor__P63782(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -59934,189 +58527,240 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8896 = undefined;
- s.rule___8908 = undefined;
- s.rv___8913 = undefined;
- s.wdCnt___8933 = undefined;
- s.cmdCnt___8934 = undefined;
- s.attrCnt___8935 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
+ s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) {
- setupResume(s, 6);
- pxsim_String__stringConv(globals.RuleKey___8299);
- checkResumeConsumed();
- return;
- } else { s.retval = (globals.RuleKey___8299) + ""; }
- case 6:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = (s.arg0).fields["p"] = (s.arg1);
+ s.tmp_0 = tileworld_BackgroundBase_constructor__P63780_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.callLocIdx = 637; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim.image.create(10, 7);
s.tmp_1 = r0;
- r0 = pxsim_numops.toString(s.arg0);
- s.tmp_3 = r0;
- if ((s.tmp_3) && (s.tmp_3).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.tmp_3);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_3) + ""; }
- case 7:
+ r0 = (s.tmp_0).fields["ruleTypeMap"] = (s.tmp_1);
+ s.tmp_0 = r0 = s.arg0;
+ r0 = pxsim.image.create(10, 7);
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["dirMap"] = (s.tmp_1);
+ r0 = s.arg0.fields["ruleTypeMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ r0 = s.arg0.fields["dirMap"];
+ s.tmp_0 = r0;
+ r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorIn___63720;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 638; s.pc = 2; return s.tmp_2;
+ case 2:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.caps[1];
- s.callLocIdx = 258; s.pc = 5; return s.tmp_0;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 24;
+ s.callLocIdx = 639; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 46;
+ s.callLocIdx = 640; s.pc = 4; return s.tmp_0;
+ case 4:
+ r0 = s.retval;
+ s.tmp_0 = tileworld_cursorAnimation__P63535_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = globals.cursorOut___63721;
+ s.callLocIdx = 641; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.buf___8896 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.buf___8896);
- if (!r0) { step = 3; continue; }
- s.tmp_0 = tileworld_unPackRule__P3628_mk(s);
- s.tmp_0.arg0 = s.buf___8896;
- s.tmp_0.arg1 = s.caps[2];
- s.tmp_0.arg2 = s.caps[3];
- s.callLocIdx = 259; s.pc = 8; return s.tmp_0;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorIn___63720;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 642; s.pc = 6; return s.tmp_2;
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["helpCursor"] = (s.tmp_1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["helpCursor"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 643; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = r0 = s.arg0;
+ s.tmp_2 = sprites_create__P61966_mk(s);
+ s.tmp_2.arg0 = globals.cursorOut___63721;
+ s.tmp_2.arg1 = undefined;
+ s.callLocIdx = 644; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
- s.rule___8908 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_RuleView_constructor__P3631_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.caps[4];
- s.tmp_1.arg2 = s.arg0;
- s.tmp_1.arg3 = s.rule___8908;
- s.callLocIdx = 260; s.pc = 9; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = (s.tmp_0).fields["tileSaved"] = (s.tmp_1);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
+ r0 = s.arg0.fields["tileSaved"];
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 128;
+ s.tmp_0.arg2 = true;
+ s.callLocIdx = 645; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.rv___8913 = (s.tmp_0);
- r0 = pxsim_Array__push(s.caps[5], s.rv___8913);
- r0 = pxsim_numops_toBoolDecr(s.caps[1]);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = r0 = s.caps[6];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[6]);
- s.tmp_2 = r0;
- s.tmp_5 = tileworld_RuleView_getDerivedRules__P3633_mk(s);
- s.tmp_5.arg0 = s.rv___8913;
- s.callLocIdx = 261; s.pc = 10; return s.tmp_5;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72758);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 647; s.pc = 10; return s.tmp_1;
case 10:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_3 = r0;
- r0 = (s.tmp_2 + s.tmp_3);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- s.tmp_1 = tileworld_ruleStats__P3626_mk(s);
- s.tmp_1.arg0 = s.rv___8913;
- s.callLocIdx = 262; s.pc = 11; return s.tmp_1;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72764);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 649; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72770);
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, 0);
- s.wdCnt___8933 = (r0);
- r0 = pxsim_Array__getAt(s.tmp_0, 1);
- s.cmdCnt___8934 = (r0);
- r0 = pxsim_Array__getAt(s.tmp_0, 2);
- s.attrCnt___8935 = (r0);
- s.tmp_0 = r0 = s.caps[7];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[7]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.wdCnt___8933);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- s.tmp_0 = r0 = s.caps[8];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[8]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.cmdCnt___8934);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- s.tmp_0 = r0 = s.caps[9];
- r0 = pxsim_pxtrt_ldlocRef(s.caps[9]);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.attrCnt___8935);
- s.tmp_1 = r0;
- r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- case 1:
- case 2:
- { step = 4; continue; }
- case 3:
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = pxsim_numops.toString(s.arg0);
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 13);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 650; s.pc = 12; return s.tmp_1;
+ case 12:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72779);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 652; s.pc = 13; return s.tmp_1;
case 13:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat("Read (", s.tmp_3);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 14);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72785);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 654; s.pc = 14; return s.tmp_1;
case 14:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ") failed");
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = 10;
- s.tmp_0.arg3 = 10;
- s.tmp_0.arg4 = undefined;
- s.tmp_0.arg5 = undefined;
- s.tmp_0.arg6 = undefined;
- s.callLocIdx = 263; s.pc = 12; return s.tmp_0;
- case 12:
- r0 = s.retval;
- s.tmp_0 = control_assert__P319_mk(s);
- s.tmp_0.arg0 = false;
- s.tmp_0.arg1 = 42;
- s.callLocIdx = 264; s.pc = 15; return s.tmp_0;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72791);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 655; s.pc = 15; return s.tmp_1;
case 15:
r0 = s.retval;
- case 4:
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72800);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 657; s.pc = 16; return s.tmp_1;
+ case 16:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72805);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 659; s.pc = 17; return s.tmp_1;
+ case 17:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72810);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 660; s.pc = 18; return s.tmp_1;
+ case 18:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72819);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2049;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 662; s.pc = 19; return s.tmp_1;
+ case 19:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72824);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2054;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 664; s.pc = 20; return s.tmp_1;
+ case 20:
+ r0 = s.retval;
+ r0 = pxsim_pxtcore_mkAction(1, inline__P72829);
+ s.tmp_0 = r0;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
+ s.tmp_1.arg1 = 2048;
+ s.tmp_1.arg2 = s.tmp_0;
+ s.callLocIdx = 665; s.pc = 21; return s.tmp_1;
+ case 21:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P8894.info = {"start":12029,"length":732,"line":310,"column":24,"endLine":327,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["rid"]}
+tileworld_RuleVisualsBase_constructor__P63782.info = {"start":650,"length":2272,"line":24,"column":8,"endLine":66,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this","p"]}
-function inline__P8894_mk(s) {
+function tileworld_RuleVisualsBase_constructor__P63782_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P8894, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_constructor__P63782, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- buf___8896: undefined,
- rule___8908: undefined,
- rv___8913: undefined,
- wdCnt___8933: undefined,
- cmdCnt___8934: undefined,
- attrCnt___8935: undefined,
arg0: undefined,
+ arg1: undefined,
} }
-function tileworld_Project_setRules__P3683(s) {
+function inline__P72758(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60126,34 +58770,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, tileworld_Project__C3677_VT)) failedCast(r0);
- r0 = (s.arg0).fields["rules"] = (s.arg1);
+ s.tmp_0 = tileworld_RuleVisualsBase_moveInX__P72679_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 646; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Project_setRules__P3683.info = {"start":2335,"length":74,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"project.ts","functionName":"setRules","argumentNames":["this","rvl"]}
+inline__P72758.info = {"start":1393,"length":38,"line":42,"column":67,"endLine":42,"endColumn":105,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_Project_setRules__P3683_mk(s) {
+function inline__P72758_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Project_setRules__P3683, depth: s.depth + 1,
+ parent: s, fn: inline__P72758, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
+ tmp_0: undefined,
} }
-function tileworld_ruleStats__P3626(s) {
+function inline__P72764(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60163,107 +58804,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.wdCnt___6670 = undefined;
- s.cmdCnt___6671 = undefined;
- s.attrCnt___6672 = undefined;
- s.col___6673 = undefined;
- s.row___6677 = undefined;
- s.whendo___6681 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- s.wdCnt___6670 = (0);
- s.cmdCnt___6671 = (0);
- s.attrCnt___6672 = (0);
- s.col___6673 = (1);
+ s.tmp_0 = tileworld_RuleVisualsBase_moveInX__P72679_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 648; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.col___6673 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.row___6677 = (1);
- case 2:
- r0 = (s.row___6677 <= 3);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- s.tmp_1 = tileworld_RuleView_getWhenDo__P3643_mk(s);
- s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.col___6673;
- s.tmp_1.arg2 = s.row___6677;
- s.callLocIdx = 73; s.pc = 7; return s.tmp_1;
- case 7:
- r0 = s.retval;
- s.whendo___6681 = (r0);
- r0 = (s.whendo___6681 != -1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 3; continue; }
- r0 = (s.wdCnt___6670 + 1);
- s.wdCnt___6670 = (r0);
- s.tmp_0 = r0 = s.cmdCnt___6671;
- r0 = s.arg0.fields["r"];
- r0 = r0.fields["whenDo"];
- s.tmp_2 = r0;
- r0 = pxsim_Array__getAt(s.tmp_2, s.whendo___6681);
- r0 = r0.fields["commandsLen"];
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.cmdCnt___6671 = (r0);
- s.tmp_0 = r0 = s.attrCnt___6672;
- s.tmp_2 = tileworld_RuleView_attrCnt__P3649_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.whendo___6681;
- s.callLocIdx = 75; s.pc = 8; return s.tmp_2;
- case 8:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.attrCnt___6672 = (r0);
- case 3:
- case 4:
- r0 = (s.row___6677 + 1);
- s.row___6677 = (r0);
- { step = 2; continue; }
- case 5:
- r0 = (s.col___6673 + 1);
- s.col___6673 = (r0);
- { step = 1; continue; }
- case 6:
- r0 = pxsim_Array__mk();
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.wdCnt___6670);
- r0 = pxsim_Array__push(s.tmp_0, s.cmdCnt___6671);
- r0 = pxsim_Array__push(s.tmp_0, s.attrCnt___6672);
- r0 = s.tmp_0;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleStats__P3626.info = {"start":8007,"length":517,"line":215,"column":4,"endLine":230,"endColumn":5,"fileName":"rule.ts","functionName":"ruleStats","argumentNames":["rv"]}
+inline__P72764.info = {"start":1503,"length":38,"line":43,"column":68,"endLine":43,"endColumn":106,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_ruleStats__P3626_mk(s) {
+function inline__P72764_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleStats__P3626, depth: s.depth + 1,
+ parent: s, fn: inline__P72764, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- wdCnt___6670: undefined,
- cmdCnt___6671: undefined,
- attrCnt___6672: undefined,
- col___6673: undefined,
- row___6677: undefined,
- whendo___6681: undefined,
- arg0: undefined,
} }
-function tileworld_RuleView_attrCnt__P3649(s) {
+function inline__P72770(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60273,116 +58838,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.cnt___7403 = undefined;
- s.i___7404 = undefined;
- s.i___7421 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0);
- s.cnt___7403 = (0);
- s.i___7404 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___7404;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_backgroundsI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 4; return s.tmp_3;
+ case 4:
+ r0 = s.retval;
s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 4; continue; }
- s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.arg1;
- s.tmp_7.arg2 = s.i___7404;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 130; s.pc = 9; return s.tmp_7;
- case 9:
- r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 != 0);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 2; continue; }
- r0 = (s.cnt___7403 + 1);
- s.cnt___7403 = (r0);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
case 2:
- case 3:
- r0 = (s.i___7404 + 1);
- s.i___7404 = (r0);
- { step = 1; continue; }
- case 4:
- s.i___7421 = (0);
+ s.tmp_4 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = 0;
+ s.tmp_4.arg2 = false;
+ if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_4.arg0);
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
+ s.pc = 5; return s.tmp_4;
case 5:
- s.tmp_1 = r0 = s.i___7421;
- r0 = s.arg0.fields["p"];
- s.tmp_3 = r0;
- r0 = s.tmp_3.fields["_spritesI"];
- s.tmp_4 = r0;
- r0 = pxsim_Array__length(s.tmp_4);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s);
- s.tmp_7.arg0 = s.arg0;
- s.tmp_7.arg1 = s.arg1;
- s.tmp_7.arg2 = s.i___7421;
- s.tmp_7.arg3 = 65535;
- s.callLocIdx = 132; s.pc = 10; return s.tmp_7;
- case 10:
r0 = s.retval;
- s.tmp_6 = r0;
- r0 = (s.tmp_6 != 0);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_5);
- if (!r0) { step = 6; continue; }
- r0 = (s.cnt___7403 + 1);
- s.cnt___7403 = (r0);
- case 6:
- case 7:
- r0 = (s.i___7421 + 1);
- s.i___7421 = (r0);
- { step = 5; continue; }
- case 8:
- r0 = s.cnt___7403;
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleView_attrCnt__P3649.info = {"start":4924,"length":419,"line":142,"column":8,"endLine":153,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrCnt","argumentNames":["this","whendo"]}
+inline__P72770.info = {"start":1612,"length":127,"line":44,"column":68,"endLine":47,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_RuleView_attrCnt__P3649_mk(s) {
+function inline__P72770_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleView_attrCnt__P3649, depth: s.depth + 1,
+ parent: s, fn: inline__P72770, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- cnt___7403: undefined,
- i___7404: undefined,
- i___7421: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function tileworld_unPackRule__P3628(s) {
+function inline__P72779(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60392,173 +58897,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rt___6964 = undefined;
- s.ra___6966 = undefined;
- s.rv___6968 = undefined;
- s.rule___6970 = undefined;
- s.whenDoLen___6977 = undefined;
- s.i___6979 = undefined;
- s.col___6984 = undefined;
- s.row___6986 = undefined;
- s.wd___6988 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- globals.ruleBuf___6715 = (s.arg0);
- globals.bitIndex___6717 = (0);
- s.tmp_0 = tileworld_readBuf__P6828_mk(s);
- s.tmp_0.arg0 = 4;
- s.callLocIdx = 98; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.rt___6964 = (r0);
- s.tmp_0 = tileworld_readBuf__P6828_mk(s);
- s.tmp_0.arg0 = 4;
- s.callLocIdx = 99; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.ra___6966 = (r0);
- s.tmp_0 = tileworld_readBuf__P6828_mk(s);
- s.tmp_0.arg0 = 4;
- s.callLocIdx = 100; s.pc = 5; return s.tmp_0;
- case 5:
- r0 = s.retval;
- s.rv___6968 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C3615_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_Rule_constructor__P3616_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.rt___6964;
- s.tmp_1.arg2 = s.ra___6966;
- r0 = pxsim_Array__mk();
- s.tmp_1.arg3 = r0;
- s.tmp_1.arg4 = s.rv___6968;
- s.callLocIdx = 101; s.pc = 6; return s.tmp_1;
- case 6:
- r0 = s.retval;
- s.rule___6970 = (s.tmp_0);
- s.tmp_0 = tileworld_readBuf__P6828_mk(s);
- s.tmp_0.arg0 = 4;
- s.callLocIdx = 102; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- s.whenDoLen___6977 = (r0);
- s.i___6979 = (0);
+ s.tmp_0 = tileworld_RuleVisualsBase_moveInX__P72679_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 651; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___6979 < s.whenDoLen___6977);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = tileworld_readBuf__P6828_mk(s);
- s.tmp_1.arg0 = 4;
- s.callLocIdx = 103; s.pc = 8; return s.tmp_1;
- case 8:
- r0 = s.retval;
- s.col___6984 = (r0);
- s.tmp_0 = tileworld_readBuf__P6828_mk(s);
- s.tmp_0.arg0 = 4;
- s.callLocIdx = 104; s.pc = 9; return s.tmp_0;
- case 9:
- r0 = s.retval;
- s.row___6986 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C3603_VT);
- s.tmp_0 = r0;
- s.tmp_1 = tileworld_WhenDo_constructor__P3604_mk(s);
- s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.col___6984;
- s.tmp_1.arg2 = s.row___6986;
- s.tmp_2 = tileworld_readBufRaw__P6832_mk(s);
- r0 = (s.arg1 >> 2);
- s.tmp_2.arg0 = r0;
- r0 = (s.arg1 >> 2);
- s.tmp_2.arg1 = r0;
- s.callLocIdx = 105; s.pc = 11; return s.tmp_2;
- case 11:
- r0 = s.retval;
- s.tmp_1.arg3 = r0;
- s.tmp_3 = tileworld_readBufRaw__P6832_mk(s);
- r0 = (s.arg2 >> 2);
- s.tmp_3.arg0 = r0;
- r0 = (s.arg2 >> 2);
- s.tmp_3.arg1 = r0;
- s.callLocIdx = 106; s.pc = 12; return s.tmp_3;
- case 12:
- r0 = s.retval;
- s.tmp_1.arg4 = r0;
- s.tmp_1.arg5 = -1;
- s.tmp_1.arg6 = null;
- s.tmp_1.arg7 = 0;
- s.callLocIdx = 107; s.pc = 10; return s.tmp_1;
- case 10:
- r0 = s.retval;
- s.wd___6988 = (s.tmp_0);
- s.tmp_0 = r0 = s.wd___6988;
- s.tmp_2 = tileworld_readBuf__P6828_mk(s);
- s.tmp_2.arg0 = 4;
- s.callLocIdx = 108; s.pc = 13; return s.tmp_2;
- case 13:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["dir"] = (s.tmp_1);
- s.tmp_0 = r0 = s.wd___6988;
- s.tmp_2 = tileworld_readBuf__P6828_mk(s);
- s.tmp_2.arg0 = 4;
- s.callLocIdx = 109; s.pc = 14; return s.tmp_2;
- case 14:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1);
- r0 = s.rule___6970.fields["whenDo"];
- s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.wd___6988);
- r0 = (s.i___6979 + 1);
- s.i___6979 = (r0);
- { step = 1; continue; }
- case 2:
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
- r0 = s.rule___6970.fields["whenDo"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P7022;
- s.callLocIdx = 111; s.pc = 15; return s.tmp_0;
- case 15:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+inline__P72779.info = {"start":1810,"length":39,"line":48,"column":68,"endLine":48,"endColumn":107,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
+
+function inline__P72779_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: inline__P72779, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+} }
+
+
+
+
+
+function inline__P72785(s) {
+let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveInX__P72679_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.tmp_0.arg1 = 2;
+ s.callLocIdx = 653; s.pc = 1; return s.tmp_0;
+ case 1:
r0 = s.retval;
- r0 = s.rule___6970;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_unPackRule__P3628.info = {"start":11735,"length":1027,"line":327,"column":4,"endLine":355,"endColumn":5,"fileName":"rule.ts","functionName":"unPackRule","argumentNames":["buf","bgLen","spLen"]}
+inline__P72785.info = {"start":1921,"length":39,"line":49,"column":69,"endLine":49,"endColumn":108,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_unPackRule__P3628_mk(s) {
+function inline__P72785_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_unPackRule__P3628, depth: s.depth + 1,
+ parent: s, fn: inline__P72785, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- rt___6964: undefined,
- ra___6966: undefined,
- rv___6968: undefined,
- rule___6970: undefined,
- whenDoLen___6977: undefined,
- i___6979: undefined,
- col___6984: undefined,
- row___6986: undefined,
- wd___6988: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function inline__P7022(s) {
+function inline__P72791(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60568,60 +58965,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0.fields["commandsLen"];
- 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_2 = r0 = s.arg0;
- s.tmp_4 = tileworld_readBufRaw__P6832_mk(s);
- s.tmp_4.arg0 = 8;
- r0 = s.arg0.fields["commandsLen"];
- s.tmp_5 = r0;
- r0 = (s.tmp_5 << 1);
- s.tmp_4.arg1 = r0;
- s.callLocIdx = 110; s.pc = 3; return s.tmp_4;
- case 3:
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 4; return s.tmp_3;
+ case 4:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = (s.tmp_2).fields["commands"] = (s.tmp_3);
- { step = 2; continue; }
- case 1:
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim.control.createBuffer(8);
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["commands"] = (s.tmp_1);
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
case 2:
+ s.tmp_4 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = 2;
+ s.tmp_4.arg2 = false;
+ if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_4.arg0);
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
+ s.pc = 5; return s.tmp_4;
+ case 5:
+ r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P7022.info = {"start":12492,"length":241,"line":347,"column":28,"endLine":353,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]}
+inline__P72791.info = {"start":2032,"length":128,"line":50,"column":69,"endLine":53,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function inline__P7022_mk(s) {
+function inline__P72791_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P7022, depth: s.depth + 1,
+ parent: s, fn: inline__P72791, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_readBufRaw__P6832(s) {
+function inline__P72800(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60631,61 +59024,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.b___6835 = undefined;
- s.i___6839 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = pxsim.control.createBuffer(s.arg0);
- s.b___6835 = (r0);
- s.i___6839 = (0);
+ s.tmp_0 = tileworld_RuleVisualsBase_moveUp__P72680_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 656; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___6839 < s.arg1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = r0 = s.b___6835;
- s.tmp_2 = r0 = s.i___6839;
- s.tmp_4 = tileworld_readBuf__P6828_mk(s);
- s.tmp_4.arg0 = 8;
- s.callLocIdx = 82; s.pc = 3; return s.tmp_4;
- case 3:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim.BufferMethods.setUint8(s.tmp_1, s.tmp_2, s.tmp_3);
- r0 = (s.i___6839 + 1);
- s.i___6839 = (r0);
- { step = 1; continue; }
- case 2:
- r0 = s.b___6835;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_readBufRaw__P6832.info = {"start":10235,"length":207,"line":288,"column":4,"endLine":294,"endColumn":5,"fileName":"rule.ts","functionName":"readBufRaw","argumentNames":["bytes","cnt"]}
+inline__P72800.info = {"start":2228,"length":19,"line":54,"column":65,"endLine":54,"endColumn":84,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_readBufRaw__P6832_mk(s) {
+function inline__P72800_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_readBufRaw__P6832, depth: s.depth + 1,
+ parent: s, fn: inline__P72800, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- b___6835: undefined,
- i___6839: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function tileworld_readBuf__P6828(s) {
+function inline__P72805(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60695,36 +59057,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;
- }
- s.tmp_0 = tileworld_readWriteBuf__P6718_mk(s);
- s.tmp_0.arg0 = 0;
- s.tmp_0.arg1 = s.arg0;
- s.tmp_0.arg2 = false;
- s.callLocIdx = 81; s.pc = 1; return s.tmp_0;
+ s.tmp_0 = tileworld_RuleVisualsBase_moveUp__P72680_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 658; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_readBuf__P6828.info = {"start":10092,"length":83,"line":283,"column":4,"endLine":285,"endColumn":5,"fileName":"rule.ts","functionName":"readBuf","argumentNames":["bits"]}
+inline__P72805.info = {"start":2316,"length":19,"line":55,"column":66,"endLine":55,"endColumn":85,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_readBuf__P6828_mk(s) {
+function inline__P72805_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_readBuf__P6828, depth: s.depth + 1,
+ parent: s, fn: inline__P72805, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
} }
-function parseInt__P92(s) {
+function inline__P72810(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -60734,313 +59090,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.start___26811 = undefined;
- s.sign___26841 = undefined;
- s.output___26886 = undefined;
- s.hasDigit___26887 = undefined;
- s.i___26888 = undefined;
- s.code___26895 = undefined;
- s.val___26902 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.lambdaArgs = null;
- }
- r0 = pxsim_numops_toBoolDecr(s.arg0);
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 4; return s.tmp_3;
+ case 4:
+ 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 = 6; continue; }
+ { step = 3; continue; }
case 1:
- r0 = (s.arg1 != null);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_2;
- { step = 5; continue; }
case 2:
- r0 = (s.arg1 < 2);
- s.tmp_3 = r0;
- r0 = pxsim_numops_toBool(s.tmp_3);
- if (!r0) { step = 3; continue; }
- r0 = s.tmp_3;
- { step = 4; continue; }
- case 3:
- r0 = (s.arg1 > 36);
- case 4:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
+ s.tmp_4 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = 1;
+ s.tmp_4.arg2 = false;
+ if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_4.arg0);
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
+ s.pc = 5; return s.tmp_4;
case 5:
- // jmp value (already in r0)
- s.tmp_5 = r0;
- r0 = s.tmp_5;
- case 6:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_6);
- if (!r0) { step = 7; continue; }
- r0 = NaN;
- { step = 46; continue; }
- case 7:
- case 8:
- s.start___26811 = (0);
- case 9:
- s.tmp_1 = r0 = s.start___26811;
- r0 = pxsim_String_.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 10; continue; }
- r0 = s.tmp_0;
- { step = 11; continue; }
- case 10:
- s.tmp_3 = helpers_isWhitespace__P116_mk(s);
- r0 = pxsim_String_.charCodeAt(s.arg0, s.start___26811);
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 0; s.pc = 47; return s.tmp_3;
- case 47:
r0 = s.retval;
- case 11:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 12; continue; }
- r0 = (s.start___26811 + 1);
- s.start___26811 = (r0);
- { step = 9; continue; }
- case 12:
- s.tmp_1 = r0 = s.start___26811;
- r0 = pxsim_String_.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 === s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 13; continue; }
- r0 = NaN;
- { step = 46; continue; }
- case 13:
- case 14:
- s.sign___26841 = (1);
- r0 = pxsim_String_.charAt(s.arg0, s.start___26811);
- s.tmp_0 = r0;
- r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0);
- if (r0) { step = 15; continue; }
- r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0);
- if (r0) { step = 16; continue; }
- r0 = s.tmp_0;
- { step = 17; continue; }
- case 15:
- s.sign___26841 = (-1);
- case 16:
- r0 = (s.start___26811 + 1);
- s.start___26811 = (r0);
- case 17:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 18; continue; }
- r0 = s.tmp_0;
- { step = 19; continue; }
- case 18:
- r0 = (s.arg1 == 16);
- case 19:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBool(s.tmp_2);
- if (r0) { step = 20; continue; }
- r0 = s.tmp_2;
- { step = 21; continue; }
- case 20:
- r0 = pxsim_String_.charAt(s.arg0, s.start___26811);
- s.tmp_3 = r0;
- r0 = ("0" === s.tmp_3);
- case 21:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 22; continue; }
- r0 = s.tmp_4;
- { step = 25; continue; }
- case 22:
- s.tmp_7 = r0 = s.arg0;
- r0 = (s.start___26811 + 1);
- s.tmp_8 = r0;
- r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8);
- s.tmp_6 = r0;
- r0 = ("x" === s.tmp_6);
- s.tmp_5 = r0;
- r0 = pxsim_numops_toBool(s.tmp_5);
- if (!r0) { step = 23; continue; }
- r0 = s.tmp_5;
- { step = 24; continue; }
- case 23:
- s.tmp_10 = r0 = s.arg0;
- r0 = (s.start___26811 + 1);
- s.tmp_11 = r0;
- r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11);
- s.tmp_9 = r0;
- r0 = ("X" === s.tmp_9);
- case 24:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = s.tmp_12;
- case 25:
- // jmp value (already in r0)
- s.tmp_13 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_13);
- if (!r0) { step = 26; continue; }
- s.arg1 = (16);
- r0 = (s.start___26811 + 2);
- s.start___26811 = (r0);
- { step = 29; continue; }
- case 26:
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 27; continue; }
- s.arg1 = (10);
- case 27:
- case 28:
- case 29:
- s.output___26886 = (0);
- s.hasDigit___26887 = (false);
- s.i___26888 = (s.start___26811);
- case 30:
- s.tmp_1 = r0 = s.i___26888;
- r0 = pxsim_String_.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 45; continue; }
- r0 = pxsim_String_.charCodeAt(s.arg0, s.i___26888);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 | 32);
- s.code___26895 = (r0);
- s.val___26902 = (undefined);
- r0 = (s.code___26895 >= 48);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 31; continue; }
- r0 = s.tmp_0;
- { step = 32; continue; }
- case 31:
- r0 = (s.code___26895 < 58);
- case 32:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 33; continue; }
- r0 = (s.code___26895 - 48);
- s.val___26902 = (r0);
- { step = 38; continue; }
- case 33:
- r0 = (s.code___26895 >= 97);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 34; continue; }
- r0 = s.tmp_0;
- { step = 35; continue; }
- case 34:
- r0 = (s.code___26895 < 123);
- case 35:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 36; continue; }
- r0 = (10 + s.code___26895);
- s.tmp_2 = r0;
- r0 = (s.tmp_2 - 97);
- s.val___26902 = (r0);
- case 36:
- case 37:
- case 38:
- r0 = (s.val___26902 == undefined);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (!r0) { step = 39; continue; }
- r0 = s.tmp_0;
- { step = 40; continue; }
- case 39:
- r0 = (s.val___26902 >= s.arg1);
- case 40:
- // jmp value (already in r0)
- s.tmp_1 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_1);
- if (!r0) { step = 43; continue; }
- r0 = pxsim_numops_toBoolDecr(s.hasDigit___26887);
- s.tmp_3 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_3);
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 41; continue; }
- r0 = NaN;
- { step = 46; continue; }
- case 41:
- case 42:
- { step = 45; continue; }
- case 43:
- case 44:
- s.hasDigit___26887 = (true);
- r0 = (s.output___26886 * s.arg1);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.val___26902);
- s.output___26886 = (r0);
- r0 = (s.i___26888 + 1);
- s.i___26888 = (r0);
- { step = 30; continue; }
- case 45:
- r0 = (s.sign___26841 * s.output___26886);
- case 46:
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-parseInt__P92.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]}
+inline__P72810.info = {"start":2404,"length":125,"line":56,"column":66,"endLine":59,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function parseInt__P92_mk(s) {
+function inline__P72810_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: parseInt__P92, depth: s.depth + 1,
+ parent: s, fn: inline__P72810, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
- tmp_12: undefined,
- tmp_13: undefined,
- start___26811: undefined,
- sign___26841: undefined,
- output___26886: undefined,
- hasDigit___26887: undefined,
- i___26888: undefined,
- code___26895: undefined,
- val___26902: undefined,
- arg0: undefined,
- arg1: undefined,
} }
-function helpers_isWhitespace__P116(s) {
+function inline__P72819(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61050,69 +59149,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;
- }
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0);
- if (r0) { step = 1; continue; }
- r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0);
- if (r0) { step = 3; continue; }
- r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0);
- if (r0) { step = 4; continue; }
- r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0);
- if (r0) { step = 5; continue; }
- r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0);
- if (r0) { step = 6; continue; }
- r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0);
- if (r0) { step = 7; continue; }
- r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0);
- if (r0) { step = 8; continue; }
- r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0);
- if (r0) { step = 9; continue; }
- r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0);
- if (r0) { step = 10; continue; }
- r0 = s.tmp_0;
- { step = 11; continue; }
+ s.tmp_0 = tileworld_RuleVisualsBase_moveDown__P72681_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 661; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 9:
- case 10:
- r0 = true;
- { step = 12; continue; }
- case 11:
- r0 = false;
- { step = 12; continue; }
+ r0 = s.retval;
r0 = undefined;
- case 12:
return leave(s, r0)
default: oops()
} } }
-helpers_isWhitespace__P116.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]}
+inline__P72819.info = {"start":2599,"length":21,"line":60,"column":67,"endLine":60,"endColumn":88,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function helpers_isWhitespace__P116_mk(s) {
+function inline__P72819_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_isWhitespace__P116, depth: s.depth + 1,
+ parent: s, fn: inline__P72819, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- arg0: undefined,
} }
-function tileworld_readImages__P8706(s) {
+function inline__P72824(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61122,130 +59182,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.images___8711 = undefined;
- s.i___8713 = undefined;
- s.buf___8718 = undefined;
- s.img___8729 = 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.images___8711 = (r0);
- s.i___8713 = (0);
+ s.tmp_0 = tileworld_RuleVisualsBase_moveDown__P72681_mk(s);
+ s.tmp_0.arg0 = s.caps[0];
+ s.callLocIdx = 663; s.pc = 1; return s.tmp_0;
case 1:
- r0 = (s.i___8713 < s.arg0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 8; continue; }
- s.tmp_1 = tileworld_settingsReadBuffer__P8685_mk(s);
- s.tmp_1.arg0 = s.arg1;
- if ((s.arg2) && (s.arg2).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.arg2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg2) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops.toString(s.i___8713);
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 11);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 11:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat(s.tmp_2, s.tmp_3);
- s.tmp_1.arg1 = r0;
- s.tmp_1.arg2 = s.arg3;
- s.callLocIdx = 238; s.pc = 9; return s.tmp_1;
- case 9:
- r0 = s.retval;
- s.buf___8718 = (r0);
- s.tmp_0 = r0 = s.buf___8718;
- r0 = pxsim_numops_toBool(s.tmp_0);
- if (r0) { step = 2; continue; }
- r0 = s.tmp_0;
- { step = 3; continue; }
- case 2:
- r0 = pxsim.BufferMethods.length(s.buf___8718);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 > 0);
- case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- s.tmp_3 = tileworld_bufferToImage__P3543_mk(s);
- s.tmp_3.arg0 = s.buf___8718;
- s.callLocIdx = 239; s.pc = 12; return s.tmp_3;
- case 12:
r0 = s.retval;
- { step = 5; continue; }
- case 4:
- r0 = null;
- case 5:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- s.img___8729 = (s.tmp_4);
- r0 = pxsim_numops_toBoolDecr(s.img___8729);
- s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- r0 = pxsim.image.create(16, 16);
- s.img___8729 = (r0);
- s.tmp_0 = r0 = s.img___8729;
- r0 = (1 + s.i___8713);
- s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, s.tmp_1);
- case 6:
- case 7:
- r0 = pxsim_Array__push(s.images___8711, s.img___8729);
- r0 = (s.i___8713 + 1);
- s.i___8713 = (r0);
- { step = 1; continue; }
- case 8:
- r0 = s.images___8711;
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_readImages__P8706.info = {"start":9562,"length":442,"line":262,"column":4,"endLine":271,"endColumn":5,"fileName":"project.ts","functionName":"readImages","argumentNames":["cnt","prefix","key","output"]}
+inline__P72824.info = {"start":2691,"length":21,"line":61,"column":68,"endLine":61,"endColumn":89,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_readImages__P8706_mk(s) {
+function inline__P72824_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_readImages__P8706, depth: s.depth + 1,
+ parent: s, fn: inline__P72824, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- images___8711: undefined,
- i___8713: undefined,
- buf___8718: undefined,
- img___8729: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
- arg3: undefined,
} }
-function tileworld_settingsReadNumber__P8621(s) {
+function inline__P72829(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61255,133 +59215,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.val___8625 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = settings_readNumber__P1830_mk(s);
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.caps[0];
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 4; return s.tmp_3;
case 4:
r0 = s.retval;
- s.tmp_1 = r0;
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
- case 5:
- r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 232; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.val___8625 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = console_log__P366_mk(s);
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
- case 7:
- r0 = s.retval;
- s.tmp_7 = r0;
- r0 = pxsim_String__concat("settings.writeNumber(prefix+\"", s.tmp_7);
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.tmp_6);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 8:
- r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, "\",");
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 9);
- pxsim_String__stringConv(s.tmp_4);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 9:
- r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_numops.toString(s.val___8625);
- s.tmp_9 = r0;
- if ((s.tmp_9) && (s.tmp_9).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.tmp_9);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_9) + ""; }
- case 10:
- r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 11);
- pxsim_String__stringConv(s.tmp_2);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 11:
- r0 = s.retval;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, ");");
- s.tmp_0.arg0 = r0;
- s.callLocIdx = 233; s.pc = 6; return s.tmp_0;
- case 6:
- r0 = s.retval;
+ 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.val___8625;
+ s.tmp_4 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_4.arg0 = s.caps[0];
+ s.tmp_4.arg1 = 3;
+ s.tmp_4.arg2 = false;
+ if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_4.arg0);
+ s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
+ s.pc = 5; return s.tmp_4;
+ case 5:
+ r0 = s.retval;
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_settingsReadNumber__P8621.info = {"start":8445,"length":249,"line":232,"column":4,"endLine":236,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadNumber","argumentNames":["prefix","key","output"]}
+inline__P72829.info = {"start":2783,"length":127,"line":62,"column":68,"endLine":65,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-function tileworld_settingsReadNumber__P8621_mk(s) {
+function inline__P72829_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_settingsReadNumber__P8621, depth: s.depth + 1,
+ parent: s, fn: inline__P72829, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
- val___8625: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
-function settings_readNumber__P1830(s) {
+function tileworld_RuleVisualsBase_moveDown__P72681(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61391,69 +59274,89 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___26981 = undefined;
- s.nums___26988 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim.settings._get(s.arg0);
- s.buf___26981 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.buf___26981);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 6; return s.tmp_3;
+ case 6:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- r0 = undefined;
- { step = 7; continue; }
- { step = 6; continue; }
+ { step = 5; continue; }
case 1:
- s.tmp_2 = msgpack_unpackNumberArray__P173_mk(s);
- s.tmp_2.arg0 = s.buf___26981;
- s.tmp_2.arg1 = 0;
- s.callLocIdx = 137; s.pc = 8; return s.tmp_2;
+ case 2:
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 674; s.pc = 7; return s.tmp_6;
+ case 7:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 < 6);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 3; continue; }
+ s.tmp_7 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_8 = r0;
+ s.tmp_7.arg0 = r0;
+ s.tmp_10 = Sprite_y__P62019_mk(s);
+ s.tmp_10.arg0 = s.tmp_8;
+ s.callLocIdx = 675; s.pc = 9; return s.tmp_10;
+ case 9:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 + 16);
+ s.tmp_7.arg1 = r0;
+ s.callLocIdx = 676; s.pc = 8; return s.tmp_7;
case 8:
r0 = s.retval;
- s.nums___26988 = (r0);
- s.tmp_0 = r0 = s.nums___26988;
- 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___26988);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 >= 1);
case 3:
- // jmp value (already in r0)
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
- if (!r0) { step = 4; continue; }
- r0 = pxsim_Array__getAt(s.nums___26988, 0);
- { step = 7; continue; }
case 4:
+ s.tmp_0 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 3;
+ s.tmp_0.arg2 = true;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
+ s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
case 5:
r0 = undefined;
- { step = 7; continue; }
- case 6:
- r0 = undefined;
- case 7:
return leave(s, r0)
default: oops()
} } }
-settings_readNumber__P1830.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]}
+tileworld_RuleVisualsBase_moveDown__P72681.info = {"start":3441,"length":190,"line":83,"column":8,"endLine":88,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveDown","argumentNames":["this"]}
-function settings_readNumber__P1830_mk(s) {
+function tileworld_RuleVisualsBase_moveDown__P72681_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_readNumber__P1830, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_moveDown__P72681, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- buf___26981: undefined,
- nums___26988: 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,
} }
@@ -61461,7 +59364,7 @@ function settings_readNumber__P1830_mk(s) {
-function settings_readBuffer__P1828(s) {
+function tileworld_RuleVisualsBase_moveUp__P72680(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61475,17 +59378,85 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim.settings._get(s.arg0);
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 6; return s.tmp_3;
+ case 6:
+ r0 = s.retval;
+ s.tmp_2 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_Boolean__bang(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 5; continue; }
+ case 1:
+ case 2:
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 671; s.pc = 7; return s.tmp_6;
+ case 7:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 > 0);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_4);
+ if (!r0) { step = 3; continue; }
+ s.tmp_7 = Sprite_y__P62020_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_8 = r0;
+ s.tmp_7.arg0 = r0;
+ s.tmp_10 = Sprite_y__P62019_mk(s);
+ s.tmp_10.arg0 = s.tmp_8;
+ s.callLocIdx = 672; s.pc = 9; return s.tmp_10;
+ case 9:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 - 16);
+ s.tmp_7.arg1 = r0;
+ s.callLocIdx = 673; s.pc = 8; return s.tmp_7;
+ case 8:
+ r0 = s.retval;
+ case 3:
+ case 4:
+ s.tmp_0 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
+ s.tmp_0.arg0 = s.arg0;
+ s.tmp_0.arg1 = 1;
+ s.tmp_0.arg2 = true;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
+ s.pc = 10; return s.tmp_0;
+ case 10:
+ r0 = s.retval;
+ case 5:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-settings_readBuffer__P1828.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]}
+tileworld_RuleVisualsBase_moveUp__P72680.info = {"start":3245,"length":186,"line":76,"column":8,"endLine":81,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveUp","argumentNames":["this"]}
-function settings_readBuffer__P1828_mk(s) {
+function tileworld_RuleVisualsBase_moveUp__P72680_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_readBuffer__P1828, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_moveUp__P72680, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
@@ -61493,7 +59464,7 @@ function settings_readBuffer__P1828_mk(s) {
-function msgpack_unpackNumberArray__P173(s) {
+function tileworld_RuleVisualsBase_cursorMove__P72694(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61503,120 +59474,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.res___27001 = undefined;
- s.fmt___27008 = undefined;
- s.v___27017 = 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___27001 = (r0);
- case 1:
- s.tmp_1 = r0 = s.arg1;
- r0 = pxsim.BufferMethods.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 10; continue; }
- s.tmp_3 = r0 = s.arg1;
- r0 = (s.tmp_3 + 1);
- s.arg1 = (r0);
- s.tmp_4 = msgpack_tagFormat__P3901_mk(s);
- r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3);
- s.tmp_4.arg0 = r0;
- s.callLocIdx = 21; s.pc = 12; return s.tmp_4;
- case 12:
- r0 = s.retval;
- s.fmt___27008 = (r0);
- r0 = (s.fmt___27008 === null);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_1 = r0 = s.arg0;
- r0 = (s.arg1 - 1);
- s.tmp_2 = r0;
- r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2);
- s.v___27017 = (r0);
- r0 = (-31 <= s.v___27017);
- 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___27017 <= 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___27001, s.v___27017);
- { step = 5; continue; }
- case 4:
- r0 = null;
- { step = 11; continue; }
- case 5:
- { step = 7; continue; }
- case 6:
- s.tmp_0 = r0 = s.res___27001;
- r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___27008, 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__P165_mk(s);
- s.tmp_2.arg0 = s.fmt___27008;
- s.callLocIdx = 22; s.pc = 13; return s.tmp_2;
- case 13:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0 + s.tmp_1);
- s.arg1 = (r0);
- case 7:
- case 8:
- r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1);
- s.tmp_1 = r0;
- r0 = (s.tmp_1 === 193);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 9; continue; }
- r0 = (s.arg1 + 1);
- s.arg1 = (r0);
- { step = 8; continue; }
- case 9:
- { step = 1; continue; }
- case 10:
- r0 = s.res___27001;
- case 11:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-msgpack_unpackNumberArray__P173.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]}
+tileworld_RuleVisualsBase_cursorMove__P72694.info = {"start":5284,"length":69,"line":139,"column":8,"endLine":139,"endColumn":77,"fileName":"rulesBase.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function msgpack_unpackNumberArray__P173_mk(s) {
+function tileworld_RuleVisualsBase_cursorMove__P72694_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: msgpack_unpackNumberArray__P173, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_cursorMove__P72694, depth: s.depth + 1,
pc: 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___27001: undefined,
- fmt___27008: undefined,
- v___27017: undefined,
arg0: undefined,
arg1: undefined,
+ arg2: undefined,
} }
-function tileworld_bufferToImage__P3543(s) {
+function tileworld_RuleVisualsBase_okToMove__P72682(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61626,108 +59512,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.width___6327 = undefined;
- s.height___6332 = undefined;
- s.index___6337 = undefined;
- s.img___6338 = undefined;
- s.x___6343 = undefined;
- s.y___6344 = undefined;
- s.pair___6350 = undefined;
- s.pixel___6356 = undefined;
- s.len___6359 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 0);
- s.width___6327 = (r0);
- r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 1);
- s.height___6332 = (r0);
- s.index___6337 = (2);
- r0 = pxsim.image.create(s.width___6327, s.height___6332);
- s.img___6338 = (r0);
- s.x___6343 = (0);
- s.y___6344 = (0);
- case 1:
- s.tmp_1 = r0 = s.index___6337;
- r0 = pxsim.BufferMethods.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 < s.tmp_2);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 6; continue; }
- s.tmp_3 = r0 = s.index___6337;
- r0 = (s.tmp_3 + 1);
- s.index___6337 = (r0);
- r0 = pxsim.BufferMethods.getUint8(s.arg0, s.tmp_3);
- s.pair___6350 = (r0);
- r0 = (s.pair___6350 & 15);
- s.pixel___6356 = (r0);
- r0 = (s.pair___6350 & 240);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
- s.len___6359 = (r0);
- case 2:
- r0 = (s.len___6359 > 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 5; continue; }
- r0 = pxsim_ImageMethods.setPixel(s.img___6338, s.x___6343, s.y___6344, s.pixel___6356);
- s.tmp_1 = r0 = s.y___6344;
- r0 = (s.height___6332 - 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 = 3; continue; }
- r0 = (s.x___6343 + 1);
- s.x___6343 = (r0);
- s.y___6344 = (0);
- { step = 4; continue; }
- case 3:
- r0 = (s.y___6344 + 1);
- s.y___6344 = (r0);
- case 4:
- r0 = (s.len___6359 - 1);
- s.len___6359 = (r0);
- { step = 2; continue; }
- case 5:
- { step = 1; continue; }
- case 6:
- s.tmp_0 = control_assert__P319_mk(s);
- s.tmp_1 = r0 = s.index___6337;
- r0 = pxsim.BufferMethods.length(s.arg0);
- s.tmp_2 = r0;
- r0 = (s.tmp_1 == s.tmp_2);
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 54;
- s.callLocIdx = 71; s.pc = 7; return s.tmp_0;
- case 7:
- r0 = s.retval;
- r0 = s.img___6338;
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ r0 = true;
return leave(s, r0)
default: oops()
} } }
-tileworld_bufferToImage__P3543.info = {"start":3843,"length":694,"line":108,"column":4,"endLine":127,"endColumn":5,"fileName":"utilities.ts","functionName":"bufferToImage","argumentNames":["buf"]}
+tileworld_RuleVisualsBase_okToMove__P72682.info = {"start":3641,"length":37,"line":90,"column":8,"endLine":90,"endColumn":45,"fileName":"rulesBase.ts","functionName":"okToMove","argumentNames":["this"]}
-function tileworld_bufferToImage__P3543_mk(s) {
+function tileworld_RuleVisualsBase_okToMove__P72682_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_bufferToImage__P3543, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_okToMove__P72682, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- width___6327: undefined,
- height___6332: undefined,
- index___6337: undefined,
- img___6338: undefined,
- x___6343: undefined,
- y___6344: undefined,
- pair___6350: undefined,
- pixel___6356: undefined,
- len___6359: undefined,
arg0: undefined,
} }
@@ -61735,7 +59536,7 @@ function tileworld_bufferToImage__P3543_mk(s) {
-function tileworld_settingsReadBuffer__P8685(s) {
+function tileworld_RuleVisualsBase_moveInX__P72679(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61745,71 +59546,152 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___8689 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 3);
- pxsim_String__stringConv(s.arg0);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg0) + ""; }
- case 3:
- r0 = s.retval;
- s.tmp_1 = r0;
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 4);
- pxsim_String__stringConv(s.arg1);
- checkResumeConsumed();
- return;
- } else { s.retval = (s.arg1) + ""; }
- case 4:
+ r0 = s.arg0;
+ if (!checkSubtype(r0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(r0);
+ s.tmp_3 = tileworld_RuleVisualsBase__C63781_v1_1_mk(s);
+ s.tmp_3.arg0 = s.arg0;
+ if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
+ s.pc = 12; return s.tmp_3;
+ case 12:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_String__concat(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.settings._get(s.tmp_0);
- s.buf___8689 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_0 = tileworld_outputKeyBuffer__P8551_mk(s);
+ { step = 11; continue; }
+ case 1:
+ case 2:
+ r0 = (s.arg1 == 0);
+ s.tmp_4 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_4);
+ if (r0) { step = 3; continue; }
+ r0 = s.tmp_4;
+ { step = 4; continue; }
+ case 3:
+ s.tmp_6 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_6.arg0 = s.arg0;
+ s.tmp_6.arg1 = true;
+ s.callLocIdx = 666; s.pc = 13; return s.tmp_6;
+ case 13:
+ r0 = s.retval;
+ s.tmp_5 = r0;
+ r0 = (s.tmp_5 > 0);
+ case 4:
+ // jmp value (already in r0)
+ s.tmp_7 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_7);
+ if (!r0) { step = 5; continue; }
+ r0 = s.tmp_7;
+ { step = 8; continue; }
+ case 5:
+ r0 = (s.arg1 == 2);
+ s.tmp_8 = r0;
+ r0 = pxsim_numops_toBool(s.tmp_8);
+ if (r0) { step = 6; continue; }
+ r0 = s.tmp_8;
+ { step = 7; continue; }
+ case 6:
+ s.tmp_10 = tileworld_RuleVisualsBase_col__P72686_mk(s);
+ s.tmp_10.arg0 = s.arg0;
+ s.tmp_10.arg1 = true;
+ s.callLocIdx = 667; s.pc = 14; return s.tmp_10;
+ case 14:
+ r0 = s.retval;
+ s.tmp_9 = r0;
+ r0 = (s.tmp_9 < 9);
+ case 7:
+ // jmp value (already in r0)
+ s.tmp_11 = r0;
+ r0 = s.tmp_11;
+ case 8:
+ // jmp value (already in r0)
+ s.tmp_12 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_12);
+ if (!r0) { step = 9; continue; }
+ s.tmp_13 = Sprite_x__P62018_mk(s);
+ r0 = s.arg0.fields["cursor"];
+ s.tmp_14 = r0;
+ s.tmp_13.arg0 = r0;
+ s.tmp_16 = Sprite_x__P62017_mk(s);
+ s.tmp_16.arg0 = s.tmp_14;
+ s.callLocIdx = 669; s.pc = 16; return s.tmp_16;
+ case 16:
+ r0 = s.retval;
+ s.tmp_15 = r0;
+ s.tmp_19 = tileworld_moveXdelta__P63615_mk(s);
+ s.tmp_19.arg0 = s.arg1;
+ s.callLocIdx = 668; s.pc = 17; return s.tmp_19;
+ case 17:
+ r0 = s.retval;
+ s.tmp_18 = r0;
+ r0 = (16 * s.tmp_18);
+ s.tmp_17 = r0;
+ r0 = (s.tmp_15 + s.tmp_17);
+ s.tmp_13.arg1 = r0;
+ s.callLocIdx = 670; s.pc = 15; return s.tmp_13;
+ case 15:
+ r0 = s.retval;
+ case 9:
+ case 10:
+ s.tmp_0 = tileworld_RuleVisualsBase__C63781_v2_3_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.buf___8689;
- s.callLocIdx = 237; s.pc = 5; return s.tmp_0;
- case 5:
+ s.tmp_0.arg2 = true;
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C63781_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
+ s.pc = 18; return s.tmp_0;
+ case 18:
r0 = s.retval;
- case 1:
- case 2:
- r0 = s.buf___8689;
+ case 11:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_settingsReadBuffer__P8685.info = {"start":8955,"length":207,"line":244,"column":4,"endLine":248,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadBuffer","argumentNames":["prefix","key","output"]}
+tileworld_RuleVisualsBase_moveInX__P72679.info = {"start":2932,"length":303,"line":68,"column":8,"endLine":74,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveInX","argumentNames":["this","dir"]}
-function tileworld_settingsReadBuffer__P8685_mk(s) {
+function tileworld_RuleVisualsBase_moveInX__P72679_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_settingsReadBuffer__P8685, depth: s.depth + 1,
+ parent: s, fn: tileworld_RuleVisualsBase_moveInX__P72679, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- buf___8689: undefined,
+ tmp_3: undefined,
+ tmp_4: undefined,
+ tmp_5: undefined,
+ tmp_6: undefined,
+ tmp_7: undefined,
+ tmp_8: undefined,
+ tmp_9: undefined,
+ tmp_10: undefined,
+ tmp_11: undefined,
+ tmp_12: undefined,
+ tmp_13: undefined,
+ tmp_14: undefined,
+ tmp_15: undefined,
+ tmp_16: undefined,
+ tmp_17: undefined,
+ tmp_18: undefined,
+ tmp_19: undefined,
arg0: undefined,
arg1: undefined,
- arg2: undefined,
} }
-function tileworld_outputKeyBuffer__P8551(s) {
+function createPacMan__P63837(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -61819,503 +59701,503 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.chunk___8574 = undefined;
- s.str___8575 = undefined;
- s.i___8576 = undefined;
- s.byte___8582 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
s.lambdaArgs = null;
}
- s.tmp_0 = console_log__P366_mk(s);
- r0 = pxsim.BufferMethods.length(s.arg2);
- s.tmp_3 = r0;
- r0 = pxsim_numops.toString(s.tmp_3);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
+ r0 = s.retval;
s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
+ r0 = pxsim_String__concat(s.tmp_2, "VersionS");
+ s.tmp_1 = r0;
+ r0 = pxsim.settings._exists(s.tmp_1);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
+ case 2:
+ s.tmp_3 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
setupResume(s, 6);
- pxsim_String__stringConv(s.tmp_2);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = "4.0.0";
+ s.callLocIdx = 1566; s.pc = 5; return s.tmp_3;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79179;
+ s.callLocIdx = 1567; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 10:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79187;
+ s.callLocIdx = 1568; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1569; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79201;
+ s.callLocIdx = 1570; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79209;
+ s.callLocIdx = 1571; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ 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_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79217;
+ s.callLocIdx = 1572; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79225;
+ s.callLocIdx = 1573; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1574; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 6:
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat("// buffer length = ", s.tmp_1);
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 228; s.pc = 5; return s.tmp_0;
- case 5:
+ s.tmp_0.arg1 = _hex79239;
+ s.callLocIdx = 1575; s.pc = 23; return s.tmp_0;
+ case 23:
r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.arg1);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.arg1) + ""; }
- case 8:
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
r0 = s.retval;
- s.tmp_3 = r0;
- r0 = pxsim_String__concat("settings.writeBuffer(prefix+\"", s.tmp_3);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 9);
- pxsim_String__stringConv(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79247;
+ s.callLocIdx = 1576; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 9:
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "\", hex`");
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 229; s.pc = 7; return s.tmp_0;
- case 7:
+ s.tmp_0.arg1 = _hex79255;
+ s.callLocIdx = 1577; s.pc = 27; return s.tmp_0;
+ case 27:
r0 = s.retval;
- s.chunk___8574 = (40);
- r0 = pxsim_String_.mkEmpty();
- s.str___8575 = (r0);
- s.i___8576 = (0);
- case 1:
- s.tmp_1 = r0 = s.i___8576;
- r0 = pxsim.BufferMethods.length(s.arg2);
- 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.BufferMethods.getUint8(s.arg2, s.i___8576);
- s.byte___8582 = (r0);
- if ((s.str___8575) && (s.str___8575).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.str___8575);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.str___8575) + ""; }
- case 10:
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
r0 = s.retval;
- s.tmp_0 = r0;
- s.tmp_5 = r0 = globals.toHex___8549;
- r0 = (s.byte___8582 & 240);
- s.tmp_7 = r0;
- r0 = (s.tmp_7 >> 4);
- s.tmp_6 = r0;
- r0 = pxsim_String_.charAt(s.tmp_5, s.tmp_6);
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 11);
- pxsim_String__stringConv(s.tmp_4);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79263;
+ s.callLocIdx = 1578; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 11:
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
r0 = s.retval;
- s.tmp_3 = r0;
- s.tmp_10 = r0 = globals.toHex___8549;
- r0 = (s.byte___8582 & 15);
- s.tmp_11 = r0;
- r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11);
- s.tmp_9 = r0;
- if ((s.tmp_9) && (s.tmp_9).vtable) {
- setupResume(s, 12);
- pxsim_String__stringConv(s.tmp_9);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1579; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_9) + ""; }
- case 12:
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 13);
- pxsim_String__stringConv(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 1540;
+ s.callLocIdx = 1580; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 13:
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_0, s.tmp_1);
- s.str___8575 = (r0);
- r0 = (s.chunk___8574 - 1);
- s.chunk___8574 = (r0);
- r0 = (s.chunk___8574 == 0);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 2; continue; }
- s.tmp_1 = console_log__P366_mk(s);
- s.tmp_1.arg0 = s.str___8575;
- s.callLocIdx = 230; s.pc = 14; return s.tmp_1;
- case 14:
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79283;
+ s.callLocIdx = 1581; s.pc = 35; return s.tmp_0;
+ case 35:
r0 = s.retval;
- s.chunk___8574 = (40);
- r0 = pxsim_String_.mkEmpty();
- s.str___8575 = (r0);
- case 2:
- case 3:
- r0 = (s.i___8576 + 1);
- s.i___8576 = (r0);
- { step = 1; continue; }
- case 4:
- s.tmp_0 = console_log__P366_mk(s);
- if ((s.str___8575) && (s.str___8575).vtable) {
- setupResume(s, 16);
- pxsim_String__stringConv(s.str___8575);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.str___8575) + ""; }
- case 16:
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "`);");
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 231; s.pc = 15; return s.tmp_0;
- case 15:
+ s.tmp_0.arg1 = _hex79291;
+ s.callLocIdx = 1582; s.pc = 37; return s.tmp_0;
+ case 37:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_outputKeyBuffer__P8551.info = {"start":7861,"length":578,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"project.ts","functionName":"outputKeyBuffer","argumentNames":["prefix","key","val"]}
-
-function tileworld_outputKeyBuffer__P8551_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_outputKeyBuffer__P8551, depth: s.depth + 1,
- pc: 0, retval: undefined, 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,
- chunk___8574: undefined,
- str___8575: undefined,
- i___8576: undefined,
- byte___8582: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
-} }
-
-
-
-
-
-function tileworld_settingsReadString__P8654(s) {
-let r0 = s.r0, 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.val___8658 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- s.tmp_0 = settings_readString__P1829_mk(s);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
if ((s.arg0) && (s.arg0).vtable) {
- setupResume(s, 4);
+ setupResume(s, 40);
pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
} else { s.retval = (s.arg0) + ""; }
- case 4:
+ case 40:
r0 = s.retval;
s.tmp_1 = r0;
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 5);
- pxsim_String__stringConv(s.arg1);
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79299;
+ s.callLocIdx = 1583; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.arg1) + ""; }
- case 5:
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_String__concat(s.tmp_1, s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 234; s.pc = 3; return s.tmp_0;
- case 3:
+ s.tmp_0.arg1 = _hex79307;
+ s.callLocIdx = 1584; s.pc = 41; return s.tmp_0;
+ case 41:
r0 = s.retval;
- s.val___8658 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.arg2);
- if (!r0) { step = 1; continue; }
- s.tmp_0 = console_log__P366_mk(s);
- if ((s.arg1) && (s.arg1).vtable) {
- setupResume(s, 7);
- pxsim_String__stringConv(s.arg1);
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.arg1) + ""; }
- case 7:
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
r0 = s.retval;
- s.tmp_7 = r0;
- r0 = pxsim_String__concat("settings.writeString(prefix+\"", s.tmp_7);
- s.tmp_6 = r0;
- if ((s.tmp_6) && (s.tmp_6).vtable) {
- setupResume(s, 8);
- pxsim_String__stringConv(s.tmp_6);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79315;
+ s.callLocIdx = 1585; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_6) + ""; }
- case 8:
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = pxsim_String__concat(s.tmp_5, "\",\"");
- s.tmp_4 = r0;
- if ((s.tmp_4) && (s.tmp_4).vtable) {
- setupResume(s, 9);
- pxsim_String__stringConv(s.tmp_4);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79323;
+ s.callLocIdx = 1586; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_4) + ""; }
- case 9:
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
r0 = s.retval;
- s.tmp_3 = r0;
- if ((s.val___8658) && (s.val___8658).vtable) {
- setupResume(s, 10);
- pxsim_String__stringConv(s.val___8658);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79331;
+ s.callLocIdx = 1587; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.val___8658) + ""; }
- case 10:
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
r0 = s.retval;
- s.tmp_8 = r0;
- r0 = pxsim_String__concat(s.tmp_3, s.tmp_8);
- s.tmp_2 = r0;
- if ((s.tmp_2) && (s.tmp_2).vtable) {
- setupResume(s, 11);
- pxsim_String__stringConv(s.tmp_2);
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79339;
+ s.callLocIdx = 1588; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 52);
+ pxsim_String__stringConv(s.arg0);
checkResumeConsumed();
return;
- } else { s.retval = (s.tmp_2) + ""; }
- case 11:
+ } else { s.retval = (s.arg0) + ""; }
+ case 52:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = pxsim_String__concat(s.tmp_1, "\");");
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
s.tmp_0.arg0 = r0;
- s.callLocIdx = 235; s.pc = 6; return s.tmp_0;
- case 6:
+ s.tmp_0.arg1 = _hex79347;
+ s.callLocIdx = 1589; s.pc = 51; return s.tmp_0;
+ case 51:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 54);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 54:
r0 = s.retval;
- case 1:
- case 2:
- r0 = s.val___8658;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_settingsReadString__P8654.info = {"start":8700,"length":249,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadString","argumentNames":["prefix","key","output"]}
-
-function tileworld_settingsReadString__P8654_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_settingsReadString__P8654, depth: s.depth + 1,
- pc: 0, retval: undefined, 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,
- val___8658: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
-} }
-
-
-
-
-
-function settings_readString__P1829(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- s.buf___26970 = undefined;
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.lambdaArgs = null;
- }
- r0 = pxsim.settings._get(s.arg0);
- s.buf___26970 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.buf___26970);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- r0 = undefined;
- { step = 3; continue; }
- { step = 2; continue; }
- case 1:
- r0 = pxsim.BufferMethods.toString(s.buf___26970);
- { step = 3; continue; }
- case 2:
- r0 = undefined;
- case 3:
- return leave(s, r0)
- default: oops()
-} } }
-settings_readString__P1829.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]}
-
-function settings_readString__P1829_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: settings_readString__P1829, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- buf___26970: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleVisualsBase_row__P12695(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 1; continue; }
- s.tmp_2 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_2.arg0 = r0;
- s.callLocIdx = 682; s.pc = 3; return s.tmp_2;
- case 3:
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79355;
+ s.callLocIdx = 1590; s.pc = 53; return s.tmp_0;
+ case 53:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 56);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 56:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 - 6);
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
- { step = 2; continue; }
- case 1:
- s.tmp_5 = Sprite_y__P2024_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_5.arg0 = r0;
- s.callLocIdx = 683; s.pc = 4; return s.tmp_5;
- case 4:
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79363;
+ s.callLocIdx = 1591; s.pc = 55; return s.tmp_0;
+ case 55:
r0 = s.retval;
- s.tmp_4 = r0;
- r0 = (s.tmp_4 - 6);
- s.tmp_3 = r0;
- r0 = (s.tmp_3 >> 4);
- case 2:
- // jmp value (already in r0)
- s.tmp_6 = r0;
- r0 = s.tmp_6;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleVisualsBase_row__P12695.info = {"start":4214,"length":135,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"rulesBase.ts","functionName":"row","argumentNames":["this","curr"]}
-
-function tileworld_RuleVisualsBase_row__P12695_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleVisualsBase_row__P12695, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleVisualsBase_col__P12694(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(s.arg1);
- if (!r0) { step = 1; continue; }
- s.tmp_1 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_1.arg0 = r0;
- s.callLocIdx = 680; s.pc = 3; return s.tmp_1;
- case 3:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 58);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 58:
r0 = s.retval;
- s.tmp_0 = r0;
- r0 = (s.tmp_0 >> 4);
- { step = 2; continue; }
- case 1:
- s.tmp_3 = Sprite_x__P2022_mk(s);
- r0 = s.arg0.fields["tileSaved"];
- s.tmp_3.arg0 = r0;
- s.callLocIdx = 681; s.pc = 4; return s.tmp_3;
- case 4:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79371;
+ s.callLocIdx = 1592; s.pc = 57; return s.tmp_0;
+ case 57:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = (s.tmp_2 >> 4);
- case 2:
- // jmp value (already in r0)
- s.tmp_4 = r0;
- r0 = s.tmp_4;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 60);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 60:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB12");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79379;
+ s.callLocIdx = 1593; s.pc = 59; return s.tmp_0;
+ case 59:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 62);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 62:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1594; s.pc = 61; return s.tmp_0;
+ case 61:
+ r0 = s.retval;
+ case 3:
+ r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_col__P12694.info = {"start":4087,"length":117,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"rulesBase.ts","functionName":"col","argumentNames":["this","curr"]}
+createPacMan__P63837.info = {"start":20362,"length":4569,"line":479,"column":0,"endLine":579,"endColumn":1,"fileName":"games.ts","functionName":"createPacMan","argumentNames":["prefix"]}
-function tileworld_RuleVisualsBase_col__P12694_mk(s) {
+function createPacMan__P63837_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_col__P12694, depth: s.depth + 1,
+ parent: s, fn: createPacMan__P63837, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -62323,62 +60205,36 @@ function tileworld_RuleVisualsBase_col__P12694_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function controller_Button_onEvent__P1907(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null;
-switch (step) {
- case 0:
-
- if (s.lambdaArgs) {
- s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
- s.arg2 = (s.lambdaArgs[2]);
- s.lambdaArgs = null;
- }
- r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
- s.tmp_0 = control_onEvent__P377_mk(s);
- s.tmp_0.arg0 = s.arg1;
- r0 = s.arg0.fields["id"];
- s.tmp_0.arg1 = r0;
- s.tmp_0.arg2 = s.arg2;
- s.tmp_0.arg3 = 16;
- s.callLocIdx = 152; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-controller_Button_onEvent__P1907.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]}
-
-function controller_Button_onEvent__P1907_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: controller_Button_onEvent__P1907, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
} }
+const _hex79179 = pxsim.BufferMethods.createBufferFromHex("201880111012b021106110111011101110311031102110112011101110111011101110111031101110211011201110113011301130111011102110f13110111021101120115011301110113011102110112031107110311011102110411031101310111031103110214011301133113011301110211041103110131011103110311021101120311071103110111021101120115011301110113011102110f13110111021101120111011301130113011101110211011201110111011101110111011103110111021106110111011101110311031102180111012101190f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f121")
+const _hex79187 = pxsim.BufferMethods.createBufferFromHex("2018ffaf613f113f311f314f112f111f113f113f111f311f114f112f111f113f113f113f111f114ff1311f114f112f115f113f111f113f114f112f316f211f311f114f411f212f123f311f317f114f121f124f103f114f411f212f123f311f314f112f316f211f311f114f112f115f113f111f113f114ff1311f114f112f111f113f113f113f111f114f112f111f113f113f111f311f114f613f113f311f31ffffffffffffffffffffffffffffffffffffffffffffffffffcf")
+const _hex79201 = pxsim.BufferMethods.createBufferFromHex("1010ff4fa85f18af183f183f683f182f182f186f182f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f182f186f182f182f183f683f183f18af185fa8ff4f")
+const _hex79209 = pxsim.BufferMethods.createBufferFromHex("1010ffffffffffffffffffffffffffffffffff1f")
+const _hex79217 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
+const _hex79225 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex79239 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e152f142e3f302f1e152f251d1e1512144f121e151f1e251d141512143f12131e151f1e142d14351f101f221e151f1e142d14351f102f121e151f1e251d141512142f102f1e152f251d1e1512142f103f1e152f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
+const _hex79247 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0d025d045c045d025f0f0f0f0f0f0d0")
+const _hex79255 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
+const _hex79263 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
+const _hex79283 = pxsim.BufferMethods.createBufferFromHex("2016220801160002")
+const _hex79291 = pxsim.BufferMethods.createBufferFromHex("222622000112234100060004")
+const _hex79299 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402")
+const _hex79307 = pxsim.BufferMethods.createBufferFromHex("202022200146210400060300050202000002")
+const _hex79315 = pxsim.BufferMethods.createBufferFromHex("002022200146230400060300050202000000")
+const _hex79323 = pxsim.BufferMethods.createBufferFromHex("002022200116210400060000")
+const _hex79331 = pxsim.BufferMethods.createBufferFromHex("2146220010121201000623040006320100060002")
+const _hex79339 = pxsim.BufferMethods.createBufferFromHex("2146220010122301000612010006320400060003")
+const _hex79347 = pxsim.BufferMethods.createBufferFromHex("212622001014120400060001")
+const _hex79355 = pxsim.BufferMethods.createBufferFromHex("2146220010123201000623010006120400060001")
+const _hex79363 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060002")
+const _hex79371 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060003")
+const _hex79379 = pxsim.BufferMethods.createBufferFromHex("222622001012230001060401")
-function controller_setRepeatDefault__P1913(s) {
+function settings_exists__P61829(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -62390,31 +60246,27 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- globals.defaultRepeatDelay___4108 = (s.arg0);
- globals.defaultRepeatInterval___4110 = (s.arg1);
- r0 = undefined;
+ r0 = pxsim.settings._exists(s.arg0);
return leave(s, r0)
default: oops()
} } }
-controller_setRepeatDefault__P1913.info = {"start":6423,"length":151,"line":200,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"setRepeatDefault","argumentNames":["delay","interval"]}
+settings_exists__P61829.info = {"start":3828,"length":71,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"exists","argumentNames":["key"]}
-function controller_setRepeatDefault__P1913_mk(s) {
+function settings_exists__P61829_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_setRepeatDefault__P1913, depth: s.depth + 1,
+ parent: s, fn: settings_exists__P61829, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
- arg1: undefined,
} }
-function tileworld_RuleVisualsBase_constructor__P3785(s) {
+function createSokoban__P63839(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -62426,433 +60278,436 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = (s.arg0).fields["p"] = (s.arg1);
- s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 635; s.pc = 1; return s.tmp_0;
- case 1:
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim.image.create(10, 7);
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["ruleTypeMap"] = (s.tmp_1);
- s.tmp_0 = r0 = s.arg0;
- r0 = pxsim.image.create(10, 7);
+ s.tmp_2 = r0;
+ r0 = pxsim_String__concat(s.tmp_2, "VersionS");
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["dirMap"] = (s.tmp_1);
- r0 = s.arg0.fields["ruleTypeMap"];
- s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- r0 = s.arg0.fields["dirMap"];
+ r0 = pxsim.settings._exists(s.tmp_1);
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorIn___3723;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 636; s.pc = 2; return s.tmp_2;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ { step = 3; continue; }
+ case 1:
case 2:
+ s.tmp_3 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 24;
- s.callLocIdx = 637; s.pc = 3; return s.tmp_0;
- case 3:
- r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 46;
- s.callLocIdx = 638; s.pc = 4; return s.tmp_0;
- case 4:
- r0 = s.retval;
- s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = globals.cursorOut___3724;
- s.callLocIdx = 639; s.pc = 5; return s.tmp_0;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = "4.0.0";
+ s.callLocIdx = 1596; s.pc = 5; return s.tmp_3;
case 5:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorIn___3723;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 640; s.pc = 6; return s.tmp_2;
- case 6:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 8:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["helpCursor"] = (s.tmp_1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["helpCursor"];
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 641; s.pc = 7; return s.tmp_0;
+ s.tmp_0.arg1 = _hex79618;
+ s.callLocIdx = 1597; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
- s.tmp_2.arg0 = globals.cursorOut___3724;
- s.tmp_2.arg1 = undefined;
- s.callLocIdx = 642; s.pc = 8; return s.tmp_2;
- case 8:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 10:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["tileSaved"] = (s.tmp_1);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
- r0 = s.arg0.fields["tileSaved"];
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = 128;
- s.tmp_0.arg2 = true;
- s.callLocIdx = 643; s.pc = 9; return s.tmp_0;
+ s.tmp_0.arg1 = _hex79626;
+ s.callLocIdx = 1598; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12766);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 645; s.pc = 10; return s.tmp_1;
- case 10:
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12772);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 647; s.pc = 11; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1599; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12778);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 648; s.pc = 12; return s.tmp_1;
- case 12:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12787);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 650; s.pc = 13; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79640;
+ s.callLocIdx = 1600; s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12793);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 652; s.pc = 14; return s.tmp_1;
- case 14:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12799);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 653; s.pc = 15; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79648;
+ s.callLocIdx = 1601; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12808);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 655; s.pc = 16; return s.tmp_1;
- case 16:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ 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;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12813);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 657; s.pc = 17; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79656;
+ s.callLocIdx = 1602; s.pc = 17; return s.tmp_0;
case 17:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12818);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 658; s.pc = 18; return s.tmp_1;
- case 18:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12827);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2049;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 660; s.pc = 19; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79664;
+ s.callLocIdx = 1603; s.pc = 19; return s.tmp_0;
case 19:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12832);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2054;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 662; s.pc = 20; return s.tmp_1;
- case 20:
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P12837);
- s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
- s.tmp_1.arg1 = 2048;
- s.tmp_1.arg2 = s.tmp_0;
- s.callLocIdx = 663; s.pc = 21; return s.tmp_1;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1604; s.pc = 21; return s.tmp_0;
case 21:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleVisualsBase_constructor__P3785.info = {"start":650,"length":2272,"line":24,"column":8,"endLine":66,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this","p"]}
-
-function tileworld_RuleVisualsBase_constructor__P3785_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleVisualsBase_constructor__P3785, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- arg0: undefined,
- arg1: undefined,
-} }
-
-
-
-
-
-function inline__P12766(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 0;
- s.callLocIdx = 644; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12766.info = {"start":1393,"length":38,"line":42,"column":67,"endLine":42,"endColumn":105,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12766_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12766, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12772(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s);
- s.tmp_0.arg0 = s.caps[0];
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79678;
+ s.callLocIdx = 1605; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79686;
+ s.callLocIdx = 1606; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79694;
+ s.callLocIdx = 1607; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79702;
+ s.callLocIdx = 1608; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = 0;
- s.callLocIdx = 646; s.pc = 1; return s.tmp_0;
- case 1:
+ s.callLocIdx = 1609; s.pc = 31; return s.tmp_0;
+ case 31:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12772.info = {"start":1503,"length":38,"line":43,"column":68,"endLine":43,"endColumn":106,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12772_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12772, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12778(s) {
-let r0 = s.r0, 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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 4; return s.tmp_3;
- case 4:
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = undefined;
+ s.callLocIdx = 1610; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79723;
+ s.callLocIdx = 1611; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79731;
+ s.callLocIdx = 1612; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79739;
+ s.callLocIdx = 1613; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79747;
+ s.callLocIdx = 1614; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79755;
+ s.callLocIdx = 1615; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79763;
+ s.callLocIdx = 1616; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79771;
+ s.callLocIdx = 1617; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = 0;
- s.tmp_4.arg2 = false;
- if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0);
- s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
- s.pc = 5; return s.tmp_4;
- case 5:
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1618; s.pc = 49; return s.tmp_0;
+ case 49:
r0 = s.retval;
case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12778.info = {"start":1612,"length":127,"line":44,"column":68,"endLine":47,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
+createSokoban__P63839.info = {"start":28640,"length":3571,"line":670,"column":0,"endLine":748,"endColumn":1,"fileName":"games.ts","functionName":"createSokoban","argumentNames":["prefix"]}
-function inline__P12778_mk(s) {
+function createSokoban__P63839_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12778, depth: s.depth + 1,
+ parent: s, fn: createSokoban__P63839, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ arg0: undefined,
} }
+const _hex79618 = pxsim.BufferMethods.createBufferFromHex("2018118041b011101210123110e13011302110e120311011121110e1204112111210e12021124110e170121110e1105140e110f18110f18110f18110f18120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
+const _hex79626 = pxsim.BufferMethods.createBufferFromHex("2018ffff11ff4f10ff8f113f13ff5f211f11ff8f11ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf")
+const _hex79640 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
+const _hex79648 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
+const _hex79656 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f176c4f3c1f375c7f573c8f572c8f2c375f1c4f4c175f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
+const _hex79664 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex79678 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
+const _hex79686 = pxsim.BufferMethods.createBufferFromHex("1010f020ee20ee202e844e202e745e202e643e142e202e543e242e202e443e342e202e343e442e202e243e542e202e143e642e205e742e205e742e20ee20eef020")
+const _hex79694 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
+const _hex79702 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
+const _hex79723 = pxsim.BufferMethods.createBufferFromHex("2026220001162314cc060002")
+const _hex79731 = pxsim.BufferMethods.createBufferFromHex("2026220001162300441600020002")
+const _hex79739 = pxsim.BufferMethods.createBufferFromHex("322622004413320144060004")
+const _hex79747 = pxsim.BufferMethods.createBufferFromHex("322622000113320044060004")
+const _hex79755 = pxsim.BufferMethods.createBufferFromHex("61102220042603000203")
+const _hex79763 = pxsim.BufferMethods.createBufferFromHex("61102208402603000201")
+const _hex79771 = pxsim.BufferMethods.createBufferFromHex("6310220004160400")
-function inline__P12787(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 649; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12787.info = {"start":1810,"length":39,"line":48,"column":68,"endLine":48,"endColumn":107,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12787_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12787, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12793(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.tmp_0.arg1 = 2;
- s.callLocIdx = 651; s.pc = 1; return s.tmp_0;
- case 1:
- r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12793.info = {"start":1921,"length":39,"line":49,"column":69,"endLine":49,"endColumn":108,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12793_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12793, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12799(s) {
+function createBoulderDash__P63832(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -62862,306 +60717,574 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 4; return s.tmp_3;
+ if (s.lambdaArgs) {
+ s.arg0 = (s.lambdaArgs[0]);
+ s.lambdaArgs = null;
+ }
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 4:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = pxsim_String__concat(s.tmp_2, "VersionS");
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = pxsim.settings._exists(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
{ step = 3; continue; }
case 1:
case 2:
- s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = 2;
- s.tmp_4.arg2 = false;
- if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0);
- s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
- s.pc = 5; return s.tmp_4;
+ s.tmp_3 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = "4.0.0";
+ s.callLocIdx = 1481; s.pc = 5; return s.tmp_3;
case 5:
r0 = s.retval;
- case 3:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12799.info = {"start":2032,"length":128,"line":50,"column":69,"endLine":53,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12799_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12799, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
-} }
-
-
-
-
-
-function inline__P12808(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveUp__P12688_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 654; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 8:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12808.info = {"start":2228,"length":19,"line":54,"column":65,"endLine":54,"endColumn":84,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12808_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12808, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12813(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveUp__P12688_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 656; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78208;
+ s.callLocIdx = 1482; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 10:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78216;
+ s.callLocIdx = 1483; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1484; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78230;
+ s.callLocIdx = 1485; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78238;
+ s.callLocIdx = 1486; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ 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_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78246;
+ s.callLocIdx = 1487; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78254;
+ s.callLocIdx = 1488; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1489; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78268;
+ s.callLocIdx = 1490; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78276;
+ s.callLocIdx = 1491; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78284;
+ s.callLocIdx = 1492; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78292;
+ s.callLocIdx = 1493; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1494; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = NaN;
+ s.callLocIdx = 1495; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78313;
+ s.callLocIdx = 1496; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78321;
+ s.callLocIdx = 1497; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78329;
+ s.callLocIdx = 1498; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78337;
+ s.callLocIdx = 1499; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78345;
+ s.callLocIdx = 1500; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78353;
+ s.callLocIdx = 1501; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78361;
+ s.callLocIdx = 1502; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78369;
+ s.callLocIdx = 1503; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 52);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 52:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78377;
+ s.callLocIdx = 1504; s.pc = 51; return s.tmp_0;
+ case 51:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 54);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 54:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78385;
+ s.callLocIdx = 1505; s.pc = 53; return s.tmp_0;
+ case 53:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 56);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 56:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB13");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78393;
+ s.callLocIdx = 1506; s.pc = 55; return s.tmp_0;
+ case 55:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 58);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 58:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78401;
+ s.callLocIdx = 1507; s.pc = 57; return s.tmp_0;
+ case 57:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12813.info = {"start":2316,"length":19,"line":55,"column":66,"endLine":55,"endColumn":85,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12813_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12813, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12818(s) {
-let r0 = s.r0, 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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 4; return s.tmp_3;
- case 4:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 60);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 60:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = 1;
- s.tmp_4.arg2 = false;
- if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0);
- s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
- s.pc = 5; return s.tmp_4;
- case 5:
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB12");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78409;
+ s.callLocIdx = 1508; s.pc = 59; return s.tmp_0;
+ case 59:
r0 = s.retval;
- case 3:
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12818.info = {"start":2404,"length":125,"line":56,"column":66,"endLine":59,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12818_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12818, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- tmp_1: undefined,
- tmp_2: undefined,
- tmp_3: undefined,
- tmp_4: undefined,
-} }
-
-
-
-
-
-function inline__P12827(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveDown__P12689_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 659; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 62);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 62:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12827.info = {"start":2599,"length":21,"line":60,"column":67,"endLine":60,"endColumn":88,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12827_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12827, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12832(s) {
-let r0 = s.r0, 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 = tileworld_RuleVisualsBase_moveDown__P12689_mk(s);
- s.tmp_0.arg0 = s.caps[0];
- s.callLocIdx = 661; s.pc = 1; return s.tmp_0;
- case 1:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78417;
+ s.callLocIdx = 1509; s.pc = 61; return s.tmp_0;
+ case 61:
r0 = s.retval;
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-inline__P12832.info = {"start":2691,"length":21,"line":61,"column":68,"endLine":61,"endColumn":89,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
-
-function inline__P12832_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: inline__P12832, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
-} }
-
-
-
-
-
-function inline__P12837(s) {
-let r0 = s.r0, 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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.caps[0];
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 4; return s.tmp_3;
- case 4:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 64);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 64:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 3; continue; }
- case 1:
- case 2:
- s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_4.arg0 = s.caps[0];
- s.tmp_4.arg1 = 3;
- s.tmp_4.arg2 = false;
- if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0);
- s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove;
- s.pc = 5; return s.tmp_4;
- case 5:
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB14");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78425;
+ s.callLocIdx = 1510; s.pc = 63; return s.tmp_0;
+ case 63:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 66);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 66:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1511; s.pc = 65; return s.tmp_0;
+ case 65:
r0 = s.retval;
case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P12837.info = {"start":2783,"length":127,"line":62,"column":68,"endLine":65,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]}
+createBoulderDash__P63832.info = {"start":370,"length":4693,"line":16,"column":0,"endLine":119,"endColumn":1,"fileName":"games.ts","functionName":"createBoulderDash","argumentNames":["prefix"]}
-function inline__P12837_mk(s) {
+function createBoulderDash__P63832_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P12837, depth: s.depth + 1,
+ parent: s, fn: createBoulderDash__P63832, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
+ arg0: undefined,
} }
+const _hex78208 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f171204112f12120f17120f17120f171203122f121205132e1201132f13120f171203132f11120f17120f171205132e120322132e1205132e120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
+const _hex78216 = pxsim.BufferMethods.createBufferFromHex("2018ffffffffffffbf10ffffffffffff4f21ff9f2112ff2f1221ffffff2f2112ffffffffbf31ff1f21122f111211ff6f31ffffffffffffffffffffffffffffffffffffffffffffff6f")
+const _hex78230 = pxsim.BufferMethods.createBufferFromHex("1010fd181d363826181618161816181d2618361816181618161816181d1618163826181618161816181d1816281d28561816181d1816183d1876181d1816281d2876181d1618163886181d2618361866281d26181618164826381d2618161816181628261816181d2618161816182618261816181d2618161816182618261816181d261816181618162826381d48163866f828")
+const _hex78238 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex78246 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
+const _hex78254 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d")
+const _hex78268 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
+const _hex78276 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30")
+const _hex78284 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
+const _hex78292 = pxsim.BufferMethods.createBufferFromHex("10106057a01730373fb0271c111d1f408f1b1c1f302f5d1b1c1f211d1f101f1b513d1f1b1c1f201f611d1b1c1b1c111d2f812f1d3f101f811d111b3f101f811d213f101f812f1b3f201f611d1b1c1d3f201f1b513d3f402f5d1b1c1f807f1cc01f1c1b1f40")
+const _hex78313 = pxsim.BufferMethods.createBufferFromHex("20262200011623030c060002")
+const _hex78321 = pxsim.BufferMethods.createBufferFromHex("4120220014143210ff060003")
+const _hex78329 = pxsim.BufferMethods.createBufferFromHex("41202200141332103c060003")
+const _hex78337 = pxsim.BufferMethods.createBufferFromHex("222622000102230010140300")
+const _hex78345 = pxsim.BufferMethods.createBufferFromHex("414122001416320014042110ff063110ff060000")
+const _hex78353 = pxsim.BufferMethods.createBufferFromHex("322022001403320001160401")
+const _hex78361 = pxsim.BufferMethods.createBufferFromHex("6310220010160400")
+const _hex78369 = pxsim.BufferMethods.createBufferFromHex("21212200141232103c060003")
+const _hex78377 = pxsim.BufferMethods.createBufferFromHex("203122000116230004163305140600020002")
+const _hex78385 = pxsim.BufferMethods.createBufferFromHex("2016220001160102")
+const _hex78393 = pxsim.BufferMethods.createBufferFromHex("222122001412230554060004")
+const _hex78401 = pxsim.BufferMethods.createBufferFromHex("2031220001162300041633103c0600020003")
+const _hex78409 = pxsim.BufferMethods.createBufferFromHex("6110220001160102")
+const _hex78417 = pxsim.BufferMethods.createBufferFromHex("631022000106")
+const _hex78425 = pxsim.BufferMethods.createBufferFromHex("222122000112230004060004")
-function tileworld_RuleVisualsBase_moveDown__P12689(s) {
+function createSnake__P63833(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63175,93 +61298,446 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 6; return s.tmp_3;
- case 6:
+ s.tmp_0 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 2);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 2:
r0 = s.retval;
- s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
- s.tmp_0 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_0);
- if (!r0) { step = 1; continue; }
- { step = 5; continue; }
+ r0 = pxsim_String__concat(s.tmp_1, "VersionS");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = "4.0.0";
+ s.callLocIdx = 1512; s.pc = 1; return s.tmp_0;
case 1:
- case 2:
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = true;
- s.callLocIdx = 672; s.pc = 7; return s.tmp_6;
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78446;
+ s.callLocIdx = 1513; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78454;
+ s.callLocIdx = 1514; s.pc = 5; return s.tmp_0;
+ case 5:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 8:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1515; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 < 6);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 3; continue; }
- s.tmp_7 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_8 = r0;
- s.tmp_7.arg0 = r0;
- s.tmp_10 = Sprite_y__P2024_mk(s);
- s.tmp_10.arg0 = s.tmp_8;
- s.callLocIdx = 673; s.pc = 9; return s.tmp_10;
- case 9:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 10:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78468;
+ s.callLocIdx = 1516; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78476;
+ s.callLocIdx = 1517; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78484;
+ s.callLocIdx = 1518; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78492;
+ s.callLocIdx = 1519; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ 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_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1520; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78506;
+ s.callLocIdx = 1521; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78514;
+ s.callLocIdx = 1522; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78522;
+ s.callLocIdx = 1523; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78530;
+ s.callLocIdx = 1524; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1525; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 430;
+ s.callLocIdx = 1526; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78550;
+ s.callLocIdx = 1527; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78558;
+ s.callLocIdx = 1528; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78566;
+ s.callLocIdx = 1529; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78574;
+ s.callLocIdx = 1530; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78582;
+ s.callLocIdx = 1531; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78590;
+ s.callLocIdx = 1532; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78598;
+ s.callLocIdx = 1533; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78606;
+ s.callLocIdx = 1534; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78614;
+ s.callLocIdx = 1535; s.pc = 47; return s.tmp_0;
+ case 47:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 + 16);
- s.tmp_7.arg1 = r0;
- s.callLocIdx = 674; s.pc = 8; return s.tmp_7;
- case 8:
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
r0 = s.retval;
- case 3:
- case 4:
- s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 3;
- s.tmp_0.arg2 = true;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
- s.pc = 10; return s.tmp_0;
- case 10:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1536; s.pc = 49; return s.tmp_0;
+ case 49:
r0 = s.retval;
- case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_moveDown__P12689.info = {"start":3441,"length":190,"line":83,"column":8,"endLine":88,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveDown","argumentNames":["this"]}
+createSnake__P63833.info = {"start":5067,"length":3600,"line":121,"column":0,"endLine":200,"endColumn":1,"fileName":"games.ts","functionName":"createSnake","argumentNames":["prefix"]}
-function tileworld_RuleVisualsBase_moveDown__P12689_mk(s) {
+function createSnake__P63833_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_moveDown__P12689, depth: s.depth + 1,
+ parent: s, fn: createSnake__P63833, depth: s.depth + 1,
pc: 0, retval: undefined, 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,
} }
+const _hex78446 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17120a122a120914291208152912081529120815291209132a120f17120f17120f17120f17120f171204122f111203142f1203142f1203132f111204122f11120f17120f17120f17120f17120f171f0a0")
+const _hex78454 = pxsim.BufferMethods.createBufferFromHex("2018ffffffffff1f11ff8f11ff8f116f12ff1f11ff8f11ff8f11ff8f10ffbf12ffffffcf12ff2f12ffffffff3f12ffffffffffffaf12ffbf12ffffffffffffffff4f12ffffffff12ffffffff6f")
+const _hex78468 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
+const _hex78476 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
+const _hex78484 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
+const _hex78492 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex78506 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50")
+const _hex78514 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20")
+const _hex78522 = pxsim.BufferMethods.createBufferFromHex("1010f0502c6e70ae603e523e403e821e402ea21e303e921e303c92142027161c921420172ea21430121e247214123022251462141e401214151452141260622412701e621ef050")
+const _hex78530 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0801e8012602e7012602c12601260161c828072901452f0f0f0f0f0a0")
+const _hex78550 = pxsim.BufferMethods.createBufferFromHex("212622000412230005020002")
+const _hex78558 = pxsim.BufferMethods.createBufferFromHex("212622000412120005010001")
+const _hex78566 = pxsim.BufferMethods.createBufferFromHex("212622000412320005030003")
+const _hex78574 = pxsim.BufferMethods.createBufferFromHex("2016220001160002")
+const _hex78582 = pxsim.BufferMethods.createBufferFromHex("222622000112231104060401")
+const _hex78590 = pxsim.BufferMethods.createBufferFromHex("21262200040221004c36030002010002")
+const _hex78598 = pxsim.BufferMethods.createBufferFromHex("4110220005140002")
+const _hex78606 = pxsim.BufferMethods.createBufferFromHex("4116220001120002")
+const _hex78614 = pxsim.BufferMethods.createBufferFromHex("2226220001322300102605010202040203000203")
-function tileworld_RuleVisualsBase_moveUp__P12688(s) {
+function createBejeweled__P63834(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63275,165 +61751,502 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 6; return s.tmp_3;
- case 6:
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = pxsim_String__concat(s.tmp_2, "-VersionS");
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = pxsim.settings._exists(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 5; continue; }
+ { step = 3; continue; }
case 1:
case 2:
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = true;
- s.callLocIdx = 669; s.pc = 7; return s.tmp_6;
- case 7:
+ s.tmp_3 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 > 0);
s.tmp_4 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_4);
- if (!r0) { step = 3; continue; }
- s.tmp_7 = Sprite_y__P2025_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_8 = r0;
- s.tmp_7.arg0 = r0;
- s.tmp_10 = Sprite_y__P2024_mk(s);
- s.tmp_10.arg0 = s.tmp_8;
- s.callLocIdx = 670; s.pc = 9; return s.tmp_10;
- case 9:
+ r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = "4.0.0";
+ s.callLocIdx = 1538; s.pc = 5; return s.tmp_3;
+ case 5:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 - 16);
- s.tmp_7.arg1 = r0;
- s.callLocIdx = 671; s.pc = 8; return s.tmp_7;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 8:
r0 = s.retval;
- case 3:
- case 4:
- s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = 1;
- s.tmp_0.arg2 = true;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
- s.pc = 10; return s.tmp_0;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78641;
+ s.callLocIdx = 1539; s.pc = 7; return s.tmp_0;
+ case 7:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 10:
r0 = s.retval;
- case 5:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78649;
+ s.callLocIdx = 1540; s.pc = 9; return s.tmp_0;
+ case 9:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1541; s.pc = 11; return s.tmp_0;
+ case 11:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78663;
+ s.callLocIdx = 1542; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78671;
+ s.callLocIdx = 1543; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ 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_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78679;
+ s.callLocIdx = 1544; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78687;
+ s.callLocIdx = 1545; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1546; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78701;
+ s.callLocIdx = 1547; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78709;
+ s.callLocIdx = 1548; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78717;
+ s.callLocIdx = 1549; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78725;
+ s.callLocIdx = 1550; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1551; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 120;
+ s.callLocIdx = 1552; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78745;
+ s.callLocIdx = 1553; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78753;
+ s.callLocIdx = 1554; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78761;
+ s.callLocIdx = 1555; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78769;
+ s.callLocIdx = 1556; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB7");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78777;
+ s.callLocIdx = 1557; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB8");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78785;
+ s.callLocIdx = 1558; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78793;
+ s.callLocIdx = 1559; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78801;
+ s.callLocIdx = 1560; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 52);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 52:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB9");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78809;
+ s.callLocIdx = 1561; s.pc = 51; return s.tmp_0;
+ case 51:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 54);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 54:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB11");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78817;
+ s.callLocIdx = 1562; s.pc = 53; return s.tmp_0;
+ case 53:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 56);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 56:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB10");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex78825;
+ s.callLocIdx = 1563; s.pc = 55; return s.tmp_0;
+ case 55:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 58);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 58:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1564; s.pc = 57; return s.tmp_0;
+ case 57:
+ r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_moveUp__P12688.info = {"start":3245,"length":186,"line":76,"column":8,"endLine":81,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveUp","argumentNames":["this"]}
+createBejeweled__P63834.info = {"start":8671,"length":4135,"line":202,"column":0,"endLine":291,"endColumn":1,"fileName":"games.ts","functionName":"createBejeweled","argumentNames":["prefix"]}
-function tileworld_RuleVisualsBase_moveUp__P12688_mk(s) {
+function createBejeweled__P63834_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_moveUp__P12688, depth: s.depth + 1,
+ parent: s, fn: createBejeweled__P63834, depth: s.depth + 1,
pc: 0, retval: undefined, 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 tileworld_RuleVisualsBase_cursorMove__P12702(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleVisualsBase_cursorMove__P12702.info = {"start":5284,"length":69,"line":139,"column":8,"endLine":139,"endColumn":77,"fileName":"rulesBase.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-
-function tileworld_RuleVisualsBase_cursorMove__P12702_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleVisualsBase_cursorMove__P12702, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- arg0: undefined,
- arg1: undefined,
- arg2: undefined,
-} }
-
-
-
-
-
-function tileworld_RuleVisualsBase_okToMove__P12690(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- r0 = true;
- return leave(s, r0)
- default: oops()
-} } }
-tileworld_RuleVisualsBase_okToMove__P12690.info = {"start":3641,"length":37,"line":90,"column":8,"endLine":90,"endColumn":45,"fileName":"rulesBase.ts","functionName":"okToMove","argumentNames":["this"]}
-
-function tileworld_RuleVisualsBase_okToMove__P12690_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: tileworld_RuleVisualsBase_okToMove__P12690, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_4: undefined,
arg0: undefined,
} }
+const _hex78641 = pxsim.BufferMethods.createBufferFromHex("2018b0d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1109110d1b0f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1a1")
+const _hex78649 = pxsim.BufferMethods.createBufferFromHex("2018ffaf13111223121122ff1213211311131112ff1211231112111211ff1113111213111223ff1012132113121112ff131211121311131211ff13111211221123ff222311231211ff221311232112ff1113111213112213ff2213111213111213ff1113121112231112ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5f")
+const _hex78663 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
+const _hex78671 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f")
+const _hex78679 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex78687 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
+const _hex78701 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060")
+const _hex78709 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
+const _hex78717 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30")
+const _hex78725 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50")
+const _hex78745 = pxsim.BufferMethods.createBufferFromHex("6143220040242100401423004024120000260300010103000300010106000402")
+const _hex78753 = pxsim.BufferMethods.createBufferFromHex("61432200102421001024230010241200002603000101030001010300010106000402")
+const _hex78761 = pxsim.BufferMethods.createBufferFromHex("6130220054163204fc061200001600030600")
+const _hex78769 = pxsim.BufferMethods.createBufferFromHex("61432200042423000424210004241200002603000101030001010300010106000402")
+const _hex78777 = pxsim.BufferMethods.createBufferFromHex("202622080116231000060002")
+const _hex78785 = pxsim.BufferMethods.createBufferFromHex("205622000116230400061230000621300006323000060002")
+const _hex78793 = pxsim.BufferMethods.createBufferFromHex("412322205424212054240000010300020103")
+const _hex78801 = pxsim.BufferMethods.createBufferFromHex("4010222001160101")
+const _hex78809 = pxsim.BufferMethods.createBufferFromHex("4016220801160102")
+const _hex78817 = pxsim.BufferMethods.createBufferFromHex("612322805424218054240000010100020101")
+const _hex78825 = pxsim.BufferMethods.createBufferFromHex("61502280541621c0000612c0000623c0000632c000060101")
-function tileworld_RuleVisualsBase_moveInX__P12687(s) {
+function createHelloWorld__P63840(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63445,150 +62258,436 @@ switch (step) {
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
- s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0);
- s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s);
- s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0);
- s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove;
- s.pc = 12; return s.tmp_3;
- case 12:
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 4);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 4:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_2);
+ r0 = pxsim_String__concat(s.tmp_2, "VersionS");
s.tmp_1 = r0;
- r0 = pxsim_Boolean__bang(s.tmp_1);
+ r0 = pxsim.settings._exists(s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- { step = 11; continue; }
+ { step = 3; continue; }
case 1:
case 2:
- r0 = (s.arg1 == 0);
- s.tmp_4 = r0;
- r0 = pxsim_numops_toBool(s.tmp_4);
- if (r0) { step = 3; continue; }
- r0 = s.tmp_4;
- { step = 4; continue; }
- case 3:
- s.tmp_6 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_6.arg0 = s.arg0;
- s.tmp_6.arg1 = true;
- s.callLocIdx = 664; s.pc = 13; return s.tmp_6;
- case 13:
+ s.tmp_3 = settings_writeString__P61820_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 6);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 6:
r0 = s.retval;
- s.tmp_5 = r0;
- r0 = (s.tmp_5 > 0);
- case 4:
- // jmp value (already in r0)
- s.tmp_7 = r0;
- r0 = pxsim_numops_toBool(s.tmp_7);
- if (!r0) { step = 5; continue; }
- r0 = s.tmp_7;
- { step = 8; continue; }
+ s.tmp_4 = r0;
+ r0 = pxsim_String__concat(s.tmp_4, "VersionS");
+ s.tmp_3.arg0 = r0;
+ s.tmp_3.arg1 = "4.0.0";
+ s.callLocIdx = 1620; s.pc = 5; return s.tmp_3;
case 5:
- r0 = (s.arg1 == 2);
- s.tmp_8 = r0;
- r0 = pxsim_numops_toBool(s.tmp_8);
- if (r0) { step = 6; continue; }
- r0 = s.tmp_8;
- { step = 7; continue; }
- case 6:
- s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s);
- s.tmp_10.arg0 = s.arg0;
- s.tmp_10.arg1 = true;
- s.callLocIdx = 665; s.pc = 14; return s.tmp_10;
- case 14:
r0 = s.retval;
- s.tmp_9 = r0;
- r0 = (s.tmp_9 < 9);
- case 7:
- // jmp value (already in r0)
- s.tmp_11 = r0;
- r0 = s.tmp_11;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 8);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
case 8:
- // jmp value (already in r0)
- s.tmp_12 = r0;
- r0 = pxsim_numops_toBoolDecr(s.tmp_12);
- if (!r0) { step = 9; continue; }
- s.tmp_13 = Sprite_x__P2023_mk(s);
- r0 = s.arg0.fields["cursor"];
- s.tmp_14 = r0;
- s.tmp_13.arg0 = r0;
- s.tmp_16 = Sprite_x__P2022_mk(s);
- s.tmp_16.arg0 = s.tmp_14;
- s.callLocIdx = 667; s.pc = 16; return s.tmp_16;
- case 16:
r0 = s.retval;
- s.tmp_15 = r0;
- s.tmp_19 = tileworld_moveXdelta__P3618_mk(s);
- s.tmp_19.arg0 = s.arg1;
- s.callLocIdx = 666; s.pc = 17; return s.tmp_19;
- case 17:
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WBackM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79798;
+ s.callLocIdx = 1621; s.pc = 7; return s.tmp_0;
+ case 7:
r0 = s.retval;
- s.tmp_18 = r0;
- r0 = (16 * s.tmp_18);
- s.tmp_17 = r0;
- r0 = (s.tmp_15 + s.tmp_17);
- s.tmp_13.arg1 = r0;
- s.callLocIdx = 668; s.pc = 15; return s.tmp_13;
- case 15:
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 10);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 10:
r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "WSpriteM");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79806;
+ s.callLocIdx = 1622; s.pc = 9; return s.tmp_0;
case 9:
- case 10:
- s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s);
- s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = true;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0);
- s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove;
- s.pc = 18; return s.tmp_0;
- case 18:
r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 12);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 12:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1623; s.pc = 11; return s.tmp_0;
case 11:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 14);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 14:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79820;
+ s.callLocIdx = 1624; s.pc = 13; return s.tmp_0;
+ case 13:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 16);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 16:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79828;
+ s.callLocIdx = 1625; s.pc = 15; return s.tmp_0;
+ case 15:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ 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_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79836;
+ s.callLocIdx = 1626; s.pc = 17; return s.tmp_0;
+ case 17:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 20);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 20:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "BackI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79844;
+ s.callLocIdx = 1627; s.pc = 19; return s.tmp_0;
+ case 19:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 22);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 22:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 4;
+ s.callLocIdx = 1628; s.pc = 21; return s.tmp_0;
+ case 21:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 24);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 24:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79858;
+ s.callLocIdx = 1629; s.pc = 23; return s.tmp_0;
+ case 23:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 26);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 26:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79866;
+ s.callLocIdx = 1630; s.pc = 25; return s.tmp_0;
+ case 25:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 28);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 28:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79874;
+ s.callLocIdx = 1631; s.pc = 27; return s.tmp_0;
+ case 27:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 30);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 30:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "SpriteI3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79882;
+ s.callLocIdx = 1632; s.pc = 29; return s.tmp_0;
+ case 29:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 32);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 32:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HelpN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 1;
+ s.callLocIdx = 1633; s.pc = 31; return s.tmp_0;
+ case 31:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 34);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 34:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "HighN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 10;
+ s.callLocIdx = 1634; s.pc = 33; return s.tmp_0;
+ case 33:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 36);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 36:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB0");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79902;
+ s.callLocIdx = 1635; s.pc = 35; return s.tmp_0;
+ case 35:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 38);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 38:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB1");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79910;
+ s.callLocIdx = 1636; s.pc = 37; return s.tmp_0;
+ case 37:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 40);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 40:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB2");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79918;
+ s.callLocIdx = 1637; s.pc = 39; return s.tmp_0;
+ case 39:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 42);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 42:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB3");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79926;
+ s.callLocIdx = 1638; s.pc = 41; return s.tmp_0;
+ case 41:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 44);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 44:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB4");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79934;
+ s.callLocIdx = 1639; s.pc = 43; return s.tmp_0;
+ case 43:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 46);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 46:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB5");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79942;
+ s.callLocIdx = 1640; s.pc = 45; return s.tmp_0;
+ case 45:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeBuffer__P61819_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 48);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 48:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "RuleB6");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = _hex79950;
+ s.callLocIdx = 1641; s.pc = 47; return s.tmp_0;
+ case 47:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ if ((s.arg0) && (s.arg0).vtable) {
+ setupResume(s, 50);
+ pxsim_String__stringConv(s.arg0);
+ checkResumeConsumed();
+ return;
+ } else { s.retval = (s.arg0) + ""; }
+ case 50:
+ r0 = s.retval;
+ s.tmp_1 = r0;
+ r0 = pxsim_String__concat(s.tmp_1, "PlayerN");
+ s.tmp_0.arg0 = r0;
+ s.tmp_0.arg1 = 0;
+ s.callLocIdx = 1642; s.pc = 49; return s.tmp_0;
+ case 49:
+ r0 = s.retval;
+ case 3:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_RuleVisualsBase_moveInX__P12687.info = {"start":2932,"length":303,"line":68,"column":8,"endLine":74,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveInX","argumentNames":["this","dir"]}
+createHelloWorld__P63840.info = {"start":32215,"length":3648,"line":750,"column":0,"endLine":826,"endColumn":1,"fileName":"games.ts","functionName":"createHelloWorld","argumentNames":["prefix"]}
-function tileworld_RuleVisualsBase_moveInX__P12687_mk(s) {
+function createHelloWorld__P63840_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_RuleVisualsBase_moveInX__P12687, depth: s.depth + 1,
+ parent: s, fn: createHelloWorld__P63840, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
tmp_3: undefined,
tmp_4: undefined,
- tmp_5: undefined,
- tmp_6: undefined,
- tmp_7: undefined,
- tmp_8: undefined,
- tmp_9: undefined,
- tmp_10: undefined,
- tmp_11: undefined,
- tmp_12: undefined,
- tmp_13: undefined,
- tmp_14: undefined,
- tmp_15: undefined,
- tmp_16: undefined,
- tmp_17: undefined,
- tmp_18: undefined,
- tmp_19: undefined,
arg0: undefined,
- arg1: undefined,
} }
+const _hex79798 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17150f141202110f1412021102150c1207110e1207110e120f17120f171204110f121204110f1212041103110d12011403110d12011106110d1201110f15120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0")
+const _hex79806 = pxsim.BufferMethods.createBufferFromHex("2018ffaf10ffdf11ffffffffffff11ff8f123f12ffffffffffffffffffffffffffff4f1112ffffffffffffffffffffffffffffffffffffffffffffffffff3f")
+const _hex79820 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a")
+const _hex79828 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627")
+const _hex79836 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d")
+const _hex79844 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e")
+const _hex79858 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080")
+const _hex79866 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50")
+const _hex79874 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20")
+const _hex79882 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080")
+const _hex79902 = pxsim.BufferMethods.createBufferFromHex("202622000116230400060002")
+const _hex79910 = pxsim.BufferMethods.createBufferFromHex("201022000106")
+const _hex79918 = pxsim.BufferMethods.createBufferFromHex("201022000106")
+const _hex79926 = pxsim.BufferMethods.createBufferFromHex("201022000106")
+const _hex79934 = pxsim.BufferMethods.createBufferFromHex("401022000106")
+const _hex79942 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402")
+const _hex79950 = pxsim.BufferMethods.createBufferFromHex("222022000102230010160401")
-function game_eventContext__P2527(s) {
+function game_eventContext__P62524(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63598,21 +62697,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = game_init__P4282_mk(s);
+ s.tmp_0 = game_init__P64282_mk(s);
s.tmp_0.arg0 = undefined;
s.callLocIdx = 850; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = globals._scene___4274.fields["eventContext"];
+ r0 = globals._scene___64274.fields["eventContext"];
return leave(s, r0)
default: oops()
} } }
-game_eventContext__P2527.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]}
+game_eventContext__P62524.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]}
-function game_eventContext__P2527_mk(s) {
+function game_eventContext__P62524_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_eventContext__P2527, depth: s.depth + 1,
+ parent: s, fn: game_eventContext__P62524, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -63621,7 +62720,7 @@ function game_eventContext__P2527_mk(s) {
-function controller_pauseUntilAnyButtonIsPressed__P1950(s) {
+function controller_pauseUntilAnyButtonIsPressed__P61945(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63641,12 +62740,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_pauseUntilAnyButtonIsPressed__P1950.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]}
+controller_pauseUntilAnyButtonIsPressed__P61945.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]}
-function controller_pauseUntilAnyButtonIsPressed__P1950_mk(s) {
+function controller_pauseUntilAnyButtonIsPressed__P61945_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P1950, depth: s.depth + 1,
+ parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P61945, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -63654,7 +62753,7 @@ function controller_pauseUntilAnyButtonIsPressed__P1950_mk(s) {
-function game_setWaitAnyButton__P2525(s) {
+function game_setWaitAnyButton__P62522(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63668,17 +62767,17 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- globals.__waitAnyButton___4278 = (s.arg0);
+ globals.__waitAnyButton___64278 = (s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_setWaitAnyButton__P2525.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]}
+game_setWaitAnyButton__P62522.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]}
-function game_setWaitAnyButton__P2525_mk(s) {
+function game_setWaitAnyButton__P62522_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_setWaitAnyButton__P2525, depth: s.depth + 1,
+ parent: s, fn: game_setWaitAnyButton__P62522, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -63687,7 +62786,7 @@ function game_setWaitAnyButton__P2525_mk(s) {
-function Math_abs__P120(s) {
+function Math_abs__P60115(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63716,12 +62815,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Math_abs__P120.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]}
+Math_abs__P60115.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]}
-function Math_abs__P120_mk(s) {
+function Math_abs__P60115_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_abs__P120, depth: s.depth + 1,
+ parent: s, fn: Math_abs__P60115, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -63732,7 +62831,7 @@ function Math_abs__P120_mk(s) {
-function Math_sign__P121(s) {
+function Math_sign__P60116(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63767,12 +62866,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Math_sign__P121.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]}
+Math_sign__P60116.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]}
-function Math_sign__P121_mk(s) {
+function Math_sign__P60116_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_sign__P121, depth: s.depth + 1,
+ parent: s, fn: Math_sign__P60116, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -63783,7 +62882,7 @@ function Math_sign__P121_mk(s) {
-function texteffects_TextEffect_constructor__P2825(s) {
+function texteffects_TextEffect_constructor__P62822(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63799,18 +62898,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, texteffects_TextEffect__C2823_VT)) failedCast(r0);
+ if (!checkSubtype(r0, texteffects_TextEffect__C62820_VT)) failedCast(r0);
r0 = (s.arg0).fields["getState"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-texteffects_TextEffect_constructor__P2825.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]}
+texteffects_TextEffect_constructor__P62822.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]}
-function texteffects_TextEffect_constructor__P2825_mk(s) {
+function texteffects_TextEffect_constructor__P62822_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: texteffects_TextEffect_constructor__P2825, depth: s.depth + 1,
+ parent: s, fn: texteffects_TextEffect_constructor__P62822, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -63820,7 +62919,7 @@ function texteffects_TextEffect_constructor__P2825_mk(s) {
-function Math_FastRandom_constructor__P2580(s) {
+function Math_FastRandom_constructor__P62577(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63836,7 +62935,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Math_FastRandom__C62575_VT)) failedCast(r0);
r0 = (s.arg1 === undefined);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -63851,12 +62950,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Math_FastRandom_constructor__P2580.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]}
+Math_FastRandom_constructor__P62577.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]}
-function Math_FastRandom_constructor__P2580_mk(s) {
+function Math_FastRandom_constructor__P62577_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_FastRandom_constructor__P2580, depth: s.depth + 1,
+ parent: s, fn: Math_FastRandom_constructor__P62577, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -63867,7 +62966,7 @@ function Math_FastRandom_constructor__P2580_mk(s) {
-function control_ramSize__P332(s) {
+function control_ramSize__P60327(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63892,12 +62991,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-control_ramSize__P332.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]}
+control_ramSize__P60327.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]}
-function control_ramSize__P332_mk(s) {
+function control_ramSize__P60327_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control_ramSize__P332, depth: s.depth + 1,
+ parent: s, fn: control_ramSize__P60327, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -63907,7 +63006,7 @@ function control_ramSize__P332_mk(s) {
-function control__ramSize__P3924(s) {
+function control__ramSize__P63921(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63921,12 +63020,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-control__ramSize__P3924.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]}
+control__ramSize__P63921.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]}
-function control__ramSize__P3924_mk(s) {
+function control__ramSize__P63921_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control__ramSize__P3924, depth: s.depth + 1,
+ parent: s, fn: control__ramSize__P63921, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -63934,7 +63033,7 @@ function control__ramSize__P3924_mk(s) {
-function game_consoleOverlay_listener__P4604(s) {
+function game_consoleOverlay_listener__P64607(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -63949,7 +63048,7 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
@@ -63969,39 +63068,39 @@ switch (step) {
{ step = 7; continue; }
case 3:
case 4:
- s.tmp_4 = helpers_arrayForEach__P104_mk(s);
- s.tmp_5 = helpers_arrayFilter__P105_mk(s);
- s.tmp_6 = helpers_stringSplit__P114_mk(s);
+ s.tmp_4 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_5 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_6 = helpers_stringSplit__P60109_mk(s);
s.tmp_6.arg0 = s.arg1;
s.tmp_6.arg1 = "\n";
s.tmp_6.arg2 = undefined;
- s.callLocIdx = 1049; s.pc = 10; return s.tmp_6;
+ s.callLocIdx = 1055; s.pc = 10; return s.tmp_6;
case 10:
r0 = s.retval;
s.tmp_5.arg0 = r0;
- s.tmp_5.arg1 = inline__P27748;
- s.callLocIdx = 1050; s.pc = 9; return s.tmp_5;
+ s.tmp_5.arg1 = inline__P87734;
+ s.callLocIdx = 1056; s.pc = 9; return s.tmp_5;
case 9:
r0 = s.retval;
s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = inline__P27753;
- s.callLocIdx = 1052; s.pc = 8; return s.tmp_4;
+ s.tmp_4.arg1 = inline__P87739;
+ s.callLocIdx = 1058; s.pc = 8; return s.tmp_4;
case 8:
r0 = s.retval;
- r0 = pxsim_Array__length(globals.consoleStrings___4569);
+ r0 = pxsim_Array__length(globals.consoleStrings___64572);
s.tmp_1 = r0;
- r0 = (s.tmp_1 > globals.consoleLines___4582);
+ r0 = (s.tmp_1 > globals.consoleLines___64585);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_2 = helpers_arraySplice__P95_mk(s);
- s.tmp_2.arg0 = globals.consoleStrings___4569;
+ s.tmp_2 = helpers_arraySplice__P60090_mk(s);
+ s.tmp_2.arg0 = globals.consoleStrings___64572;
s.tmp_2.arg1 = 0;
- r0 = pxsim_Array__length(globals.consoleStrings___4569);
+ r0 = pxsim_Array__length(globals.consoleStrings___64572);
s.tmp_3 = r0;
- r0 = (s.tmp_3 - globals.consoleLines___4582);
+ r0 = (s.tmp_3 - globals.consoleLines___64585);
s.tmp_2.arg2 = r0;
- s.callLocIdx = 1053; s.pc = 11; return s.tmp_2;
+ s.callLocIdx = 1059; s.pc = 11; return s.tmp_2;
case 11:
r0 = s.retval;
case 5:
@@ -64011,12 +63110,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-game_consoleOverlay_listener__P4604.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]}
+game_consoleOverlay_listener__P64607.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]}
-function game_consoleOverlay_listener__P4604_mk(s) {
+function game_consoleOverlay_listener__P64607_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_consoleOverlay_listener__P4604, depth: s.depth + 1,
+ parent: s, fn: game_consoleOverlay_listener__P64607, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64033,7 +63132,7 @@ function game_consoleOverlay_listener__P4604_mk(s) {
-function inline__P27748(s) {
+function inline__P87734(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64057,12 +63156,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27748.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]}
+inline__P87734.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]}
-function inline__P27748_mk(s) {
+function inline__P87734_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27748, depth: s.depth + 1,
+ parent: s, fn: inline__P87734, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64074,7 +63173,7 @@ function inline__P27748_mk(s) {
-function inline__P27753(s) {
+function inline__P87739(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64084,45 +63183,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.j___27755 = undefined;
+ s.j___87741 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.j___27755 = (0);
+ s.j___87741 = (0);
case 1:
- s.tmp_1 = r0 = s.j___27755;
+ s.tmp_1 = r0 = s.j___87741;
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___4569;
- s.tmp_5 = helpers_stringSlice__P112_mk(s);
+ s.tmp_3 = r0 = globals.consoleStrings___64572;
+ s.tmp_5 = helpers_stringSlice__P60107_mk(s);
s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.j___27755;
- r0 = (s.j___27755 + globals.consoleColumns___4592);
+ s.tmp_5.arg1 = s.j___87741;
+ r0 = (s.j___87741 + globals.consoleColumns___64595);
s.tmp_5.arg2 = r0;
- s.callLocIdx = 1051; s.pc = 3; return s.tmp_5;
+ s.callLocIdx = 1057; 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___27755 + globals.consoleColumns___4592);
- s.j___27755 = (r0);
+ r0 = (s.j___87741 + globals.consoleColumns___64595);
+ s.j___87741 = (r0);
{ step = 1; continue; }
case 2:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P27753.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]}
+inline__P87739.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]}
-function inline__P27753_mk(s) {
+function inline__P87739_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27753, depth: s.depth + 1,
+ parent: s, fn: inline__P87739, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64130,7 +63229,7 @@ function inline__P27753_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- j___27755: undefined,
+ j___87741: undefined,
arg0: undefined,
} }
@@ -64138,7 +63237,7 @@ function inline__P27753_mk(s) {
-function console_addListener__P369(s) {
+function console_addListener__P60364(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64161,7 +63260,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = pxsim_Array_.indexOf(globals.listeners___3939, s.arg0, undefined);
+ r0 = pxsim_Array_.indexOf(globals.listeners___63936, s.arg0, undefined);
s.tmp_2 = r0;
r0 = (s.tmp_2 > -1);
case 2:
@@ -64172,18 +63271,18 @@ switch (step) {
{ step = 5; continue; }
case 3:
case 4:
- r0 = pxsim_Array__push(globals.listeners___3939, s.arg0);
+ r0 = pxsim_Array__push(globals.listeners___63936, s.arg0);
case 5:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-console_addListener__P369.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]}
+console_addListener__P60364.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]}
-function console_addListener__P369_mk(s) {
+function console_addListener__P60364_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: console_addListener__P369, depth: s.depth + 1,
+ parent: s, fn: console_addListener__P60364, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64196,7 +63295,7 @@ function console_addListener__P369_mk(s) {
-function scene_systemMenu_register__P2625(s) {
+function scene_systemMenu_register__P62622(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64206,16 +63305,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.instance___4526);
+ r0 = pxsim_numops_toBoolDecr(globals.instance___64526);
if (!r0) { step = 1; continue; }
{ step = 3; continue; }
case 1:
case 2:
- s.tmp_0 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_0.arg0 = globals.menu___1880;
+ s.tmp_0 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_0.arg0 = globals.menu___61875;
s.tmp_0.arg1 = 2049;
- s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P2626;
- s.callLocIdx = 1039; s.pc = 4; return s.tmp_0;
+ s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P62623;
+ s.callLocIdx = 1042; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
case 3:
@@ -64223,12 +63322,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_register__P2625.info = {"start":12331,"length":193,"line":372,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]}
+scene_systemMenu_register__P62622.info = {"start":12678,"length":193,"line":379,"column":4,"endLine":383,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]}
-function scene_systemMenu_register__P2625_mk(s) {
+function scene_systemMenu_register__P62622_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_register__P2625, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_register__P62622, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -64237,7 +63336,7 @@ function scene_systemMenu_register__P2625_mk(s) {
-function scene_systemMenu_showSystemMenu__P2626(s) {
+function scene_systemMenu_showSystemMenu__P62623(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64247,28 +63346,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.instance___4526);
+ r0 = pxsim_numops_toBoolDecr(globals.instance___64526);
if (!r0) { step = 1; continue; }
{ step = 3; continue; }
case 1:
case 2:
- s.tmp_0 = game_pushScene__P2528_mk(s);
- s.callLocIdx = 1040; s.pc = 4; return s.tmp_0;
+ s.tmp_0 = game_pushScene__P62525_mk(s);
+ s.callLocIdx = 1043; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C2614_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C62611_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P2615_mk(s);
+ s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P62612_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P2622;
+ s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P62619;
s.tmp_1.arg2 = undefined;
- s.callLocIdx = 1041; s.pc = 5; return s.tmp_1;
+ s.callLocIdx = 1044; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- globals.instance___4526 = (s.tmp_0);
- s.tmp_0 = scene_systemMenu_PauseMenu_show__P2616_mk(s);
- s.tmp_0.arg0 = globals.instance___4526;
- s.callLocIdx = 1042; s.pc = 6; return s.tmp_0;
+ globals.instance___64526 = (s.tmp_0);
+ s.tmp_0 = scene_systemMenu_PauseMenu_show__P62613_mk(s);
+ s.tmp_0.arg0 = globals.instance___64526;
+ s.callLocIdx = 1045; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
case 3:
@@ -64276,12 +63375,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_showSystemMenu__P2626.info = {"start":12530,"length":172,"line":378,"column":4,"endLine":383,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]}
+scene_systemMenu_showSystemMenu__P62623.info = {"start":12877,"length":172,"line":385,"column":4,"endLine":390,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]}
-function scene_systemMenu_showSystemMenu__P2626_mk(s) {
+function scene_systemMenu_showSystemMenu__P62623_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_showSystemMenu__P2626, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_showSystemMenu__P62623, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64291,7 +63390,7 @@ function scene_systemMenu_showSystemMenu__P2626_mk(s) {
-function scene_systemMenu_buildOptionList__P2622(s) {
+function scene_systemMenu_buildOptionList__P62619(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64301,136 +63400,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.options___28431 = undefined;
+ s.options___88417 = undefined;
r0 = pxsim_Array__mk();
- s.options___28431 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ s.options___88417 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___2636;
- s.tmp_1.arg2 = inline__P28439;
- s.tmp_1.arg3 = scene_systemMenu_volumeDown__P4532;
- s.callLocIdx = 1022; s.pc = 5; return s.tmp_1;
+ s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___62633;
+ s.tmp_1.arg2 = inline__P88425;
+ s.tmp_1.arg3 = scene_systemMenu_volumeDown__P64532;
+ s.callLocIdx = 1025; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.VOLUME_UP_ICON___2633;
- s.tmp_1.arg2 = inline__P28453;
- s.tmp_1.arg3 = scene_systemMenu_volumeUp__P4531;
- s.callLocIdx = 1024; s.pc = 6; return s.tmp_1;
+ s.tmp_1.arg1 = globals.VOLUME_UP_ICON___62630;
+ s.tmp_1.arg2 = inline__P88439;
+ s.tmp_1.arg3 = scene_systemMenu_volumeUp__P64531;
+ s.callLocIdx = 1027; s.pc = 6; return s.tmp_1;
case 6:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
+ r0 = pxsim_Array__push(s.options___88417, 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__C2606_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_1 = r0;
- s.tmp_2 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_2 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_2.arg0 = s.tmp_1;
- s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___2634;
- s.tmp_2.arg2 = inline__P28468;
- s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P4534;
- s.callLocIdx = 1027; s.pc = 7; return s.tmp_2;
+ s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___62631;
+ s.tmp_2.arg2 = inline__P88454;
+ s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P64534;
+ s.callLocIdx = 1030; s.pc = 7; return s.tmp_2;
case 7:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_1);
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_1);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___2639;
- s.tmp_1.arg2 = inline__P28483;
- s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P4533;
- s.callLocIdx = 1029; s.pc = 8; return s.tmp_1;
+ s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___62636;
+ s.tmp_1.arg2 = inline__P88469;
+ s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P64533;
+ s.callLocIdx = 1032; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
case 1:
case 2:
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.STATS_ICON___2640;
- s.tmp_1.arg2 = inline__P28498;
- s.tmp_1.arg3 = scene_systemMenu_toggleStats__P4535;
- s.callLocIdx = 1030; s.pc = 9; return s.tmp_1;
+ s.tmp_1.arg1 = globals.STATS_ICON___62637;
+ s.tmp_1.arg2 = inline__P88484;
+ s.tmp_1.arg3 = scene_systemMenu_toggleStats__P64536;
+ s.callLocIdx = 1033; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.CONSOLE_ICON___2638;
- s.tmp_1.arg2 = inline__P28507;
- s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P4536;
- s.callLocIdx = 1032; s.pc = 10; return s.tmp_1;
+ s.tmp_1.arg1 = globals.CONSOLE_ICON___62635;
+ s.tmp_1.arg2 = inline__P88493;
+ s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P64537;
+ s.callLocIdx = 1035; s.pc = 10; return s.tmp_1;
case 10:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.SLEEP_ICON___2637;
- s.tmp_1.arg2 = inline__P28516;
- s.tmp_1.arg3 = scene_systemMenu_sleep__P4537;
- s.callLocIdx = 1033; s.pc = 11; return s.tmp_1;
+ s.tmp_1.arg1 = globals.SLEEP_ICON___62634;
+ s.tmp_1.arg2 = inline__P88502;
+ s.tmp_1.arg3 = scene_systemMenu_sleep__P64538;
+ s.callLocIdx = 1036; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
- r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___4527);
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
+ r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___64527);
if (!r0) { step = 3; continue; }
- s.tmp_0 = helpers_arrayConcat__P108_mk(s);
- s.tmp_0.arg0 = s.options___28431;
- s.tmp_0.arg1 = globals.customMenuOptions___4527;
- s.callLocIdx = 1034; s.pc = 12; return s.tmp_0;
+ s.tmp_0 = helpers_arrayConcat__P60103_mk(s);
+ s.tmp_0.arg0 = s.options___88417;
+ s.tmp_0.arg1 = globals.customMenuOptions___64527;
+ s.callLocIdx = 1037; s.pc = 12; return s.tmp_0;
case 12:
r0 = s.retval;
- s.options___28431 = (r0);
+ s.options___88417 = (r0);
case 3:
case 4:
- r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C62603_VT);
s.tmp_0 = r0;
- s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s);
+ s.tmp_1 = scene_systemMenu_MenuOption_constructor__P62604_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___2635;
- s.tmp_1.arg2 = inline__P28529;
- s.tmp_1.arg3 = scene_systemMenu_closeMenu__P2621;
- s.callLocIdx = 1035; s.pc = 13; return s.tmp_1;
+ s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___62632;
+ s.tmp_1.arg2 = inline__P88515;
+ s.tmp_1.arg3 = scene_systemMenu_closeMenu__P62618;
+ s.callLocIdx = 1038; s.pc = 13; return s.tmp_1;
case 13:
r0 = s.retval;
- r0 = pxsim_Array__push(s.options___28431, s.tmp_0);
- r0 = s.options___28431;
+ r0 = pxsim_Array__push(s.options___88417, s.tmp_0);
+ r0 = s.options___88417;
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_buildOptionList__P2622.info = {"start":10037,"length":1149,"line":324,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]}
+scene_systemMenu_buildOptionList__P62619.info = {"start":10384,"length":1149,"line":331,"column":4,"endLine":351,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]}
-function scene_systemMenu_buildOptionList__P2622_mk(s) {
+function scene_systemMenu_buildOptionList__P62619_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_buildOptionList__P2622, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_buildOptionList__P62619, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- options___28431: undefined,
+ options___88417: undefined,
} }
-function inline__P28439(s) {
+function inline__P88425(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64440,8 +63539,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_3 = music_volume__P1590_mk(s);
- s.callLocIdx = 1021; s.pc = 1; return s.tmp_3;
+ s.tmp_3 = music_volume__P61585_mk(s);
+ s.callLocIdx = 1024; s.pc = 1; return s.tmp_3;
case 1:
r0 = s.retval;
s.tmp_2 = r0;
@@ -64460,12 +63559,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28439.info = {"start":10182,"length":39,"line":327,"column":54,"endLine":327,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88425.info = {"start":10529,"length":39,"line":334,"column":54,"endLine":334,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28439_mk(s) {
+function inline__P88425_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28439, depth: s.depth + 1,
+ parent: s, fn: inline__P88425, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64477,7 +63576,7 @@ function inline__P28439_mk(s) {
-function inline__P28453(s) {
+function inline__P88439(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64487,8 +63586,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_3 = music_volume__P1590_mk(s);
- s.callLocIdx = 1023; s.pc = 1; return s.tmp_3;
+ s.tmp_3 = music_volume__P61585_mk(s);
+ s.callLocIdx = 1026; s.pc = 1; return s.tmp_3;
case 1:
r0 = s.retval;
s.tmp_2 = r0;
@@ -64507,12 +63606,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28453.info = {"start":10289,"length":37,"line":328,"column":52,"endLine":328,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88439.info = {"start":10636,"length":37,"line":335,"column":52,"endLine":335,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28453_mk(s) {
+function inline__P88439_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28453, depth: s.depth + 1,
+ parent: s, fn: inline__P88439, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64524,7 +63623,7 @@ function inline__P28453_mk(s) {
-function inline__P28468(s) {
+function inline__P88454(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64534,7 +63633,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = globals.brightness___1721;
+ r0 = globals.brightness___61716;
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
setupResume(s, 1);
@@ -64551,12 +63650,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28468.info = {"start":10448,"length":48,"line":330,"column":62,"endLine":330,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88454.info = {"start":10795,"length":48,"line":337,"column":62,"endLine":337,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28468_mk(s) {
+function inline__P88454_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28468, depth: s.depth + 1,
+ parent: s, fn: inline__P88454, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64567,7 +63666,7 @@ function inline__P28468_mk(s) {
-function inline__P28483(s) {
+function inline__P88469(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64577,7 +63676,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = globals.brightness___1721;
+ r0 = globals.brightness___61716;
s.tmp_2 = r0;
if ((s.tmp_2) && (s.tmp_2).vtable) {
setupResume(s, 1);
@@ -64594,12 +63693,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28483.info = {"start":10576,"length":46,"line":331,"column":60,"endLine":331,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88469.info = {"start":10923,"length":46,"line":338,"column":60,"endLine":338,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28483_mk(s) {
+function inline__P88469_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28483, depth: s.depth + 1,
+ parent: s, fn: inline__P88469, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64610,7 +63709,7 @@ function inline__P28483_mk(s) {
-function inline__P28498(s) {
+function inline__P88484(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64620,7 +63719,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.stats___2521);
+ r0 = pxsim_numops_toBoolDecr(globals.stats___62518);
if (!r0) { step = 1; continue; }
r0 = "HIDE STATS";
{ step = 2; continue; }
@@ -64633,12 +63732,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28498.info = {"start":10698,"length":46,"line":333,"column":48,"endLine":333,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88484.info = {"start":11045,"length":46,"line":340,"column":48,"endLine":340,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28498_mk(s) {
+function inline__P88484_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28498, depth: s.depth + 1,
+ parent: s, fn: inline__P88484, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -64647,7 +63746,7 @@ function inline__P28498_mk(s) {
-function inline__P28507(s) {
+function inline__P88493(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64657,7 +63756,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
s.tmp_3 = r0;
r0 = pxsim_Boolean__bang(s.tmp_3);
s.tmp_2 = r0;
@@ -64678,12 +63777,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28507.info = {"start":10811,"length":71,"line":334,"column":50,"endLine":334,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88493.info = {"start":11158,"length":71,"line":341,"column":50,"endLine":341,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28507_mk(s) {
+function inline__P88493_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28507, depth: s.depth + 1,
+ parent: s, fn: inline__P88493, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64696,7 +63795,7 @@ function inline__P28507_mk(s) {
-function inline__P28516(s) {
+function inline__P88502(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64710,12 +63809,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28516.info = {"start":10949,"length":13,"line":335,"column":48,"endLine":335,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88502.info = {"start":11296,"length":13,"line":342,"column":48,"endLine":342,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28516_mk(s) {
+function inline__P88502_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28516, depth: s.depth + 1,
+ parent: s, fn: inline__P88502, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -64723,7 +63822,7 @@ function inline__P28516_mk(s) {
-function inline__P28529(s) {
+function inline__P88515(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64737,12 +63836,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28529.info = {"start":11128,"length":13,"line":341,"column":53,"endLine":341,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P88515.info = {"start":11475,"length":13,"line":348,"column":53,"endLine":348,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P28529_mk(s) {
+function inline__P88515_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28529, depth: s.depth + 1,
+ parent: s, fn: inline__P88515, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -64750,7 +63849,7 @@ function inline__P28529_mk(s) {
-function scene_systemMenu_setScreenBrightnessSupported__P4538(s) {
+function scene_systemMenu_setScreenBrightnessSupported__P64539(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64764,12 +63863,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_setScreenBrightnessSupported__P4538.info = {"start":9936,"length":95,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]}
+scene_systemMenu_setScreenBrightnessSupported__P64539.info = {"start":10283,"length":95,"line":327,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]}
-function scene_systemMenu_setScreenBrightnessSupported__P4538_mk(s) {
+function scene_systemMenu_setScreenBrightnessSupported__P64539_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P4538, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P64539, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -64777,7 +63876,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P4538_mk(s) {
-function scene_systemMenu_sleep__P4537(s) {
+function scene_systemMenu_sleep__P64538(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64792,12 +63891,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_sleep__P4537.info = {"start":9610,"length":51,"line":306,"column":4,"endLine":308,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]}
+scene_systemMenu_sleep__P64538.info = {"start":9957,"length":51,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]}
-function scene_systemMenu_sleep__P4537_mk(s) {
+function scene_systemMenu_sleep__P64538_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_sleep__P4537, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_sleep__P64538, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
} }
@@ -64805,7 +63904,7 @@ function scene_systemMenu_sleep__P4537_mk(s) {
-function scene_systemMenu_toggleConsole__P4536(s) {
+function scene_systemMenu_toggleConsole__P64537(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64815,7 +63914,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
s.tmp_3 = r0;
r0 = pxsim_Boolean__bang(s.tmp_3);
s.tmp_2 = r0;
@@ -64825,23 +63924,23 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_4 = game_consoleOverlay_setVisible__P2645_mk(s);
+ s.tmp_4 = game_consoleOverlay_setVisible__P62642_mk(s);
s.tmp_4.arg0 = false;
s.tmp_4.arg1 = undefined;
- s.callLocIdx = 1015; s.pc = 3; return s.tmp_4;
+ s.callLocIdx = 1018; s.pc = 3; return s.tmp_4;
case 3:
r0 = s.retval;
{ step = 2; continue; }
case 1:
- s.tmp_0 = game_consoleOverlay_setVisible__P2645_mk(s);
+ s.tmp_0 = game_consoleOverlay_setVisible__P62642_mk(s);
s.tmp_0.arg0 = true;
s.tmp_0.arg1 = undefined;
- s.callLocIdx = 1016; s.pc = 4; return s.tmp_0;
+ s.callLocIdx = 1019; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_0 = console_log__P366_mk(s);
+ s.tmp_0 = console_log__P60361_mk(s);
s.tmp_0.arg0 = "console";
- s.callLocIdx = 1017; s.pc = 5; return s.tmp_0;
+ s.callLocIdx = 1020; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
case 2:
@@ -64849,12 +63948,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_toggleConsole__P4536.info = {"start":9365,"length":239,"line":297,"column":4,"endLine":304,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]}
+scene_systemMenu_toggleConsole__P64537.info = {"start":9712,"length":239,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]}
-function scene_systemMenu_toggleConsole__P4536_mk(s) {
+function scene_systemMenu_toggleConsole__P64537_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_toggleConsole__P4536, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_toggleConsole__P64537, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64867,7 +63966,7 @@ function scene_systemMenu_toggleConsole__P4536_mk(s) {
-function game_consoleOverlay_setVisible__P2645(s) {
+function game_consoleOverlay_setVisible__P62642(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64883,7 +63982,7 @@ switch (step) {
s.lambdaArgs = null;
}
s.tmp_1 = r0 = s.arg0;
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
s.tmp_5 = r0;
r0 = pxsim_Boolean__bang(s.tmp_5);
s.tmp_4 = r0;
@@ -64904,26 +64003,26 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_6 = r0;
- globals.consoleStrings___4569 = (s.tmp_6);
+ globals.consoleStrings___64572 = (s.tmp_6);
case 3:
case 4:
r0 = (s.arg1 !== undefined);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- globals.consoleColor___4568 = (s.arg1);
+ globals.consoleColor___64571 = (s.arg1);
case 5:
case 6:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_consoleOverlay_setVisible__P2645.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]}
+game_consoleOverlay_setVisible__P62642.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]}
-function game_consoleOverlay_setVisible__P2645_mk(s) {
+function game_consoleOverlay_setVisible__P62642_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_consoleOverlay_setVisible__P2645, depth: s.depth + 1,
+ parent: s, fn: game_consoleOverlay_setVisible__P62642, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -64940,7 +64039,7 @@ function game_consoleOverlay_setVisible__P2645_mk(s) {
-function scene_systemMenu_toggleStats__P4535(s) {
+function scene_systemMenu_toggleStats__P64536(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64950,20 +64049,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.stats___2521);
+ r0 = pxsim_numops_toBoolDecr(globals.stats___62518);
s.tmp_0 = r0;
r0 = pxsim_Boolean__bang(s.tmp_0);
- globals.stats___2521 = (r0);
+ globals.stats___62518 = (r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_toggleStats__P4535.info = {"start":9295,"length":64,"line":293,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]}
+scene_systemMenu_toggleStats__P64536.info = {"start":9642,"length":64,"line":300,"column":4,"endLine":302,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]}
-function scene_systemMenu_toggleStats__P4535_mk(s) {
+function scene_systemMenu_toggleStats__P64536_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_toggleStats__P4535, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_toggleStats__P64536, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -64972,7 +64071,7 @@ function scene_systemMenu_toggleStats__P4535_mk(s) {
-function scene_systemMenu_brightnessDown__P4534(s) {
+function scene_systemMenu_brightnessDown__P64534(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -64982,12 +64081,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = helpers_setScreenBrightness__P1732_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = globals.brightness___1721;
+ s.tmp_0 = scene_systemMenu_setScreenBrightness__P64535_mk(s);
+ r0 = globals.brightness___61716;
s.tmp_1 = r0;
- r0 = (s.tmp_1 - 10);
- s.tmp_0.arg1 = r0;
+ r0 = (s.tmp_1 - 5);
+ s.tmp_0.arg0 = r0;
s.callLocIdx = 1013; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
@@ -64995,12 +64093,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_brightnessDown__P4534.info = {"start":9200,"length":89,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]}
+scene_systemMenu_brightnessDown__P64534.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]}
-function scene_systemMenu_brightnessDown__P4534_mk(s) {
+function scene_systemMenu_brightnessDown__P64534_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_brightnessDown__P4534, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_brightnessDown__P64534, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65010,7 +64108,53 @@ function scene_systemMenu_brightnessDown__P4534_mk(s) {
-function helpers_setScreenBrightness__P1732(s) {
+function scene_systemMenu_setScreenBrightness__P64535(s) {
+let r0 = s.r0, step = s.pc;
+s.pc = -1;
+
+
+while (true) {
+if (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 = helpers_setScreenBrightness__P61727_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_0.arg1 = s.arg0;
+ s.callLocIdx = 1014; s.pc = 1; return s.tmp_0;
+ case 1:
+ r0 = s.retval;
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ s.tmp_0.arg0 = "#brightness";
+ r0 = globals.brightness___61716;
+ s.tmp_0.arg1 = r0;
+ s.callLocIdx = 1016; s.pc = 2; return s.tmp_0;
+ case 2:
+ r0 = s.retval;
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+scene_systemMenu_setScreenBrightness__P64535.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]}
+
+function scene_systemMenu_setScreenBrightness__P64535_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: scene_systemMenu_setScreenBrightness__P64535, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ arg0: undefined,
+} }
+
+
+
+
+
+function helpers_setScreenBrightness__P61727(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65025,7 +64169,7 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = Math_clamp__P119_mk(s);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 10;
s.tmp_0.arg1 = 100;
r0 = (s.arg1 | 0);
@@ -65034,18 +64178,18 @@ switch (step) {
case 1:
r0 = s.retval;
s.arg1 = (r0);
- globals.brightness___1721 = (s.arg1);
- r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___1721);
+ globals.brightness___61716 = (s.arg1);
+ r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___61716);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-helpers_setScreenBrightness__P1732.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
+helpers_setScreenBrightness__P61727.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]}
-function helpers_setScreenBrightness__P1732_mk(s) {
+function helpers_setScreenBrightness__P61727_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_setScreenBrightness__P1732, depth: s.depth + 1,
+ parent: s, fn: helpers_setScreenBrightness__P61727, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -65056,7 +64200,7 @@ function helpers_setScreenBrightness__P1732_mk(s) {
-function scene_systemMenu_brightnessUp__P4533(s) {
+function scene_systemMenu_brightnessUp__P64533(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65066,12 +64210,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = helpers_setScreenBrightness__P1732_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- r0 = globals.brightness___1721;
+ s.tmp_0 = scene_systemMenu_setScreenBrightness__P64535_mk(s);
+ r0 = globals.brightness___61716;
s.tmp_1 = r0;
- r0 = (s.tmp_1 + 10);
- s.tmp_0.arg1 = r0;
+ r0 = (s.tmp_1 + 5);
+ s.tmp_0.arg0 = r0;
s.callLocIdx = 1011; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
@@ -65079,12 +64222,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_brightnessUp__P4533.info = {"start":9107,"length":87,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]}
+scene_systemMenu_brightnessUp__P64533.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]}
-function scene_systemMenu_brightnessUp__P4533_mk(s) {
+function scene_systemMenu_brightnessUp__P64533_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_brightnessUp__P4533, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_brightnessUp__P64533, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65094,7 +64237,7 @@ function scene_systemMenu_brightnessUp__P4533_mk(s) {
-function scene_systemMenu_volumeDown__P4532(s) {
+function scene_systemMenu_volumeDown__P64532(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65104,29 +64247,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.v___28779 = undefined;
- s.remainder___28782 = undefined;
- s.newVolume___28785 = undefined;
- s.tmp_0 = music_volume__P1590_mk(s);
+ s.v___88770 = undefined;
+ s.remainder___88773 = undefined;
+ s.newVolume___88776 = undefined;
+ s.tmp_0 = music_volume__P61585_mk(s);
s.callLocIdx = 1008; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- s.v___28779 = (r0);
- r0 = (s.v___28779 % 32);
- s.remainder___28782 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.remainder___28782);
+ s.v___88770 = (r0);
+ r0 = (s.v___88770 % 32);
+ s.remainder___88773 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.remainder___88773);
if (!r0) { step = 1; continue; }
- r0 = s.remainder___28782;
+ r0 = s.remainder___88773;
{ step = 2; continue; }
case 1:
r0 = 32;
case 2:
// jmp value (already in r0)
s.tmp_0 = r0;
- r0 = (s.v___28779 - s.tmp_0);
- s.newVolume___28785 = (r0);
- s.tmp_0 = scene_systemMenu_setVolume__P4530_mk(s);
- s.tmp_0.arg0 = s.newVolume___28785;
+ r0 = (s.v___88770 - s.tmp_0);
+ s.newVolume___88776 = (r0);
+ s.tmp_0 = scene_systemMenu_setVolume__P64530_mk(s);
+ s.tmp_0.arg0 = s.newVolume___88776;
s.callLocIdx = 1009; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
@@ -65134,24 +64277,24 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_volumeDown__P4532.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]}
+scene_systemMenu_volumeDown__P64532.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]}
-function scene_systemMenu_volumeDown__P4532_mk(s) {
+function scene_systemMenu_volumeDown__P64532_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_volumeDown__P4532, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_volumeDown__P64532, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- v___28779: undefined,
- remainder___28782: undefined,
- newVolume___28785: undefined,
+ v___88770: undefined,
+ remainder___88773: undefined,
+ newVolume___88776: undefined,
} }
-function scene_systemMenu_setVolume__P4530(s) {
+function scene_systemMenu_setVolume__P64530(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65165,18 +64308,18 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = music_setVolume__P1589_mk(s);
+ s.tmp_0 = music_setVolume__P61584_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 1003; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = music_playTone__P1591_mk(s);
+ s.tmp_0 = music_playTone__P61586_mk(s);
s.tmp_0.arg0 = 440;
s.tmp_0.arg1 = 500;
s.callLocIdx = 1004; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
s.tmp_0.arg0 = "#volume";
s.tmp_0.arg1 = s.arg0;
s.callLocIdx = 1005; s.pc = 3; return s.tmp_0;
@@ -65186,12 +64329,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_setVolume__P4530.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]}
+scene_systemMenu_setVolume__P64530.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]}
-function scene_systemMenu_setVolume__P4530_mk(s) {
+function scene_systemMenu_setVolume__P64530_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_setVolume__P4530, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_setVolume__P64530, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -65201,7 +64344,7 @@ function scene_systemMenu_setVolume__P4530_mk(s) {
-function music_playTone__P1591(s) {
+function music_playTone__P61586(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65211,7 +64354,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.id___28620 = undefined;
+ s.id___88611 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -65236,7 +64379,7 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.tmp_2 = music_playNoteCore__P3997_mk(s);
+ s.tmp_2 = music_playNoteCore__P63994_mk(s);
s.tmp_2.arg0 = 0;
s.tmp_2.arg1 = s.arg0;
r0 = pxsim_pxtrt_ldlocRef(s.arg1);
@@ -65244,7 +64387,7 @@ switch (step) {
s.callLocIdx = 77; s.pc = 5; return s.tmp_2;
case 5:
r0 = s.retval;
- s.tmp_0 = pause__P399_mk(s);
+ s.tmp_0 = pause__P60394_mk(s);
r0 = pxsim_pxtrt_ldlocRef(s.arg1);
s.tmp_0.arg0 = r0;
s.callLocIdx = 78; s.pc = 6; return s.tmp_0;
@@ -65252,13 +64395,13 @@ switch (step) {
r0 = s.retval;
{ step = 4; continue; }
case 3:
- r0 = (globals.playToneID___3999 + 1);
+ r0 = (globals.playToneID___63996 + 1);
s.tmp_0 = r0;
- globals.playToneID___3999 = (r0);
- s.id___28620 = (s.tmp_0);
- r0 = pxsim_pxtcore_mkAction(3, inline__P28626);
+ globals.playToneID___63996 = (r0);
+ s.id___88611 = (s.tmp_0);
+ r0 = pxsim_pxtcore_mkAction(3, inline__P88617);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___28620);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___88611);
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);
@@ -65267,17 +64410,17 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-music_playTone__P1591.info = {"start":2591,"length":831,"line":83,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]}
+music_playTone__P61586.info = {"start":2591,"length":831,"line":83,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]}
-function music_playTone__P1591_mk(s) {
+function music_playTone__P61586_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_playTone__P1591, depth: s.depth + 1,
+ parent: s, fn: music_playTone__P61586, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- id___28620: undefined,
+ id___88611: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -65286,7 +64429,7 @@ function music_playTone__P1591_mk(s) {
-function inline__P28626(s) {
+function inline__P88617(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65296,14 +64439,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.pos___28627 = undefined;
- s.now___28637 = undefined;
- s.d___28640 = undefined;
- s.t___28644 = undefined;
+ s.pos___88618 = undefined;
+ s.now___88628 = undefined;
+ s.d___88631 = undefined;
+ s.t___88635 = undefined;
r0 = pxsim.control.millis();
- s.pos___28627 = (r0);
+ s.pos___88618 = (r0);
case 1:
- r0 = (s.caps[0] == globals.playToneID___3999);
+ r0 = (s.caps[0] == globals.playToneID___63996);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 2; continue; }
@@ -65319,30 +64462,30 @@ switch (step) {
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 6; continue; }
r0 = pxsim.control.millis();
- s.now___28637 = (r0);
- r0 = (s.pos___28627 - s.now___28637);
- s.d___28640 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
+ s.now___88628 = (r0);
+ r0 = (s.pos___88618 - s.now___88628);
+ s.d___88631 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = 500;
s.callLocIdx = 79; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.t___28644 = (r0);
+ s.t___88635 = (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___28644);
+ r0 = (s.tmp_2 - s.t___88635);
s.tmp_1 = r0;
r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1);
- r0 = (s.pos___28627 + s.t___28644);
- s.pos___28627 = (r0);
- s.tmp_0 = music_playNoteCore__P3997_mk(s);
- r0 = (s.d___28640 - 1);
+ r0 = (s.pos___88618 + s.t___88635);
+ s.pos___88618 = (r0);
+ s.tmp_0 = music_playNoteCore__P63994_mk(s);
+ r0 = (s.d___88631 - 1);
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = s.caps[2];
- s.tmp_0.arg2 = s.t___28644;
+ s.tmp_0.arg2 = s.t___88635;
s.callLocIdx = 80; s.pc = 8; return s.tmp_0;
case 8:
r0 = s.retval;
@@ -65352,16 +64495,16 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 4; continue; }
- s.tmp_2 = pause__P399_mk(s);
- r0 = (s.d___28640 + s.t___28644);
+ s.tmp_2 = pause__P60394_mk(s);
+ r0 = (s.d___88631 + s.t___88635);
s.tmp_2.arg0 = r0;
s.callLocIdx = 81; s.pc = 9; return s.tmp_2;
case 9:
r0 = s.retval;
{ step = 5; continue; }
case 4:
- s.tmp_0 = pause__P399_mk(s);
- r0 = (s.d___28640 + s.t___28644);
+ s.tmp_0 = pause__P60394_mk(s);
+ r0 = (s.d___88631 + s.t___88635);
s.tmp_1 = r0;
r0 = (s.tmp_1 - 100);
s.tmp_0.arg0 = r0;
@@ -65375,27 +64518,27 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28626.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]}
+inline__P88617.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]}
-function inline__P28626_mk(s) {
+function inline__P88617_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28626, depth: s.depth + 1,
+ parent: s, fn: inline__P88617, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- pos___28627: undefined,
- now___28637: undefined,
- d___28640: undefined,
- t___28644: undefined,
+ pos___88618: undefined,
+ now___88628: undefined,
+ d___88631: undefined,
+ t___88635: undefined,
} }
-function music_playNoteCore__P3997(s) {
+function music_playNoteCore__P63994(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65405,7 +64548,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.buf___28674 = undefined;
+ s.buf___88665 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -65413,16 +64556,16 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = pxsim.control.createBuffer(12);
- s.buf___28674 = (r0);
- s.tmp_0 = music_addNote__P4004_mk(s);
- s.tmp_0.arg0 = s.buf___28674;
+ s.buf___88665 = (r0);
+ s.tmp_0 = music_addNote__P64001_mk(s);
+ s.tmp_0.arg0 = s.buf___88665;
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__P1590_mk(s);
+ s.tmp_1 = music_volume__P61585_mk(s);
s.callLocIdx = 75; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
@@ -65431,21 +64574,21 @@ switch (step) {
s.callLocIdx = 76; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___28674);
+ r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___88665);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-music_playNoteCore__P3997.info = {"start":1877,"length":240,"line":66,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playNoteCore","argumentNames":["when","frequency","ms"]}
+music_playNoteCore__P63994.info = {"start":1877,"length":240,"line":66,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playNoteCore","argumentNames":["when","frequency","ms"]}
-function music_playNoteCore__P3997_mk(s) {
+function music_playNoteCore__P63994_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_playNoteCore__P3997, depth: s.depth + 1,
+ parent: s, fn: music_playNoteCore__P63994, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- buf___28674: undefined,
+ buf___88665: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -65455,7 +64598,7 @@ function music_playNoteCore__P3997_mk(s) {
-function music_addNote__P4004(s) {
+function music_addNote__P64001(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65523,12 +64666,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-music_addNote__P4004.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]}
+music_addNote__P64001.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]}
-function music_addNote__P4004_mk(s) {
+function music_addNote__P64001_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_addNote__P4004, depth: s.depth + 1,
+ parent: s, fn: music_addNote__P64001, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65549,7 +64692,7 @@ function music_addNote__P4004_mk(s) {
-function music_setVolume__P1589(s) {
+function music_setVolume__P61584(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65563,7 +64706,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = Math_clamp__P119_mk(s);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 0;
s.tmp_0.arg1 = 255;
r0 = (s.arg0 | 0);
@@ -65571,8 +64714,8 @@ switch (step) {
s.callLocIdx = 72; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- globals.globalVolume___3992 = (r0);
- r0 = (globals.globalVolume___3992 > 0);
+ globals.globalVolume___63989 = (r0);
+ r0 = (globals.globalVolume___63989 > 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
@@ -65588,12 +64731,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-music_setVolume__P1589.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]}
+music_setVolume__P61584.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]}
-function music_setVolume__P1589_mk(s) {
+function music_setVolume__P61584_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_setVolume__P1589, depth: s.depth + 1,
+ parent: s, fn: music_setVolume__P61584, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65604,7 +64747,7 @@ function music_setVolume__P1589_mk(s) {
-function music_enableAmp__P3995(s) {
+function music_enableAmp__P63992(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65622,12 +64765,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-music_enableAmp__P3995.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]}
+music_enableAmp__P63992.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]}
-function music_enableAmp__P3995_mk(s) {
+function music_enableAmp__P63992_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_enableAmp__P3995, depth: s.depth + 1,
+ parent: s, fn: music_enableAmp__P63992, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -65636,7 +64779,7 @@ function music_enableAmp__P3995_mk(s) {
-function scene_systemMenu_volumeUp__P4531(s) {
+function scene_systemMenu_volumeUp__P64531(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65646,22 +64789,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.v___28588 = undefined;
- s.remainder___28591 = undefined;
- s.newVolume___28594 = undefined;
- s.tmp_0 = music_volume__P1590_mk(s);
+ s.v___88579 = undefined;
+ s.remainder___88582 = undefined;
+ s.newVolume___88585 = undefined;
+ s.tmp_0 = music_volume__P61585_mk(s);
s.callLocIdx = 1006; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.v___28588 = (r0);
- r0 = (s.v___28588 % 32);
- s.remainder___28591 = (r0);
- r0 = (s.v___28588 + 32);
+ s.v___88579 = (r0);
+ r0 = (s.v___88579 % 32);
+ s.remainder___88582 = (r0);
+ r0 = (s.v___88579 + 32);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.remainder___28591);
- s.newVolume___28594 = (r0);
- s.tmp_0 = scene_systemMenu_setVolume__P4530_mk(s);
- s.tmp_0.arg0 = s.newVolume___28594;
+ r0 = (s.tmp_0 - s.remainder___88582);
+ s.newVolume___88585 = (r0);
+ s.tmp_0 = scene_systemMenu_setVolume__P64530_mk(s);
+ s.tmp_0.arg0 = s.newVolume___88585;
s.callLocIdx = 1007; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
@@ -65669,24 +64812,24 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_volumeUp__P4531.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]}
+scene_systemMenu_volumeUp__P64531.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]}
-function scene_systemMenu_volumeUp__P4531_mk(s) {
+function scene_systemMenu_volumeUp__P64531_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_volumeUp__P4531, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_volumeUp__P64531, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
- v___28588: undefined,
- remainder___28591: undefined,
- newVolume___28594: undefined,
+ v___88579: undefined,
+ remainder___88582: undefined,
+ newVolume___88585: undefined,
} }
-function game_consoleOverlay_isVisible__P2643(s) {
+function game_consoleOverlay_isVisible__P62640(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65696,7 +64839,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569);
+ r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___64572);
s.tmp_2 = r0;
r0 = pxsim_Boolean__bang(s.tmp_2);
s.tmp_1 = r0;
@@ -65706,12 +64849,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-game_consoleOverlay_isVisible__P2643.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]}
+game_consoleOverlay_isVisible__P62640.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]}
-function game_consoleOverlay_isVisible__P2643_mk(s) {
+function game_consoleOverlay_isVisible__P62640_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_consoleOverlay_isVisible__P2643, depth: s.depth + 1,
+ parent: s, fn: game_consoleOverlay_isVisible__P62640, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65722,7 +64865,7 @@ function game_consoleOverlay_isVisible__P2643_mk(s) {
-function scene_systemMenu_closeMenu__P2621(s) {
+function scene_systemMenu_closeMenu__P62618(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65732,21 +64875,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.instance___4526);
+ r0 = pxsim_numops_toBoolDecr(globals.instance___64526);
if (!r0) { step = 1; continue; }
- s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P2620_mk(s);
- s.tmp_0.arg0 = globals.instance___4526;
- s.callLocIdx = 1018; s.pc = 3; return s.tmp_0;
+ s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P62617_mk(s);
+ s.tmp_0.arg0 = globals.instance___64526;
+ s.callLocIdx = 1021; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- globals.instance___4526 = (undefined);
- s.tmp_0 = controller__setUserEventsEnabled__P1951_mk(s);
+ globals.instance___64526 = (undefined);
+ s.tmp_0 = controller__setUserEventsEnabled__P61946_mk(s);
s.tmp_0.arg0 = true;
- s.callLocIdx = 1019; s.pc = 4; return s.tmp_0;
+ s.callLocIdx = 1022; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_0 = game_popScene__P2529_mk(s);
- s.callLocIdx = 1020; s.pc = 5; return s.tmp_0;
+ s.tmp_0 = game_popScene__P62526_mk(s);
+ s.callLocIdx = 1023; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
case 1:
@@ -65755,12 +64898,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_closeMenu__P2621.info = {"start":9667,"length":216,"line":310,"column":4,"endLine":317,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]}
+scene_systemMenu_closeMenu__P62618.info = {"start":10014,"length":216,"line":317,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]}
-function scene_systemMenu_closeMenu__P2621_mk(s) {
+function scene_systemMenu_closeMenu__P62618_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_closeMenu__P2621, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_closeMenu__P62618, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -65769,7 +64912,7 @@ function scene_systemMenu_closeMenu__P2621_mk(s) {
-function scene_systemMenu_PauseMenu_dispose__P2620(s) {
+function scene_systemMenu_PauseMenu_dispose__P62617(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65784,15 +64927,15 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_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__P104_mk(s);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["options"];
s.tmp_1.arg0 = r0;
- s.tmp_1.arg1 = inline__P28291;
+ s.tmp_1.arg1 = inline__P88277;
s.callLocIdx = 999; s.pc = 3; return s.tmp_1;
case 3:
r0 = s.retval;
@@ -65803,12 +64946,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_dispose__P2620.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]}
+scene_systemMenu_PauseMenu_dispose__P62617.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]}
-function scene_systemMenu_PauseMenu_dispose__P2620_mk(s) {
+function scene_systemMenu_PauseMenu_dispose__P62617_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_dispose__P2620, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_dispose__P62617, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65819,7 +64962,7 @@ function scene_systemMenu_PauseMenu_dispose__P2620_mk(s) {
-function inline__P28291(s) {
+function inline__P88277(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65833,7 +64976,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = scene_systemMenu_MenuOption_dispose__P2613_mk(s);
+ s.tmp_0 = scene_systemMenu_MenuOption_dispose__P62610_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 998; s.pc = 1; return s.tmp_0;
case 1:
@@ -65842,12 +64985,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28291.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]}
+inline__P88277.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]}
-function inline__P28291_mk(s) {
+function inline__P88277_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28291, depth: s.depth + 1,
+ parent: s, fn: inline__P88277, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -65857,7 +65000,7 @@ function inline__P28291_mk(s) {
-function scene_systemMenu_MenuOption_dispose__P2613(s) {
+function scene_systemMenu_MenuOption_dispose__P62610(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65872,12 +65015,12 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = s.arg0.fields["card"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = Sprite_destroy__P2084_mk(s);
+ s.tmp_1 = Sprite_destroy__P62079_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = undefined;
@@ -65885,7 +65028,7 @@ switch (step) {
s.callLocIdx = 918; s.pc = 3; return s.tmp_1;
case 3:
r0 = s.retval;
- s.tmp_0 = Sprite_destroy__P2084_mk(s);
+ s.tmp_0 = Sprite_destroy__P62079_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = undefined;
@@ -65901,12 +65044,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_dispose__P2613.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]}
+scene_systemMenu_MenuOption_dispose__P62610.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__P2613_mk(s) {
+function scene_systemMenu_MenuOption_dispose__P62610_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_dispose__P2613, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_dispose__P62610, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -65917,7 +65060,7 @@ function scene_systemMenu_MenuOption_dispose__P2613_mk(s) {
-function controller__setUserEventsEnabled__P1951(s) {
+function controller__setUserEventsEnabled__P61946(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65931,17 +65074,17 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- globals._userEventsEnabled___4106 = (s.arg0);
+ globals._userEventsEnabled___64103 = (s.arg0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-controller__setUserEventsEnabled__P1951.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]}
+controller__setUserEventsEnabled__P61946.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]}
-function controller__setUserEventsEnabled__P1951_mk(s) {
+function controller__setUserEventsEnabled__P61946_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller__setUserEventsEnabled__P1951, depth: s.depth + 1,
+ parent: s, fn: controller__setUserEventsEnabled__P61946, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -65950,7 +65093,7 @@ function controller__setUserEventsEnabled__P1951_mk(s) {
-function scene_systemMenu_MenuOption_constructor__P2607(s) {
+function scene_systemMenu_MenuOption_constructor__P62604(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -65968,7 +65111,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = (s.arg0).fields["iconImage"] = (s.arg1);
r0 = (s.arg0).fields["getText"] = (s.arg2);
r0 = (s.arg0).fields["action"] = (s.arg3);
@@ -65976,12 +65119,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_constructor__P2607.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]}
+scene_systemMenu_MenuOption_constructor__P62604.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]}
-function scene_systemMenu_MenuOption_constructor__P2607_mk(s) {
+function scene_systemMenu_MenuOption_constructor__P62604_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_constructor__P2607, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_constructor__P62604, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -65993,7 +65136,7 @@ function scene_systemMenu_MenuOption_constructor__P2607_mk(s) {
-function helpers_screenBrightness__P1733(s) {
+function helpers_screenBrightness__P61728(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66007,16 +65150,16 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = globals.brightness___1721;
+ r0 = globals.brightness___61716;
return leave(s, r0)
default: oops()
} } }
-helpers_screenBrightness__P1733.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
+helpers_screenBrightness__P61728.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]}
-function helpers_screenBrightness__P1733_mk(s) {
+function helpers_screenBrightness__P61728_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_screenBrightness__P1733, depth: s.depth + 1,
+ parent: s, fn: helpers_screenBrightness__P61728, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -66025,7 +65168,7 @@ function helpers_screenBrightness__P1733_mk(s) {
-function music_volume__P1590(s) {
+function music_volume__P61585(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66035,20 +65178,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = music_initVolume__P3996_mk(s);
+ s.tmp_0 = music_initVolume__P63993_mk(s);
s.callLocIdx = 74; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = globals.globalVolume___3992;
+ r0 = globals.globalVolume___63989;
return leave(s, r0)
default: oops()
} } }
-music_volume__P1590.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]}
+music_volume__P61585.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]}
-function music_volume__P1590_mk(s) {
+function music_volume__P61585_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_volume__P1590, depth: s.depth + 1,
+ parent: s, fn: music_volume__P61585, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -66057,7 +65200,7 @@ function music_volume__P1590_mk(s) {
-function music_initVolume__P3996(s) {
+function music_initVolume__P63993(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66067,12 +65210,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = (globals.globalVolume___3992 === null);
+ r0 = (globals.globalVolume___63989 === null);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- globals.globalVolume___3992 = (0);
- s.tmp_0 = music_setVolume__P1589_mk(s);
+ globals.globalVolume___63989 = (0);
+ s.tmp_0 = music_setVolume__P61584_mk(s);
r0 = pxsim_pxtcore.getConfig(59, 128);
s.tmp_0.arg0 = r0;
s.callLocIdx = 71; s.pc = 3; return s.tmp_0;
@@ -66084,12 +65227,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-music_initVolume__P3996.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]}
+music_initVolume__P63993.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]}
-function music_initVolume__P3996_mk(s) {
+function music_initVolume__P63993_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_initVolume__P3996, depth: s.depth + 1,
+ parent: s, fn: music_initVolume__P63993, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -66098,7 +65241,7 @@ function music_initVolume__P3996_mk(s) {
-function scene_systemMenu_PauseMenu_show__P2616(s) {
+function scene_systemMenu_PauseMenu_show__P62613(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66108,14 +65251,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.current___27825 = undefined;
- s.i___27826 = undefined;
+ s.current___87811 = undefined;
+ s.i___87812 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
s.tmp_2 = if_generator_1_mk(s);
s.tmp_2.arg0 = s.arg0;
@@ -66133,9 +65276,9 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["options"] = (s.tmp_1);
r0 = (s.arg0).fields["selection"] = (0);
- s.i___27826 = (0);
+ s.i___87812 = (0);
case 1:
- s.tmp_1 = r0 = s.i___27826;
+ s.tmp_1 = r0 = s.i___87812;
r0 = s.arg0.fields["options"];
s.tmp_3 = r0;
r0 = pxsim_Array__length(s.tmp_3);
@@ -66146,22 +65289,22 @@ switch (step) {
if (!r0) { step = 2; continue; }
r0 = s.arg0.fields["options"];
s.tmp_4 = r0;
- r0 = pxsim_Array__getAt(s.tmp_4, s.i___27826);
- s.current___27825 = (r0);
- s.tmp_0 = scene_systemMenu_MenuOption_show__P2608_mk(s);
- s.tmp_0.arg0 = s.current___27825;
+ r0 = pxsim_Array__getAt(s.tmp_4, s.i___87812);
+ s.current___87811 = (r0);
+ s.tmp_0 = scene_systemMenu_MenuOption_show__P62605_mk(s);
+ s.tmp_0.arg0 = s.current___87811;
s.callLocIdx = 932; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P2611_mk(s);
- s.tmp_0.arg0 = s.current___27825;
+ s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P62608_mk(s);
+ s.tmp_0.arg0 = s.current___87811;
r0 = s.arg0.fields["theme"];
s.tmp_0.arg1 = r0;
s.callLocIdx = 933; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tmp_0 = scene_systemMenu_MenuOption_position__P2609_mk(s);
- s.tmp_0.arg0 = s.current___27825;
+ s.tmp_0 = scene_systemMenu_MenuOption_position__P62606_mk(s);
+ s.tmp_0.arg0 = s.current___87811;
s.tmp_2 = if_padding_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_2.arg0 = r0;
@@ -66176,7 +65319,7 @@ switch (step) {
case 7:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_5 = r0 = s.i___27826;
+ s.tmp_5 = r0 = s.i___87812;
s.tmp_7 = if_cardsPerRow_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_7.arg0 = r0;
@@ -66241,7 +65384,7 @@ switch (step) {
case 11:
r0 = s.retval;
s.tmp_13 = r0;
- s.tmp_17 = r0 = s.i___27826;
+ s.tmp_17 = r0 = s.i___87812;
s.tmp_19 = if_cardsPerRow_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_19.arg0 = r0;
@@ -66295,98 +65438,98 @@ switch (step) {
s.callLocIdx = 942; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- r0 = (s.i___27826 + 1);
- s.i___27826 = (r0);
+ r0 = (s.i___87812 + 1);
+ s.i___87812 = (r0);
{ step = 1; continue; }
case 2:
- s.tmp_0 = controller__setUserEventsEnabled__P1951_mk(s);
+ s.tmp_0 = controller__setUserEventsEnabled__P61946_mk(s);
s.tmp_0.arg0 = false;
s.callLocIdx = 943; s.pc = 15; return s.tmp_0;
case 15:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27889);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87875);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
s.tmp_1.arg1 = 2053;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 945; s.pc = 16; return s.tmp_1;
case 16:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27909);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87895);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.A___1874;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.A___61869;
s.tmp_1.arg1 = 2052;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 947; s.pc = 17; return s.tmp_1;
case 17:
r0 = s.retval;
- s.tmp_0 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_0.arg0 = globals.B___1875;
+ s.tmp_0 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_0.arg0 = globals.B___61870;
s.tmp_0.arg1 = 2053;
- s.tmp_0.arg2 = inline__P27938;
+ s.tmp_0.arg2 = inline__P87924;
s.callLocIdx = 949; s.pc = 18; return s.tmp_0;
case 18:
r0 = s.retval;
- s.tmp_0 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_0.arg0 = globals.menu___1880;
+ s.tmp_0 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_0.arg0 = globals.menu___61875;
s.tmp_0.arg1 = 2053;
- s.tmp_0.arg2 = inline__P27943;
+ s.tmp_0.arg2 = inline__P87929;
s.callLocIdx = 951; s.pc = 19; return s.tmp_0;
case 19:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27948);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87934);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.up___1877;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.up___61872;
s.tmp_1.arg1 = 2053;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 955; s.pc = 20; return s.tmp_1;
case 20:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27960);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87946);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.left___1876;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.left___61871;
s.tmp_1.arg1 = 2053;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 958; s.pc = 21; return s.tmp_1;
case 21:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27969);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87955);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.down___1879;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.down___61874;
s.tmp_1.arg1 = 2053;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 962; s.pc = 22; return s.tmp_1;
case 22:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27985);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87971);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = controller_Button_onEvent__P1907_mk(s);
- s.tmp_1.arg0 = globals.right___1878;
+ s.tmp_1 = controller_Button_onEvent__P61902_mk(s);
+ s.tmp_1.arg0 = globals.right___61873;
s.tmp_1.arg1 = 2053;
s.tmp_1.arg2 = s.tmp_0;
s.callLocIdx = 965; s.pc = 23; return s.tmp_1;
case 23:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P27997);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P87983);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = game_onShade__P2539_mk(s);
+ s.tmp_1 = game_onShade__P62536_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.callLocIdx = 968; s.pc = 24; return s.tmp_1;
case 24:
r0 = s.retval;
- s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P62615_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
s.callLocIdx = 969; s.pc = 25; return s.tmp_0;
@@ -66396,12 +65539,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_show__P2616.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]}
+scene_systemMenu_PauseMenu_show__P62613.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]}
-function scene_systemMenu_PauseMenu_show__P2616_mk(s) {
+function scene_systemMenu_PauseMenu_show__P62613_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_show__P2616, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_show__P62613, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66428,8 +65571,8 @@ function scene_systemMenu_PauseMenu_show__P2616_mk(s) {
tmp_22: undefined,
tmp_23: undefined,
tmp_24: undefined,
- current___27825: undefined,
- i___27826: undefined,
+ current___87811: undefined,
+ i___87812: undefined,
arg0: undefined,
} }
@@ -66437,7 +65580,7 @@ function scene_systemMenu_PauseMenu_show__P2616_mk(s) {
-function inline__P27889(s) {
+function inline__P87875(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66475,7 +65618,7 @@ switch (step) {
{ step = 5; continue; }
case 3:
case 4:
- s.tmp_8 = scene_systemMenu_MenuOption_setState__P2612_mk(s);
+ s.tmp_8 = scene_systemMenu_MenuOption_setState__P62609_mk(s);
r0 = s.caps[0].fields["options"];
s.tmp_9 = r0;
r0 = s.caps[0].fields["selection"];
@@ -66491,12 +65634,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27889.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87875.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27889_mk(s) {
+function inline__P87875_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27889, depth: s.depth + 1,
+ parent: s, fn: inline__P87875, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66515,7 +65658,7 @@ function inline__P27889_mk(s) {
-function inline__P27909(s) {
+function inline__P87895(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66553,7 +65696,7 @@ switch (step) {
{ step = 5; continue; }
case 3:
case 4:
- s.tmp_8 = scene_systemMenu_MenuOption_setState__P2612_mk(s);
+ s.tmp_8 = scene_systemMenu_MenuOption_setState__P62609_mk(s);
r0 = s.caps[0].fields["options"];
s.tmp_9 = r0;
r0 = s.caps[0].fields["selection"];
@@ -66577,12 +65720,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27909.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87895.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27909_mk(s) {
+function inline__P87895_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27909, depth: s.depth + 1,
+ parent: s, fn: inline__P87895, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66601,7 +65744,7 @@ function inline__P27909_mk(s) {
-function inline__P27938(s) {
+function inline__P87924(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66611,7 +65754,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_closeMenu__P2621_mk(s);
+ s.tmp_0 = scene_systemMenu_closeMenu__P62618_mk(s);
s.callLocIdx = 948; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
@@ -66619,12 +65762,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27938.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87924.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27938_mk(s) {
+function inline__P87924_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27938, depth: s.depth + 1,
+ parent: s, fn: inline__P87924, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -66633,7 +65776,7 @@ function inline__P27938_mk(s) {
-function inline__P27943(s) {
+function inline__P87929(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66643,7 +65786,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_closeMenu__P2621_mk(s);
+ s.tmp_0 = scene_systemMenu_closeMenu__P62618_mk(s);
s.callLocIdx = 950; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
@@ -66651,12 +65794,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27943.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87929.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27943_mk(s) {
+function inline__P87929_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27943, depth: s.depth + 1,
+ parent: s, fn: inline__P87929, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -66665,7 +65808,7 @@ function inline__P27943_mk(s) {
-function inline__P27948(s) {
+function inline__P87934(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66675,9 +65818,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P62615_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_1 = Math_max__P122_mk(s);
+ s.tmp_1 = Math_max__P60117_mk(s);
s.tmp_1.arg0 = 0;
r0 = s.caps[0].fields["selection"];
s.tmp_2 = r0;
@@ -66708,12 +65851,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27948.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87934.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27948_mk(s) {
+function inline__P87934_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27948, depth: s.depth + 1,
+ parent: s, fn: inline__P87934, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66726,7 +65869,7 @@ function inline__P27948_mk(s) {
-function inline__P27960(s) {
+function inline__P87946(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66736,9 +65879,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P62615_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_1 = Math_max__P122_mk(s);
+ s.tmp_1 = Math_max__P60117_mk(s);
s.tmp_1.arg0 = 0;
r0 = s.caps[0].fields["selection"];
s.tmp_2 = r0;
@@ -66755,12 +65898,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27960.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87946.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27960_mk(s) {
+function inline__P87946_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27960, depth: s.depth + 1,
+ parent: s, fn: inline__P87946, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66771,7 +65914,7 @@ function inline__P27960_mk(s) {
-function inline__P27969(s) {
+function inline__P87955(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66781,9 +65924,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P62615_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_1 = Math_min__P123_mk(s);
+ s.tmp_1 = Math_min__P60118_mk(s);
r0 = s.caps[0].fields["options"];
s.tmp_3 = r0;
r0 = pxsim_Array__length(s.tmp_3);
@@ -66819,12 +65962,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27969.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87955.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27969_mk(s) {
+function inline__P87955_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27969, depth: s.depth + 1,
+ parent: s, fn: inline__P87955, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66839,7 +65982,7 @@ function inline__P27969_mk(s) {
-function inline__P27985(s) {
+function inline__P87971(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66849,9 +65992,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P62615_mk(s);
s.tmp_0.arg0 = s.caps[0];
- s.tmp_1 = Math_min__P123_mk(s);
+ s.tmp_1 = Math_min__P60118_mk(s);
r0 = s.caps[0].fields["options"];
s.tmp_3 = r0;
r0 = pxsim_Array__length(s.tmp_3);
@@ -66873,12 +66016,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27985.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87971.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27985_mk(s) {
+function inline__P87971_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27985, depth: s.depth + 1,
+ parent: s, fn: inline__P87971, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -66891,7 +66034,7 @@ function inline__P27985_mk(s) {
-function inline__P27997(s) {
+function inline__P87983(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66901,12 +66044,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P62614_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.callLocIdx = 966; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P2619_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P62616_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.callLocIdx = 967; s.pc = 2; return s.tmp_0;
case 2:
@@ -66915,12 +66058,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P27997.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
+inline__P87983.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]}
-function inline__P27997_mk(s) {
+function inline__P87983_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P27997, depth: s.depth + 1,
+ parent: s, fn: inline__P87983, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -66929,7 +66072,7 @@ function inline__P27997_mk(s) {
-function scene_systemMenu_PauseMenu_drawText__P2619(s) {
+function scene_systemMenu_PauseMenu_drawText__P62616(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -66944,7 +66087,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
r0 = s.arg0.fields["options"];
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
@@ -66956,11 +66099,11 @@ switch (step) {
{ step = 3; continue; }
case 1:
case 2:
- s.tmp_3 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_3.arg0 = globals.screen___1799;
+ s.tmp_3 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_3.arg0 = globals.screen___61794;
s.tmp_3.arg1 = 0;
s.tmp_3.arg2 = 0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_3.arg3 = r0;
s.tmp_5 = if_cardsTop_1_mk(s);
r0 = s.arg0.fields["theme"];
@@ -66982,8 +66125,8 @@ switch (step) {
s.callLocIdx = 981; s.pc = 4; return s.tmp_3;
case 4:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrintCenter__P1756_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imagePrintCenter__P61751_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_1 = if_headerText_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_1.arg0 = r0;
@@ -67017,8 +66160,8 @@ switch (step) {
s.callLocIdx = 984; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_0.arg1 = 0;
s.tmp_2 = if_infoTop_1_mk(s);
r0 = s.arg0.fields["theme"];
@@ -67036,9 +66179,9 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_1 - 3);
s.tmp_0.arg2 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_0.arg3 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_4 = r0;
s.tmp_6 = if_infoTop_1_mk(s);
r0 = s.arg0.fields["theme"];
@@ -67062,8 +66205,8 @@ switch (step) {
s.callLocIdx = 987; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.tmp_0 = helpers_imageFillRect__P1725_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imageFillRect__P61720_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_1 = if_padding_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_1.arg0 = r0;
@@ -67092,7 +66235,7 @@ switch (step) {
case 14:
r0 = s.retval;
s.tmp_0.arg2 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_3 = r0;
s.tmp_6 = if_padding_1_mk(s);
r0 = s.arg0.fields["theme"];
@@ -67144,8 +66287,8 @@ switch (step) {
s.callLocIdx = 993; s.pc = 12; return s.tmp_0;
case 12:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrintCenter__P1756_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imagePrintCenter__P61751_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_1 = if_getText_1_mk(s);
r0 = s.arg0.fields["options"];
s.tmp_2 = r0;
@@ -67204,12 +66347,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_drawText__P2619.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]}
+scene_systemMenu_PauseMenu_drawText__P62616.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]}
-function scene_systemMenu_PauseMenu_drawText__P2619_mk(s) {
+function scene_systemMenu_PauseMenu_drawText__P62616_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_drawText__P2619, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_drawText__P62616, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67228,7 +66371,7 @@ function scene_systemMenu_PauseMenu_drawText__P2619_mk(s) {
-function helpers_imagePrintCenter__P1756(s) {
+function helpers_imagePrintCenter__P61751(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67238,8 +66381,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.w___28084 = undefined;
- s.x___28090 = undefined;
+ s.w___88070 = undefined;
+ s.x___88076 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -67254,7 +66397,7 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_2 = image_getFontForText__P1744_mk(s);
+ s.tmp_2 = image_getFontForText__P61739_mk(s);
s.tmp_2.arg0 = s.arg1;
s.callLocIdx = 105; s.pc = 3; return s.tmp_2;
case 3:
@@ -67278,17 +66421,17 @@ switch (step) {
r0 = s.retval;
s.tmp_1 = r0;
r0 = (s.tmp_0 * s.tmp_1);
- s.w___28084 = (r0);
+ s.w___88070 = (r0);
r0 = pxsim_ImageMethods.width(s.arg0);
s.tmp_1 = r0;
- r0 = (s.tmp_1 - s.w___28084);
+ r0 = (s.tmp_1 - s.w___88070);
s.tmp_0 = r0;
r0 = (s.tmp_0 / 2);
- s.x___28090 = (r0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
+ s.x___88076 = (r0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.tmp_0.arg2 = s.x___28090;
+ s.tmp_0.arg2 = s.x___88076;
s.tmp_0.arg3 = s.arg2;
s.tmp_0.arg4 = s.arg3;
s.tmp_0.arg5 = s.arg4;
@@ -67300,18 +66443,18 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-helpers_imagePrintCenter__P1756.info = {"start":15025,"length":295,"line":206,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrintCenter","argumentNames":["img","text","y","color","font"]}
+helpers_imagePrintCenter__P61751.info = {"start":15025,"length":295,"line":206,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrintCenter","argumentNames":["img","text","y","color","font"]}
-function helpers_imagePrintCenter__P1756_mk(s) {
+function helpers_imagePrintCenter__P61751_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_imagePrintCenter__P1756, depth: s.depth + 1,
+ parent: s, fn: helpers_imagePrintCenter__P61751, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- w___28084: undefined,
- x___28090: undefined,
+ w___88070: undefined,
+ x___88076: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -67323,7 +66466,7 @@ function helpers_imagePrintCenter__P1756_mk(s) {
-function scene_systemMenu_PauseMenu_setSelection__P2618(s) {
+function scene_systemMenu_PauseMenu_setSelection__P62615(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67339,7 +66482,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
r0 = s.arg0.fields["options"];
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
@@ -67359,7 +66502,7 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 3; continue; }
- s.tmp_6 = scene_systemMenu_MenuOption_setState__P2612_mk(s);
+ s.tmp_6 = scene_systemMenu_MenuOption_setState__P62609_mk(s);
r0 = s.arg0.fields["options"];
s.tmp_7 = r0;
r0 = s.arg0.fields["selection"];
@@ -67381,9 +66524,9 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- s.tmp_4 = controller_Button__C1900_v0_1_mk(s);
- s.tmp_4.arg0 = globals.A___1874;
- if (!checkSubtype(s.tmp_4.arg0, controller_Button__C1900_VT)) failedCast(s.tmp_4.arg0);
+ s.tmp_4 = controller_Button__C61895_v0_1_mk(s);
+ s.tmp_4.arg0 = globals.A___61869;
+ if (!checkSubtype(s.tmp_4.arg0, controller_Button__C61895_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:
@@ -67398,7 +66541,7 @@ switch (step) {
case 6:
// jmp value (already in r0)
s.tmp_5 = r0;
- s.tmp_6 = scene_systemMenu_MenuOption_setState__P2612_mk(s);
+ s.tmp_6 = scene_systemMenu_MenuOption_setState__P62609_mk(s);
r0 = s.arg0.fields["options"];
s.tmp_7 = r0;
r0 = s.arg0.fields["selection"];
@@ -67411,7 +66554,7 @@ switch (step) {
r0 = s.retval;
case 7:
case 8:
- s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s);
+ s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P64529_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 979; s.pc = 13; return s.tmp_0;
case 13:
@@ -67421,12 +66564,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_setSelection__P2618.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]}
+scene_systemMenu_PauseMenu_setSelection__P62615.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]}
-function scene_systemMenu_PauseMenu_setSelection__P2618_mk(s) {
+function scene_systemMenu_PauseMenu_setSelection__P62615_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P2618, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P62615, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67445,7 +66588,7 @@ function scene_systemMenu_PauseMenu_setSelection__P2618_mk(s) {
-function scene_systemMenu_PauseMenu_updateScrollTarget__P4529(s) {
+function scene_systemMenu_PauseMenu_updateScrollTarget__P64529(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67455,13 +66598,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.row___28237 = undefined;
+ s.row___88223 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
r0 = s.arg0.fields["selection"];
s.tmp_0 = r0;
s.tmp_2 = if_cardsPerRow_1_mk(s);
@@ -67479,17 +66622,17 @@ switch (step) {
r0 = s.retval;
s.tmp_1 = r0;
r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1);
- s.row___28237 = (r0);
+ s.row___88223 = (r0);
r0 = s.arg0.fields["scrollRow"];
s.tmp_1 = r0;
- r0 = (s.row___28237 === s.tmp_1);
+ r0 = (s.row___88223 === 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___28237 - 1);
+ r0 = (s.row___88223 - 1);
s.tmp_2 = r0;
r0 = s.arg0.fields["scrollRow"];
s.tmp_3 = r0;
@@ -67504,7 +66647,7 @@ switch (step) {
case 4:
r0 = s.arg0.fields["scrollRow"];
s.tmp_6 = r0;
- r0 = (s.row___28237 > s.tmp_6);
+ r0 = (s.row___88223 > s.tmp_6);
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 5; continue; }
@@ -67564,12 +66707,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_updateScrollTarget__P4529.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]}
+scene_systemMenu_PauseMenu_updateScrollTarget__P64529.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]}
-function scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s) {
+function scene_systemMenu_PauseMenu_updateScrollTarget__P64529_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P4529, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P64529, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67581,7 +66724,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- row___28237: undefined,
+ row___88223: undefined,
arg0: undefined,
} }
@@ -67589,7 +66732,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s) {
-function scene_systemMenu_PauseMenu_onUpdate__P2617(s) {
+function scene_systemMenu_PauseMenu_onUpdate__P62614(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67599,22 +66742,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.t___28106 = undefined;
- s.i___28110 = undefined;
- s.dt___28139 = undefined;
+ s.t___88092 = undefined;
+ s.i___88096 = undefined;
+ s.dt___88125 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
r0 = pxsim.control.millis();
s.tmp_0 = r0;
r0 = (s.tmp_0 / 250);
- s.t___28106 = (r0);
- s.i___28110 = (0);
+ s.t___88092 = (r0);
+ s.i___88096 = (0);
case 1:
- s.tmp_1 = r0 = s.i___28110;
+ s.tmp_1 = r0 = s.i___88096;
r0 = s.arg0.fields["options"];
s.tmp_3 = r0;
r0 = pxsim_Array__length(s.tmp_3);
@@ -67623,13 +66766,13 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 2; continue; }
- s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P2610_mk(s);
+ s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P62607_mk(s);
r0 = s.arg0.fields["options"];
s.tmp_5 = r0;
- r0 = pxsim_Array__getAt(s.tmp_5, s.i___28110);
+ r0 = pxsim_Array__getAt(s.tmp_5, s.i___88096);
s.tmp_4.arg0 = r0;
- s.tmp_8 = r0 = s.t___28106;
- s.tmp_11 = r0 = s.i___28110;
+ s.tmp_8 = r0 = s.t___88092;
+ s.tmp_11 = r0 = s.i___88096;
s.tmp_13 = if_cardsPerRow_1_mk(s);
r0 = s.arg0.fields["theme"];
s.tmp_13.arg0 = r0;
@@ -67657,11 +66800,11 @@ switch (step) {
s.callLocIdx = 971; s.pc = 10; return s.tmp_4;
case 10:
r0 = s.retval;
- r0 = (s.i___28110 + 1);
- s.i___28110 = (r0);
+ r0 = (s.i___88096 + 1);
+ s.i___88096 = (r0);
{ step = 1; continue; }
case 2:
- s.tmp_1 = game_currentScene__P2524_mk(s);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
s.callLocIdx = 972; s.pc = 12; return s.tmp_1;
case 12:
r0 = s.retval;
@@ -67670,7 +66813,7 @@ switch (step) {
r0 = s.tmp_0.fields["deltaTimeMillis"];
s.tmp_2 = r0;
r0 = (s.tmp_2 / 1000);
- s.dt___28139 = (r0);
+ s.dt___88125 = (r0);
r0 = s.arg0.fields["scrollOffset"];
s.tmp_1 = r0;
r0 = s.arg0.fields["scrollTarget"];
@@ -67682,7 +66825,7 @@ switch (step) {
s.tmp_3 = r0 = s.arg0;
r0 = s.tmp_3.fields["scrollOffset"];
s.tmp_5 = r0;
- r0 = (s.dt___28139 * 100);
+ r0 = (s.dt___88125 * 100);
s.tmp_6 = r0;
r0 = (s.tmp_5 + s.tmp_6);
s.tmp_4 = r0;
@@ -67700,7 +66843,7 @@ switch (step) {
s.tmp_3 = r0 = s.arg0;
r0 = s.tmp_3.fields["scrollOffset"];
s.tmp_5 = r0;
- r0 = (s.dt___28139 * 100);
+ r0 = (s.dt___88125 * 100);
s.tmp_6 = r0;
r0 = (s.tmp_5 - s.tmp_6);
s.tmp_4 = r0;
@@ -67710,7 +66853,7 @@ switch (step) {
{ step = 9; continue; }
case 5:
case 6:
- s.tmp_2 = Math_abs__P120_mk(s);
+ s.tmp_2 = Math_abs__P60115_mk(s);
r0 = s.arg0.fields["scrollOffset"];
s.tmp_3 = r0;
r0 = s.arg0.fields["scrollTarget"];
@@ -67730,8 +66873,8 @@ switch (step) {
r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5);
case 7:
case 8:
- s.tmp_0 = scene_Camera_offsetY__P2360_mk(s);
- s.tmp_1 = game_currentScene__P2524_mk(s);
+ s.tmp_0 = scene_Camera_offsetY__P62357_mk(s);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
s.callLocIdx = 975; s.pc = 15; return s.tmp_1;
case 15:
r0 = s.retval;
@@ -67747,12 +66890,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_onUpdate__P2617.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]}
+scene_systemMenu_PauseMenu_onUpdate__P62614.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]}
-function scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s) {
+function scene_systemMenu_PauseMenu_onUpdate__P62614_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P2617, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P62614, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67768,9 +66911,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s) {
tmp_11: undefined,
tmp_12: undefined,
tmp_13: undefined,
- t___28106: undefined,
- i___28110: undefined,
- dt___28139: undefined,
+ t___88092: undefined,
+ i___88096: undefined,
+ dt___88125: undefined,
arg0: undefined,
} }
@@ -67778,7 +66921,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s) {
-function scene_systemMenu_MenuOption_setOffset__P2610(s) {
+function scene_systemMenu_MenuOption_setOffset__P62607(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67794,8 +66937,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
- s.tmp_0 = Sprite_top__P2064_mk(s);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_top__P62059_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_0.arg0 = r0;
r0 = s.arg0.fields["top"];
@@ -67805,10 +66948,10 @@ switch (step) {
s.callLocIdx = 913; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_y__P2024_mk(s);
+ s.tmp_1 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.callLocIdx = 914; s.pc = 3; return s.tmp_1;
@@ -67822,12 +66965,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_setOffset__P2610.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]}
+scene_systemMenu_MenuOption_setOffset__P62607.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]}
-function scene_systemMenu_MenuOption_setOffset__P2610_mk(s) {
+function scene_systemMenu_MenuOption_setOffset__P62607_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_setOffset__P2610, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_setOffset__P62607, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67839,7 +66982,7 @@ function scene_systemMenu_MenuOption_setOffset__P2610_mk(s) {
-function scene_systemMenu_MenuOption_setState__P2612(s) {
+function scene_systemMenu_MenuOption_setState__P62609(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67855,7 +66998,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = s.arg0.fields["state"];
s.tmp_1 = r0;
r0 = (s.tmp_1 === s.arg1);
@@ -67866,7 +67009,7 @@ switch (step) {
case 1:
case 2:
r0 = (s.arg0).fields["state"] = (s.arg1);
- s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4528_mk(s);
+ s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P64528_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 917; s.pc = 4; return s.tmp_0;
case 4:
@@ -67876,12 +67019,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_setState__P2612.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]}
+scene_systemMenu_MenuOption_setState__P62609.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]}
-function scene_systemMenu_MenuOption_setState__P2612_mk(s) {
+function scene_systemMenu_MenuOption_setState__P62609_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_setState__P2612, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_setState__P62609, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -67893,7 +67036,7 @@ function scene_systemMenu_MenuOption_setState__P2612_mk(s) {
-function scene_systemMenu_MenuOption_updateCard__P4528(s) {
+function scene_systemMenu_MenuOption_updateCard__P64528(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -67908,7 +67051,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = s.arg0.fields["theme"];
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
@@ -67931,7 +67074,7 @@ switch (step) {
r0 = s.tmp_3;
{ step = 6; continue; }
case 3:
- s.tmp_4 = Sprite_setImage__P2053_mk(s);
+ s.tmp_4 = Sprite_setImage__P62048_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_4.arg0 = r0;
s.tmp_5 = if_basicCard_1_mk(s);
@@ -67953,7 +67096,7 @@ switch (step) {
r0 = s.retval;
{ step = 6; continue; }
case 4:
- s.tmp_0 = Sprite_setImage__P2053_mk(s);
+ s.tmp_0 = Sprite_setImage__P62048_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_0.arg0 = r0;
s.tmp_1 = if_selectedCard_1_mk(s);
@@ -67975,7 +67118,7 @@ switch (step) {
r0 = s.retval;
{ step = 6; continue; }
case 5:
- s.tmp_0 = Sprite_setImage__P2053_mk(s);
+ s.tmp_0 = Sprite_setImage__P62048_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_0.arg0 = r0;
s.tmp_1 = if_activeCard_1_mk(s);
@@ -67996,10 +67139,10 @@ switch (step) {
case 12:
r0 = s.retval;
case 6:
- s.tmp_0 = Sprite_x__P2023_mk(s);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_x__P2022_mk(s);
+ s.tmp_1 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.callLocIdx = 926; s.pc = 15; return s.tmp_1;
@@ -68009,10 +67152,10 @@ switch (step) {
s.callLocIdx = 927; s.pc = 14; return s.tmp_0;
case 14:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_y__P2024_mk(s);
+ s.tmp_1 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.callLocIdx = 928; s.pc = 17; return s.tmp_1;
@@ -68027,12 +67170,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_updateCard__P4528.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]}
+scene_systemMenu_MenuOption_updateCard__P64528.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]}
-function scene_systemMenu_MenuOption_updateCard__P4528_mk(s) {
+function scene_systemMenu_MenuOption_updateCard__P64528_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_updateCard__P4528, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_updateCard__P64528, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68047,7 +67190,7 @@ function scene_systemMenu_MenuOption_updateCard__P4528_mk(s) {
-function scene_systemMenu_MenuOption_setTheme__P2611(s) {
+function scene_systemMenu_MenuOption_setTheme__P62608(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68063,9 +67206,9 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = (s.arg0).fields["theme"] = (s.arg1);
- s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4528_mk(s);
+ s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P64528_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 916; s.pc = 1; return s.tmp_0;
case 1:
@@ -68074,12 +67217,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_setTheme__P2611.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]}
+scene_systemMenu_MenuOption_setTheme__P62608.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]}
-function scene_systemMenu_MenuOption_setTheme__P2611_mk(s) {
+function scene_systemMenu_MenuOption_setTheme__P62608_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_setTheme__P2611, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_setTheme__P62608, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -68090,7 +67233,7 @@ function scene_systemMenu_MenuOption_setTheme__P2611_mk(s) {
-function scene_systemMenu_MenuOption_position__P2609(s) {
+function scene_systemMenu_MenuOption_position__P62606(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68107,26 +67250,26 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = (s.arg0).fields["top"] = (s.arg2);
- s.tmp_0 = Sprite_left__P2060_mk(s);
+ s.tmp_0 = Sprite_left__P62055_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = s.arg1;
s.callLocIdx = 907; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = Sprite_top__P2064_mk(s);
+ s.tmp_0 = Sprite_top__P62059_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = s.arg2;
s.callLocIdx = 908; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_x__P2022_mk(s);
+ s.tmp_1 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.callLocIdx = 909; s.pc = 4; return s.tmp_1;
@@ -68136,10 +67279,10 @@ switch (step) {
s.callLocIdx = 910; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["icon"];
s.tmp_0.arg0 = r0;
- s.tmp_1 = Sprite_y__P2024_mk(s);
+ s.tmp_1 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["card"];
s.tmp_1.arg0 = r0;
s.callLocIdx = 911; s.pc = 6; return s.tmp_1;
@@ -68153,12 +67296,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_position__P2609.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]}
+scene_systemMenu_MenuOption_position__P62606.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]}
-function scene_systemMenu_MenuOption_position__P2609_mk(s) {
+function scene_systemMenu_MenuOption_position__P62606_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_position__P2609, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_position__P62606, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68171,7 +67314,7 @@ function scene_systemMenu_MenuOption_position__P2609_mk(s) {
-function scene_systemMenu_MenuOption_show__P2608(s) {
+function scene_systemMenu_MenuOption_show__P62605(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68186,7 +67329,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_MenuOption__C62603_VT)) failedCast(r0);
r0 = s.arg0.fields["theme"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -68206,12 +67349,12 @@ switch (step) {
r0 = s.retval;
{ step = 2; continue; }
case 1:
- r0 = globals.CARD_NORMAL___2630;
+ r0 = globals.CARD_NORMAL___62627;
case 2:
// jmp value (already in r0)
s.tmp_2 = r0;
s.tmp_3 = r0 = s.arg0;
- s.tmp_5 = sprites_create__P1971_mk(s);
+ s.tmp_5 = sprites_create__P61966_mk(s);
s.tmp_5.arg0 = s.tmp_2;
s.tmp_5.arg1 = undefined;
s.callLocIdx = 903; s.pc = 4; return s.tmp_5;
@@ -68234,7 +67377,7 @@ switch (step) {
case 5:
r0 = s.retval;
s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = sprites_create__P1971_mk(s);
+ s.tmp_2 = sprites_create__P61966_mk(s);
r0 = s.arg0.fields["iconImage"];
s.tmp_2.arg0 = r0;
s.tmp_2.arg1 = undefined;
@@ -68262,12 +67405,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_MenuOption_show__P2608.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]}
+scene_systemMenu_MenuOption_show__P62605.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]}
-function scene_systemMenu_MenuOption_show__P2608_mk(s) {
+function scene_systemMenu_MenuOption_show__P62605_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_MenuOption_show__P2608, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_MenuOption_show__P62605, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68282,7 +67425,7 @@ function scene_systemMenu_MenuOption_show__P2608_mk(s) {
-function scene_systemMenu_PauseMenu_constructor__P2615(s) {
+function scene_systemMenu_PauseMenu_constructor__P62612(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68299,7 +67442,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C62611_VT)) failedCast(r0);
r0 = (s.arg0).fields["generator"] = (s.arg1);
s.tmp_0 = r0 = s.arg2;
r0 = pxsim_numops_toBool(s.tmp_0);
@@ -68307,8 +67450,8 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_1 = scene_systemMenu_buildMenuTheme__P2623_mk(s);
- r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___2630);
+ s.tmp_1 = scene_systemMenu_buildMenuTheme__P62620_mk(s);
+ r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___62627);
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = 3;
s.tmp_1.arg2 = undefined;
@@ -68327,12 +67470,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_PauseMenu_constructor__P2615.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__P62612.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__P2615_mk(s) {
+function scene_systemMenu_PauseMenu_constructor__P62612_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_PauseMenu_constructor__P2615, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_PauseMenu_constructor__P62612, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68346,7 +67489,7 @@ function scene_systemMenu_PauseMenu_constructor__P2615_mk(s) {
-function scene_systemMenu_buildMenuTheme__P2623(s) {
+function scene_systemMenu_buildMenuTheme__P62620(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68356,7 +67499,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.cardsPerRow___28824 = undefined;
+ s.cardsPerRow___88815 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -68364,19 +67507,19 @@ switch (step) {
s.arg3 = (s.lambdaArgs[3]);
s.lambdaArgs = null;
}
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
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___28824 = (r0);
+ s.cardsPerRow___88815 = (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___1742;
+ r0 = globals.font8___61737;
case 2:
// jmp value (already in r0)
s.tmp_1 = r0;
@@ -68387,9 +67530,9 @@ switch (step) {
r0 = s.tmp_0;
{ step = 4; continue; }
case 3:
- s.tmp_1 = image_doubledFont__P1745_mk(s);
+ s.tmp_1 = image_doubledFont__P61740_mk(s);
s.tmp_1.arg0 = s.arg2;
- s.callLocIdx = 1036; s.pc = 5; return s.tmp_1;
+ s.callLocIdx = 1039; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
case 4:
@@ -68400,12 +67543,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___28824);
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___88815);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_3 = r0;
- r0 = (s.cardsPerRow___28824 * s.arg0);
+ r0 = (s.cardsPerRow___88815 * s.arg0);
s.tmp_5 = r0;
- r0 = (s.cardsPerRow___28824 - 1);
+ r0 = (s.cardsPerRow___88815 - 1);
s.tmp_7 = r0;
r0 = (s.tmp_7 * s.arg1);
s.tmp_6 = r0;
@@ -68426,7 +67569,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 = 1037; s.pc = 6; return s.tmp_11; }
+ else { s.callLocIdx = 1040; s.pc = 6; return s.tmp_11; }
}
case 6:
r0 = s.retval;
@@ -68436,7 +67579,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___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_14 = r0;
s.tmp_16 = if_charHeight_1_mk(s);
s.tmp_16.arg0 = s.arg2;
@@ -68446,7 +67589,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 = 1038; s.pc = 7; return s.tmp_16; }
+ else { s.callLocIdx = 1041; s.pc = 7; return s.tmp_16; }
}
case 7:
r0 = s.retval;
@@ -68457,19 +67600,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___2631);
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___2632);
- r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___2630);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___62628);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___62629);
+ r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___62627);
r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_buildMenuTheme__P2623.info = {"start":11192,"length":906,"line":346,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]}
+scene_systemMenu_buildMenuTheme__P62620.info = {"start":11539,"length":906,"line":353,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]}
-function scene_systemMenu_buildMenuTheme__P2623_mk(s) {
+function scene_systemMenu_buildMenuTheme__P62620_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_buildMenuTheme__P2623, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_buildMenuTheme__P62620, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68488,7 +67631,7 @@ function scene_systemMenu_buildMenuTheme__P2623_mk(s) {
tmp_14: undefined,
tmp_15: undefined,
tmp_16: undefined,
- cardsPerRow___28824: undefined,
+ cardsPerRow___88815: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -68499,7 +67642,7 @@ function scene_systemMenu_buildMenuTheme__P2623_mk(s) {
-function image_doubledFont__P1745(s) {
+function image_doubledFont__P61740(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68513,7 +67656,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = image_scaledFont__P1746_mk(s);
+ s.tmp_0 = image_scaledFont__P61741_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 2;
s.callLocIdx = 99; s.pc = 1; return s.tmp_0;
@@ -68522,12 +67665,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-image_doubledFont__P1745.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__P61740.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__P1745_mk(s) {
+function image_doubledFont__P61740_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: image_doubledFont__P1745, depth: s.depth + 1,
+ parent: s, fn: image_doubledFont__P61740, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -68537,7 +67680,7 @@ function image_doubledFont__P1745_mk(s) {
-function image_scaledFont__P1746(s) {
+function image_scaledFont__P61741(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68652,12 +67795,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-image_scaledFont__P1746.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]}
+image_scaledFont__P61741.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__P1746_mk(s) {
+function image_scaledFont__P61741_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: image_scaledFont__P1746, depth: s.depth + 1,
+ parent: s, fn: image_scaledFont__P61741, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68683,7 +67826,56 @@ function image_scaledFont__P1746_mk(s) {
-function scene_systemMenu_initVolume__P4539(s) {
+function scene_systemMenu_initScreen__P64541(s) {
+let r0 = s.r0, 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.brightness___88895 = undefined;
+ s.tmp_0 = settings_readNumber__P61825_mk(s);
+ s.tmp_0.arg0 = "#brightness";
+ s.callLocIdx = 1048; s.pc = 3; return s.tmp_0;
+ case 3:
+ r0 = s.retval;
+ s.brightness___88895 = (r0);
+ r0 = (s.brightness___88895 !== undefined);
+ s.tmp_0 = r0;
+ r0 = pxsim_numops_toBoolDecr(s.tmp_0);
+ if (!r0) { step = 1; continue; }
+ s.tmp_1 = helpers_setScreenBrightness__P61727_mk(s);
+ s.tmp_1.arg0 = globals.screen___61794;
+ s.tmp_1.arg1 = s.brightness___88895;
+ s.callLocIdx = 1049; s.pc = 4; return s.tmp_1;
+ case 4:
+ r0 = s.retval;
+ case 1:
+ case 2:
+ r0 = undefined;
+ return leave(s, r0)
+ default: oops()
+} } }
+scene_systemMenu_initScreen__P64541.info = {"start":13273,"length":175,"line":402,"column":4,"endLine":406,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]}
+
+function scene_systemMenu_initScreen__P64541_mk(s) {
+ checkStack(s.depth);
+ return {
+ parent: s, fn: scene_systemMenu_initScreen__P64541, depth: s.depth + 1,
+ pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
+ tmp_0: undefined,
+ tmp_1: undefined,
+ brightness___88895: undefined,
+} }
+
+
+
+
+
+function scene_systemMenu_initVolume__P64540(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68693,20 +67885,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.vol___28904 = undefined;
- s.tmp_0 = settings_readNumber__P1830_mk(s);
+ s.vol___88905 = undefined;
+ s.tmp_0 = settings_readNumber__P61825_mk(s);
s.tmp_0.arg0 = "#volume";
- s.callLocIdx = 1043; s.pc = 3; return s.tmp_0;
+ s.callLocIdx = 1046; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- s.vol___28904 = (r0);
- r0 = (s.vol___28904 != null);
+ s.vol___88905 = (r0);
+ r0 = (s.vol___88905 !== undefined);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = music_setVolume__P1589_mk(s);
- s.tmp_1.arg0 = s.vol___28904;
- s.callLocIdx = 1044; s.pc = 4; return s.tmp_1;
+ s.tmp_1 = music_setVolume__P61584_mk(s);
+ s.tmp_1.arg0 = s.vol___88905;
+ s.callLocIdx = 1047; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
case 1:
@@ -68715,23 +67907,23 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_systemMenu_initVolume__P4539.info = {"start":12776,"length":138,"line":389,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]}
+scene_systemMenu_initVolume__P64540.info = {"start":13123,"length":144,"line":396,"column":4,"endLine":400,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]}
-function scene_systemMenu_initVolume__P4539_mk(s) {
+function scene_systemMenu_initVolume__P64540_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_systemMenu_initVolume__P4539, depth: s.depth + 1,
+ parent: s, fn: scene_systemMenu_initVolume__P64540, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- vol___28904: undefined,
+ vol___88905: undefined,
} }
-function game_currentScene__P2524(s) {
+function game_currentScene__P62521(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68741,21 +67933,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = game_init__P4282_mk(s);
+ s.tmp_0 = game_init__P64282_mk(s);
s.tmp_0.arg0 = undefined;
s.callLocIdx = 847; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = globals._scene___4274;
+ r0 = globals._scene___64274;
return leave(s, r0)
default: oops()
} } }
-game_currentScene__P2524.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]}
+game_currentScene__P62521.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]}
-function game_currentScene__P2524_mk(s) {
+function game_currentScene__P62521_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_currentScene__P2524, depth: s.depth + 1,
+ parent: s, fn: game_currentScene__P62521, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -68764,7 +67956,7 @@ function game_currentScene__P2524_mk(s) {
-function game_addScenePopHandler__P2543(s) {
+function game_addScenePopHandler__P62540(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68778,35 +67970,35 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4277);
+ r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___64277);
s.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___4277 = (r0);
+ globals._scenePopHandlers___64277 = (r0);
case 1:
case 2:
- r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___4277, s.arg0, undefined);
+ r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___64277, 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___4277, s.arg0);
+ r0 = pxsim_Array__push(globals._scenePopHandlers___64277, s.arg0);
case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_addScenePopHandler__P2543.info = {"start":11756,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
+game_addScenePopHandler__P62540.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]}
-function game_addScenePopHandler__P2543_mk(s) {
+function game_addScenePopHandler__P62540_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_addScenePopHandler__P2543, depth: s.depth + 1,
+ parent: s, fn: game_addScenePopHandler__P62540, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68817,7 +68009,7 @@ function game_addScenePopHandler__P2543_mk(s) {
-function game_addScenePushHandler__P2541(s) {
+function game_addScenePushHandler__P62538(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68831,35 +68023,35 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4276);
+ r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___64276);
s.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___4276 = (r0);
+ globals._scenePushHandlers___64276 = (r0);
case 1:
case 2:
- r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___4276, s.arg0, undefined);
+ r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___64276, 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___4276, s.arg0);
+ r0 = pxsim_Array__push(globals._scenePushHandlers___64276, s.arg0);
case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-game_addScenePushHandler__P2541.info = {"start":10755,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
+game_addScenePushHandler__P62538.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]}
-function game_addScenePushHandler__P2541_mk(s) {
+function game_addScenePushHandler__P62538_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_addScenePushHandler__P2541, depth: s.depth + 1,
+ parent: s, fn: game_addScenePushHandler__P62538, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -68870,7 +68062,7 @@ function game_addScenePushHandler__P2541_mk(s) {
-function Fx8__P141(s) {
+function Fx8__P60136(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68890,12 +68082,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx8__P141.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]}
+Fx8__P60136.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__P141_mk(s) {
+function Fx8__P60136_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx8__P141, depth: s.depth + 1,
+ parent: s, fn: Fx8__P60136, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -68905,7 +68097,7 @@ function Fx8__P141_mk(s) {
-function SpriteKind_create__P2124(s) {
+function SpriteKind_create__P62119(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68915,26 +68107,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = (globals.nextKind___4130 === undefined);
+ r0 = (globals.nextKind___64127 === undefined);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- globals.nextKind___4130 = (1000);
+ globals.nextKind___64127 = (1000);
case 1:
case 2:
- s.tmp_0 = r0 = globals.nextKind___4130;
+ s.tmp_0 = r0 = globals.nextKind___64127;
r0 = (s.tmp_0 + 1);
- globals.nextKind___4130 = (r0);
+ globals.nextKind___64127 = (r0);
r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-SpriteKind_create__P2124.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]}
+SpriteKind_create__P62119.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]}
-function SpriteKind_create__P2124_mk(s) {
+function SpriteKind_create__P62119_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: SpriteKind_create__P2124, depth: s.depth + 1,
+ parent: s, fn: SpriteKind_create__P62119, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -68943,7 +68135,7 @@ function SpriteKind_create__P2124_mk(s) {
-function controller_Button_constructor__P1906(s) {
+function controller_Button_constructor__P61901(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -68960,7 +68152,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
r0 = (s.arg0).fields["id"] = (s.arg1);
r0 = (s.arg0).fields["_pressed"] = (false);
r0 = (s.arg0).fields["repeatDelay"] = (undefined);
@@ -68970,13 +68162,13 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P28980);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P88981);
s.tmp_1 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
r0 = s.arg0.fields["id"];
s.tmp_2 = r0;
r0 = pxsim.control.internalOnEvent(2050, s.tmp_2, s.tmp_1, 16);
- r0 = pxsim_pxtcore_mkAction(1, inline__P28987);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P88988);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
r0 = s.arg0.fields["id"];
@@ -68995,12 +68187,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Button_constructor__P1906.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]}
+controller_Button_constructor__P61901.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]}
-function controller_Button_constructor__P1906_mk(s) {
+function controller_Button_constructor__P61901_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_constructor__P1906, depth: s.depth + 1,
+ parent: s, fn: controller_Button_constructor__P61901, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -69014,7 +68206,7 @@ function controller_Button_constructor__P1906_mk(s) {
-function inline__P28980(s) {
+function inline__P88981(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69024,7 +68216,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = controller_Button_setPressed__P1911_mk(s);
+ s.tmp_0 = controller_Button_setPressed__P61906_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.tmp_0.arg1 = false;
s.callLocIdx = 149; s.pc = 1; return s.tmp_0;
@@ -69034,12 +68226,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28980.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]}
+inline__P88981.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]}
-function inline__P28980_mk(s) {
+function inline__P88981_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28980, depth: s.depth + 1,
+ parent: s, fn: inline__P88981, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -69048,7 +68240,7 @@ function inline__P28980_mk(s) {
-function inline__P28987(s) {
+function inline__P88988(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69058,7 +68250,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_0 = controller_Button_setPressed__P1911_mk(s);
+ s.tmp_0 = controller_Button_setPressed__P61906_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.tmp_0.arg1 = true;
s.callLocIdx = 150; s.pc = 1; return s.tmp_0;
@@ -69068,12 +68260,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P28987.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]}
+inline__P88988.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]}
-function inline__P28987_mk(s) {
+function inline__P88988_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P28987, depth: s.depth + 1,
+ parent: s, fn: inline__P88988, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -69082,7 +68274,7 @@ function inline__P28987_mk(s) {
-function controller_setupButton__P4112(s) {
+function controller_setupButton__P64109(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69101,12 +68293,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_setupButton__P4112.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]}
+controller_setupButton__P64109.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]}
-function controller_setupButton__P4112_mk(s) {
+function controller_setupButton__P64109_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_setupButton__P4112, depth: s.depth + 1,
+ parent: s, fn: controller_setupButton__P64109, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -69116,7 +68308,7 @@ function controller_setupButton__P4112_mk(s) {
-function controller_Button_setPressed__P1911(s) {
+function controller_Button_setPressed__P61906(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69132,14 +68324,14 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Button__C61895_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__P1702_mk(s);
+ s.tmp_2 = power_poke__P61697_mk(s);
s.callLocIdx = 153; s.pc = 7; return s.tmp_2;
case 7:
r0 = s.retval;
@@ -69147,7 +68339,7 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_1 = controller_Controller_connected__P1940_mk(s);
+ s.tmp_1 = controller_Controller_connected__P61935_mk(s);
r0 = s.arg0.fields["_owner"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = true;
@@ -69162,7 +68354,7 @@ 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__P4114_mk(s);
+ s.tmp_0 = controller_Button_raiseButtonDown__P64111_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 155; s.pc = 9; return s.tmp_0;
case 9:
@@ -69170,7 +68362,7 @@ switch (step) {
{ step = 4; continue; }
case 3:
r0 = (s.arg0).fields["_repeatCount"] = (0);
- s.tmp_0 = controller_Button_raiseButtonUp__P4113_mk(s);
+ s.tmp_0 = controller_Button_raiseButtonUp__P64110_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 156; s.pc = 10; return s.tmp_0;
case 10:
@@ -69182,12 +68374,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Button_setPressed__P1911.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]}
+controller_Button_setPressed__P61906.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]}
-function controller_Button_setPressed__P1911_mk(s) {
+function controller_Button_setPressed__P61906_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_setPressed__P1911, depth: s.depth + 1,
+ parent: s, fn: controller_Button_setPressed__P61906, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -69200,7 +68392,7 @@ function controller_Button_setPressed__P1911_mk(s) {
-function controller_Button_raiseButtonDown__P4114(s) {
+function controller_Button_raiseButtonDown__P64111(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69215,8 +68407,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106);
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___64103);
if (!r0) { step = 1; continue; }
r0 = s.arg0.fields["id"];
s.tmp_0 = r0;
@@ -69231,12 +68423,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Button_raiseButtonDown__P4114.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]}
+controller_Button_raiseButtonDown__P64111.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]}
-function controller_Button_raiseButtonDown__P4114_mk(s) {
+function controller_Button_raiseButtonDown__P64111_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_raiseButtonDown__P4114, depth: s.depth + 1,
+ parent: s, fn: controller_Button_raiseButtonDown__P64111, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -69246,7 +68438,7 @@ function controller_Button_raiseButtonDown__P4114_mk(s) {
-function controller_Button_raiseButtonUp__P4113(s) {
+function controller_Button_raiseButtonUp__P64110(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69261,8 +68453,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
- r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106);
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
+ r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___64103);
if (!r0) { step = 1; continue; }
r0 = s.arg0.fields["id"];
s.tmp_0 = r0;
@@ -69277,12 +68469,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Button_raiseButtonUp__P4113.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]}
+controller_Button_raiseButtonUp__P64110.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]}
-function controller_Button_raiseButtonUp__P4113_mk(s) {
+function controller_Button_raiseButtonUp__P64110_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_raiseButtonUp__P4113, depth: s.depth + 1,
+ parent: s, fn: controller_Button_raiseButtonUp__P64110, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -69292,7 +68484,7 @@ function controller_Button_raiseButtonUp__P4113_mk(s) {
-function controller_Controller_connected__P1940(s) {
+function controller_Controller_connected__P61935(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69308,7 +68500,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
r0 = s.arg0.fields["_connected"];
s.tmp_1 = r0;
r0 = (s.arg1 != s.tmp_1);
@@ -69336,12 +68528,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Controller_connected__P1940.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]}
+controller_Controller_connected__P61935.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]}
-function controller_Controller_connected__P1940_mk(s) {
+function controller_Controller_connected__P61935_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_connected__P1940, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_connected__P61935, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -69354,7 +68546,7 @@ function controller_Controller_connected__P1940_mk(s) {
-function controller_Controller_id__P1927(s) {
+function controller_Controller_id__P61922(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69369,18 +68561,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
r0 = s.arg0.fields["_id"];
return leaveAccessor(s, r0)
default: oops()
} } }
-controller_Controller_id__P1927.info = {"start":8841,"length":49,"line":276,"column":8,"endLine":278,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]}
-controller_Controller_id__P1927.isGetter = true;
+controller_Controller_id__P61922.info = {"start":8841,"length":49,"line":276,"column":8,"endLine":278,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]}
+controller_Controller_id__P61922.isGetter = true;
-function controller_Controller_id__P1927_mk(s) {
+function controller_Controller_id__P61922_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_id__P1927, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_id__P61922, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -69389,7 +68581,7 @@ function controller_Controller_id__P1927_mk(s) {
-function controller_Controller_connected__P1939(s) {
+function controller_Controller_connected__P61934(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69404,18 +68596,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Controller__C61915_VT)) failedCast(r0);
r0 = s.arg0.fields["_connected"];
return leaveAccessor(s, r0)
default: oops()
} } }
-controller_Controller_connected__P1939.info = {"start":12477,"length":63,"line":401,"column":8,"endLine":403,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]}
-controller_Controller_connected__P1939.isGetter = true;
+controller_Controller_connected__P61934.info = {"start":12477,"length":63,"line":401,"column":8,"endLine":403,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]}
+controller_Controller_connected__P61934.isGetter = true;
-function controller_Controller_connected__P1939_mk(s) {
+function controller_Controller_connected__P61934_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Controller_connected__P1939, depth: s.depth + 1,
+ parent: s, fn: controller_Controller_connected__P61934, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -69424,7 +68616,7 @@ function controller_Controller_connected__P1939_mk(s) {
-function settings_initScopes__P4079(s) {
+function settings_initScopes__P64076(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69434,17 +68626,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.rn___29065 = undefined;
- s.tmp_1 = settings_runNumber__P1822_mk(s);
+ s.rn___89066 = undefined;
+ s.tmp_1 = settings_runNumber__P61817_mk(s);
s.callLocIdx = 128; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
s.tmp_0 = r0;
r0 = (s.tmp_0 + 1);
- s.rn___29065 = (r0);
- s.tmp_0 = settings_writeNumber__P1826_mk(s);
- s.tmp_0.arg0 = globals.RUN_KEY___4067;
- s.tmp_0.arg1 = s.rn___29065;
+ s.rn___89066 = (r0);
+ s.tmp_0 = settings_writeNumber__P61821_mk(s);
+ s.tmp_0.arg0 = globals.RUN_KEY___64064;
+ s.tmp_0.arg1 = s.rn___89066;
s.callLocIdx = 129; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
@@ -69453,8 +68645,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___29065);
- s.tmp_0 = settings_setScope__P4078_mk(s);
+ r0 = pxsim_pxtcore.seedAddRandom(s.rn___89066);
+ s.tmp_0 = settings_setScope__P64075_mk(s);
r0 = pxsim_pxtcore.programName();
s.tmp_0.arg0 = r0;
s.callLocIdx = 130; s.pc = 3; return s.tmp_0;
@@ -69464,23 +68656,23 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-settings_initScopes__P4079.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]}
+settings_initScopes__P64076.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__P4079_mk(s) {
+function settings_initScopes__P64076_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_initScopes__P4079, depth: s.depth + 1,
+ parent: s, fn: settings_initScopes__P64076, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- rn___29065: undefined,
+ rn___89066: undefined,
} }
-function settings_setScope__P4078(s) {
+function settings_setScope__P64075(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69490,7 +68682,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.currScope___29094 = undefined;
+ s.currScope___89095 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
@@ -69515,19 +68707,19 @@ switch (step) {
r0 = pxsim_pxtrt.panic(922);
case 3:
case 4:
- s.tmp_0 = settings_readString__P1829_mk(s);
- s.tmp_0.arg0 = globals.SCOPE_KEY___4068;
+ s.tmp_0 = settings_readString__P61824_mk(s);
+ s.tmp_0.arg0 = globals.SCOPE_KEY___64065;
s.callLocIdx = 126; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.currScope___29094 = (r0);
- r0 = (s.currScope___29094 != s.arg0);
+ s.currScope___89095 = (r0);
+ r0 = (s.currScope___89095 != 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__P1825_mk(s);
- s.tmp_0.arg0 = globals.SCOPE_KEY___4068;
+ s.tmp_0 = settings_writeString__P61820_mk(s);
+ s.tmp_0.arg0 = globals.SCOPE_KEY___64065;
s.tmp_0.arg1 = s.arg0;
s.callLocIdx = 127; s.pc = 8; return s.tmp_0;
case 8:
@@ -69538,18 +68730,18 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-settings_setScope__P4078.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__P64075.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__P4078_mk(s) {
+function settings_setScope__P64075_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_setScope__P4078, depth: s.depth + 1,
+ parent: s, fn: settings_setScope__P64075, depth: s.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___29094: undefined,
+ currScope___89095: undefined,
arg0: undefined,
} }
@@ -69557,7 +68749,7 @@ function settings_setScope__P4078_mk(s) {
-function settings_runNumber__P1822(s) {
+function settings_runNumber__P61817(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69567,8 +68759,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tmp_1 = settings_readNumber__P1830_mk(s);
- s.tmp_1.arg0 = globals.RUN_KEY___4067;
+ s.tmp_1 = settings_readNumber__P61825_mk(s);
+ s.tmp_1.arg0 = globals.RUN_KEY___64064;
s.callLocIdx = 125; s.pc = 3; return s.tmp_1;
case 3:
r0 = s.retval;
@@ -69586,12 +68778,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-settings_runNumber__P1822.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]}
+settings_runNumber__P61817.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__P1822_mk(s) {
+function settings_runNumber__P61817_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: settings_runNumber__P1822, depth: s.depth + 1,
+ parent: s, fn: settings_runNumber__P61817, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -69602,7 +68794,7 @@ function settings_runNumber__P1822_mk(s) {
-function control___screen_setupUpdate__P1761(s) {
+function control___screen_setupUpdate__P61756(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69616,8 +68808,8 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- globals.__updated___4036 = (true);
- globals.__update___4034 = (s.arg0);
+ globals.__updated___64033 = (true);
+ globals.__update___64031 = (s.arg0);
s.tmp_0 = lambda_1_mk(s);
s.tmp_0.argL = s.arg0;
setupLambda(s.tmp_0, s.tmp_0.argL);
@@ -69628,12 +68820,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-control___screen_setupUpdate__P1761.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__P61756.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__P1761_mk(s) {
+function control___screen_setupUpdate__P61756_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control___screen_setupUpdate__P1761, depth: s.depth + 1,
+ parent: s, fn: control___screen_setupUpdate__P61756, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -69643,7 +68835,7 @@ function control___screen_setupUpdate__P1761_mk(s) {
-function control___screen_update__P1760(s) {
+function control___screen_update__P61755(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69653,27 +68845,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- r0 = pxsim_numops_toBoolDecr(globals.__update___4034);
+ r0 = pxsim_numops_toBoolDecr(globals.__update___64031);
if (!r0) { step = 1; continue; }
s.tmp_0 = lambda_1_mk(s);
- s.tmp_0.argL = globals.__update___4034;
+ s.tmp_0.argL = globals.__update___64031;
setupLambda(s.tmp_0, s.tmp_0.argL);
s.callLocIdx = 120; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
case 1:
case 2:
- globals.__updated___4036 = (true);
+ globals.__updated___64033 = (true);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-control___screen_update__P1760.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__P61755.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__P1760_mk(s) {
+function control___screen_update__P61755_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: control___screen_update__P1760, depth: s.depth + 1,
+ parent: s, fn: control___screen_update__P61755, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
} }
@@ -69682,7 +68874,7 @@ function control___screen_update__P1760_mk(s) {
-function pause__P399(s) {
+function pause__P60394(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69706,12 +68898,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-pause__P399.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]}
+pause__P60394.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__P399_mk(s) {
+function pause__P60394_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: pause__P399, depth: s.depth + 1,
+ parent: s, fn: pause__P60394, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -69720,7 +68912,7 @@ function pause__P399_mk(s) {
-function tiles_legacy_LegacyTilemap_getTileIndex__P3874(s) {
+function tiles_legacy_LegacyTilemap_getTileIndex__P63871(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69737,19 +68929,19 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_mapImage"];
s.tmp_0 = r0;
r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.arg1, s.arg2);
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_getTileIndex__P3874.info = {"start":9165,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]}
+tiles_legacy_LegacyTilemap_getTileIndex__P63871.info = {"start":9165,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]}
-function tiles_legacy_LegacyTilemap_getTileIndex__P3874_mk(s) {
+function tiles_legacy_LegacyTilemap_getTileIndex__P63871_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_getTileIndex__P3874, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_getTileIndex__P63871, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -69761,7 +68953,7 @@ function tiles_legacy_LegacyTilemap_getTileIndex__P3874_mk(s) {
-function tiles_legacy_LegacyTilemap_draw__P11441(s) {
+function tiles_legacy_LegacyTilemap_draw__P71433(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -69771,21 +68963,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.bitmask___20504 = undefined;
- s.offsetX___20510 = undefined;
- s.offsetY___20515 = undefined;
- s.x0___20520 = undefined;
- s.xn___20527 = undefined;
- s.y0___20544 = undefined;
- s.yn___20551 = undefined;
- s.x___20568 = undefined;
- s.y___20574 = undefined;
- s.index___20580 = undefined;
- s.tile___20587 = undefined;
- s.x___20629 = undefined;
- s.xLine___20635 = undefined;
- s.y___20661 = undefined;
- s.yLine___20667 = undefined;
+ s.bitmask___80488 = undefined;
+ s.offsetX___80494 = undefined;
+ s.offsetY___80499 = undefined;
+ s.x0___80504 = undefined;
+ s.xn___80511 = undefined;
+ s.y0___80528 = undefined;
+ s.yn___80535 = undefined;
+ s.x___80552 = undefined;
+ s.y___80558 = undefined;
+ s.index___80564 = undefined;
+ s.tile___80571 = undefined;
+ s.x___80613 = undefined;
+ s.xLine___80619 = undefined;
+ s.y___80645 = undefined;
+ s.yLine___80651 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -69793,10 +68985,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_3 = tiles_legacy_LegacyTilemap__C63847_v6_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
s.pc = 26; return s.tmp_3;
case 26:
@@ -69816,16 +69008,16 @@ switch (step) {
r0 = (1 << s.tmp_5);
s.tmp_4 = r0;
r0 = (s.tmp_4 - 1);
- s.bitmask___20504 = (r0);
+ s.bitmask___80488 = (r0);
r0 = s.arg2.fields["drawOffsetX"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 & s.bitmask___20504);
- s.offsetX___20510 = (r0);
+ r0 = (s.tmp_0 & s.bitmask___80488);
+ s.offsetX___80494 = (r0);
r0 = s.arg2.fields["drawOffsetY"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 & s.bitmask___20504);
- s.offsetY___20515 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
+ r0 = (s.tmp_0 & s.bitmask___80488);
+ s.offsetY___80499 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
s.tmp_0.arg0 = 0;
r0 = s.arg2.fields["drawOffsetX"];
s.tmp_1 = r0;
@@ -69833,20 +69025,20 @@ switch (step) {
s.tmp_2 = r0;
r0 = (s.tmp_1 >> s.tmp_2);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 1719; s.pc = 27; return s.tmp_0;
+ s.callLocIdx = 1666; s.pc = 27; return s.tmp_0;
case 27:
r0 = s.retval;
- s.x0___20520 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
+ s.x0___80504 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
r0 = s.arg0.fields["_mapImage"];
s.tmp_1 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_1);
s.tmp_0.arg0 = r0;
r0 = s.arg2.fields["drawOffsetX"];
s.tmp_4 = r0;
- s.tmp_6 = tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s);
+ s.tmp_6 = tiles_legacy_LegacyTilemap_myWidth__P63853_mk(s);
s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 1720; s.pc = 29; return s.tmp_6;
+ s.callLocIdx = 1667; s.pc = 29; return s.tmp_6;
case 29:
r0 = s.retval;
s.tmp_5 = r0;
@@ -69858,11 +69050,11 @@ switch (step) {
s.tmp_2 = r0;
r0 = (s.tmp_2 + 1);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 1722; s.pc = 28; return s.tmp_0;
+ s.callLocIdx = 1669; s.pc = 28; return s.tmp_0;
case 28:
r0 = s.retval;
- s.xn___20527 = (r0);
- s.tmp_0 = Math_max__P122_mk(s);
+ s.xn___80511 = (r0);
+ s.tmp_0 = Math_max__P60117_mk(s);
s.tmp_0.arg0 = 0;
r0 = s.arg2.fields["drawOffsetY"];
s.tmp_1 = r0;
@@ -69870,11 +69062,11 @@ switch (step) {
s.tmp_2 = r0;
r0 = (s.tmp_1 >> s.tmp_2);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 1724; s.pc = 30; return s.tmp_0;
+ s.callLocIdx = 1671; s.pc = 30; return s.tmp_0;
case 30:
r0 = s.retval;
- s.y0___20544 = (r0);
- s.tmp_0 = Math_min__P123_mk(s);
+ s.y0___80528 = (r0);
+ s.tmp_0 = Math_min__P60118_mk(s);
r0 = s.arg0.fields["_mapImage"];
s.tmp_1 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_1);
@@ -69891,61 +69083,61 @@ switch (step) {
s.tmp_2 = r0;
r0 = (s.tmp_2 + 1);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 1726; s.pc = 31; return s.tmp_0;
+ s.callLocIdx = 1673; s.pc = 31; return s.tmp_0;
case 31:
r0 = s.retval;
- s.yn___20551 = (r0);
- s.x___20568 = (s.x0___20520);
+ s.yn___80535 = (r0);
+ s.x___80552 = (s.x0___80504);
case 3:
- r0 = (s.x___20568 <= s.xn___20527);
+ r0 = (s.x___80552 <= s.xn___80511);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 10; continue; }
- s.y___20574 = (s.y0___20544);
+ s.y___80558 = (s.y0___80528);
case 4:
- r0 = (s.y___20574 <= s.yn___20551);
+ r0 = (s.y___80558 <= s.yn___80535);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 9; continue; }
r0 = s.arg0.fields["_mapImage"];
s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.x___20568, s.y___20574);
- s.index___20580 = (r0);
+ r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.x___80552, s.y___80558);
+ s.index___80564 = (r0);
r0 = s.arg0.fields["_tileSets"];
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.index___20580);
+ r0 = pxsim_Array__getAt(s.tmp_1, s.index___80564);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 5; continue; }
r0 = s.tmp_0;
{ step = 6; continue; }
case 5:
- s.tmp_2 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s);
+ s.tmp_2 = tiles_legacy_LegacyTilemap_generateTile__P71430_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.index___20580;
- s.callLocIdx = 1727; s.pc = 32; return s.tmp_2;
+ s.tmp_2.arg1 = s.index___80564;
+ s.callLocIdx = 1674; s.pc = 32; return s.tmp_2;
case 32:
r0 = s.retval;
case 6:
// jmp value (already in r0)
s.tmp_3 = r0;
- s.tile___20587 = (s.tmp_3);
- r0 = pxsim_numops_toBoolDecr(s.tile___20587);
+ s.tile___80571 = (s.tmp_3);
+ r0 = pxsim_numops_toBoolDecr(s.tile___80571);
if (!r0) { step = 7; continue; }
s.tmp_0 = r0 = s.arg1;
- s.tmp_2 = tiles_legacy_TileSet_image__P20141_mk(s);
- s.tmp_2.arg0 = s.tile___20587;
- s.callLocIdx = 1728; s.pc = 33; return s.tmp_2;
+ s.tmp_2 = tiles_legacy_TileSet_image__P80125_mk(s);
+ s.tmp_2.arg0 = s.tile___80571;
+ s.callLocIdx = 1675; s.pc = 33; return s.tmp_2;
case 33:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_6 = tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s);
+ s.tmp_6 = tiles_legacy_LegacyTilemap_myLeft__P63852_mk(s);
s.tmp_6.arg0 = s.arg0;
- s.callLocIdx = 1729; s.pc = 34; return s.tmp_6;
+ s.callLocIdx = 1676; s.pc = 34; return s.tmp_6;
case 34:
r0 = s.retval;
s.tmp_5 = r0;
- r0 = (s.x___20568 - s.x0___20520);
+ r0 = (s.x___80552 - s.x0___80504);
s.tmp_8 = r0;
r0 = s.arg0.fields["_scale"];
s.tmp_9 = r0;
@@ -69953,52 +69145,52 @@ switch (step) {
s.tmp_7 = r0;
r0 = (s.tmp_5 + s.tmp_7);
s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.offsetX___20510);
+ r0 = (s.tmp_4 - s.offsetX___80494);
s.tmp_3 = r0;
- r0 = (s.y___20574 - s.y0___20544);
+ r0 = (s.y___80558 - s.y0___80528);
s.tmp_12 = r0;
r0 = s.arg0.fields["_scale"];
s.tmp_13 = r0;
r0 = (s.tmp_12 << s.tmp_13);
s.tmp_11 = r0;
- r0 = (s.tmp_11 - s.offsetY___20515);
+ r0 = (s.tmp_11 - s.offsetY___80499);
s.tmp_10 = r0;
r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_3, s.tmp_10);
case 7:
case 8:
- r0 = (s.y___20574 + 1);
- s.y___20574 = (r0);
+ r0 = (s.y___80558 + 1);
+ s.y___80558 = (r0);
{ step = 4; continue; }
case 9:
- r0 = (s.x___20568 + 1);
- s.x___20568 = (r0);
+ r0 = (s.x___80552 + 1);
+ s.x___80552 = (r0);
{ step = 3; continue; }
case 10:
- r0 = pxsim_numops_toBoolDecr(globals.debug___2520);
+ r0 = pxsim_numops_toBoolDecr(globals.debug___62517);
if (!r0) { step = 23; continue; }
- s.x___20629 = (s.x0___20520);
+ s.x___80613 = (s.x0___80504);
case 11:
- r0 = (s.x___20629 <= s.xn___20527);
+ r0 = (s.x___80613 <= s.xn___80511);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 16; continue; }
- r0 = (s.x___20629 - s.x0___20520);
+ r0 = (s.x___80613 - s.x0___80504);
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___20510);
- s.xLine___20635 = (r0);
- r0 = (s.xLine___20635 >= 0);
+ r0 = (s.tmp_1 - s.offsetX___80494);
+ s.xLine___80619 = (r0);
+ r0 = (s.xLine___80619 >= 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 12; continue; }
r0 = s.tmp_0;
{ step = 13; continue; }
case 12:
- s.tmp_1 = r0 = s.xLine___20635;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ s.tmp_1 = r0 = s.xLine___80619;
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_2 = r0;
r0 = (s.tmp_1 <= s.tmp_2);
case 13:
@@ -70006,46 +69198,46 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 14; continue; }
- s.tmp_4 = helpers_imageDrawLine__P1727_mk(s);
+ s.tmp_4 = helpers_imageDrawLine__P61722_mk(s);
s.tmp_4.arg0 = s.arg1;
- s.tmp_4.arg1 = s.xLine___20635;
+ s.tmp_4.arg1 = s.xLine___80619;
s.tmp_4.arg2 = 0;
- s.tmp_4.arg3 = s.xLine___20635;
+ s.tmp_4.arg3 = s.xLine___80619;
r0 = pxsim_ImageMethods.height(s.arg1);
s.tmp_4.arg4 = r0;
s.tmp_4.arg5 = 1;
- s.callLocIdx = 1733; s.pc = 35; return s.tmp_4;
+ s.callLocIdx = 1680; s.pc = 35; return s.tmp_4;
case 35:
r0 = s.retval;
case 14:
case 15:
- r0 = (s.x___20629 + 1);
- s.x___20629 = (r0);
+ r0 = (s.x___80613 + 1);
+ s.x___80613 = (r0);
{ step = 11; continue; }
case 16:
- s.y___20661 = (s.y0___20544);
+ s.y___80645 = (s.y0___80528);
case 17:
- r0 = (s.y___20661 <= s.yn___20551);
+ r0 = (s.y___80645 <= s.yn___80535);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 22; continue; }
- r0 = (s.y___20661 - s.y0___20544);
+ r0 = (s.y___80645 - s.y0___80528);
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___20515);
- s.yLine___20667 = (r0);
- r0 = (s.yLine___20667 >= 0);
+ r0 = (s.tmp_1 - s.offsetY___80499);
+ s.yLine___80651 = (r0);
+ r0 = (s.yLine___80651 >= 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 18; continue; }
r0 = s.tmp_0;
{ step = 19; continue; }
case 18:
- s.tmp_1 = r0 = s.yLine___20667;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ s.tmp_1 = r0 = s.yLine___80651;
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_2 = r0;
r0 = (s.tmp_1 <= s.tmp_2);
case 19:
@@ -70053,21 +69245,21 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 20; continue; }
- s.tmp_4 = helpers_imageDrawLine__P1727_mk(s);
+ s.tmp_4 = helpers_imageDrawLine__P61722_mk(s);
s.tmp_4.arg0 = s.arg1;
s.tmp_4.arg1 = 0;
- s.tmp_4.arg2 = s.yLine___20667;
+ s.tmp_4.arg2 = s.yLine___80651;
r0 = pxsim_ImageMethods.width(s.arg1);
s.tmp_4.arg3 = r0;
- s.tmp_4.arg4 = s.yLine___20667;
+ s.tmp_4.arg4 = s.yLine___80651;
s.tmp_4.arg5 = 1;
- s.callLocIdx = 1735; s.pc = 36; return s.tmp_4;
+ s.callLocIdx = 1682; s.pc = 36; return s.tmp_4;
case 36:
r0 = s.retval;
case 20:
case 21:
- r0 = (s.y___20661 + 1);
- s.y___20661 = (r0);
+ r0 = (s.y___80645 + 1);
+ s.y___80645 = (r0);
{ step = 17; continue; }
case 22:
case 23:
@@ -70077,12 +69269,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_draw__P11441.info = {"start":5512,"length":2284,"line":173,"column":8,"endLine":228,"endColumn":9,"fileName":"mytilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]}
+tiles_legacy_LegacyTilemap_draw__P71433.info = {"start":5512,"length":2284,"line":173,"column":8,"endLine":228,"endColumn":9,"fileName":"mytilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]}
-function tiles_legacy_LegacyTilemap_draw__P11441_mk(s) {
+function tiles_legacy_LegacyTilemap_draw__P71433_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_draw__P11441, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_draw__P71433, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70098,21 +69290,21 @@ function tiles_legacy_LegacyTilemap_draw__P11441_mk(s) {
tmp_11: undefined,
tmp_12: undefined,
tmp_13: undefined,
- bitmask___20504: undefined,
- offsetX___20510: undefined,
- offsetY___20515: undefined,
- x0___20520: undefined,
- xn___20527: undefined,
- y0___20544: undefined,
- yn___20551: undefined,
- x___20568: undefined,
- y___20574: undefined,
- index___20580: undefined,
- tile___20587: undefined,
- x___20629: undefined,
- xLine___20635: undefined,
- y___20661: undefined,
- yLine___20667: undefined,
+ bitmask___80488: undefined,
+ offsetX___80494: undefined,
+ offsetY___80499: undefined,
+ x0___80504: undefined,
+ xn___80511: undefined,
+ y0___80528: undefined,
+ yn___80535: undefined,
+ x___80552: undefined,
+ y___80558: undefined,
+ index___80564: undefined,
+ tile___80571: undefined,
+ x___80613: undefined,
+ xLine___80619: undefined,
+ y___80645: undefined,
+ yLine___80651: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -70122,7 +69314,7 @@ function tiles_legacy_LegacyTilemap_draw__P11441_mk(s) {
-function tiles_legacy_LegacyTilemap_myLeft__P3855(s) {
+function tiles_legacy_LegacyTilemap_myLeft__P63852(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70137,7 +69329,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_screenX"];
s.tmp_0 = r0;
r0 = s.arg0.fields["_scale"];
@@ -70146,12 +69338,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_myLeft__P3855.info = {"start":1975,"length":68,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myLeft","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_myLeft__P63852.info = {"start":1975,"length":68,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myLeft","argumentNames":["this"]}
-function tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s) {
+function tiles_legacy_LegacyTilemap_myLeft__P63852_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_myLeft__P3855, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_myLeft__P63852, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70162,7 +69354,7 @@ function tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s) {
-function tiles_legacy_TileSet_image__P20141(s) {
+function tiles_legacy_TileSet_image__P80125(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70172,19 +69364,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.size___20160 = undefined;
+ s.size___80144 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_TileSet__C20140_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_TileSet__C80124_VT)) failedCast(r0);
r0 = s.arg0.fields["map"];
s.tmp_1 = r0;
r0 = s.tmp_1.fields["_scale"];
s.tmp_0 = r0;
r0 = (1 << s.tmp_0);
- s.size___20160 = (r0);
+ s.size___80144 = (r0);
r0 = s.arg0.fields["cachedImage"];
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
@@ -70200,7 +69392,7 @@ switch (step) {
s.tmp_4 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_4);
s.tmp_3 = r0;
- r0 = (s.tmp_3 != s.size___20160);
+ r0 = (s.tmp_3 != s.size___80144);
case 2:
// jmp value (already in r0)
s.tmp_5 = r0;
@@ -70213,7 +69405,7 @@ switch (step) {
s.tmp_7 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_7);
s.tmp_6 = r0;
- r0 = (s.tmp_6 != s.size___20160);
+ r0 = (s.tmp_6 != s.size___80144);
case 4:
// jmp value (already in r0)
s.tmp_8 = r0;
@@ -70223,7 +69415,7 @@ switch (step) {
s.tmp_11 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_11);
s.tmp_10 = r0;
- r0 = (s.tmp_10 == s.size___20160);
+ r0 = (s.tmp_10 == s.size___80144);
s.tmp_9 = r0;
r0 = pxsim_numops_toBool(s.tmp_9);
if (r0) { step = 5; continue; }
@@ -70234,7 +69426,7 @@ switch (step) {
s.tmp_13 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_13);
s.tmp_12 = r0;
- r0 = (s.tmp_12 == s.size___20160);
+ r0 = (s.tmp_12 == s.size___80144);
case 6:
// jmp value (already in r0)
s.tmp_14 = r0;
@@ -70246,7 +69438,7 @@ switch (step) {
{ step = 8; continue; }
case 7:
s.tmp_0 = r0 = s.arg0;
- r0 = pxsim.image.create(s.size___20160, s.size___20160);
+ r0 = pxsim.image.create(s.size___80144, s.size___80144);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["cachedImage"] = (s.tmp_1);
r0 = s.arg0.fields["cachedImage"];
@@ -70261,13 +69453,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_legacy_TileSet_image__P20141.info = {"start":834,"length":567,"line":27,"column":8,"endLine":38,"endColumn":9,"fileName":"mytilemap.ts","functionName":"image","argumentNames":["this"]}
-tiles_legacy_TileSet_image__P20141.isGetter = true;
+tiles_legacy_TileSet_image__P80125.info = {"start":834,"length":567,"line":27,"column":8,"endLine":38,"endColumn":9,"fileName":"mytilemap.ts","functionName":"image","argumentNames":["this"]}
+tiles_legacy_TileSet_image__P80125.isGetter = true;
-function tiles_legacy_TileSet_image__P20141_mk(s) {
+function tiles_legacy_TileSet_image__P80125_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_TileSet_image__P20141, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_TileSet_image__P80125, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70285,7 +69477,7 @@ function tiles_legacy_TileSet_image__P20141_mk(s) {
tmp_13: undefined,
tmp_14: undefined,
tmp_15: undefined,
- size___20160: undefined,
+ size___80144: undefined,
arg0: undefined,
} }
@@ -70293,7 +69485,7 @@ function tiles_legacy_TileSet_image__P20141_mk(s) {
-function tiles_legacy_LegacyTilemap_generateTile__P11438(s) {
+function tiles_legacy_LegacyTilemap_generateTile__P71430(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70303,30 +69495,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.size___20449 = undefined;
- s.i___20453 = undefined;
+ s.size___80433 = undefined;
+ s.i___80437 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_scale"];
s.tmp_0 = r0;
r0 = (1 << s.tmp_0);
- s.size___20449 = (r0);
- r0 = pxsim.image.create(s.size___20449, s.size___20449);
- s.i___20453 = (r0);
- r0 = pxsim_ImageMethods.fill(s.i___20453, s.arg1);
- r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C20140_VT);
+ s.size___80433 = (r0);
+ r0 = pxsim.image.create(s.size___80433, s.size___80433);
+ s.i___80437 = (r0);
+ r0 = pxsim_ImageMethods.fill(s.i___80437, s.arg1);
+ r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C80124_VT);
s.tmp_0 = r0;
- s.tmp_1 = tiles_legacy_TileSet_constructor__P20142_mk(s);
+ s.tmp_1 = tiles_legacy_TileSet_constructor__P80126_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.i___20453;
+ s.tmp_1.arg1 = s.i___80437;
s.tmp_1.arg2 = false;
s.tmp_1.arg3 = s.arg0;
- s.callLocIdx = 1716; s.pc = 1; return s.tmp_1;
+ s.callLocIdx = 1663; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
r0 = s.arg0.fields["_tileSets"];
@@ -70336,18 +69528,18 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_generateTile__P11438.info = {"start":4880,"length":245,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"mytilemap.ts","functionName":"generateTile","argumentNames":["this","index"]}
+tiles_legacy_LegacyTilemap_generateTile__P71430.info = {"start":4880,"length":245,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"mytilemap.ts","functionName":"generateTile","argumentNames":["this","index"]}
-function tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s) {
+function tiles_legacy_LegacyTilemap_generateTile__P71430_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_generateTile__P11438, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_generateTile__P71430, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- size___20449: undefined,
- i___20453: undefined,
+ size___80433: undefined,
+ i___80437: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -70356,7 +69548,7 @@ function tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s) {
-function tiles_legacy_LegacyTilemap_myWidth__P3856(s) {
+function tiles_legacy_LegacyTilemap_myWidth__P63853(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70371,12 +69563,12 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_0 = r0;
- s.tmp_2 = tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s);
+ s.tmp_2 = tiles_legacy_LegacyTilemap_myLeft__P63852_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 1704; s.pc = 1; return s.tmp_2;
+ s.callLocIdx = 1651; s.pc = 1; return s.tmp_2;
case 1:
r0 = s.retval;
s.tmp_1 = r0;
@@ -70384,12 +69576,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_myWidth__P3856.info = {"start":2053,"length":70,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myWidth","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_myWidth__P63853.info = {"start":2053,"length":70,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myWidth","argumentNames":["this"]}
-function tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s) {
+function tiles_legacy_LegacyTilemap_myWidth__P63853_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_myWidth__P3856, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_myWidth__P63853, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70401,7 +69593,7 @@ function tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s) {
-function tiles_legacy_LegacyTilemap_setTileAt__P3868(s) {
+function tiles_legacy_LegacyTilemap_setTileAt__P63865(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70419,12 +69611,12 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_3 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_3 = tiles_legacy_LegacyTilemap_isOutsideMap__P71431_mk(s);
s.tmp_3.arg0 = s.arg0;
s.tmp_3.arg1 = s.arg1;
s.tmp_3.arg2 = s.arg2;
- s.callLocIdx = 1714; s.pc = 5; return s.tmp_3;
+ s.callLocIdx = 1661; s.pc = 5; return s.tmp_3;
case 5:
r0 = s.retval;
s.tmp_2 = r0;
@@ -70437,10 +69629,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_6 = tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s);
+ s.tmp_6 = tiles_legacy_LegacyTilemap__C63847_v10_2_mk(s);
s.tmp_6.arg0 = s.arg0;
s.tmp_6.arg1 = s.arg3;
- if (!checkSubtype(s.tmp_6.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_6.arg0);
+ if (!checkSubtype(s.tmp_6.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_6.arg0);
s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex;
s.pc = 6; return s.tmp_6;
case 6:
@@ -70463,12 +69655,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_setTileAt__P3868.info = {"start":3492,"length":210,"line":120,"column":8,"endLine":123,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]}
+tiles_legacy_LegacyTilemap_setTileAt__P63865.info = {"start":3492,"length":210,"line":120,"column":8,"endLine":123,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]}
-function tiles_legacy_LegacyTilemap_setTileAt__P3868_mk(s) {
+function tiles_legacy_LegacyTilemap_setTileAt__P63865_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_setTileAt__P3868, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_setTileAt__P63865, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70489,7 +69681,7 @@ function tiles_legacy_LegacyTilemap_setTileAt__P3868_mk(s) {
-function tiles_legacy_LegacyTilemap_isOutsideMap__P11439(s) {
+function tiles_legacy_LegacyTilemap_isOutsideMap__P71431(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70506,10 +69698,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_3 = tiles_legacy_LegacyTilemap__C63847_v6_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
s.pc = 9; return s.tmp_3;
case 9:
@@ -70569,12 +69761,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_isOutsideMap__P11439.info = {"start":5135,"length":202,"line":163,"column":8,"endLine":166,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]}
+tiles_legacy_LegacyTilemap_isOutsideMap__P71431.info = {"start":5135,"length":202,"line":163,"column":8,"endLine":166,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]}
-function tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s) {
+function tiles_legacy_LegacyTilemap_isOutsideMap__P71431_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_isOutsideMap__P11439, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_isOutsideMap__P71431, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70599,7 +69791,7 @@ function tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s) {
-function tiles_legacy_LegacyTilemap_enabled__P3863(s) {
+function tiles_legacy_LegacyTilemap_enabled__P63860(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70614,7 +69806,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_mapImage"];
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
@@ -70627,13 +69819,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_enabled__P3863.info = {"start":2895,"length":71,"line":99,"column":8,"endLine":101,"endColumn":9,"fileName":"mytilemap.ts","functionName":"enabled","argumentNames":["this"]}
-tiles_legacy_LegacyTilemap_enabled__P3863.isGetter = true;
+tiles_legacy_LegacyTilemap_enabled__P63860.info = {"start":2895,"length":71,"line":99,"column":8,"endLine":101,"endColumn":9,"fileName":"mytilemap.ts","functionName":"enabled","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_enabled__P63860.isGetter = true;
-function tiles_legacy_LegacyTilemap_enabled__P3863_mk(s) {
+function tiles_legacy_LegacyTilemap_enabled__P63860_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_enabled__P3863, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_enabled__P63860, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70646,7 +69838,7 @@ function tiles_legacy_LegacyTilemap_enabled__P3863_mk(s) {
-function tiles_legacy_LegacyTilemap_areaHeight__P3860(s) {
+function tiles_legacy_LegacyTilemap_areaHeight__P63857(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70661,7 +69853,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_mapImage"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -70683,12 +69875,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_areaHeight__P3860.info = {"start":2572,"length":103,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaHeight","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_areaHeight__P63857.info = {"start":2572,"length":103,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaHeight","argumentNames":["this"]}
-function tiles_legacy_LegacyTilemap_areaHeight__P3860_mk(s) {
+function tiles_legacy_LegacyTilemap_areaHeight__P63857_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_areaHeight__P3860, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_areaHeight__P63857, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70702,7 +69894,7 @@ function tiles_legacy_LegacyTilemap_areaHeight__P3860_mk(s) {
-function tiles_legacy_LegacyTilemap_areaWidth__P3859(s) {
+function tiles_legacy_LegacyTilemap_areaWidth__P63856(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70717,7 +69909,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_mapImage"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -70739,12 +69931,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_areaWidth__P3859.info = {"start":2461,"length":101,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaWidth","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_areaWidth__P63856.info = {"start":2461,"length":101,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaWidth","argumentNames":["this"]}
-function tiles_legacy_LegacyTilemap_areaWidth__P3859_mk(s) {
+function tiles_legacy_LegacyTilemap_areaWidth__P63856_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_areaWidth__P3859, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_areaWidth__P63856, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70758,7 +69950,7 @@ function tiles_legacy_LegacyTilemap_areaWidth__P3859_mk(s) {
-function tiles_legacy_LegacyTilemap_offsetY__P3858(s) {
+function tiles_legacy_LegacyTilemap_offsetY__P63855(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70774,40 +69966,40 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 0;
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v4_1_mk(s);
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_3 = tiles_legacy_LegacyTilemap__C63847_v4_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight;
s.pc = 3; return s.tmp_3;
case 3:
r0 = s.retval;
s.tmp_2 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_4 = r0;
r0 = (s.tmp_2 - s.tmp_4);
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = 0;
- s.callLocIdx = 1708; s.pc = 2; return s.tmp_1;
+ s.callLocIdx = 1655; 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 = 1709; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1656; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_offsetY__P3858.info = {"start":2328,"length":123,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetY","argumentNames":["this","value"]}
+tiles_legacy_LegacyTilemap_offsetY__P63855.info = {"start":2328,"length":123,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetY","argumentNames":["this","value"]}
-function tiles_legacy_LegacyTilemap_offsetY__P3858_mk(s) {
+function tiles_legacy_LegacyTilemap_offsetY__P63855_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_offsetY__P3858, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_offsetY__P63855, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70822,7 +70014,7 @@ function tiles_legacy_LegacyTilemap_offsetY__P3858_mk(s) {
-function tiles_legacy_LegacyTilemap_offsetX__P3857(s) {
+function tiles_legacy_LegacyTilemap_offsetX__P63854(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70838,44 +70030,44 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 0;
- s.tmp_1 = Math_max__P122_mk(s);
- s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v3_1_mk(s);
+ s.tmp_1 = Math_max__P60117_mk(s);
+ s.tmp_3 = tiles_legacy_LegacyTilemap__C63847_v3_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth;
s.pc = 3; return s.tmp_3;
case 3:
r0 = s.retval;
s.tmp_2 = r0;
- s.tmp_5 = tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s);
+ s.tmp_5 = tiles_legacy_LegacyTilemap_myWidth__P63853_mk(s);
s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 1705; s.pc = 4; return s.tmp_5;
+ s.callLocIdx = 1652; s.pc = 4; return s.tmp_5;
case 4:
r0 = s.retval;
s.tmp_4 = r0;
r0 = (s.tmp_2 - s.tmp_4);
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = 0;
- s.callLocIdx = 1706; s.pc = 2; return s.tmp_1;
+ s.callLocIdx = 1653; 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 = 1707; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1654; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_offsetX__P3857.info = {"start":2133,"length":185,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetX","argumentNames":["this","value"]}
+tiles_legacy_LegacyTilemap_offsetX__P63854.info = {"start":2133,"length":185,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetX","argumentNames":["this","value"]}
-function tiles_legacy_LegacyTilemap_offsetX__P3857_mk(s) {
+function tiles_legacy_LegacyTilemap_offsetX__P63854_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_offsetX__P3857, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_offsetX__P63854, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -70891,7 +70083,7 @@ function tiles_legacy_LegacyTilemap_offsetX__P3857_mk(s) {
-function tiles_legacy_LegacyTilemap_data__P3853(s) {
+function tiles_legacy_LegacyTilemap_data__P63850(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70906,18 +70098,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = null;
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_data__P3853.info = {"start":1830,"length":60,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"mytilemap.ts","functionName":"data","argumentNames":["this"]}
-tiles_legacy_LegacyTilemap_data__P3853.isGetter = true;
+tiles_legacy_LegacyTilemap_data__P63850.info = {"start":1830,"length":60,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"mytilemap.ts","functionName":"data","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_data__P63850.isGetter = true;
-function tiles_legacy_LegacyTilemap_data__P3853_mk(s) {
+function tiles_legacy_LegacyTilemap_data__P63850_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_data__P3853, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_data__P63850, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -70926,7 +70118,7 @@ function tiles_legacy_LegacyTilemap_data__P3853_mk(s) {
-function tileworld_TileSprite_isOutOfScreen__P9373(s) {
+function tileworld_TileSprite_isOutOfScreen__P69369(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -70936,15 +70128,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___9466 = undefined;
- s.oy___9474 = undefined;
+ s.ox___69462 = undefined;
+ s.oy___69470 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_TileSprite__C69364_VT)) failedCast(r0);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 512);
@@ -70958,7 +70150,7 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_2 = r0;
- s.ox___9466 = (s.tmp_2);
+ s.ox___69462 = (s.tmp_2);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 512);
@@ -70972,7 +70164,7 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_2 = r0;
- s.oy___9474 = (s.tmp_2);
+ s.oy___69470 = (s.tmp_2);
r0 = s.arg0.fields["debug"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -70984,13 +70176,13 @@ switch (step) {
case 6:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.tmp_5 = Sprite_right__P2061_mk(s);
+ s.tmp_5 = Sprite_right__P62056_mk(s);
s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 292; s.pc = 15; return s.tmp_5;
+ s.callLocIdx = 294; s.pc = 15; return s.tmp_5;
case 15:
r0 = s.retval;
s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.ox___9466);
+ r0 = (s.tmp_4 - s.ox___69462);
s.tmp_3 = r0;
r0 = (s.tmp_3 < s.tmp_1);
s.tmp_2 = r0;
@@ -70999,13 +70191,13 @@ switch (step) {
r0 = s.tmp_2;
{ step = 8; continue; }
case 7:
- s.tmp_8 = Sprite_bottom__P2065_mk(s);
+ s.tmp_8 = Sprite_bottom__P62060_mk(s);
s.tmp_8.arg0 = s.arg0;
- s.callLocIdx = 293; s.pc = 16; return s.tmp_8;
+ s.callLocIdx = 295; s.pc = 16; return s.tmp_8;
case 16:
r0 = s.retval;
s.tmp_7 = r0;
- r0 = (s.tmp_7 - s.oy___9474);
+ r0 = (s.tmp_7 - s.oy___69470);
s.tmp_6 = r0;
r0 = (s.tmp_6 < 0);
case 8:
@@ -71027,15 +70219,15 @@ switch (step) {
case 11:
// jmp value (already in r0)
s.tmp_11 = r0;
- s.tmp_14 = Sprite_left__P2059_mk(s);
+ s.tmp_14 = Sprite_left__P62054_mk(s);
s.tmp_14.arg0 = s.arg0;
- s.callLocIdx = 294; s.pc = 17; return s.tmp_14;
+ s.callLocIdx = 296; s.pc = 17; return s.tmp_14;
case 17:
r0 = s.retval;
s.tmp_13 = r0;
- r0 = (s.tmp_13 - s.ox___9466);
+ r0 = (s.tmp_13 - s.ox___69462);
s.tmp_12 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_16 = r0;
r0 = (s.tmp_16 - s.tmp_11);
s.tmp_15 = r0;
@@ -71048,15 +70240,15 @@ switch (step) {
r0 = s.tmp_17;
{ step = 14; continue; }
case 13:
- s.tmp_20 = Sprite_top__P2063_mk(s);
+ s.tmp_20 = Sprite_top__P62058_mk(s);
s.tmp_20.arg0 = s.arg0;
- s.callLocIdx = 295; s.pc = 18; return s.tmp_20;
+ s.callLocIdx = 297; s.pc = 18; return s.tmp_20;
case 18:
r0 = s.retval;
s.tmp_19 = r0;
- r0 = (s.tmp_19 - s.oy___9474);
+ r0 = (s.tmp_19 - s.oy___69470);
s.tmp_18 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_21 = r0;
r0 = (s.tmp_18 > s.tmp_21);
case 14:
@@ -71066,12 +70258,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite_isOutOfScreen__P9373.info = {"start":1700,"length":438,"line":38,"column":8,"endLine":43,"endColumn":9,"fileName":"vm.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]}
+tileworld_TileSprite_isOutOfScreen__P69369.info = {"start":1700,"length":438,"line":38,"column":8,"endLine":43,"endColumn":9,"fileName":"vm.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]}
-function tileworld_TileSprite_isOutOfScreen__P9373_mk(s) {
+function tileworld_TileSprite_isOutOfScreen__P69369_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite_isOutOfScreen__P9373, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileSprite_isOutOfScreen__P69369, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -71096,8 +70288,8 @@ function tileworld_TileSprite_isOutOfScreen__P9373_mk(s) {
tmp_20: undefined,
tmp_21: undefined,
tmp_22: undefined,
- ox___9466: undefined,
- oy___9474: undefined,
+ ox___69462: undefined,
+ oy___69470: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -71106,7 +70298,7 @@ function tileworld_TileSprite_isOutOfScreen__P9373_mk(s) {
-function sprites_SpriteSet_toString__P2119(s) {
+function sprites_SpriteSet_toString__P62114(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71121,7 +70313,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_VT)) failedCast(r0);
r0 = pxsim_String_.mkEmpty();
s.tmp_1 = r0;
r0 = s.arg0.fields["_sprites"];
@@ -71143,12 +70335,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteSet_toString__P2119.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]}
+sprites_SpriteSet_toString__P62114.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]}
-function sprites_SpriteSet_toString__P2119_mk(s) {
+function sprites_SpriteSet_toString__P62114_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteSet_toString__P2119, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_toString__P62114, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -71162,7 +70354,7 @@ function sprites_SpriteSet_toString__P2119_mk(s) {
-function sprites_SpriteSet_length__P2111(s) {
+function sprites_SpriteSet_length__P62106(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71177,20 +70369,20 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_SpriteSet__C62103_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__P2111.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]}
-sprites_SpriteSet_length__P2111.isGetter = true;
+sprites_SpriteSet_length__P62106.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]}
+sprites_SpriteSet_length__P62106.isGetter = true;
-function sprites_SpriteSet_length__P2111_mk(s) {
+function sprites_SpriteSet_length__P62106_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteSet_length__P2111, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteSet_length__P62106, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -71200,7 +70392,7 @@ function sprites_SpriteSet_length__P2111_mk(s) {
-function tileworld_ruleediting_RuleViewDisplay_update__P14222(s) {
+function tileworld_ruleediting_RuleViewDisplay_update__P74214(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71210,74 +70402,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___14351 = undefined;
- s.col___14364 = undefined;
+ s.index___74343 = undefined;
+ s.col___74356 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P13111_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P73103_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 825; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 827; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P14343);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P74335);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals.transformImages___14212;
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals.transformImages___74204;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 827; s.pc = 2; return s.tmp_1;
+ s.callLocIdx = 829; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
- s.tmp_0 = r0 = globals.transformMap___14209;
+ s.tmp_0 = r0 = globals.transformMap___74201;
r0 = s.arg0.fields["baseRule"];
s.tmp_2 = r0;
r0 = s.tmp_2.fields["r"];
r0 = r0.fields["transforms"];
s.tmp_1 = r0;
r0 = pxsim_Array_.indexOf(s.tmp_0, s.tmp_1, undefined);
- s.index___14351 = (r0);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.index___74343 = (r0);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
- r0 = (1 + s.index___14351);
+ r0 = (1 + s.index___74343);
s.tmp_0.arg1 = r0;
s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.cursorOut___3724;
- s.callLocIdx = 829; s.pc = 3; return s.tmp_0;
+ s.tmp_0.arg3 = globals.cursorOut___63721;
+ s.callLocIdx = 831; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- r0 = (s.index___14351 + 1);
- s.col___14364 = (r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P14371);
+ r0 = (s.index___74343 + 1);
+ s.col___74356 = (r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P74363);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___14364);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___74356);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["ruleViews"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 831; s.pc = 4; return s.tmp_1;
+ s.callLocIdx = 833; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleViewDisplay_update__P14222.info = {"start":1968,"length":555,"line":46,"column":8,"endLine":60,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"update","argumentNames":["this"]}
+tileworld_ruleediting_RuleViewDisplay_update__P74214.info = {"start":1968,"length":555,"line":46,"column":8,"endLine":60,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_ruleediting_RuleViewDisplay_update__P14222_mk(s) {
+function tileworld_ruleediting_RuleViewDisplay_update__P74214_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleViewDisplay_update__P14222, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleViewDisplay_update__P74214, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- index___14351: undefined,
- col___14364: undefined,
+ index___74343: undefined,
+ col___74356: undefined,
arg0: undefined,
} }
@@ -71285,7 +70477,7 @@ function tileworld_ruleediting_RuleViewDisplay_update__P14222_mk(s) {
-function inline__P14343(s) {
+function inline__P74335(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71300,25 +70492,25 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
r0 = (s.arg1 + 1);
s.tmp_0.arg1 = r0;
s.tmp_0.arg2 = 0;
s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 826; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 828; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P14343.info = {"start":2081,"length":72,"line":49,"column":36,"endLine":51,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P74335.info = {"start":2081,"length":72,"line":49,"column":36,"endLine":51,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["img","i"]}
-function inline__P14343_mk(s) {
+function inline__P74335_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14343, depth: s.depth + 1,
+ parent: s, fn: inline__P74335, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -71329,7 +70521,7 @@ function inline__P14343_mk(s) {
-function inline__P14371(s) {
+function inline__P74363(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71344,25 +70536,25 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
r0 = (s.caps[1] + s.arg1);
s.tmp_0.arg1 = r0;
s.tmp_0.arg2 = 1;
- s.tmp_0.arg3 = globals.include2___3729;
- s.callLocIdx = 830; s.pc = 1; return s.tmp_0;
+ s.tmp_0.arg3 = globals.include2___63726;
+ s.callLocIdx = 832; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P14371.info = {"start":2425,"length":86,"line":57,"column":35,"endLine":59,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["rv","index"]}
+inline__P74363.info = {"start":2425,"length":86,"line":57,"column":35,"endLine":59,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["rv","index"]}
-function inline__P14371_mk(s) {
+function inline__P74363_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P14371, depth: s.depth + 1,
+ parent: s, fn: inline__P74363, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -71373,7 +70565,7 @@ function inline__P14371_mk(s) {
-function tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220(s) {
+function tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71390,22 +70582,22 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_cursorMove__P73100_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = s.arg2;
- s.callLocIdx = 817; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 819; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s);
+ s.tmp_0 = tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 818; s.pc = 2; return s.tmp_0;
+ s.callLocIdx = 820; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s);
+ s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C63798_v0_1_mk(s);
s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(s.tmp_0.arg0);
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(s.tmp_0.arg0);
s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
s.pc = 3; return s.tmp_0;
case 3:
@@ -71414,12 +70606,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220.info = {"start":1196,"length":173,"line":26,"column":8,"endLine":30,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212.info = {"start":1196,"length":173,"line":26,"column":8,"endLine":30,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220_mk(s) {
+function tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -71431,7 +70623,7 @@ function tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220_mk(s) {
-function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221(s) {
+function tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71441,26 +70633,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.t___14283 = undefined;
- s.index___14303 = undefined;
+ s.t___74275 = undefined;
+ s.index___74295 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(r0);
r0 = s.arg0.fields["baseRule"];
s.tmp_0 = r0;
r0 = s.tmp_0.fields["r"];
r0 = r0.fields["transforms"];
- s.t___14283 = (r0);
+ s.t___74275 = (r0);
r0 = s.arg0.fields["baseRule"];
s.tmp_0 = r0;
r0 = (s.arg0).fields["rule"] = (s.tmp_0);
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 820; s.pc = 15; return s.tmp_2;
+ s.callLocIdx = 822; s.pc = 15; return s.tmp_2;
case 15:
r0 = s.retval;
s.tmp_1 = r0;
@@ -71471,7 +70663,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = (s.t___14283 != 0);
+ r0 = (s.t___74275 != 0);
case 2:
// jmp value (already in r0)
s.tmp_3 = r0;
@@ -71490,16 +70682,16 @@ switch (step) {
s.tmp_6 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_6);
if (!r0) { step = 13; continue; }
- r0 = pxsim_Array_.indexOf(globals.transformMap___14209, s.t___14283, undefined);
- s.index___14303 = (r0);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ r0 = pxsim_Array_.indexOf(globals.transformMap___74201, s.t___74275, undefined);
+ s.index___74295 = (r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 821; s.pc = 16; return s.tmp_2;
+ s.callLocIdx = 823; s.pc = 16; return s.tmp_2;
case 16:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.index___14303 + 1);
+ r0 = (s.index___74295 + 1);
s.tmp_3 = r0;
r0 = (s.tmp_1 == s.tmp_3);
s.tmp_0 = r0;
@@ -71524,10 +70716,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 7; continue; }
case 6:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 822; s.pc = 17; return s.tmp_4;
+ s.callLocIdx = 824; s.pc = 17; return s.tmp_4;
case 17:
r0 = s.retval;
s.tmp_3 = r0;
@@ -71540,10 +70732,10 @@ switch (step) {
r0 = s.tmp_5;
{ step = 9; continue; }
case 8:
- s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_7 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_7.arg0 = s.arg0;
s.tmp_7.arg1 = true;
- s.callLocIdx = 823; s.pc = 18; return s.tmp_7;
+ s.callLocIdx = 825; s.pc = 18; return s.tmp_7;
case 18:
r0 = s.retval;
s.tmp_6 = r0;
@@ -71556,10 +70748,10 @@ switch (step) {
s.tmp_9 = r0 = s.arg0;
r0 = s.arg0.fields["ruleViews"];
s.tmp_11 = r0;
- s.tmp_14 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_14 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_14.arg0 = s.arg0;
s.tmp_14.arg1 = true;
- s.callLocIdx = 824; s.pc = 19; return s.tmp_14;
+ s.callLocIdx = 826; s.pc = 19; return s.tmp_14;
case 19:
r0 = s.retval;
s.tmp_13 = r0;
@@ -71573,9 +70765,9 @@ switch (step) {
case 12:
case 13:
case 14:
- s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s);
+ s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C63798_v0_1_mk(s);
s.tmp_0.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(s.tmp_0.arg0);
+ if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C63798_VT)) failedCast(s.tmp_0.arg0);
s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update;
s.pc = 20; return s.tmp_0;
case 20:
@@ -71584,12 +70776,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221.info = {"start":1379,"length":579,"line":32,"column":8,"endLine":44,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorToView","argumentNames":["this"]}
+tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213.info = {"start":1379,"length":579,"line":32,"column":8,"endLine":44,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorToView","argumentNames":["this"]}
-function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s) {
+function tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -71606,8 +70798,8 @@ function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s) {
tmp_12: undefined,
tmp_13: undefined,
tmp_14: undefined,
- t___14283: undefined,
- index___14303: undefined,
+ t___74275: undefined,
+ index___74295: undefined,
arg0: undefined,
} }
@@ -71615,7 +70807,7 @@ function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s) {
-function tileworld_ruleediting_RuleEditor_showAttributes__P14521(s) {
+function tileworld_ruleediting_RuleEditor_showAttributes__P74513(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71633,8 +70825,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_showAttributes__P13123_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_showAttributes__P73115_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = s.arg2;
@@ -71642,19 +70834,19 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_1 == 0);
s.tmp_0.arg3 = r0;
- s.callLocIdx = 1150; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1151; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_showAttributes__P14521.info = {"start":19007,"length":160,"line":431,"column":8,"endLine":433,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]}
+tileworld_ruleediting_RuleEditor_showAttributes__P74513.info = {"start":19025,"length":160,"line":431,"column":8,"endLine":433,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]}
-function tileworld_ruleediting_RuleEditor_showAttributes__P14521_mk(s) {
+function tileworld_ruleediting_RuleEditor_showAttributes__P74513_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_showAttributes__P14521, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_showAttributes__P74513, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -71668,7 +70860,7 @@ function tileworld_ruleediting_RuleEditor_showAttributes__P14521_mk(s) {
-function tileworld_ruleediting_RuleEditor_cursorMove__P14508(s) {
+function tileworld_ruleediting_RuleEditor_cursorMove__P74500(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -71685,24 +70877,24 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
r0 = s.arg0.fields["menu"];
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; }
- s.tmp_2 = tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s);
+ s.tmp_2 = tileworld_ruleediting_RuleDisplay_cursorMove__P73100_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = s.arg1;
s.tmp_2.arg2 = s.arg2;
- s.callLocIdx = 1026; s.pc = 29; return s.tmp_2;
+ s.callLocIdx = 1027; s.pc = 29; return s.tmp_2;
case 29:
r0 = s.retval;
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1027; s.pc = 30; return s.tmp_2;
+ s.callLocIdx = 1028; s.pc = 30; return s.tmp_2;
case 30:
r0 = s.retval;
s.tmp_1 = r0;
@@ -71710,9 +70902,9 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_3 = tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s);
+ s.tmp_3 = tileworld_ruleediting_RuleEditor_restoreCursor__P74495_mk(s);
s.tmp_3.arg0 = s.arg0;
- s.callLocIdx = 1028; s.pc = 31; return s.tmp_3;
+ s.callLocIdx = 1029; s.pc = 31; return s.tmp_3;
case 31:
r0 = s.retval;
case 1:
@@ -71724,10 +70916,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 27; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_3.arg0 = s.arg0;
s.tmp_3.arg1 = true;
- s.callLocIdx = 1029; s.pc = 32; return s.tmp_3;
+ s.callLocIdx = 1030; s.pc = 32; return s.tmp_3;
case 32:
r0 = s.retval;
s.tmp_2 = r0;
@@ -71735,20 +70927,20 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 5; continue; }
- s.tmp_5 = Sprite_x__P2022_mk(s);
+ s.tmp_5 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_5.arg0 = r0;
- s.callLocIdx = 1030; s.pc = 33; return s.tmp_5;
+ s.callLocIdx = 1031; s.pc = 33; return s.tmp_5;
case 33:
r0 = s.retval;
s.tmp_4 = r0;
r0 = (s.tmp_4 + 16);
{ step = 6; continue; }
case 5:
- s.tmp_7 = Sprite_x__P2022_mk(s);
+ s.tmp_7 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_7.arg0 = r0;
- s.callLocIdx = 1031; s.pc = 34; return s.tmp_7;
+ s.callLocIdx = 1032; s.pc = 34; return s.tmp_7;
case 34:
r0 = s.retval;
s.tmp_6 = r0;
@@ -71756,17 +70948,17 @@ switch (step) {
case 6:
// jmp value (already in r0)
s.tmp_8 = r0;
- s.tmp_9 = Sprite_x__P2023_mk(s);
+ s.tmp_9 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_9.arg0 = r0;
s.tmp_9.arg1 = s.tmp_8;
- s.callLocIdx = 1032; s.pc = 35; return s.tmp_9;
+ s.callLocIdx = 1033; s.pc = 35; return s.tmp_9;
case 35:
r0 = s.retval;
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1033; s.pc = 36; return s.tmp_2;
+ s.callLocIdx = 1034; s.pc = 36; return s.tmp_2;
case 36:
r0 = s.retval;
s.tmp_1 = r0;
@@ -71774,40 +70966,40 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
+ s.tmp_4 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_4.arg0 = r0;
- s.callLocIdx = 1034; s.pc = 37; return s.tmp_4;
+ s.callLocIdx = 1035; s.pc = 37; return s.tmp_4;
case 37:
r0 = s.retval;
s.tmp_3 = r0;
r0 = (s.tmp_3 + 32);
{ step = 8; continue; }
case 7:
- s.tmp_5 = Sprite_y__P2024_mk(s);
+ s.tmp_5 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_5.arg0 = r0;
- s.callLocIdx = 1035; s.pc = 38; return s.tmp_5;
+ s.callLocIdx = 1036; s.pc = 38; return s.tmp_5;
case 38:
r0 = s.retval;
case 8:
// jmp value (already in r0)
s.tmp_6 = r0;
- s.tmp_7 = Sprite_y__P2025_mk(s);
+ s.tmp_7 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_7.arg0 = r0;
s.tmp_7.arg1 = s.tmp_6;
- s.callLocIdx = 1036; s.pc = 39; return s.tmp_7;
+ s.callLocIdx = 1037; s.pc = 39; return s.tmp_7;
case 39:
r0 = s.retval;
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = null;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 1037; s.pc = 40; return s.tmp_0;
+ s.callLocIdx = 1038; s.pc = 40; return s.tmp_0;
case 40:
r0 = s.retval;
r0 = s.arg0.fields["menu"];
@@ -71816,10 +71008,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 15; continue; }
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 1038; s.pc = 41; return s.tmp_4;
+ s.callLocIdx = 1039; s.pc = 41; return s.tmp_4;
case 41:
r0 = s.retval;
s.tmp_3 = r0;
@@ -71830,10 +71022,10 @@ switch (step) {
r0 = s.tmp_2;
{ step = 10; continue; }
case 9:
- s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_6 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_6.arg0 = s.arg0;
s.tmp_6.arg1 = true;
- s.callLocIdx = 1039; s.pc = 42; return s.tmp_6;
+ s.callLocIdx = 1040; s.pc = 42; return s.tmp_6;
case 42:
r0 = s.retval;
s.tmp_5 = r0;
@@ -71843,53 +71035,53 @@ switch (step) {
s.tmp_7 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_7);
if (!r0) { step = 11; continue; }
- s.tmp_8 = Sprite_say__P2071_mk(s);
+ s.tmp_8 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_8.arg0 = r0;
- s.tmp_9 = tileworld_getHelp__P3537_mk(s);
- s.tmp_9.arg0 = globals.menuHelpString___15115;
- s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_9 = tileworld_getHelp__P63534_mk(s);
+ s.tmp_9.arg0 = globals.menuHelpString___75107;
+ s.tmp_10 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_10.arg0 = s.arg0;
s.tmp_10.arg1 = true;
- s.callLocIdx = 1040; s.pc = 45; return s.tmp_10;
+ s.callLocIdx = 1041; s.pc = 45; return s.tmp_10;
case 45:
r0 = s.retval;
s.tmp_9.arg1 = r0;
- s.tmp_11 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_11 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_11.arg0 = s.arg0;
s.tmp_11.arg1 = true;
- s.callLocIdx = 1041; s.pc = 46; return s.tmp_11;
+ s.callLocIdx = 1042; s.pc = 46; return s.tmp_11;
case 46:
r0 = s.retval;
s.tmp_9.arg2 = r0;
- s.callLocIdx = 1042; s.pc = 44; return s.tmp_9;
+ s.callLocIdx = 1043; s.pc = 44; return s.tmp_9;
case 44:
r0 = s.retval;
s.tmp_8.arg1 = r0;
s.tmp_8.arg2 = undefined;
s.tmp_8.arg3 = 15;
s.tmp_8.arg4 = 1;
- s.callLocIdx = 1043; s.pc = 43; return s.tmp_8;
+ s.callLocIdx = 1044; s.pc = 43; return s.tmp_8;
case 43:
r0 = s.retval;
{ step = 14; continue; }
case 11:
- s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s);
+ s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501_mk(s);
s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 1044; s.pc = 47; return s.tmp_1;
+ s.callLocIdx = 1045; s.pc = 47; return s.tmp_1;
case 47:
r0 = s.retval;
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 12; continue; }
- s.tmp_2 = Sprite_say__P2071_mk(s);
+ s.tmp_2 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_2.arg0 = r0;
s.tmp_2.arg1 = "A: predicate";
s.tmp_2.arg2 = undefined;
s.tmp_2.arg3 = 15;
s.tmp_2.arg4 = 1;
- s.callLocIdx = 1045; s.pc = 48; return s.tmp_2;
+ s.callLocIdx = 1046; s.pc = 48; return s.tmp_2;
case 48:
r0 = s.retval;
case 12:
@@ -71903,10 +71095,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 22; continue; }
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 1046; s.pc = 49; return s.tmp_4;
+ s.callLocIdx = 1047; s.pc = 49; return s.tmp_4;
case 49:
r0 = s.retval;
s.tmp_3 = r0;
@@ -71914,41 +71106,41 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 16; continue; }
- s.tmp_5 = Sprite_say__P2071_mk(s);
+ s.tmp_5 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_5.arg0 = r0;
- s.tmp_6 = tileworld_getHelp__P3537_mk(s);
- s.tmp_6.arg0 = globals.attrHelpString___15117;
- s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_6 = tileworld_getHelp__P63534_mk(s);
+ s.tmp_6.arg0 = globals.attrHelpString___75109;
+ s.tmp_7 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_7.arg0 = s.arg0;
s.tmp_7.arg1 = true;
- s.callLocIdx = 1047; s.pc = 52; return s.tmp_7;
+ s.callLocIdx = 1048; s.pc = 52; return s.tmp_7;
case 52:
r0 = s.retval;
s.tmp_6.arg1 = r0;
- s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_8 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_8.arg0 = s.arg0;
s.tmp_8.arg1 = true;
- s.callLocIdx = 1048; s.pc = 53; return s.tmp_8;
+ s.callLocIdx = 1049; s.pc = 53; return s.tmp_8;
case 53:
r0 = s.retval;
s.tmp_6.arg2 = r0;
- s.callLocIdx = 1049; s.pc = 51; return s.tmp_6;
+ s.callLocIdx = 1050; s.pc = 51; return s.tmp_6;
case 51:
r0 = s.retval;
s.tmp_5.arg1 = r0;
s.tmp_5.arg2 = undefined;
s.tmp_5.arg3 = 15;
s.tmp_5.arg4 = 1;
- s.callLocIdx = 1050; s.pc = 50; return s.tmp_5;
+ s.callLocIdx = 1051; s.pc = 50; return s.tmp_5;
case 50:
r0 = s.retval;
{ step = 21; continue; }
case 16:
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1051; s.pc = 54; return s.tmp_2;
+ s.callLocIdx = 1052; s.pc = 54; return s.tmp_2;
case 54:
r0 = s.retval;
s.tmp_1 = r0;
@@ -71959,10 +71151,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 18; continue; }
case 17:
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 1052; s.pc = 55; return s.tmp_4;
+ s.callLocIdx = 1053; s.pc = 55; return s.tmp_4;
case 55:
r0 = s.retval;
s.tmp_3 = r0;
@@ -71972,14 +71164,14 @@ switch (step) {
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 19; continue; }
- s.tmp_6 = Sprite_say__P2071_mk(s);
+ s.tmp_6 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_6.arg0 = r0;
s.tmp_6.arg1 = "A: set flag";
s.tmp_6.arg2 = undefined;
s.tmp_6.arg3 = 15;
s.tmp_6.arg4 = 1;
- s.callLocIdx = 1053; s.pc = 56; return s.tmp_6;
+ s.callLocIdx = 1054; s.pc = 56; return s.tmp_6;
case 56:
r0 = s.retval;
case 19:
@@ -71993,10 +71185,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 23; continue; }
- s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s);
+ s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P74511_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1054; s.pc = 57; return s.tmp_2;
+ s.callLocIdx = 1055; s.pc = 57; return s.tmp_2;
case 57:
r0 = s.retval;
case 23:
@@ -72009,12 +71201,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_cursorMove__P14508.info = {"start":8798,"length":1412,"line":189,"column":8,"endLine":216,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_ruleediting_RuleEditor_cursorMove__P74500.info = {"start":8816,"length":1412,"line":189,"column":8,"endLine":216,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_ruleediting_RuleEditor_cursorMove__P14508_mk(s) {
+function tileworld_ruleediting_RuleEditor_cursorMove__P74500_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_cursorMove__P14508, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_cursorMove__P74500, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72037,7 +71229,7 @@ function tileworld_ruleediting_RuleEditor_cursorMove__P14508_mk(s) {
-function tileworld_getHelp__P3537(s) {
+function tileworld_getHelp__P63534(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72047,11 +71239,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___5974 = undefined;
- s.curr___5983 = undefined;
- s.nextCol___5985 = undefined;
- s.nextRow___5995 = undefined;
- s.comma___6007 = undefined;
+ s.index___65977 = undefined;
+ s.curr___65986 = undefined;
+ s.nextCol___65988 = undefined;
+ s.nextRow___65998 = undefined;
+ s.comma___66010 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -72068,16 +71260,16 @@ switch (step) {
{ step = 11; continue; }
case 1:
case 2:
- s.index___5974 = (0);
+ s.index___65977 = (0);
case 3:
- r0 = (s.index___5974 >= 0);
+ r0 = (s.index___65977 >= 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 4; continue; }
r0 = s.tmp_0;
{ step = 5; continue; }
case 4:
- s.tmp_1 = r0 = s.index___5974;
+ s.tmp_1 = r0 = s.index___65977;
r0 = pxsim_String_.length(s.arg0);
s.tmp_2 = r0;
r0 = (s.tmp_1 < s.tmp_2);
@@ -72086,41 +71278,41 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 10; continue; }
- s.curr___5983 = (s.index___5974);
- r0 = pxsim_String_.substr(s.arg0, s.curr___5983, 1);
+ s.curr___65986 = (s.index___65977);
+ r0 = pxsim_String_.substr(s.arg0, s.curr___65986, 1);
s.tmp_1 = r0;
r0 = pxsim_String_.charCodeAt(s.tmp_1, 0);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - globals.zeroCode___5966);
- s.nextCol___5985 = (r0);
+ r0 = (s.tmp_0 - globals.zeroCode___65969);
+ s.nextCol___65988 = (r0);
s.tmp_2 = r0 = s.arg0;
- r0 = (s.curr___5983 + 1);
+ r0 = (s.curr___65986 + 1);
s.tmp_3 = r0;
r0 = pxsim_String_.substr(s.tmp_2, s.tmp_3, 1);
s.tmp_1 = r0;
r0 = pxsim_String_.charCodeAt(s.tmp_1, 0);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - globals.zeroCode___5966);
- s.nextRow___5995 = (r0);
- r0 = pxsim_String_.indexOf(s.arg0, ",", s.index___5974);
- s.comma___6007 = (r0);
- r0 = (s.nextCol___5985 == s.arg1);
+ r0 = (s.tmp_0 - globals.zeroCode___65969);
+ s.nextRow___65998 = (r0);
+ r0 = pxsim_String_.indexOf(s.arg0, ",", s.index___65977);
+ s.comma___66010 = (r0);
+ r0 = (s.nextCol___65988 == s.arg1);
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.nextRow___5995 == s.arg2);
+ r0 = (s.nextRow___65998 == s.arg2);
case 7:
// jmp value (already in r0)
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 8; continue; }
s.tmp_2 = r0 = s.arg0;
- r0 = (s.curr___5983 + 2);
+ r0 = (s.curr___65986 + 2);
s.tmp_3 = r0;
- r0 = (s.comma___6007 - s.curr___5983);
+ r0 = (s.comma___66010 - s.curr___65986);
s.tmp_5 = r0;
r0 = (s.tmp_5 - 2);
s.tmp_4 = r0;
@@ -72128,8 +71320,8 @@ switch (step) {
{ step = 11; continue; }
case 8:
case 9:
- r0 = (s.comma___6007 + 1);
- s.index___5974 = (r0);
+ r0 = (s.comma___66010 + 1);
+ s.index___65977 = (r0);
{ step = 3; continue; }
case 10:
r0 = null;
@@ -72137,12 +71329,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_getHelp__P3537.info = {"start":68,"length":596,"line":4,"column":4,"endLine":18,"endColumn":5,"fileName":"utilities.ts","functionName":"getHelp","argumentNames":["help","col","row"]}
+tileworld_getHelp__P63534.info = {"start":68,"length":596,"line":4,"column":4,"endLine":18,"endColumn":5,"fileName":"utilities.ts","functionName":"getHelp","argumentNames":["help","col","row"]}
-function tileworld_getHelp__P3537_mk(s) {
+function tileworld_getHelp__P63534_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_getHelp__P3537, depth: s.depth + 1,
+ parent: s, fn: tileworld_getHelp__P63534, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72150,11 +71342,11 @@ function tileworld_getHelp__P3537_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- index___5974: undefined,
- curr___5983: undefined,
- nextCol___5985: undefined,
- nextRow___5995: undefined,
- comma___6007: undefined,
+ index___65977: undefined,
+ curr___65986: undefined,
+ nextCol___65988: undefined,
+ nextRow___65998: undefined,
+ comma___66010: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -72164,7 +71356,7 @@ function tileworld_getHelp__P3537_mk(s) {
-function tileworld_ruleediting_RuleEditor_okToMove__P14502(s) {
+function tileworld_ruleediting_RuleEditor_okToMove__P74494(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72179,7 +71371,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C63813_VT)) failedCast(r0);
r0 = s.arg0.fields["askDeleteRule"];
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
@@ -72188,12 +71380,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleEditor_okToMove__P14502.info = {"start":7949,"length":72,"line":158,"column":8,"endLine":160,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"okToMove","argumentNames":["this"]}
+tileworld_ruleediting_RuleEditor_okToMove__P74494.info = {"start":7967,"length":72,"line":158,"column":8,"endLine":160,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"okToMove","argumentNames":["this"]}
-function tileworld_ruleediting_RuleEditor_okToMove__P14502_mk(s) {
+function tileworld_ruleediting_RuleEditor_okToMove__P74494_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleEditor_okToMove__P14502, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleEditor_okToMove__P74494, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72204,7 +71396,7 @@ function tileworld_ruleediting_RuleEditor_okToMove__P14502_mk(s) {
-function tileworld_ruleediting_RuleRoom_cursorMove__P14386(s) {
+function tileworld_ruleediting_RuleRoom_cursorMove__P74378(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72214,8 +71406,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___14573 = undefined;
- s.message___14583 = undefined;
+ s.index___74565 = undefined;
+ s.message___74575 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -72223,16 +71415,16 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C63802_VT)) failedCast(r0);
r0 = s.arg0.fields["p"];
r0 = r0.fields["help"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 9; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_3.arg0 = s.arg0;
s.tmp_3.arg1 = true;
- s.callLocIdx = 859; s.pc = 11; return s.tmp_3;
+ s.callLocIdx = 861; s.pc = 11; return s.tmp_3;
case 11:
r0 = s.retval;
s.tmp_2 = r0;
@@ -72240,20 +71432,20 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2022_mk(s);
+ s.tmp_5 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_5.arg0 = r0;
- s.callLocIdx = 860; s.pc = 12; return s.tmp_5;
+ s.callLocIdx = 862; s.pc = 12; return s.tmp_5;
case 12:
r0 = s.retval;
s.tmp_4 = r0;
r0 = (s.tmp_4 + 8);
{ step = 2; continue; }
case 1:
- s.tmp_7 = Sprite_x__P2022_mk(s);
+ s.tmp_7 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_7.arg0 = r0;
- s.callLocIdx = 861; s.pc = 13; return s.tmp_7;
+ s.callLocIdx = 863; s.pc = 13; return s.tmp_7;
case 13:
r0 = s.retval;
s.tmp_6 = r0;
@@ -72261,17 +71453,17 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_8 = r0;
- s.tmp_9 = Sprite_x__P2023_mk(s);
+ s.tmp_9 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_9.arg0 = r0;
s.tmp_9.arg1 = s.tmp_8;
- s.callLocIdx = 862; s.pc = 14; return s.tmp_9;
+ s.callLocIdx = 864; s.pc = 14; return s.tmp_9;
case 14:
r0 = s.retval;
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 863; s.pc = 15; return s.tmp_2;
+ s.callLocIdx = 865; s.pc = 15; return s.tmp_2;
case 15:
r0 = s.retval;
s.tmp_1 = r0;
@@ -72279,54 +71471,54 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.tmp_4 = Sprite_y__P2024_mk(s);
+ s.tmp_4 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_4.arg0 = r0;
- s.callLocIdx = 864; s.pc = 16; return s.tmp_4;
+ s.callLocIdx = 866; s.pc = 16; return s.tmp_4;
case 16:
r0 = s.retval;
s.tmp_3 = r0;
r0 = (s.tmp_3 + 32);
{ step = 4; continue; }
case 3:
- s.tmp_5 = Sprite_y__P2024_mk(s);
+ s.tmp_5 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_5.arg0 = r0;
- s.callLocIdx = 865; s.pc = 17; return s.tmp_5;
+ s.callLocIdx = 867; s.pc = 17; return s.tmp_5;
case 17:
r0 = s.retval;
case 4:
// jmp value (already in r0)
s.tmp_6 = r0;
- s.tmp_7 = Sprite_y__P2025_mk(s);
+ s.tmp_7 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_7.arg0 = r0;
s.tmp_7.arg1 = s.tmp_6;
- s.callLocIdx = 866; s.pc = 18; return s.tmp_7;
+ s.callLocIdx = 868; s.pc = 18; return s.tmp_7;
case 18:
r0 = s.retval;
r0 = s.arg0.fields["dirMap"];
s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 867; s.pc = 19; return s.tmp_2;
+ s.callLocIdx = 869; s.pc = 19; return s.tmp_2;
case 19:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 868; s.pc = 20; return s.tmp_4;
+ s.callLocIdx = 870; s.pc = 20; return s.tmp_4;
case 20:
r0 = s.retval;
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.index___14573 = (r0);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.index___74565 = (r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 869; s.pc = 21; return s.tmp_2;
+ s.callLocIdx = 871; s.pc = 21; return s.tmp_2;
case 21:
r0 = s.retval;
s.tmp_1 = r0;
@@ -72334,10 +71526,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_5 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_5.arg0 = s.arg0;
s.tmp_5.arg1 = true;
- s.callLocIdx = 870; s.pc = 22; return s.tmp_5;
+ s.callLocIdx = 872; s.pc = 22; return s.tmp_5;
case 22:
r0 = s.retval;
s.tmp_4 = r0;
@@ -72345,63 +71537,63 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 5; continue; }
- r0 = globals.helpStringTop___14381;
+ r0 = globals.helpStringTop___74373;
{ step = 6; continue; }
case 5:
- r0 = globals.helpStringBot___14383;
+ r0 = globals.helpStringBot___74375;
case 6:
// jmp value (already in r0)
s.tmp_6 = r0;
- s.tmp_7 = tileworld_getHelp__P3537_mk(s);
+ s.tmp_7 = tileworld_getHelp__P63534_mk(s);
s.tmp_7.arg0 = s.tmp_6;
- s.tmp_8 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_8 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_8.arg0 = s.arg0;
s.tmp_8.arg1 = true;
- s.callLocIdx = 871; s.pc = 24; return s.tmp_8;
+ s.callLocIdx = 873; s.pc = 24; return s.tmp_8;
case 24:
r0 = s.retval;
s.tmp_7.arg1 = r0;
- s.tmp_9 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_9 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_9.arg0 = s.arg0;
s.tmp_9.arg1 = true;
- s.callLocIdx = 872; s.pc = 25; return s.tmp_9;
+ s.callLocIdx = 874; s.pc = 25; return s.tmp_9;
case 25:
r0 = s.retval;
s.tmp_7.arg2 = r0;
- s.callLocIdx = 873; s.pc = 23; return s.tmp_7;
+ s.callLocIdx = 875; s.pc = 23; return s.tmp_7;
case 23:
r0 = s.retval;
- s.message___14583 = (r0);
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.message___74575 = (r0);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.message___14583;
+ s.tmp_0.arg1 = s.message___74575;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 874; s.pc = 26; return s.tmp_0;
+ s.callLocIdx = 876; s.pc = 26; return s.tmp_0;
case 26:
r0 = s.retval;
{ step = 8; continue; }
case 7:
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = null;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 875; s.pc = 27; return s.tmp_0;
+ s.callLocIdx = 877; s.pc = 27; return s.tmp_0;
case 27:
r0 = s.retval;
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["moreHelp"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = null;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 876; s.pc = 28; return s.tmp_0;
+ s.callLocIdx = 878; s.pc = 28; return s.tmp_0;
case 28:
r0 = s.retval;
case 8:
@@ -72411,12 +71603,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleRoom_cursorMove__P14386.info = {"start":2095,"length":728,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"spriteRules.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_ruleediting_RuleRoom_cursorMove__P74378.info = {"start":2087,"length":728,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"spriteRules.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_ruleediting_RuleRoom_cursorMove__P14386_mk(s) {
+function tileworld_ruleediting_RuleRoom_cursorMove__P74378_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleRoom_cursorMove__P14386, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleRoom_cursorMove__P74378, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72428,8 +71620,8 @@ function tileworld_ruleediting_RuleRoom_cursorMove__P14386_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- index___14573: undefined,
- message___14583: undefined,
+ index___74565: undefined,
+ message___74575: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -72439,7 +71631,7 @@ function tileworld_ruleediting_RuleRoom_cursorMove__P14386_mk(s) {
-function tileworld_ruleediting_RuleDisplay_cursorMove__P13108(s) {
+function tileworld_ruleediting_RuleDisplay_cursorMove__P73100(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72456,22 +71648,22 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_0 = tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_0 = tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.callLocIdx = 713; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 715; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_cursorMove__P13108.info = {"start":2884,"length":106,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_ruleediting_RuleDisplay_cursorMove__P73100.info = {"start":2884,"length":106,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s) {
+function tileworld_ruleediting_RuleDisplay_cursorMove__P73100_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_cursorMove__P13108, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_cursorMove__P73100, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -72483,7 +71675,7 @@ function tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s) {
-function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107(s) {
+function tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72493,17 +71685,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.row___13202 = undefined;
+ s.row___73194 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0);
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C63794_VT)) failedCast(r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 704; s.pc = 5; return s.tmp_2;
+ s.callLocIdx = 706; s.pc = 5; return s.tmp_2;
case 5:
r0 = s.retval;
s.tmp_1 = r0;
@@ -72514,10 +71706,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 705; s.pc = 6; return s.tmp_4;
+ s.callLocIdx = 707; s.pc = 6; return s.tmp_4;
case 6:
r0 = s.retval;
s.tmp_3 = r0;
@@ -72527,30 +71719,30 @@ switch (step) {
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 3; continue; }
- s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_7 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_7.arg0 = s.arg0;
s.tmp_7.arg1 = true;
- s.callLocIdx = 706; s.pc = 7; return s.tmp_7;
+ s.callLocIdx = 708; s.pc = 7; return s.tmp_7;
case 7:
r0 = s.retval;
s.tmp_6 = r0;
r0 = (s.tmp_6 - 2);
- s.row___13202 = (r0);
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
+ s.row___73194 = (r0);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
r0 = s.arg0.fields["otherCursor"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = 128;
s.tmp_0.arg2 = false;
- s.callLocIdx = 707; s.pc = 8; return s.tmp_0;
+ s.callLocIdx = 709; s.pc = 8; return s.tmp_0;
case 8:
r0 = s.retval;
- s.tmp_0 = Sprite_x__P2023_mk(s);
+ s.tmp_0 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["otherCursor"];
s.tmp_0.arg0 = r0;
- s.tmp_3 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s);
+ s.tmp_3 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106_mk(s);
s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.row___13202;
- s.callLocIdx = 708; s.pc = 10; return s.tmp_3;
+ s.tmp_3.arg1 = s.row___73194;
+ s.callLocIdx = 710; s.pc = 10; return s.tmp_3;
case 10:
r0 = s.retval;
s.tmp_2 = r0;
@@ -72558,16 +71750,16 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_1 + 8);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 709; s.pc = 9; return s.tmp_0;
+ s.callLocIdx = 711; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["otherCursor"];
s.tmp_0.arg0 = r0;
- s.tmp_5 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s);
+ s.tmp_5 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107_mk(s);
s.tmp_5.arg0 = s.arg0;
- s.tmp_5.arg1 = s.row___13202;
- s.callLocIdx = 710; s.pc = 12; return s.tmp_5;
+ s.tmp_5.arg1 = s.row___73194;
+ s.callLocIdx = 712; s.pc = 12; return s.tmp_5;
case 12:
r0 = s.retval;
s.tmp_4 = r0;
@@ -72579,17 +71771,17 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_1 + 32);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 711; s.pc = 11; return s.tmp_0;
+ s.callLocIdx = 713; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
{ step = 4; continue; }
case 3:
- s.tmp_0 = Sprite_setFlag__P2076_mk(s);
+ s.tmp_0 = Sprite_setFlag__P62071_mk(s);
r0 = s.arg0.fields["otherCursor"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = 128;
s.tmp_0.arg2 = true;
- s.callLocIdx = 712; s.pc = 13; return s.tmp_0;
+ s.callLocIdx = 714; s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
case 4:
@@ -72597,12 +71789,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107.info = {"start":2203,"length":671,"line":58,"column":8,"endLine":70,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"otherCursorMove","argumentNames":["this"]}
+tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099.info = {"start":2203,"length":671,"line":58,"column":8,"endLine":70,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"otherCursorMove","argumentNames":["this"]}
-function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s) {
+function tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, depth: s.depth + 1,
+ parent: s, fn: tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72612,7 +71804,7 @@ function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- row___13202: undefined,
+ row___73194: undefined,
arg0: undefined,
} }
@@ -72620,7 +71812,7 @@ function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s) {
-function tileworld_Gallery_update__P17156(s) {
+function tileworld_Gallery_update__P77144(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72630,80 +71822,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___17260 = undefined;
- s.row___17261 = undefined;
+ s.col___77248 = undefined;
+ s.row___77249 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_Gallery__C3823_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_Gallery__C63820_VT)) failedCast(r0);
r0 = s.arg0.fields["dirMap"];
s.tmp_0 = r0;
r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_0.arg1 = "Gallery";
s.tmp_0.arg2 = 0;
s.tmp_0.arg3 = 6;
s.tmp_0.arg4 = undefined;
s.tmp_0.arg5 = undefined;
s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1309; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1310; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 0;
s.tmp_0.arg2 = 1;
r0 = s.arg0.fields["newImage"];
s.tmp_0.arg3 = r0;
- s.callLocIdx = 1310; s.pc = 2; return s.tmp_0;
+ s.callLocIdx = 1311; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 2;
s.tmp_0.arg2 = 1;
r0 = s.arg0.fields["current"];
s.tmp_0.arg3 = r0;
- s.callLocIdx = 1311; s.pc = 3; return s.tmp_0;
+ s.callLocIdx = 1312; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
r0 = pxsim_pxtrt.mklocRef();
- s.col___17260 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.col___17260, 4);
+ s.col___77248 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.col___77248, 4);
r0 = pxsim_pxtrt.mklocRef();
- s.row___17261 = (r0);
- r0 = pxsim_pxtrt_stlocRef(s.row___17261, 1);
- r0 = pxsim_pxtcore_mkAction(3, inline__P17265);
+ s.row___77249 = (r0);
+ r0 = pxsim_pxtrt_stlocRef(s.row___77249, 1);
+ r0 = pxsim_pxtcore_mkAction(3, inline__P77253);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___17260);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___17261);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___77248);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___77249);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["gallery"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1313; s.pc = 4; return s.tmp_1;
+ s.callLocIdx = 1314; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_Gallery_update__P17156.info = {"start":1283,"length":525,"line":32,"column":8,"endLine":46,"endColumn":9,"fileName":"gallery.ts","functionName":"update","argumentNames":["this"]}
+tileworld_Gallery_update__P77144.info = {"start":1283,"length":525,"line":32,"column":8,"endLine":46,"endColumn":9,"fileName":"gallery.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_Gallery_update__P17156_mk(s) {
+function tileworld_Gallery_update__P77144_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_Gallery_update__P17156, depth: s.depth + 1,
+ parent: s, fn: tileworld_Gallery_update__P77144, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- col___17260: undefined,
- row___17261: undefined,
+ col___77248: undefined,
+ row___77249: undefined,
arg0: undefined,
} }
@@ -72711,7 +71903,7 @@ function tileworld_Gallery_update__P17156_mk(s) {
-function inline__P17265(s) {
+function inline__P77253(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72726,14 +71918,14 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
r0 = pxsim_pxtrt_ldlocRef(s.caps[1]);
s.tmp_0.arg1 = r0;
r0 = pxsim_pxtrt_ldlocRef(s.caps[2]);
s.tmp_0.arg2 = r0;
s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 1312; s.pc = 3; return s.tmp_0;
+ s.callLocIdx = 1313; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
r0 = s.caps[0].fields["dirMap"];
@@ -72768,12 +71960,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P17265.info = {"start":1593,"length":203,"line":40,"column":33,"endLine":45,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P77253.info = {"start":1593,"length":203,"line":40,"column":33,"endLine":45,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":["img","i"]}
-function inline__P17265_mk(s) {
+function inline__P77253_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17265, depth: s.depth + 1,
+ parent: s, fn: inline__P77253, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72786,7 +71978,7 @@ function inline__P17265_mk(s) {
-function music_Melody_toString__P1604(s) {
+function music_Melody_toString__P61599(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72801,17 +71993,17 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, music_Melody__C1595_VT)) failedCast(r0);
+ if (!checkSubtype(r0, music_Melody__C61590_VT)) failedCast(r0);
r0 = s.arg0.fields["_text"];
return leave(s, r0)
default: oops()
} } }
-music_Melody_toString__P1604.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]}
+music_Melody_toString__P61599.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]}
-function music_Melody_toString__P1604_mk(s) {
+function music_Melody_toString__P61599_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: music_Melody_toString__P1604, depth: s.depth + 1,
+ parent: s, fn: music_Melody_toString__P61599, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -72820,7 +72012,7 @@ function music_Melody_toString__P1604_mk(s) {
-function sprites_SpriteMap_toString__P2099(s) {
+function sprites_SpriteMap_toString__P62094(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72835,7 +72027,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
r0 = pxsim_String_.mkEmpty();
s.tmp_3 = r0;
r0 = s.arg0.fields["buckets"];
@@ -72855,10 +72047,10 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_String__concat(s.tmp_2, " buckets, ");
s.tmp_1 = r0;
- s.tmp_10 = helpers_arrayFilter__P105_mk(s);
+ s.tmp_10 = helpers_arrayFilter__P60100_mk(s);
r0 = s.arg0.fields["buckets"];
s.tmp_10.arg0 = r0;
- s.tmp_10.arg1 = inline__P29148;
+ s.tmp_10.arg1 = inline__P89149;
s.callLocIdx = 491; s.pc = 2; return s.tmp_10;
case 2:
r0 = s.retval;
@@ -72880,12 +72072,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_toString__P2099.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__P62094.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__P2099_mk(s) {
+function sprites_SpriteMap_toString__P62094_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_toString__P2099, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_toString__P62094, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72905,7 +72097,7 @@ function sprites_SpriteMap_toString__P2099_mk(s) {
-function inline__P29148(s) {
+function inline__P89149(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72929,12 +72121,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P29148.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]}
+inline__P89149.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]}
-function inline__P29148_mk(s) {
+function inline__P89149_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P29148, depth: s.depth + 1,
+ parent: s, fn: inline__P89149, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -72946,7 +72138,7 @@ function inline__P29148_mk(s) {
-function ArcadePhysicsEngine_moveSprite__P2184(s) {
+function ArcadePhysicsEngine_moveSprite__P62179(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -72956,9 +72148,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tm___29186 = undefined;
- s.maxDist___29196 = undefined;
- s.ms___29216 = undefined;
+ s.tm___89187 = undefined;
+ s.maxDist___89197 = undefined;
+ s.ms___89217 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -72967,7 +72159,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = s.arg1.fields["_x"];
s.tmp_0 = r0;
r0 = (s.arg1).fields["_lastX"] = (s.tmp_0);
@@ -72996,21 +72188,21 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 13; continue; }
- s.tmp_4 = game_currentScene__P2524_mk(s);
+ s.tmp_4 = game_currentScene__P62521_mk(s);
s.callLocIdx = 687; s.pc = 16; return s.tmp_4;
case 16:
r0 = s.retval;
r0 = r0.fields["tileMap"];
- s.tm___29186 = (r0);
- s.tmp_0 = r0 = s.tm___29186;
+ s.tm___89187 = (r0);
+ s.tmp_0 = r0 = s.tm___89187;
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__C2314_v6_1_mk(s);
- s.tmp_1.arg0 = s.tm___29186;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1 = tiles_TileMap__C62309_v6_1_mk(s);
+ s.tmp_1.arg0 = s.tm___89187;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
s.pc = 17; return s.tmp_1;
case 17:
@@ -73032,8 +72224,8 @@ switch (step) {
r0 = (s.tmp_5 + 128);
s.tmp_6 = r0;
r0 = (s.tmp_6 >> 8);
- s.maxDist___29196 = (r0);
- s.tmp_2 = Math_abs__P120_mk(s);
+ s.maxDist___89197 = (r0);
+ s.tmp_2 = Math_abs__P60115_mk(s);
r0 = (s.arg2 + 128);
s.tmp_3 = r0;
r0 = (s.tmp_3 >> 8);
@@ -73042,14 +72234,14 @@ switch (step) {
case 18:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 <= s.maxDist___29196);
+ r0 = (s.tmp_1 <= s.maxDist___89197);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 5; continue; }
r0 = s.tmp_0;
{ step = 6; continue; }
case 5:
- s.tmp_5 = Math_abs__P120_mk(s);
+ s.tmp_5 = Math_abs__P60115_mk(s);
r0 = (s.arg3 + 128);
s.tmp_6 = r0;
r0 = (s.tmp_6 >> 8);
@@ -73058,15 +72250,15 @@ switch (step) {
case 19:
r0 = s.retval;
s.tmp_4 = r0;
- r0 = (s.tmp_4 <= s.maxDist___29196);
+ r0 = (s.tmp_4 <= s.maxDist___89197);
case 6:
// jmp value (already in r0)
s.tmp_7 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_7);
if (!r0) { step = 7; continue; }
- r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2168_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C62163_VT);
s.tmp_8 = r0;
- s.tmp_9 = MovingSprite_constructor__P2169_mk(s);
+ s.tmp_9 = MovingSprite_constructor__P62164_mk(s);
s.tmp_9.arg0 = s.tmp_8;
s.tmp_9.arg1 = s.arg1;
r0 = s.arg1.fields["_vx"];
@@ -73080,20 +72272,20 @@ switch (step) {
s.callLocIdx = 693; s.pc = 20; return s.tmp_9;
case 20:
r0 = s.retval;
- s.ms___29216 = (s.tmp_8);
- s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s);
+ s.ms___89217 = (s.tmp_8);
+ s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P64149_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.ms___29216;
- s.tmp_0.arg2 = s.tm___29186;
+ s.tmp_0.arg1 = s.ms___89217;
+ s.tmp_0.arg2 = s.tm___89187;
s.callLocIdx = 694; s.pc = 21; return s.tmp_0;
case 21:
r0 = s.retval;
{ step = 12; continue; }
case 7:
- s.tmp_1 = tiles_TileMap__C2314_v14_2_mk(s);
- s.tmp_1.arg0 = s.tm___29186;
+ s.tmp_1 = tiles_TileMap__C62309_v14_2_mk(s);
+ s.tmp_1.arg0 = s.tm___89187;
s.tmp_1.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall;
s.pc = 22; return s.tmp_1;
case 22:
@@ -73104,10 +72296,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 9; continue; }
case 8:
- s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P4154_mk(s);
+ s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P64151_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = s.arg1;
- s.tmp_4.arg2 = s.tm___29186;
+ s.tmp_4.arg2 = s.tm___89187;
s.callLocIdx = 695; s.pc = 23; return s.tmp_4;
case 23:
r0 = s.retval;
@@ -73143,12 +72335,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_moveSprite__P2184.info = {"start":21343,"length":1276,"line":622,"column":4,"endLine":655,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]}
+ArcadePhysicsEngine_moveSprite__P62179.info = {"start":21343,"length":1276,"line":622,"column":4,"endLine":655,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]}
-function ArcadePhysicsEngine_moveSprite__P2184_mk(s) {
+function ArcadePhysicsEngine_moveSprite__P62179_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_moveSprite__P2184, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_moveSprite__P62179, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73160,9 +72352,9 @@ function ArcadePhysicsEngine_moveSprite__P2184_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- tm___29186: undefined,
- maxDist___29196: undefined,
- ms___29216: undefined,
+ tm___89187: undefined,
+ maxDist___89197: undefined,
+ ms___89217: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -73173,7 +72365,7 @@ function ArcadePhysicsEngine_moveSprite__P2184_mk(s) {
-function ArcadePhysicsEngine_canResolveClipping__P4154(s) {
+function ArcadePhysicsEngine_canResolveClipping__P64151(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73183,19 +72375,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.hbox___29261 = undefined;
- s.sz___29264 = undefined;
- s.maxMove___29269 = undefined;
- s.origY___29271 = undefined;
- s.origX___29274 = undefined;
- s.l___29277 = undefined;
- s.r___29282 = undefined;
- s.t___29287 = undefined;
- s.b___29292 = undefined;
- s.offset___29297 = undefined;
- s.offset___29322 = undefined;
- s.offset___29353 = undefined;
- s.offset___29378 = undefined;
+ s.hbox___89262 = undefined;
+ s.sz___89265 = undefined;
+ s.maxMove___89270 = undefined;
+ s.origY___89272 = undefined;
+ s.origX___89275 = undefined;
+ s.l___89278 = undefined;
+ s.r___89283 = undefined;
+ s.t___89288 = undefined;
+ s.b___89293 = undefined;
+ s.offset___89298 = undefined;
+ s.offset___89323 = undefined;
+ s.offset___89354 = undefined;
+ s.offset___89379 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -73203,7 +72395,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = s.arg1.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.isStatic(s.tmp_3);
@@ -73214,7 +72406,7 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_4 = Sprite_setHitbox__P2054_mk(s);
+ s.tmp_4 = Sprite_setHitbox__P62049_mk(s);
s.tmp_4.arg0 = s.arg1;
s.callLocIdx = 697; s.pc = 20; return s.tmp_4;
case 20:
@@ -73222,23 +72414,23 @@ switch (step) {
case 1:
case 2:
r0 = s.arg1.fields["_hitbox"];
- s.hbox___29261 = (r0);
+ s.hbox___89262 = (r0);
r0 = s.arg2.fields["_scale"];
s.tmp_0 = r0;
r0 = (1 << s.tmp_0);
- s.sz___29264 = (r0);
- s.tmp_0 = ArcadePhysicsEngine_maxStep__P2176_mk(s);
+ s.sz___89265 = (r0);
+ s.tmp_0 = ArcadePhysicsEngine_maxStep__P62171_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 699; s.pc = 21; return s.tmp_0;
case 21:
r0 = s.retval;
- s.maxMove___29269 = (r0);
+ s.maxMove___89270 = (r0);
r0 = s.arg1.fields["_y"];
- s.origY___29271 = (r0);
+ s.origY___89272 = (r0);
r0 = s.arg1.fields["_x"];
- s.origX___29274 = (r0);
- s.tmp_1 = game_Hitbox_left__P1963_mk(s);
- s.tmp_1.arg0 = s.hbox___29261;
+ s.origX___89275 = (r0);
+ s.tmp_1 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_1.arg0 = s.hbox___89262;
s.callLocIdx = 700; s.pc = 22; return s.tmp_1;
case 22:
r0 = s.retval;
@@ -73246,9 +72438,9 @@ switch (step) {
r0 = (s.tmp_0 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.l___29277 = (r0);
- s.tmp_1 = game_Hitbox_right__P1965_mk(s);
- s.tmp_1.arg0 = s.hbox___29261;
+ s.l___89278 = (r0);
+ s.tmp_1 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_1.arg0 = s.hbox___89262;
s.callLocIdx = 702; s.pc = 23; return s.tmp_1;
case 23:
r0 = s.retval;
@@ -73256,9 +72448,9 @@ switch (step) {
r0 = (s.tmp_0 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.r___29282 = (r0);
- s.tmp_1 = game_Hitbox_top__P1964_mk(s);
- s.tmp_1.arg0 = s.hbox___29261;
+ s.r___89283 = (r0);
+ s.tmp_1 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_1.arg0 = s.hbox___89262;
s.callLocIdx = 704; s.pc = 24; return s.tmp_1;
case 24:
r0 = s.retval;
@@ -73266,9 +72458,9 @@ switch (step) {
r0 = (s.tmp_0 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.t___29287 = (r0);
- s.tmp_1 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_1.arg0 = s.hbox___29261;
+ s.t___89288 = (r0);
+ s.tmp_1 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_1.arg0 = s.hbox___89262;
s.callLocIdx = 706; s.pc = 25; return s.tmp_1;
case 25:
r0 = s.retval;
@@ -73276,29 +72468,29 @@ switch (step) {
r0 = (s.tmp_0 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.b___29292 = (r0);
- r0 = (s.b___29292 + 1);
+ s.b___89293 = (r0);
+ r0 = (s.b___89293 + 1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 % s.sz___29264);
- s.offset___29297 = (r0);
- r0 = (s.offset___29297 <= s.maxMove___29269);
+ r0 = (s.tmp_0 % s.sz___89265);
+ s.offset___89298 = (r0);
+ r0 = (s.offset___89298 <= s.maxMove___89270);
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___29297 * 256);
+ r0 = (s.offset___89298 * 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__C2314_v14_2_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v14_2_mk(s);
s.tmp_3.arg0 = s.arg2;
s.tmp_3.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall;
s.pc = 26; return s.tmp_3;
case 26:
@@ -73314,38 +72506,38 @@ switch (step) {
{ step = 19; continue; }
{ step = 4; continue; }
case 3:
- r0 = (s.arg1).fields["_y"] = (s.origY___29271);
+ r0 = (s.arg1).fields["_y"] = (s.origY___89272);
case 4:
case 5:
case 6:
- r0 = (s.t___29287 / s.sz___29264);
+ r0 = (s.t___89288 / s.sz___89265);
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___29264);
+ r0 = (s.tmp_1 * s.sz___89265);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.t___29287);
- s.offset___29322 = (r0);
- r0 = (s.offset___29322 <= s.maxMove___29269);
+ r0 = (s.tmp_0 - s.t___89288);
+ s.offset___89323 = (r0);
+ r0 = (s.offset___89323 <= s.maxMove___89270);
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___29322 * 256);
+ r0 = (s.offset___89323 * 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__C2314_v14_2_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v14_2_mk(s);
s.tmp_3.arg0 = s.arg2;
s.tmp_3.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall;
s.pc = 27; return s.tmp_3;
case 27:
@@ -73361,32 +72553,32 @@ switch (step) {
{ step = 19; continue; }
{ step = 8; continue; }
case 7:
- r0 = (s.arg1).fields["_y"] = (s.origY___29271);
+ r0 = (s.arg1).fields["_y"] = (s.origY___89272);
case 8:
case 9:
case 10:
- r0 = (s.r___29282 + 1);
+ r0 = (s.r___89283 + 1);
s.tmp_0 = r0;
- r0 = (s.tmp_0 % s.sz___29264);
- s.offset___29353 = (r0);
- r0 = (s.offset___29353 <= s.maxMove___29269);
+ r0 = (s.tmp_0 % s.sz___89265);
+ s.offset___89354 = (r0);
+ r0 = (s.offset___89354 <= s.maxMove___89270);
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___29353 * 256);
+ r0 = (s.offset___89354 * 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__C2314_v14_2_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v14_2_mk(s);
s.tmp_3.arg0 = s.arg2;
s.tmp_3.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall;
s.pc = 28; return s.tmp_3;
case 28:
@@ -73402,38 +72594,38 @@ switch (step) {
{ step = 19; continue; }
{ step = 12; continue; }
case 11:
- r0 = (s.arg1).fields["_x"] = (s.origX___29274);
+ r0 = (s.arg1).fields["_x"] = (s.origX___89275);
case 12:
case 13:
case 14:
- r0 = (s.l___29277 / s.sz___29264);
+ r0 = (s.l___89278 / s.sz___89265);
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___29264);
+ r0 = (s.tmp_1 * s.sz___89265);
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.l___29277);
- s.offset___29378 = (r0);
- r0 = (s.offset___29378 <= s.maxMove___29269);
+ r0 = (s.tmp_0 - s.l___89278);
+ s.offset___89379 = (r0);
+ r0 = (s.offset___89379 <= s.maxMove___89270);
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___29378 * 256);
+ r0 = (s.offset___89379 * 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__C2314_v14_2_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v14_2_mk(s);
s.tmp_3.arg0 = s.arg2;
s.tmp_3.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall;
s.pc = 29; return s.tmp_3;
case 29:
@@ -73449,7 +72641,7 @@ switch (step) {
{ step = 19; continue; }
{ step = 16; continue; }
case 15:
- r0 = (s.arg1).fields["_x"] = (s.origX___29274);
+ r0 = (s.arg1).fields["_x"] = (s.origX___89275);
case 16:
case 17:
case 18:
@@ -73458,12 +72650,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_canResolveClipping__P4154.info = {"start":22715,"length":2135,"line":658,"column":4,"endLine":729,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]}
+ArcadePhysicsEngine_canResolveClipping__P64151.info = {"start":22715,"length":2135,"line":658,"column":4,"endLine":729,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]}
-function ArcadePhysicsEngine_canResolveClipping__P4154_mk(s) {
+function ArcadePhysicsEngine_canResolveClipping__P64151_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P4154, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P64151, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73471,19 +72663,19 @@ function ArcadePhysicsEngine_canResolveClipping__P4154_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- hbox___29261: undefined,
- sz___29264: undefined,
- maxMove___29269: undefined,
- origY___29271: undefined,
- origX___29274: undefined,
- l___29277: undefined,
- r___29282: undefined,
- t___29287: undefined,
- b___29292: undefined,
- offset___29297: undefined,
- offset___29322: undefined,
- offset___29353: undefined,
- offset___29378: undefined,
+ hbox___89262: undefined,
+ sz___89265: undefined,
+ maxMove___89270: undefined,
+ origY___89272: undefined,
+ origX___89275: undefined,
+ l___89278: undefined,
+ r___89283: undefined,
+ t___89288: undefined,
+ b___89293: undefined,
+ offset___89298: undefined,
+ offset___89323: undefined,
+ offset___89354: undefined,
+ offset___89379: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -73493,7 +72685,7 @@ function ArcadePhysicsEngine_canResolveClipping__P4154_mk(s) {
-function Sprite_isStatic__P2055(s) {
+function Sprite_isStatic__P62050(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73508,66 +72700,21 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_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__P2055.info = {"start":8293,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]}
-
-function Sprite_isStatic__P2055_mk(s) {
- checkStack(s.depth);
- return {
- parent: s, fn: Sprite_isStatic__P2055, depth: s.depth + 1,
- pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
- tmp_0: undefined,
- arg0: undefined,
-} }
-
-
-
-
-
-function Sprite_setHitbox__P2054(s) {
-let r0 = s.r0, step = s.pc;
-s.pc = -1;
-
-
-while (true) {
-if (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__C2013_VT)) failedCast(r0);
- s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = game_calculateHitBox__P1967_mk(s);
- s.tmp_2.arg0 = s.arg0;
- s.callLocIdx = 275; s.pc = 1; return s.tmp_2;
- case 1:
- r0 = s.retval;
- s.tmp_1 = r0;
- r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1);
- r0 = undefined;
- return leave(s, r0)
- default: oops()
-} } }
-Sprite_setHitbox__P2054.info = {"start":8217,"length":70,"line":295,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]}
+Sprite_isStatic__P62050.info = {"start":8266,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]}
-function Sprite_setHitbox__P2054_mk(s) {
+function Sprite_isStatic__P62050_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_setHitbox__P2054, depth: s.depth + 1,
+ parent: s, fn: Sprite_isStatic__P62050, 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,
} }
@@ -73575,7 +72722,7 @@ function Sprite_setHitbox__P2054_mk(s) {
-function game_Hitbox_bottom__P1966(s) {
+function game_Hitbox_bottom__P61961(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73590,10 +72737,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0);
+ if (!checkSubtype(r0, game_Hitbox__C61951_VT)) failedCast(r0);
r0 = s.arg0.fields["height"];
s.tmp_1 = r0;
- s.tmp_3 = game_Hitbox_top__P1964_mk(s);
+ s.tmp_3 = game_Hitbox_top__P61959_mk(s);
s.tmp_3.arg0 = s.arg0;
s.callLocIdx = 214; s.pc = 1; return s.tmp_3;
case 1:
@@ -73605,13 +72752,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-game_Hitbox_bottom__P1966.info = {"start":742,"length":139,"line":31,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]}
-game_Hitbox_bottom__P1966.isGetter = true;
+game_Hitbox_bottom__P61961.info = {"start":742,"length":139,"line":31,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]}
+game_Hitbox_bottom__P61961.isGetter = true;
-function game_Hitbox_bottom__P1966_mk(s) {
+function game_Hitbox_bottom__P61961_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_Hitbox_bottom__P1966, depth: s.depth + 1,
+ parent: s, fn: game_Hitbox_bottom__P61961, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73624,7 +72771,7 @@ function game_Hitbox_bottom__P1966_mk(s) {
-function game_Hitbox_right__P1965(s) {
+function game_Hitbox_right__P61960(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73639,10 +72786,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0);
+ if (!checkSubtype(r0, game_Hitbox__C61951_VT)) failedCast(r0);
r0 = s.arg0.fields["width"];
s.tmp_1 = r0;
- s.tmp_3 = game_Hitbox_left__P1963_mk(s);
+ s.tmp_3 = game_Hitbox_left__P61958_mk(s);
s.tmp_3.arg0 = s.arg0;
s.callLocIdx = 211; s.pc = 1; return s.tmp_3;
case 1:
@@ -73654,13 +72801,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-game_Hitbox_right__P1965.info = {"start":594,"length":138,"line":24,"column":8,"endLine":29,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]}
-game_Hitbox_right__P1965.isGetter = true;
+game_Hitbox_right__P61960.info = {"start":594,"length":138,"line":24,"column":8,"endLine":29,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]}
+game_Hitbox_right__P61960.isGetter = true;
-function game_Hitbox_right__P1965_mk(s) {
+function game_Hitbox_right__P61960_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_Hitbox_right__P1965, depth: s.depth + 1,
+ parent: s, fn: game_Hitbox_right__P61960, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73673,7 +72820,7 @@ function game_Hitbox_right__P1965_mk(s) {
-function game_Hitbox_top__P1964(s) {
+function game_Hitbox_top__P61959(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73688,7 +72835,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0);
+ if (!checkSubtype(r0, game_Hitbox__C61951_VT)) failedCast(r0);
r0 = s.arg0.fields["oy"];
s.tmp_0 = r0;
r0 = s.arg0.fields["parent"];
@@ -73698,13 +72845,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-game_Hitbox_top__P1964.info = {"start":511,"length":73,"line":20,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]}
-game_Hitbox_top__P1964.isGetter = true;
+game_Hitbox_top__P61959.info = {"start":511,"length":73,"line":20,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]}
+game_Hitbox_top__P61959.isGetter = true;
-function game_Hitbox_top__P1964_mk(s) {
+function game_Hitbox_top__P61959_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_Hitbox_top__P1964, depth: s.depth + 1,
+ parent: s, fn: game_Hitbox_top__P61959, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73715,7 +72862,7 @@ function game_Hitbox_top__P1964_mk(s) {
-function game_Hitbox_left__P1963(s) {
+function game_Hitbox_left__P61958(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73730,7 +72877,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0);
+ if (!checkSubtype(r0, game_Hitbox__C61951_VT)) failedCast(r0);
r0 = s.arg0.fields["ox"];
s.tmp_0 = r0;
r0 = s.arg0.fields["parent"];
@@ -73740,13 +72887,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-game_Hitbox_left__P1963.info = {"start":427,"length":74,"line":16,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]}
-game_Hitbox_left__P1963.isGetter = true;
+game_Hitbox_left__P61958.info = {"start":427,"length":74,"line":16,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]}
+game_Hitbox_left__P61958.isGetter = true;
-function game_Hitbox_left__P1963_mk(s) {
+function game_Hitbox_left__P61958_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: game_Hitbox_left__P1963, depth: s.depth + 1,
+ parent: s, fn: game_Hitbox_left__P61958, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -73757,7 +72904,7 @@ function game_Hitbox_left__P1963_mk(s) {
-function ArcadePhysicsEngine_tilemapCollisions__P4152(s) {
+function ArcadePhysicsEngine_tilemapCollisions__P64149(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -73767,38 +72914,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.s___29471 = undefined;
- s.hbox___29494 = undefined;
- s.tileScale___29497 = undefined;
- s.tileSize___29500 = undefined;
- s.xDiff___29504 = undefined;
- s.yDiff___29511 = undefined;
- s.overlappedTiles___29518 = undefined;
- s.right___29523 = undefined;
- s.x0___29527 = undefined;
- s.collidedTiles___29542 = undefined;
- s.y___29544 = undefined;
- s.y0___29558 = undefined;
- s.obstacle___29574 = undefined;
- s.collisionDirection___29608 = undefined;
- s.tile___29634 = undefined;
- s.unnamed68___U15 = undefined;
- s.unnamed69___U16 = undefined;
- s.down___29712 = undefined;
- s.y0___29716 = undefined;
- s.collidedTiles___29731 = undefined;
- s.overlappedTiles___29733 = undefined;
- s.x___29735 = undefined;
- s.x0___29745 = undefined;
- s.obstacle___29759 = undefined;
- s.collisionDirection___29793 = undefined;
- s.tile___29819 = undefined;
- s.unnamed70___U26 = undefined;
- s.unnamed71___U27 = undefined;
- s.x___29894 = undefined;
- s.x0___29904 = undefined;
- s.y___29914 = undefined;
- s.y0___29924 = undefined;
+ s.s___89468 = undefined;
+ s.hbox___89491 = undefined;
+ s.tileScale___89494 = undefined;
+ s.tileSize___89497 = undefined;
+ s.xDiff___89501 = undefined;
+ s.yDiff___89508 = undefined;
+ s.overlappedTiles___89515 = undefined;
+ s.right___89520 = undefined;
+ s.x0___89524 = undefined;
+ s.collidedTiles___89539 = undefined;
+ s.y___89541 = undefined;
+ s.y0___89555 = undefined;
+ s.obstacle___89571 = undefined;
+ s.collisionDirection___89605 = undefined;
+ s.tile___89631 = undefined;
+ s.unnamed148___U15 = undefined;
+ s.unnamed149___U16 = undefined;
+ s.down___89709 = undefined;
+ s.y0___89713 = undefined;
+ s.collidedTiles___89728 = undefined;
+ s.overlappedTiles___89730 = undefined;
+ s.x___89732 = undefined;
+ s.x0___89742 = undefined;
+ s.obstacle___89756 = undefined;
+ s.collisionDirection___89790 = undefined;
+ s.tile___89816 = undefined;
+ s.unnamed150___U26 = undefined;
+ s.unnamed151___U27 = undefined;
+ s.x___89891 = undefined;
+ s.x0___89901 = undefined;
+ s.y___89911 = undefined;
+ s.y0___89921 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -73806,19 +72953,19 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = s.arg1.fields["sprite"];
- s.s___29471 = (r0);
- r0 = s.s___29471.fields["flags"];
+ s.s___89468 = (r0);
+ r0 = s.s___89468.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 256);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s);
+ s.tmp_3 = tiles_TileMap__C62309_v14_2_mk(s);
s.tmp_3.arg0 = s.arg2;
- s.tmp_3.arg1 = s.s___29471;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.arg1 = s.s___89468;
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall;
s.pc = 84; return s.tmp_3;
case 84:
@@ -73829,7 +72976,7 @@ switch (step) {
{ step = 83; continue; }
{ step = 2; continue; }
case 1:
- s.tmp_4 = r0 = s.s___29471;
+ s.tmp_4 = r0 = s.s___89468;
r0 = s.tmp_4.fields["flags"];
s.tmp_6 = r0;
r0 = (s.tmp_6 & -257);
@@ -73838,7 +72985,7 @@ switch (step) {
case 2:
case 3:
case 4:
- r0 = s.s___29471.fields["_image"];
+ r0 = s.s___89468.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.isStatic(s.tmp_3);
s.tmp_2 = r0;
@@ -73848,43 +72995,43 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_4 = Sprite_setHitbox__P2054_mk(s);
- s.tmp_4.arg0 = s.s___29471;
+ s.tmp_4 = Sprite_setHitbox__P62049_mk(s);
+ s.tmp_4.arg0 = s.s___89468;
s.callLocIdx = 590; s.pc = 85; return s.tmp_4;
case 85:
r0 = s.retval;
case 5:
case 6:
- r0 = s.s___29471.fields["_hitbox"];
- s.hbox___29494 = (r0);
+ r0 = s.s___89468.fields["_hitbox"];
+ s.hbox___89491 = (r0);
r0 = s.arg2.fields["_scale"];
- s.tileScale___29497 = (r0);
- r0 = (1 << s.tileScale___29497);
- s.tileSize___29500 = (r0);
- r0 = s.s___29471.fields["_x"];
+ s.tileScale___89494 = (r0);
+ r0 = (1 << s.tileScale___89494);
+ s.tileSize___89497 = (r0);
+ r0 = s.s___89468.fields["_x"];
s.tmp_0 = r0;
- r0 = s.s___29471.fields["_lastX"];
+ r0 = s.s___89468.fields["_lastX"];
s.tmp_1 = r0;
r0 = (s.tmp_0 - s.tmp_1);
- s.xDiff___29504 = (r0);
- r0 = s.s___29471.fields["_y"];
+ s.xDiff___89501 = (r0);
+ r0 = s.s___89468.fields["_y"];
s.tmp_0 = r0;
- r0 = s.s___29471.fields["_lastY"];
+ r0 = s.s___89468.fields["_lastY"];
s.tmp_1 = r0;
r0 = (s.tmp_0 - s.tmp_1);
- s.yDiff___29511 = (r0);
+ s.yDiff___89508 = (r0);
r0 = pxsim_Array__mk();
- s.overlappedTiles___29518 = (r0);
- r0 = (s.xDiff___29504 !== 0);
+ s.overlappedTiles___89515 = (r0);
+ r0 = (s.xDiff___89501 !== 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 39; continue; }
- r0 = (s.xDiff___29504 > 0);
- s.right___29523 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.right___29523);
+ r0 = (s.xDiff___89501 > 0);
+ s.right___89520 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.right___89520);
if (!r0) { step = 7; continue; }
- s.tmp_1 = game_Hitbox_right__P1965_mk(s);
- s.tmp_1.arg0 = s.hbox___29494;
+ s.tmp_1 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_1.arg0 = s.hbox___89491;
s.callLocIdx = 594; s.pc = 86; return s.tmp_1;
case 86:
r0 = s.retval;
@@ -73892,8 +73039,8 @@ switch (step) {
r0 = (s.tmp_0 + 256);
{ step = 8; continue; }
case 7:
- s.tmp_3 = game_Hitbox_left__P1963_mk(s);
- s.tmp_3.arg0 = s.hbox___29494;
+ s.tmp_3 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_3.arg0 = s.hbox___89491;
s.callLocIdx = 596; s.pc = 87; return s.tmp_3;
case 87:
r0 = s.retval;
@@ -73904,30 +73051,30 @@ switch (step) {
s.tmp_4 = r0;
r0 = (s.tmp_4 + 128);
s.tmp_5 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_6 = r0;
r0 = (s.tmp_5 >> s.tmp_6);
- s.x0___29527 = (r0);
+ s.x0___89524 = (r0);
r0 = pxsim_Array__mk();
- s.collidedTiles___29542 = (r0);
- s.tmp_1 = game_Hitbox_top__P1964_mk(s);
- s.tmp_1.arg0 = s.hbox___29494;
+ s.collidedTiles___89539 = (r0);
+ s.tmp_1 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_1.arg0 = s.hbox___89491;
s.callLocIdx = 600; s.pc = 88; return s.tmp_1;
case 88:
r0 = s.retval;
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.yDiff___29511);
- s.y___29544 = (r0);
+ r0 = (s.tmp_0 - s.yDiff___89508);
+ s.y___89541 = (r0);
case 9:
- s.tmp_1 = r0 = s.y___29544;
- s.tmp_3 = r0 = s.tileSize___29500;
- s.tmp_6 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_6.arg0 = s.hbox___29494;
+ s.tmp_1 = r0 = s.y___89541;
+ s.tmp_3 = r0 = s.tileSize___89497;
+ s.tmp_6 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_6.arg0 = s.hbox___89491;
s.callLocIdx = 602; s.pc = 89; return s.tmp_6;
case 89:
r0 = s.retval;
s.tmp_5 = r0;
- r0 = (s.tmp_5 - s.yDiff___29511);
+ r0 = (s.tmp_5 - s.yDiff___89508);
s.tmp_4 = r0;
r0 = (s.tmp_3 << 8);
s.tmp_7 = r0;
@@ -73937,15 +73084,15 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 14; continue; }
- s.tmp_10 = Fx_min__P158_mk(s);
- s.tmp_10.arg0 = s.y___29544;
- s.tmp_12 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_12.arg0 = s.hbox___29494;
+ s.tmp_10 = Fx_min__P60153_mk(s);
+ s.tmp_10.arg0 = s.y___89541;
+ s.tmp_12 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_12.arg0 = s.hbox___89491;
s.callLocIdx = 605; s.pc = 91; return s.tmp_12;
case 91:
r0 = s.retval;
s.tmp_11 = r0;
- r0 = (s.tmp_11 - s.yDiff___29511);
+ r0 = (s.tmp_11 - s.yDiff___89508);
s.tmp_10.arg1 = r0;
s.callLocIdx = 607; s.pc = 90; return s.tmp_10;
case 90:
@@ -73953,15 +73100,15 @@ switch (step) {
s.tmp_9 = r0;
r0 = (s.tmp_9 + 128);
s.tmp_8 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_13 = r0;
r0 = (s.tmp_8 >> s.tmp_13);
- s.y0___29558 = (r0);
- s.tmp_1 = tiles_TileMap__C2314_v12_3_mk(s);
+ s.y0___89555 = (r0);
+ s.tmp_1 = tiles_TileMap__C62309_v12_3_mk(s);
s.tmp_1.arg0 = s.arg2;
- s.tmp_1.arg1 = s.x0___29527;
- s.tmp_1.arg2 = s.y0___29558;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.arg1 = s.x0___89524;
+ s.tmp_1.arg2 = s.y0___89555;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isObstacle;
s.pc = 92; return s.tmp_1;
case 92:
@@ -73969,21 +73116,21 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 12; continue; }
- s.tmp_2 = tiles_TileMap__C2314_v13_3_mk(s);
+ s.tmp_2 = tiles_TileMap__C62309_v13_3_mk(s);
s.tmp_2.arg0 = s.arg2;
- s.tmp_2.arg1 = s.x0___29527;
- s.tmp_2.arg2 = s.y0___29558;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.x0___89524;
+ s.tmp_2.arg2 = s.y0___89555;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getObstacle;
s.pc = 93; return s.tmp_2;
case 93:
r0 = s.retval;
- s.obstacle___29574 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P29582);
+ s.obstacle___89571 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P89579);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___29574);
- s.tmp_4 = helpers_arraySome__P102_mk(s);
- s.tmp_4.arg0 = s.collidedTiles___29542;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___89571);
+ s.tmp_4 = helpers_arraySome__P60097_mk(s);
+ s.tmp_4.arg0 = s.collidedTiles___89539;
s.tmp_4.arg1 = s.tmp_0;
s.callLocIdx = 610; s.pc = 94; return s.tmp_4;
case 94:
@@ -73995,17 +73142,17 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 10; continue; }
- r0 = pxsim_Array__push(s.collidedTiles___29542, s.obstacle___29574);
+ r0 = pxsim_Array__push(s.collidedTiles___89539, s.obstacle___89571);
case 10:
case 11:
{ step = 13; continue; }
case 12:
- s.tmp_0 = r0 = s.overlappedTiles___29518;
- s.tmp_2 = tiles_TileMap__C2314_v7_3_mk(s);
+ s.tmp_0 = r0 = s.overlappedTiles___89515;
+ s.tmp_2 = tiles_TileMap__C62309_v7_3_mk(s);
s.tmp_2.arg0 = s.arg2;
- s.tmp_2.arg1 = s.x0___29527;
- s.tmp_2.arg2 = s.y0___29558;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.x0___89524;
+ s.tmp_2.arg2 = s.y0___89555;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getTile;
s.pc = 95; return s.tmp_2;
case 95:
@@ -74013,17 +73160,17 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
case 13:
- r0 = (s.tileSize___29500 << 8);
+ r0 = (s.tileSize___89497 << 8);
s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.y___29544);
- s.y___29544 = (r0);
+ r0 = (s.tmp_0 + s.y___89541);
+ s.y___89541 = (r0);
{ step = 9; continue; }
case 14:
- r0 = pxsim_Array__length(s.collidedTiles___29542);
+ r0 = pxsim_Array__length(s.collidedTiles___89539);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 37; continue; }
- r0 = pxsim_numops_toBoolDecr(s.right___29523);
+ r0 = pxsim_numops_toBoolDecr(s.right___89520);
if (!r0) { step = 15; continue; }
r0 = 2;
{ step = 16; continue; }
@@ -74032,23 +73179,23 @@ switch (step) {
case 16:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.collisionDirection___29608 = (s.tmp_1);
- r0 = pxsim_numops_toBoolDecr(s.right___29523);
+ s.collisionDirection___89605 = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.right___89520);
if (!r0) { step = 17; continue; }
- r0 = (s.x0___29527 << s.tileScale___29497);
+ r0 = (s.x0___89524 << s.tileScale___89494);
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___29494.fields["width"];
+ r0 = s.hbox___89491.fields["width"];
s.tmp_3 = r0;
r0 = (s.tmp_0 - s.tmp_3);
{ step = 18; continue; }
case 17:
- r0 = (s.x0___29527 + 1);
+ r0 = (s.x0___89524 + 1);
s.tmp_5 = r0;
- r0 = (s.tmp_5 << s.tileScale___29497);
+ r0 = (s.tmp_5 << s.tileScale___89494);
s.tmp_4 = r0;
r0 = (s.tmp_4 * 256);
s.tmp_6 = r0;
@@ -74056,44 +73203,44 @@ switch (step) {
case 18:
// jmp value (already in r0)
s.tmp_7 = r0;
- s.tmp_8 = r0 = s.s___29471;
- r0 = s.hbox___29494.fields["ox"];
+ s.tmp_8 = r0 = s.s___89468;
+ r0 = s.hbox___89491.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___29634 = (undefined);
- s.unnamed68___U15 = (s.collidedTiles___29542);
- s.unnamed69___U16 = (0);
+ s.tile___89631 = (undefined);
+ s.unnamed148___U15 = (s.collidedTiles___89539);
+ s.unnamed149___U16 = (0);
case 19:
- s.tmp_0 = r0 = s.unnamed69___U16;
- r0 = pxsim_Array__length(s.unnamed68___U15);
+ s.tmp_0 = r0 = s.unnamed149___U16;
+ r0 = pxsim_Array__length(s.unnamed148___U15);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 20; continue; }
- r0 = pxsim_Array__getAt(s.unnamed68___U15, s.unnamed69___U16);
- s.tile___29634 = (r0);
- s.tmp_2 = Sprite_registerObstacle__P2082_mk(s);
- s.tmp_2.arg0 = s.s___29471;
- s.tmp_2.arg1 = s.collisionDirection___29608;
- s.tmp_2.arg2 = s.tile___29634;
+ r0 = pxsim_Array__getAt(s.unnamed148___U15, s.unnamed149___U16);
+ s.tile___89631 = (r0);
+ s.tmp_2 = Sprite_registerObstacle__P62077_mk(s);
+ s.tmp_2.arg0 = s.s___89468;
+ s.tmp_2.arg1 = s.collisionDirection___89605;
+ s.tmp_2.arg2 = s.tile___89631;
s.tmp_2.arg3 = s.arg2;
s.callLocIdx = 616; s.pc = 96; return s.tmp_2;
case 96:
r0 = s.retval;
- r0 = (s.unnamed69___U16 + 1);
- s.unnamed69___U16 = (r0);
+ r0 = (s.unnamed149___U16 + 1);
+ s.unnamed149___U16 = (r0);
{ step = 19; continue; }
case 20:
- s.unnamed68___U15 = (undefined);
- r0 = s.s___29471.fields["flags"];
+ s.unnamed148___U15 = (undefined);
+ r0 = s.s___89468.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 16);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 21; continue; }
- s.tmp_2 = Sprite_destroy__P2084_mk(s);
- s.tmp_2.arg0 = s.s___29471;
+ s.tmp_2 = Sprite_destroy__P62079_mk(s);
+ s.tmp_2.arg0 = s.s___89468;
s.tmp_2.arg1 = undefined;
s.tmp_2.arg2 = undefined;
s.callLocIdx = 617; s.pc = 97; return s.tmp_2;
@@ -74101,7 +73248,7 @@ switch (step) {
r0 = s.retval;
{ step = 36; continue; }
case 21:
- r0 = s.s___29471.fields["_vx"];
+ r0 = s.s___89468.fields["_vx"];
s.tmp_1 = r0;
r0 = s.arg1.fields["cachedVx"];
s.tmp_2 = r0;
@@ -74109,13 +73256,13 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 32; continue; }
- r0 = s.s___29471.fields["flags"];
+ r0 = s.s___89468.fields["flags"];
s.tmp_4 = r0;
r0 = (s.tmp_4 & 32);
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 30; continue; }
- r0 = pxsim_numops_toBoolDecr(s.right___29523);
+ r0 = pxsim_numops_toBoolDecr(s.right___89520);
s.tmp_6 = r0;
r0 = pxsim_Boolean__bang(s.tmp_6);
s.tmp_5 = r0;
@@ -74124,8 +73271,8 @@ switch (step) {
r0 = s.tmp_5;
{ step = 23; continue; }
case 22:
- s.tmp_8 = Sprite_vx__P2026_mk(s);
- s.tmp_8.arg0 = s.s___29471;
+ s.tmp_8 = Sprite_vx__P62021_mk(s);
+ s.tmp_8.arg0 = s.s___89468;
s.callLocIdx = 618; s.pc = 98; return s.tmp_8;
case 98:
r0 = s.retval;
@@ -74139,14 +73286,14 @@ switch (step) {
r0 = s.tmp_9;
{ step = 27; continue; }
case 24:
- s.tmp_10 = r0 = s.right___29523;
+ s.tmp_10 = r0 = s.right___89520;
r0 = pxsim_numops_toBool(s.tmp_10);
if (r0) { step = 25; continue; }
r0 = s.tmp_10;
{ step = 26; continue; }
case 25:
- s.tmp_12 = Sprite_vx__P2026_mk(s);
- s.tmp_12.arg0 = s.s___29471;
+ s.tmp_12 = Sprite_vx__P62021_mk(s);
+ s.tmp_12.arg0 = s.s___89468;
s.callLocIdx = 619; s.pc = 99; return s.tmp_12;
case 99:
r0 = s.retval;
@@ -74161,8 +73308,8 @@ switch (step) {
s.tmp_14 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_14);
if (!r0) { step = 28; continue; }
- s.tmp_15 = r0 = s.s___29471;
- r0 = s.s___29471.fields["_vx"];
+ s.tmp_15 = r0 = s.s___89468;
+ r0 = s.s___89468.fields["_vx"];
s.tmp_17 = r0;
r0 = (0 - s.tmp_17);
s.tmp_16 = r0;
@@ -74184,12 +73331,12 @@ switch (step) {
{ step = 31; continue; }
case 30:
r0 = (s.arg1).fields["dx"] = (0);
- r0 = (s.s___29471).fields["_vx"] = (0);
+ r0 = (s.s___89468).fields["_vx"] = (0);
case 31:
{ step = 35; continue; }
case 32:
- s.tmp_2 = Math_sign__P121_mk(s);
- r0 = s.s___29471.fields["_vx"];
+ s.tmp_2 = Math_sign__P60116_mk(s);
+ r0 = s.s___89468.fields["_vx"];
s.tmp_3 = r0;
r0 = (s.tmp_3 + 128);
s.tmp_4 = r0;
@@ -74199,7 +73346,7 @@ switch (step) {
case 100:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_6 = Math_sign__P121_mk(s);
+ s.tmp_6 = Math_sign__P60116_mk(s);
r0 = s.arg1.fields["cachedVx"];
s.tmp_7 = r0;
r0 = (s.tmp_7 + 128);
@@ -74223,16 +73370,16 @@ switch (step) {
case 38:
case 39:
case 40:
- r0 = (s.yDiff___29511 !== 0);
+ r0 = (s.yDiff___89508 !== 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 73; continue; }
- r0 = (s.yDiff___29511 > 0);
- s.down___29712 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.down___29712);
+ r0 = (s.yDiff___89508 > 0);
+ s.down___89709 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.down___89709);
if (!r0) { step = 41; continue; }
- s.tmp_1 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_1.arg0 = s.hbox___29494;
+ s.tmp_1 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_1.arg0 = s.hbox___89491;
s.callLocIdx = 627; s.pc = 102; return s.tmp_1;
case 102:
r0 = s.retval;
@@ -74240,8 +73387,8 @@ switch (step) {
r0 = (s.tmp_0 + 256);
{ step = 42; continue; }
case 41:
- s.tmp_3 = game_Hitbox_top__P1964_mk(s);
- s.tmp_3.arg0 = s.hbox___29494;
+ s.tmp_3 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_3.arg0 = s.hbox___89491;
s.callLocIdx = 629; s.pc = 103; return s.tmp_3;
case 103:
r0 = s.retval;
@@ -74252,25 +73399,25 @@ switch (step) {
s.tmp_4 = r0;
r0 = (s.tmp_4 + 128);
s.tmp_5 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_6 = r0;
r0 = (s.tmp_5 >> s.tmp_6);
- s.y0___29716 = (r0);
+ s.y0___89713 = (r0);
r0 = pxsim_Array__mk();
- s.collidedTiles___29731 = (r0);
+ s.collidedTiles___89728 = (r0);
r0 = pxsim_Array__mk();
- s.overlappedTiles___29733 = (r0);
- s.tmp_0 = game_Hitbox_left__P1963_mk(s);
- s.tmp_0.arg0 = s.hbox___29494;
+ s.overlappedTiles___89730 = (r0);
+ s.tmp_0 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_0.arg0 = s.hbox___89491;
s.callLocIdx = 633; s.pc = 104; return s.tmp_0;
case 104:
r0 = s.retval;
- s.x___29735 = (r0);
+ s.x___89732 = (r0);
case 43:
- s.tmp_1 = r0 = s.x___29735;
- s.tmp_3 = r0 = s.tileSize___29500;
- s.tmp_5 = game_Hitbox_right__P1965_mk(s);
- s.tmp_5.arg0 = s.hbox___29494;
+ s.tmp_1 = r0 = s.x___89732;
+ s.tmp_3 = r0 = s.tileSize___89497;
+ s.tmp_5 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_5.arg0 = s.hbox___89491;
s.callLocIdx = 634; s.pc = 105; return s.tmp_5;
case 105:
r0 = s.retval;
@@ -74283,10 +73430,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 48; continue; }
- s.tmp_9 = Fx_min__P158_mk(s);
- s.tmp_9.arg0 = s.x___29735;
- s.tmp_10 = game_Hitbox_right__P1965_mk(s);
- s.tmp_10.arg0 = s.hbox___29494;
+ s.tmp_9 = Fx_min__P60153_mk(s);
+ s.tmp_9.arg0 = s.x___89732;
+ s.tmp_10 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_10.arg0 = s.hbox___89491;
s.callLocIdx = 636; s.pc = 107; return s.tmp_10;
case 107:
r0 = s.retval;
@@ -74297,15 +73444,15 @@ switch (step) {
s.tmp_8 = r0;
r0 = (s.tmp_8 + 128);
s.tmp_7 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_11 = r0;
r0 = (s.tmp_7 >> s.tmp_11);
- s.x0___29745 = (r0);
- s.tmp_1 = tiles_TileMap__C2314_v12_3_mk(s);
+ s.x0___89742 = (r0);
+ s.tmp_1 = tiles_TileMap__C62309_v12_3_mk(s);
s.tmp_1.arg0 = s.arg2;
- s.tmp_1.arg1 = s.x0___29745;
- s.tmp_1.arg2 = s.y0___29716;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1.arg1 = s.x0___89742;
+ s.tmp_1.arg2 = s.y0___89713;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isObstacle;
s.pc = 108; return s.tmp_1;
case 108:
@@ -74313,21 +73460,21 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 46; continue; }
- s.tmp_2 = tiles_TileMap__C2314_v13_3_mk(s);
+ s.tmp_2 = tiles_TileMap__C62309_v13_3_mk(s);
s.tmp_2.arg0 = s.arg2;
- s.tmp_2.arg1 = s.x0___29745;
- s.tmp_2.arg2 = s.y0___29716;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.x0___89742;
+ s.tmp_2.arg2 = s.y0___89713;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getObstacle;
s.pc = 109; return s.tmp_2;
case 109:
r0 = s.retval;
- s.obstacle___29759 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P29767);
+ s.obstacle___89756 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P89764);
s.tmp_0 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___29759);
- s.tmp_4 = helpers_arraySome__P102_mk(s);
- s.tmp_4.arg0 = s.collidedTiles___29731;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___89756);
+ s.tmp_4 = helpers_arraySome__P60097_mk(s);
+ s.tmp_4.arg0 = s.collidedTiles___89728;
s.tmp_4.arg1 = s.tmp_0;
s.callLocIdx = 640; s.pc = 110; return s.tmp_4;
case 110:
@@ -74339,17 +73486,17 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 44; continue; }
- r0 = pxsim_Array__push(s.collidedTiles___29731, s.obstacle___29759);
+ r0 = pxsim_Array__push(s.collidedTiles___89728, s.obstacle___89756);
case 44:
case 45:
{ step = 47; continue; }
case 46:
- s.tmp_0 = r0 = s.overlappedTiles___29733;
- s.tmp_2 = tiles_TileMap__C2314_v7_3_mk(s);
+ s.tmp_0 = r0 = s.overlappedTiles___89730;
+ s.tmp_2 = tiles_TileMap__C62309_v7_3_mk(s);
s.tmp_2.arg0 = s.arg2;
- s.tmp_2.arg1 = s.x0___29745;
- s.tmp_2.arg2 = s.y0___29716;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.x0___89742;
+ s.tmp_2.arg2 = s.y0___89713;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getTile;
s.pc = 111; return s.tmp_2;
case 111:
@@ -74357,17 +73504,17 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
case 47:
- r0 = (s.tileSize___29500 << 8);
+ r0 = (s.tileSize___89497 << 8);
s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.x___29735);
- s.x___29735 = (r0);
+ r0 = (s.tmp_0 + s.x___89732);
+ s.x___89732 = (r0);
{ step = 43; continue; }
case 48:
- r0 = pxsim_Array__length(s.collidedTiles___29731);
+ r0 = pxsim_Array__length(s.collidedTiles___89728);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 71; continue; }
- r0 = pxsim_numops_toBoolDecr(s.down___29712);
+ r0 = pxsim_numops_toBoolDecr(s.down___89709);
if (!r0) { step = 49; continue; }
r0 = 3;
{ step = 50; continue; }
@@ -74376,23 +73523,23 @@ switch (step) {
case 50:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.collisionDirection___29793 = (s.tmp_1);
- r0 = pxsim_numops_toBoolDecr(s.down___29712);
+ s.collisionDirection___89790 = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.down___89709);
if (!r0) { step = 51; continue; }
- r0 = (s.y0___29716 << s.tileScale___29497);
+ r0 = (s.y0___89713 << s.tileScale___89494);
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___29494.fields["height"];
+ r0 = s.hbox___89491.fields["height"];
s.tmp_3 = r0;
r0 = (s.tmp_0 - s.tmp_3);
{ step = 52; continue; }
case 51:
- r0 = (s.y0___29716 + 1);
+ r0 = (s.y0___89713 + 1);
s.tmp_5 = r0;
- r0 = (s.tmp_5 << s.tileScale___29497);
+ r0 = (s.tmp_5 << s.tileScale___89494);
s.tmp_4 = r0;
r0 = (s.tmp_4 * 256);
s.tmp_6 = r0;
@@ -74400,44 +73547,44 @@ switch (step) {
case 52:
// jmp value (already in r0)
s.tmp_7 = r0;
- s.tmp_8 = r0 = s.s___29471;
- r0 = s.hbox___29494.fields["oy"];
+ s.tmp_8 = r0 = s.s___89468;
+ r0 = s.hbox___89491.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___29819 = (undefined);
- s.unnamed70___U26 = (s.collidedTiles___29731);
- s.unnamed71___U27 = (0);
+ s.tile___89816 = (undefined);
+ s.unnamed150___U26 = (s.collidedTiles___89728);
+ s.unnamed151___U27 = (0);
case 53:
- s.tmp_0 = r0 = s.unnamed71___U27;
- r0 = pxsim_Array__length(s.unnamed70___U26);
+ s.tmp_0 = r0 = s.unnamed151___U27;
+ r0 = pxsim_Array__length(s.unnamed150___U26);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 54; continue; }
- r0 = pxsim_Array__getAt(s.unnamed70___U26, s.unnamed71___U27);
- s.tile___29819 = (r0);
- s.tmp_2 = Sprite_registerObstacle__P2082_mk(s);
- s.tmp_2.arg0 = s.s___29471;
- s.tmp_2.arg1 = s.collisionDirection___29793;
- s.tmp_2.arg2 = s.tile___29819;
+ r0 = pxsim_Array__getAt(s.unnamed150___U26, s.unnamed151___U27);
+ s.tile___89816 = (r0);
+ s.tmp_2 = Sprite_registerObstacle__P62077_mk(s);
+ s.tmp_2.arg0 = s.s___89468;
+ s.tmp_2.arg1 = s.collisionDirection___89790;
+ s.tmp_2.arg2 = s.tile___89816;
s.tmp_2.arg3 = s.arg2;
s.callLocIdx = 646; s.pc = 112; return s.tmp_2;
case 112:
r0 = s.retval;
- r0 = (s.unnamed71___U27 + 1);
- s.unnamed71___U27 = (r0);
+ r0 = (s.unnamed151___U27 + 1);
+ s.unnamed151___U27 = (r0);
{ step = 53; continue; }
case 54:
- s.unnamed70___U26 = (undefined);
- r0 = s.s___29471.fields["flags"];
+ s.unnamed150___U26 = (undefined);
+ r0 = s.s___89468.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 16);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 55; continue; }
- s.tmp_2 = Sprite_destroy__P2084_mk(s);
- s.tmp_2.arg0 = s.s___29471;
+ s.tmp_2 = Sprite_destroy__P62079_mk(s);
+ s.tmp_2.arg0 = s.s___89468;
s.tmp_2.arg1 = undefined;
s.tmp_2.arg2 = undefined;
s.callLocIdx = 647; s.pc = 113; return s.tmp_2;
@@ -74445,7 +73592,7 @@ switch (step) {
r0 = s.retval;
{ step = 70; continue; }
case 55:
- r0 = s.s___29471.fields["_vy"];
+ r0 = s.s___89468.fields["_vy"];
s.tmp_1 = r0;
r0 = s.arg1.fields["cachedVy"];
s.tmp_2 = r0;
@@ -74453,13 +73600,13 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 66; continue; }
- r0 = s.s___29471.fields["flags"];
+ r0 = s.s___89468.fields["flags"];
s.tmp_4 = r0;
r0 = (s.tmp_4 & 32);
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 64; continue; }
- r0 = pxsim_numops_toBoolDecr(s.down___29712);
+ r0 = pxsim_numops_toBoolDecr(s.down___89709);
s.tmp_6 = r0;
r0 = pxsim_Boolean__bang(s.tmp_6);
s.tmp_5 = r0;
@@ -74468,8 +73615,8 @@ switch (step) {
r0 = s.tmp_5;
{ step = 57; continue; }
case 56:
- s.tmp_8 = Sprite_vy__P2028_mk(s);
- s.tmp_8.arg0 = s.s___29471;
+ s.tmp_8 = Sprite_vy__P62023_mk(s);
+ s.tmp_8.arg0 = s.s___89468;
s.callLocIdx = 648; s.pc = 114; return s.tmp_8;
case 114:
r0 = s.retval;
@@ -74483,14 +73630,14 @@ switch (step) {
r0 = s.tmp_9;
{ step = 61; continue; }
case 58:
- s.tmp_10 = r0 = s.down___29712;
+ s.tmp_10 = r0 = s.down___89709;
r0 = pxsim_numops_toBool(s.tmp_10);
if (r0) { step = 59; continue; }
r0 = s.tmp_10;
{ step = 60; continue; }
case 59:
- s.tmp_12 = Sprite_vy__P2028_mk(s);
- s.tmp_12.arg0 = s.s___29471;
+ s.tmp_12 = Sprite_vy__P62023_mk(s);
+ s.tmp_12.arg0 = s.s___89468;
s.callLocIdx = 649; s.pc = 115; return s.tmp_12;
case 115:
r0 = s.retval;
@@ -74505,8 +73652,8 @@ switch (step) {
s.tmp_14 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_14);
if (!r0) { step = 62; continue; }
- s.tmp_15 = r0 = s.s___29471;
- r0 = s.s___29471.fields["_vy"];
+ s.tmp_15 = r0 = s.s___89468;
+ r0 = s.s___89468.fields["_vy"];
s.tmp_17 = r0;
r0 = (0 - s.tmp_17);
s.tmp_16 = r0;
@@ -74528,12 +73675,12 @@ switch (step) {
{ step = 65; continue; }
case 64:
r0 = (s.arg1).fields["dy"] = (0);
- r0 = (s.s___29471).fields["_vy"] = (0);
+ r0 = (s.s___89468).fields["_vy"] = (0);
case 65:
{ step = 69; continue; }
case 66:
- s.tmp_2 = Math_sign__P121_mk(s);
- r0 = s.s___29471.fields["_vy"];
+ s.tmp_2 = Math_sign__P60116_mk(s);
+ r0 = s.s___89468.fields["_vy"];
s.tmp_3 = r0;
r0 = (s.tmp_3 + 128);
s.tmp_4 = r0;
@@ -74543,7 +73690,7 @@ switch (step) {
case 116:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_6 = Math_sign__P121_mk(s);
+ s.tmp_6 = Math_sign__P60116_mk(s);
r0 = s.arg1.fields["cachedVy"];
s.tmp_7 = r0;
r0 = (s.tmp_7 + 128);
@@ -74567,17 +73714,17 @@ switch (step) {
case 72:
case 73:
case 74:
- s.tmp_0 = game_Hitbox_left__P1963_mk(s);
- s.tmp_0.arg0 = s.hbox___29494;
+ s.tmp_0 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_0.arg0 = s.hbox___89491;
s.callLocIdx = 657; s.pc = 118; return s.tmp_0;
case 118:
r0 = s.retval;
- s.x___29894 = (r0);
+ s.x___89891 = (r0);
case 75:
- s.tmp_1 = r0 = s.x___29894;
- s.tmp_3 = r0 = s.tileSize___29500;
- s.tmp_5 = game_Hitbox_right__P1965_mk(s);
- s.tmp_5.arg0 = s.hbox___29494;
+ s.tmp_1 = r0 = s.x___89891;
+ s.tmp_3 = r0 = s.tileSize___89497;
+ s.tmp_5 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_5.arg0 = s.hbox___89491;
s.callLocIdx = 658; s.pc = 119; return s.tmp_5;
case 119:
r0 = s.retval;
@@ -74590,10 +73737,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 80; continue; }
- s.tmp_9 = Fx_min__P158_mk(s);
- s.tmp_9.arg0 = s.x___29894;
- s.tmp_10 = game_Hitbox_right__P1965_mk(s);
- s.tmp_10.arg0 = s.hbox___29494;
+ s.tmp_9 = Fx_min__P60153_mk(s);
+ s.tmp_9.arg0 = s.x___89891;
+ s.tmp_10 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_10.arg0 = s.hbox___89491;
s.callLocIdx = 660; s.pc = 121; return s.tmp_10;
case 121:
r0 = s.retval;
@@ -74604,21 +73751,21 @@ switch (step) {
s.tmp_8 = r0;
r0 = (s.tmp_8 + 128);
s.tmp_7 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_11 = r0;
r0 = (s.tmp_7 >> s.tmp_11);
- s.x0___29904 = (r0);
- s.tmp_0 = game_Hitbox_top__P1964_mk(s);
- s.tmp_0.arg0 = s.hbox___29494;
+ s.x0___89901 = (r0);
+ s.tmp_0 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_0.arg0 = s.hbox___89491;
s.callLocIdx = 664; s.pc = 122; return s.tmp_0;
case 122:
r0 = s.retval;
- s.y___29914 = (r0);
+ s.y___89911 = (r0);
case 76:
- s.tmp_1 = r0 = s.y___29914;
- s.tmp_3 = r0 = s.tileSize___29500;
- s.tmp_5 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_5.arg0 = s.hbox___29494;
+ s.tmp_1 = r0 = s.y___89911;
+ s.tmp_3 = r0 = s.tileSize___89497;
+ s.tmp_5 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_5.arg0 = s.hbox___89491;
s.callLocIdx = 665; s.pc = 123; return s.tmp_5;
case 123:
r0 = s.retval;
@@ -74631,10 +73778,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 79; continue; }
- s.tmp_9 = Fx_min__P158_mk(s);
- s.tmp_9.arg0 = s.y___29914;
- s.tmp_10 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_10.arg0 = s.hbox___29494;
+ s.tmp_9 = Fx_min__P60153_mk(s);
+ s.tmp_9.arg0 = s.y___89911;
+ s.tmp_10 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_10.arg0 = s.hbox___89491;
s.callLocIdx = 667; s.pc = 125; return s.tmp_10;
case 125:
r0 = s.retval;
@@ -74645,15 +73792,15 @@ switch (step) {
s.tmp_8 = r0;
r0 = (s.tmp_8 + 128);
s.tmp_7 = r0;
- r0 = (s.tileScale___29497 + 8);
+ r0 = (s.tileScale___89494 + 8);
s.tmp_11 = r0;
r0 = (s.tmp_7 >> s.tmp_11);
- s.y0___29924 = (r0);
- s.tmp_3 = tiles_TileMap__C2314_v12_3_mk(s);
+ s.y0___89921 = (r0);
+ s.tmp_3 = tiles_TileMap__C62309_v12_3_mk(s);
s.tmp_3.arg0 = s.arg2;
- s.tmp_3.arg1 = s.x0___29904;
- s.tmp_3.arg2 = s.y0___29924;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ s.tmp_3.arg1 = s.x0___89901;
+ s.tmp_3.arg2 = s.y0___89921;
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isObstacle;
s.pc = 126; return s.tmp_3;
case 126:
@@ -74665,12 +73812,12 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 77; continue; }
- s.tmp_4 = r0 = s.overlappedTiles___29518;
- s.tmp_6 = tiles_TileMap__C2314_v7_3_mk(s);
+ s.tmp_4 = r0 = s.overlappedTiles___89515;
+ s.tmp_6 = tiles_TileMap__C62309_v7_3_mk(s);
s.tmp_6.arg0 = s.arg2;
- s.tmp_6.arg1 = s.x0___29904;
- s.tmp_6.arg2 = s.y0___29924;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
+ s.tmp_6.arg1 = s.x0___89901;
+ s.tmp_6.arg2 = s.y0___89921;
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTile;
s.pc = 127; return s.tmp_6;
case 127:
@@ -74679,26 +73826,26 @@ switch (step) {
r0 = pxsim_Array__push(s.tmp_4, s.tmp_5);
case 77:
case 78:
- r0 = (s.tileSize___29500 << 8);
+ r0 = (s.tileSize___89497 << 8);
s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.y___29914);
- s.y___29914 = (r0);
+ r0 = (s.tmp_0 + s.y___89911);
+ s.y___89911 = (r0);
{ step = 76; continue; }
case 79:
- r0 = (s.tileSize___29500 << 8);
+ r0 = (s.tileSize___89497 << 8);
s.tmp_0 = r0;
- r0 = (s.tmp_0 + s.x___29894);
- s.x___29894 = (r0);
+ r0 = (s.tmp_0 + s.x___89891);
+ s.x___89891 = (r0);
{ step = 75; continue; }
case 80:
- r0 = pxsim_Array__length(s.overlappedTiles___29518);
+ r0 = pxsim_Array__length(s.overlappedTiles___89515);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 81; continue; }
- s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P4153_mk(s);
+ s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P64150_mk(s);
s.tmp_1.arg0 = s.arg0;
- s.tmp_1.arg1 = s.s___29471;
- s.tmp_1.arg2 = s.overlappedTiles___29518;
+ s.tmp_1.arg1 = s.s___89468;
+ s.tmp_1.arg2 = s.overlappedTiles___89515;
s.callLocIdx = 673; s.pc = 128; return s.tmp_1;
case 128:
r0 = s.retval;
@@ -74709,12 +73856,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_tilemapCollisions__P4152.info = {"start":11417,"length":8619,"line":350,"column":4,"endLine":586,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]}
+ArcadePhysicsEngine_tilemapCollisions__P64149.info = {"start":11417,"length":8619,"line":350,"column":4,"endLine":586,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]}
-function ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s) {
+function ArcadePhysicsEngine_tilemapCollisions__P64149_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P4152, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P64149, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -74734,38 +73881,38 @@ function ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s) {
tmp_15: undefined,
tmp_16: undefined,
tmp_17: undefined,
- s___29471: undefined,
- hbox___29494: undefined,
- tileScale___29497: undefined,
- tileSize___29500: undefined,
- xDiff___29504: undefined,
- yDiff___29511: undefined,
- overlappedTiles___29518: undefined,
- right___29523: undefined,
- x0___29527: undefined,
- collidedTiles___29542: undefined,
- y___29544: undefined,
- y0___29558: undefined,
- obstacle___29574: undefined,
- collisionDirection___29608: undefined,
- tile___29634: undefined,
- unnamed68___U15: undefined,
- unnamed69___U16: undefined,
- down___29712: undefined,
- y0___29716: undefined,
- collidedTiles___29731: undefined,
- overlappedTiles___29733: undefined,
- x___29735: undefined,
- x0___29745: undefined,
- obstacle___29759: undefined,
- collisionDirection___29793: undefined,
- tile___29819: undefined,
- unnamed70___U26: undefined,
- unnamed71___U27: undefined,
- x___29894: undefined,
- x0___29904: undefined,
- y___29914: undefined,
- y0___29924: undefined,
+ s___89468: undefined,
+ hbox___89491: undefined,
+ tileScale___89494: undefined,
+ tileSize___89497: undefined,
+ xDiff___89501: undefined,
+ yDiff___89508: undefined,
+ overlappedTiles___89515: undefined,
+ right___89520: undefined,
+ x0___89524: undefined,
+ collidedTiles___89539: undefined,
+ y___89541: undefined,
+ y0___89555: undefined,
+ obstacle___89571: undefined,
+ collisionDirection___89605: undefined,
+ tile___89631: undefined,
+ unnamed148___U15: undefined,
+ unnamed149___U16: undefined,
+ down___89709: undefined,
+ y0___89713: undefined,
+ collidedTiles___89728: undefined,
+ overlappedTiles___89730: undefined,
+ x___89732: undefined,
+ x0___89742: undefined,
+ obstacle___89756: undefined,
+ collisionDirection___89790: undefined,
+ tile___89816: undefined,
+ unnamed150___U26: undefined,
+ unnamed151___U27: undefined,
+ x___89891: undefined,
+ x0___89901: undefined,
+ y___89911: undefined,
+ y0___89921: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -74775,7 +73922,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s) {
-function inline__P29582(s) {
+function inline__P89579(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -74797,12 +73944,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P29582.info = {"start":13538,"length":39,"line":414,"column":44,"endLine":414,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]}
+inline__P89579.info = {"start":13538,"length":39,"line":414,"column":44,"endLine":414,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]}
-function inline__P29582_mk(s) {
+function inline__P89579_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P29582, depth: s.depth + 1,
+ parent: s, fn: inline__P89579, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -74813,7 +73960,7 @@ function inline__P29582_mk(s) {
-function inline__P29767(s) {
+function inline__P89764(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -74835,12 +73982,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P29767.info = {"start":16773,"length":39,"line":496,"column":44,"endLine":496,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]}
+inline__P89764.info = {"start":16773,"length":39,"line":496,"column":44,"endLine":496,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]}
-function inline__P29767_mk(s) {
+function inline__P89764_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P29767, depth: s.depth + 1,
+ parent: s, fn: inline__P89764, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -74851,7 +73998,7 @@ function inline__P29767_mk(s) {
-function ArcadePhysicsEngine_tilemapOverlaps__P4153(s) {
+function ArcadePhysicsEngine_tilemapOverlaps__P64150(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -74861,11 +74008,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.alreadyHandled___29963 = undefined;
- s.tile___29966 = undefined;
- s.unnamed72___U2 = undefined;
- s.unnamed73___U3 = undefined;
- s.tileOverlapHandlers___29987 = undefined;
+ s.alreadyHandled___89960 = undefined;
+ s.tile___89963 = undefined;
+ s.unnamed152___U2 = undefined;
+ s.unnamed153___U3 = undefined;
+ s.tileOverlapHandlers___89984 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -74873,25 +74020,25 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = pxsim_Array__mk();
- s.alreadyHandled___29963 = (r0);
- s.tile___29966 = (undefined);
- s.unnamed72___U2 = (s.arg2);
- s.unnamed73___U3 = (0);
+ s.alreadyHandled___89960 = (r0);
+ s.tile___89963 = (undefined);
+ s.unnamed152___U2 = (s.arg2);
+ s.unnamed153___U3 = (0);
case 1:
- s.tmp_0 = r0 = s.unnamed73___U3;
- r0 = pxsim_Array__length(s.unnamed72___U2);
+ s.tmp_0 = r0 = s.unnamed153___U3;
+ r0 = pxsim_Array__length(s.unnamed152___U2);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 7; continue; }
- r0 = pxsim_Array__getAt(s.unnamed72___U2, s.unnamed73___U3);
- s.tile___29966 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P29970);
+ r0 = pxsim_Array__getAt(s.unnamed152___U2, s.unnamed153___U3);
+ s.tile___89963 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P89967);
s.tmp_2 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___29966);
- s.tmp_4 = helpers_arraySome__P102_mk(s);
- s.tmp_4.arg0 = s.alreadyHandled___29963;
+ r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___89963);
+ s.tmp_4 = helpers_arraySome__P60097_mk(s);
+ s.tmp_4.arg0 = s.alreadyHandled___89960;
s.tmp_4.arg1 = s.tmp_2;
s.callLocIdx = 678; s.pc = 8; return s.tmp_4;
case 8:
@@ -74902,26 +74049,26 @@ switch (step) {
{ step = 6; continue; }
case 2:
case 3:
- r0 = pxsim_Array__push(s.alreadyHandled___29963, s.tile___29966);
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ r0 = pxsim_Array__push(s.alreadyHandled___89960, s.tile___89963);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 679; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
r0 = r0.fields["tileOverlapHandlers"];
- s.tileOverlapHandlers___29987 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___29987);
+ s.tileOverlapHandlers___89984 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___89984);
if (!r0) { step = 4; continue; }
- r0 = pxsim_pxtcore_mkAction(2, inline__P29995);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P89992);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___29966);
- r0 = pxsim_pxtcore_mkAction(2, inline__P30011);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___89963);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P90008);
s.tmp_1 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1);
- r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___29966);
- s.tmp_2 = helpers_arrayForEach__P104_mk(s);
- s.tmp_3 = helpers_arrayFilter__P105_mk(s);
- s.tmp_3.arg0 = s.tileOverlapHandlers___29987;
+ r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___89963);
+ s.tmp_2 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_3 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_3.arg0 = s.tileOverlapHandlers___89984;
s.tmp_3.arg1 = s.tmp_0;
s.callLocIdx = 682; s.pc = 11; return s.tmp_3;
case 11:
@@ -74934,32 +74081,32 @@ switch (step) {
case 4:
case 5:
case 6:
- r0 = (s.unnamed73___U3 + 1);
- s.unnamed73___U3 = (r0);
+ r0 = (s.unnamed153___U3 + 1);
+ s.unnamed153___U3 = (r0);
{ step = 1; continue; }
case 7:
- s.unnamed72___U2 = (undefined);
+ s.unnamed152___U2 = (undefined);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_tilemapOverlaps__P4153.info = {"start":20313,"length":699,"line":594,"column":4,"endLine":610,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]}
+ArcadePhysicsEngine_tilemapOverlaps__P64150.info = {"start":20313,"length":699,"line":594,"column":4,"endLine":610,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]}
-function ArcadePhysicsEngine_tilemapOverlaps__P4153_mk(s) {
+function ArcadePhysicsEngine_tilemapOverlaps__P64150_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P4153, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P64150, depth: s.depth + 1,
pc: 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___29963: undefined,
- tile___29966: undefined,
- unnamed72___U2: undefined,
- unnamed73___U3: undefined,
- tileOverlapHandlers___29987: undefined,
+ alreadyHandled___89960: undefined,
+ tile___89963: undefined,
+ unnamed152___U2: undefined,
+ unnamed153___U3: undefined,
+ tileOverlapHandlers___89984: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -74969,7 +74116,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P4153_mk(s) {
-function inline__P29970(s) {
+function inline__P89967(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75006,12 +74153,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P29970.info = {"start":20526,"length":45,"line":598,"column":36,"endLine":598,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]}
+inline__P89967.info = {"start":20526,"length":45,"line":598,"column":36,"endLine":598,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]}
-function inline__P29970_mk(s) {
+function inline__P89967_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P29970, depth: s.depth + 1,
+ parent: s, fn: inline__P89967, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75026,7 +74173,7 @@ function inline__P29970_mk(s) {
-function inline__P29995(s) {
+function inline__P89992(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75053,7 +74200,7 @@ switch (step) {
case 1:
r0 = s.arg0.fields["tileKind"];
s.tmp_3 = r0;
- s.tmp_5 = tiles_getTileImage__P2341_mk(s);
+ s.tmp_5 = tiles_getTileImage__P62337_mk(s);
s.tmp_5.arg0 = s.caps[1];
s.callLocIdx = 681; s.pc = 3; return s.tmp_5;
case 3:
@@ -75067,12 +74214,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P29995.info = {"start":20840,"length":81,"line":606,"column":28,"endLine":606,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
+inline__P89992.info = {"start":20840,"length":81,"line":606,"column":28,"endLine":606,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P29995_mk(s) {
+function inline__P89992_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P29995, depth: s.depth + 1,
+ parent: s, fn: inline__P89992, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75088,7 +74235,7 @@ function inline__P29995_mk(s) {
-function inline__P30011(s) {
+function inline__P90008(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75121,12 +74268,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30011.info = {"start":20952,"length":28,"line":607,"column":29,"endLine":607,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90008.info = {"start":20952,"length":28,"line":607,"column":29,"endLine":607,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30011_mk(s) {
+function inline__P90008_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30011, depth: s.depth + 1,
+ parent: s, fn: inline__P90008, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -75136,7 +74283,7 @@ function inline__P30011_mk(s) {
-function tiles_getTileImage__P2341(s) {
+function tiles_getTileImage__P62337(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75146,16 +74293,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scene___30019 = undefined;
+ s.scene___90016 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 795; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.scene___30019 = (r0);
+ s.scene___90016 = (r0);
r0 = pxsim_numops_toBoolDecr(s.arg0);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
@@ -75165,7 +74312,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- r0 = s.scene___30019.fields["tileMap"];
+ r0 = s.scene___90016.fields["tileMap"];
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
s.tmp_2 = r0;
@@ -75175,20 +74322,20 @@ switch (step) {
s.tmp_4 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_4);
if (!r0) { step = 3; continue; }
- r0 = pxsim.image.ofBuffer(_hex30029);
+ r0 = pxsim.image.ofBuffer(_hex90026);
{ step = 5; continue; }
case 3:
case 4:
- s.tmp_5 = tiles_TileMap__C2314_v15_2_mk(s);
- r0 = s.scene___30019.fields["tileMap"];
+ s.tmp_5 = tiles_TileMap__C62309_v15_2_mk(s);
+ r0 = s.scene___90016.fields["tileMap"];
s.tmp_5.arg0 = r0;
- s.tmp_6 = tiles_Location_tileSet__P2292_mk(s);
+ s.tmp_6 = tiles_Location_tileSet__P62287_mk(s);
s.tmp_6.arg0 = s.arg0;
s.callLocIdx = 796; s.pc = 8; return s.tmp_6;
case 8:
r0 = s.retval;
s.tmp_5.arg1 = r0;
- if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0);
+ if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_5.arg0);
s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.getTileImage;
s.pc = 7; return s.tmp_5;
case 7:
@@ -75197,12 +74344,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_getTileImage__P2341.info = {"start":15432,"length":207,"line":497,"column":4,"endLine":501,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]}
+tiles_getTileImage__P62337.info = {"start":16582,"length":207,"line":524,"column":4,"endLine":528,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]}
-function tiles_getTileImage__P2341_mk(s) {
+function tiles_getTileImage__P62337_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_getTileImage__P2341, depth: s.depth + 1,
+ parent: s, fn: tiles_getTileImage__P62337, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75211,16 +74358,16 @@ function tiles_getTileImage__P2341_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- scene___30019: undefined,
+ scene___90016: undefined,
arg0: undefined,
} }
-const _hex30029 = pxsim.BufferMethods.createBufferFromHex("8704000000000000")
+const _hex90026 = pxsim.BufferMethods.createBufferFromHex("8704000000000000")
-function tiles_TileMap_getTileImage__P2335(s) {
+function tiles_TileMap_getTileImage__P62331(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75236,11 +74383,11 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s);
- s.tmp_1 = tiles_TileMap__C2314_v0_1_mk(s);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_0 = tiles_TileMapData_getTileImage__P62305_mk(s);
+ s.tmp_1 = tiles_TileMap__C62309_v0_1_mk(s);
s.tmp_1.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.data;
s.pc = 2; return s.tmp_1;
case 2:
@@ -75253,12 +74400,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_getTileImage__P2335.info = {"start":12588,"length":96,"line":416,"column":8,"endLine":418,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
+tiles_TileMap_getTileImage__P62331.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
-function tiles_TileMap_getTileImage__P2335_mk(s) {
+function tiles_TileMap_getTileImage__P62331_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_getTileImage__P2335, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_getTileImage__P62331, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75270,7 +74417,7 @@ function tiles_TileMap_getTileImage__P2335_mk(s) {
-function tiles_Location_tileSet__P2292(s) {
+function tiles_Location_tileSet__P62287(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75285,15 +74432,15 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
- s.tmp_0 = tiles_TileMap__C2314_v8_3_mk(s);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
+ s.tmp_0 = tiles_TileMap__C62309_v8_3_mk(s);
r0 = s.arg0.fields["tileMap"];
s.tmp_0.arg0 = r0;
r0 = s.arg0.fields["_col"];
s.tmp_0.arg1 = r0;
r0 = s.arg0.fields["_row"];
s.tmp_0.arg2 = r0;
- if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0);
+ if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_0.arg0);
s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.getTileIndex;
s.pc = 1; return s.tmp_0;
case 1:
@@ -75301,13 +74448,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_Location_tileSet__P2292.info = {"start":981,"length":101,"line":43,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]}
-tiles_Location_tileSet__P2292.isGetter = true;
+tiles_Location_tileSet__P62287.info = {"start":981,"length":101,"line":43,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]}
+tiles_Location_tileSet__P62287.isGetter = true;
-function tiles_Location_tileSet__P2292_mk(s) {
+function tiles_Location_tileSet__P62287_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_tileSet__P2292, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_tileSet__P62287, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -75317,7 +74464,7 @@ function tiles_Location_tileSet__P2292_mk(s) {
-function tiles_Location_row__P2288(s) {
+function tiles_Location_row__P62283(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75332,18 +74479,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
r0 = s.arg0.fields["_row"];
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_Location_row__P2288.info = {"start":467,"length":51,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]}
-tiles_Location_row__P2288.isGetter = true;
+tiles_Location_row__P62283.info = {"start":467,"length":51,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]}
+tiles_Location_row__P62283.isGetter = true;
-function tiles_Location_row__P2288_mk(s) {
+function tiles_Location_row__P62283_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_row__P2288, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_row__P62283, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -75352,7 +74499,7 @@ function tiles_Location_row__P2288_mk(s) {
-function tiles_Location_col__P2287(s) {
+function tiles_Location_col__P62282(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75367,18 +74514,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
r0 = s.arg0.fields["_col"];
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_Location_col__P2287.info = {"start":406,"length":51,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]}
-tiles_Location_col__P2287.isGetter = true;
+tiles_Location_col__P62282.info = {"start":406,"length":51,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]}
+tiles_Location_col__P62282.isGetter = true;
-function tiles_Location_col__P2287_mk(s) {
+function tiles_Location_col__P62282_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_col__P2287, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_col__P62282, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -75387,7 +74534,7 @@ function tiles_Location_col__P2287_mk(s) {
-function tiles_TileMap_getObstacle__P2333(s) {
+function tiles_TileMap_getObstacle__P62329(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75397,8 +74544,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___30157 = undefined;
- s.tile___30169 = undefined;
+ s.index___90154 = undefined;
+ s.tile___90166 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -75406,8 +74553,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_1 = tiles_TileMapData_isOutsideMap__P62308_mk(s);
r0 = s.arg0.fields["_map"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.arg1;
@@ -75421,7 +74568,7 @@ switch (step) {
r0 = 0;
{ step = 2; continue; }
case 1:
- s.tmp_2 = tiles_TileMapData_getTile__P2307_mk(s);
+ s.tmp_2 = tiles_TileMapData_getTile__P62302_mk(s);
r0 = s.arg0.fields["_map"];
s.tmp_2.arg0 = r0;
s.tmp_2.arg1 = s.arg1;
@@ -75432,20 +74579,20 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_3 = r0;
- s.index___30157 = (s.tmp_3);
- s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s);
+ s.index___90154 = (s.tmp_3);
+ s.tmp_0 = tiles_TileMapData_getTileImage__P62305_mk(s);
r0 = s.arg0.fields["_map"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.index___30157;
+ s.tmp_0.arg1 = s.index___90154;
s.callLocIdx = 778; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tile___30169 = (r0);
- r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2143_VT);
+ s.tile___90166 = (r0);
+ r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C62138_VT);
s.tmp_0 = r0;
- s.tmp_1 = sprites_StaticObstacle_constructor__P2149_mk(s);
+ s.tmp_1 = sprites_StaticObstacle_constructor__P62144_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_1.arg1 = s.tile___30169;
+ s.tmp_1.arg1 = s.tile___90166;
s.tmp_2 = r0 = s.arg2;
r0 = s.arg0.fields["_scale"];
s.tmp_3 = r0;
@@ -75456,15 +74603,15 @@ switch (step) {
s.tmp_5 = r0;
r0 = (s.tmp_4 << s.tmp_5);
s.tmp_1.arg3 = r0;
- s.tmp_6 = tiles_TileMap__C2314_v5_1_mk(s);
+ s.tmp_6 = tiles_TileMap__C62309_v5_1_mk(s);
s.tmp_6.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0);
+ if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_6.arg0);
s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.layer;
s.pc = 7; return s.tmp_6;
case 7:
r0 = s.retval;
s.tmp_1.arg4 = r0;
- s.tmp_1.arg5 = s.index___30157;
+ s.tmp_1.arg5 = s.index___90154;
s.callLocIdx = 781; s.pc = 6; return s.tmp_1;
case 6:
r0 = s.retval;
@@ -75472,12 +74619,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_getObstacle__P2333.info = {"start":11531,"length":410,"line":385,"column":8,"endLine":395,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]}
+tiles_TileMap_getObstacle__P62329.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]}
-function tiles_TileMap_getObstacle__P2333_mk(s) {
+function tiles_TileMap_getObstacle__P62329_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_getObstacle__P2333, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_getObstacle__P62329, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75486,8 +74633,8 @@ function tiles_TileMap_getObstacle__P2333_mk(s) {
tmp_4: undefined,
tmp_5: undefined,
tmp_6: undefined,
- index___30157: undefined,
- tile___30169: undefined,
+ index___90154: undefined,
+ tile___90166: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -75497,7 +74644,7 @@ function tiles_TileMap_getObstacle__P2333_mk(s) {
-function tiles_TileMap_layer__P2322(s) {
+function tiles_TileMap_layer__P62317(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75512,18 +74659,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
r0 = s.arg0.fields["_layer"];
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_TileMap_layer__P2322.info = {"start":6897,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]}
-tiles_TileMap_layer__P2322.isGetter = true;
+tiles_TileMap_layer__P62317.info = {"start":6897,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]}
+tiles_TileMap_layer__P62317.isGetter = true;
-function tiles_TileMap_layer__P2322_mk(s) {
+function tiles_TileMap_layer__P62317_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_layer__P2322, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_layer__P62317, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -75532,7 +74679,7 @@ function tiles_TileMap_layer__P2322_mk(s) {
-function sprites_StaticObstacle_constructor__P2149(s) {
+function sprites_StaticObstacle_constructor__P62144(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75552,7 +74699,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_StaticObstacle__C62138_VT)) failedCast(r0);
r0 = (s.arg0).fields["image"] = (s.arg1);
r0 = (s.arg0).fields["layer"] = (s.arg4);
r0 = (s.arg0).fields["top"] = (s.arg2);
@@ -75562,12 +74709,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-sprites_StaticObstacle_constructor__P2149.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__P62144.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__P2149_mk(s) {
+function sprites_StaticObstacle_constructor__P62144_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_StaticObstacle_constructor__P2149, depth: s.depth + 1,
+ parent: s, fn: sprites_StaticObstacle_constructor__P62144, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -75581,7 +74728,7 @@ function sprites_StaticObstacle_constructor__P2149_mk(s) {
-function tiles_TileMap_isObstacle__P2332(s) {
+function tiles_TileMap_isObstacle__P62328(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75598,10 +74745,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- s.tmp_3 = tiles_TileMap__C2314_v6_1_mk(s);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ s.tmp_3 = tiles_TileMap__C62309_v6_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
s.pc = 6; return s.tmp_3;
case 6:
@@ -75617,7 +74764,7 @@ switch (step) {
{ step = 5; continue; }
case 1:
case 2:
- s.tmp_5 = tiles_TileMapData_isOutsideMap__P2313_mk(s);
+ s.tmp_5 = tiles_TileMapData_isOutsideMap__P62308_mk(s);
r0 = s.arg0.fields["_map"];
s.tmp_5.arg0 = r0;
s.tmp_5.arg1 = s.arg1;
@@ -75643,12 +74790,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_isObstacle__P2332.info = {"start":11310,"length":211,"line":378,"column":8,"endLine":383,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]}
+tiles_TileMap_isObstacle__P62328.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]}
-function tiles_TileMap_isObstacle__P2332_mk(s) {
+function tiles_TileMap_isObstacle__P62328_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_isObstacle__P2332, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_isObstacle__P62328, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75668,7 +74815,7 @@ function tiles_TileMap_isObstacle__P2332_mk(s) {
-function tiles_TileMapData_isWall__P2312(s) {
+function tiles_TileMapData_isWall__P62307(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75685,7 +74832,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_VT)) failedCast(r0);
r0 = s.arg0.fields["layers"];
s.tmp_1 = r0;
r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2);
@@ -75694,12 +74841,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_isWall__P2312.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]}
+tiles_TileMapData_isWall__P62307.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]}
-function tiles_TileMapData_isWall__P2312_mk(s) {
+function tiles_TileMapData_isWall__P62307_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_isWall__P2312, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_isWall__P62307, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75712,7 +74859,7 @@ function tiles_TileMapData_isWall__P2312_mk(s) {
-function tiles_TileMap_getTile__P2326(s) {
+function tiles_TileMap_getTile__P62321(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75729,10 +74876,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2286_VT);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C62281_VT);
s.tmp_0 = r0;
- s.tmp_1 = tiles_Location_constructor__P2289_mk(s);
+ s.tmp_1 = tiles_Location_constructor__P62284_mk(s);
s.tmp_1.arg0 = s.tmp_0;
s.tmp_1.arg1 = s.arg1;
s.tmp_1.arg2 = s.arg2;
@@ -75744,12 +74891,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_getTile__P2326.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
+tiles_TileMap_getTile__P62321.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
-function tiles_TileMap_getTile__P2326_mk(s) {
+function tiles_TileMap_getTile__P62321_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_getTile__P2326, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_getTile__P62321, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75762,7 +74909,7 @@ function tiles_TileMap_getTile__P2326_mk(s) {
-function tiles_Location_constructor__P2289(s) {
+function tiles_Location_constructor__P62284(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75780,7 +74927,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
r0 = (s.arg0).fields["_col"] = (s.arg1);
r0 = (s.arg0).fields["_row"] = (s.arg2);
r0 = (s.arg0).fields["tileMap"] = (s.arg3);
@@ -75788,12 +74935,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_Location_constructor__P2289.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]}
+tiles_Location_constructor__P62284.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]}
-function tiles_Location_constructor__P2289_mk(s) {
+function tiles_Location_constructor__P62284_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_constructor__P2289, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_constructor__P62284, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -75805,7 +74952,7 @@ function tiles_Location_constructor__P2289_mk(s) {
-function Sprite_registerObstacle__P2082(s) {
+function Sprite_registerObstacle__P62077(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -75815,10 +74962,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.collisionHandlers___30063 = undefined;
- s.wallCollisionHandlers___30070 = undefined;
- s.wallHandlersToRun___30095 = undefined;
- s.asTileLocation___30108 = undefined;
+ s.collisionHandlers___90060 = undefined;
+ s.wallCollisionHandlers___90067 = undefined;
+ s.wallHandlersToRun___90092 = undefined;
+ s.asTileLocation___90105 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -75827,11 +74974,11 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_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__P2524_mk(s);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
s.callLocIdx = 421; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
@@ -75851,24 +74998,24 @@ switch (step) {
r0 = s.retval;
s.tmp_2 = r0;
r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2);
- s.collisionHandlers___30063 = (r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.collisionHandlers___90060 = (r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 423; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
r0 = r0.fields["wallCollisionHandlers"];
- s.wallCollisionHandlers___30070 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___30063);
+ s.wallCollisionHandlers___90067 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___90060);
if (!r0) { step = 1; continue; }
- r0 = pxsim_pxtcore_mkAction(1, inline__P30078);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P90075);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P30084);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P90081);
s.tmp_1 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0);
- s.tmp_2 = helpers_arrayForEach__P104_mk(s);
- s.tmp_3 = helpers_arrayFilter__P105_mk(s);
- s.tmp_3.arg0 = s.collisionHandlers___30063;
+ s.tmp_2 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_3 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_3.arg0 = s.collisionHandlers___90060;
s.tmp_3.arg1 = s.tmp_0;
s.callLocIdx = 425; s.pc = 13; return s.tmp_3;
case 13:
@@ -75880,7 +75027,7 @@ switch (step) {
r0 = s.retval;
case 1:
case 2:
- r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___30070);
+ r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___90067);
if (!r0) { step = 7; continue; }
s.tmp_0 = r0 = s.arg3;
r0 = pxsim_numops_toBool(s.tmp_0);
@@ -75888,7 +75035,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 4; continue; }
case 3:
- s.tmp_1 = game_currentScene__P2524_mk(s);
+ s.tmp_1 = game_currentScene__P62521_mk(s);
s.callLocIdx = 428; s.pc = 14; return s.tmp_1;
case 14:
r0 = s.retval;
@@ -75897,21 +75044,21 @@ switch (step) {
// jmp value (already in r0)
s.tmp_2 = r0;
s.arg3 = (s.tmp_2);
- r0 = pxsim_pxtcore_mkAction(1, inline__P30097);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P90094);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayFilter__P105_mk(s);
- s.tmp_1.arg0 = s.wallCollisionHandlers___30070;
+ s.tmp_1 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_1.arg0 = s.wallCollisionHandlers___90067;
s.tmp_1.arg1 = s.tmp_0;
s.callLocIdx = 430; s.pc = 15; return s.tmp_1;
case 15:
r0 = s.retval;
- s.wallHandlersToRun___30095 = (r0);
- r0 = pxsim_Array__length(s.wallHandlersToRun___30095);
+ s.wallHandlersToRun___90092 = (r0);
+ r0 = pxsim_Array__length(s.wallHandlersToRun___90092);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_1 = tiles_TileMap__C2314_v7_3_mk(s);
+ s.tmp_1 = tiles_TileMap__C62309_v7_3_mk(s);
s.tmp_1.arg0 = s.arg3;
s.tmp_3 = if_left_1_mk(s);
s.tmp_3.arg0 = s.arg2;
@@ -75947,18 +75094,18 @@ switch (step) {
s.tmp_7 = r0;
r0 = (s.tmp_5 >> s.tmp_7);
s.tmp_1.arg2 = r0;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.getTile;
s.pc = 16; return s.tmp_1;
case 16:
r0 = s.retval;
- s.asTileLocation___30108 = (r0);
- r0 = pxsim_pxtcore_mkAction(2, inline__P30124);
+ s.asTileLocation___90105 = (r0);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P90121);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___30108);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = s.wallHandlersToRun___30095;
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___90105);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = s.wallHandlersToRun___90092;
s.tmp_1.arg1 = s.tmp_0;
s.callLocIdx = 436; s.pc = 19; return s.tmp_1;
case 19:
@@ -75971,12 +75118,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite_registerObstacle__P2082.info = {"start":26870,"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__P62077.info = {"start":26843,"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__P2082_mk(s) {
+function Sprite_registerObstacle__P62077_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_registerObstacle__P2082, depth: s.depth + 1,
+ parent: s, fn: Sprite_registerObstacle__P62077, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -75986,10 +75133,10 @@ function Sprite_registerObstacle__P2082_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- collisionHandlers___30063: undefined,
- wallCollisionHandlers___30070: undefined,
- wallHandlersToRun___30095: undefined,
- asTileLocation___30108: undefined,
+ collisionHandlers___90060: undefined,
+ wallCollisionHandlers___90067: undefined,
+ wallHandlersToRun___90092: undefined,
+ asTileLocation___90105: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -76000,7 +75147,7 @@ function Sprite_registerObstacle__P2082_mk(s) {
-function inline__P30078(s) {
+function inline__P90075(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76022,12 +75169,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30078.info = {"start":27268,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90075.info = {"start":27241,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30078_mk(s) {
+function inline__P90075_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30078, depth: s.depth + 1,
+ parent: s, fn: inline__P90075, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -76038,7 +75185,7 @@ function inline__P30078_mk(s) {
-function inline__P30084(s) {
+function inline__P90081(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76070,12 +75217,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30084.info = {"start":27321,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90081.info = {"start":27294,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30084_mk(s) {
+function inline__P90081_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30084, depth: s.depth + 1,
+ parent: s, fn: inline__P90081, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -76085,7 +75232,7 @@ function inline__P30084_mk(s) {
-function inline__P30097(s) {
+function inline__P90094(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76107,12 +75254,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30097.info = {"start":27527,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90094.info = {"start":27500,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30097_mk(s) {
+function inline__P90094_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30097, depth: s.depth + 1,
+ parent: s, fn: inline__P90094, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -76123,7 +75270,7 @@ function inline__P30097_mk(s) {
-function inline__P30124(s) {
+function inline__P90121(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76156,12 +75303,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30124.info = {"start":27767,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90121.info = {"start":27740,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30124_mk(s) {
+function inline__P90121_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30124, depth: s.depth + 1,
+ parent: s, fn: inline__P90121, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -76171,7 +75318,7 @@ function inline__P30124_mk(s) {
-function Fx_min__P158(s) {
+function Fx_min__P60153(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76202,12 +75349,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_min__P158.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]}
+Fx_min__P60153.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]}
-function Fx_min__P158_mk(s) {
+function Fx_min__P60153_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_min__P158, depth: s.depth + 1,
+ parent: s, fn: Fx_min__P60153, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -76218,7 +75365,7 @@ function Fx_min__P158_mk(s) {
-function Fx_iadd__P150(s) {
+function Fx_iadd__P60145(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76239,12 +75386,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_iadd__P150.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]}
+Fx_iadd__P60145.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__P150_mk(s) {
+function Fx_iadd__P60145_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_iadd__P150, depth: s.depth + 1,
+ parent: s, fn: Fx_iadd__P60145, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -76255,7 +75402,7 @@ function Fx_iadd__P150_mk(s) {
-function Fx_toIntShifted__P148(s) {
+function Fx_toIntShifted__P60143(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76277,12 +75424,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_toIntShifted__P148.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]}
+Fx_toIntShifted__P60143.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]}
-function Fx_toIntShifted__P148_mk(s) {
+function Fx_toIntShifted__P60143_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_toIntShifted__P148, depth: s.depth + 1,
+ parent: s, fn: Fx_toIntShifted__P60143, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -76294,7 +75441,7 @@ function Fx_toIntShifted__P148_mk(s) {
-function helpers_arraySome__P102(s) {
+function helpers_arraySome__P60097(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76304,26 +75451,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.len___30139 = undefined;
- s.i___30142 = undefined;
+ s.len___90136 = undefined;
+ s.i___90139 = 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___30139 = (r0);
- s.i___30142 = (0);
+ s.len___90136 = (r0);
+ s.i___90139 = (0);
case 1:
- r0 = (s.i___30142 < s.len___30139);
+ r0 = (s.i___90139 < s.len___90136);
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___30142);
+ r0 = pxsim_Array__getAt(s.arg0, s.i___90139);
s.tmp_2.arg0 = r0;
- s.tmp_2.arg1 = s.i___30142;
+ s.tmp_2.arg1 = s.i___90139;
setupLambda(s.tmp_2, s.tmp_2.argL);
s.callLocIdx = 5; s.pc = 6; return s.tmp_2;
case 6:
@@ -76335,8 +75482,8 @@ switch (step) {
{ step = 5; continue; }
case 2:
case 3:
- r0 = (s.i___30142 + 1);
- s.i___30142 = (r0);
+ r0 = (s.i___90139 + 1);
+ s.i___90139 = (r0);
{ step = 1; continue; }
case 4:
r0 = false;
@@ -76344,18 +75491,18 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-helpers_arraySome__P102.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__P60097.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__P102_mk(s) {
+function helpers_arraySome__P60097_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: helpers_arraySome__P102, depth: s.depth + 1,
+ parent: s, fn: helpers_arraySome__P60097, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- len___30139: undefined,
- i___30142: undefined,
+ len___90136: undefined,
+ i___90139: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -76364,7 +75511,7 @@ function helpers_arraySome__P102_mk(s) {
-function tiles_TileMap_isOnWall__P2334(s) {
+function tiles_TileMap_isOnWall__P62330(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76374,24 +75521,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.hbox___29420 = undefined;
- s.left___29423 = undefined;
- s.right___29429 = undefined;
- s.top___29435 = undefined;
- s.bottom___29441 = undefined;
- s.col___29447 = undefined;
- s.row___29453 = undefined;
+ s.hbox___89417 = undefined;
+ s.left___89420 = undefined;
+ s.right___89426 = undefined;
+ s.top___89432 = undefined;
+ s.bottom___89438 = undefined;
+ s.col___89444 = undefined;
+ s.row___89450 = 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__C2314_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_TileMap__C62309_VT)) failedCast(r0);
r0 = s.arg1.fields["_hitbox"];
- s.hbox___29420 = (r0);
- s.tmp_1 = game_Hitbox_left__P1963_mk(s);
- s.tmp_1.arg0 = s.hbox___29420;
+ s.hbox___89417 = (r0);
+ s.tmp_1 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_1.arg0 = s.hbox___89417;
s.callLocIdx = 782; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
@@ -76401,9 +75548,9 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.left___29423 = (r0);
- s.tmp_1 = game_Hitbox_right__P1965_mk(s);
- s.tmp_1.arg0 = s.hbox___29420;
+ s.left___89420 = (r0);
+ s.tmp_1 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_1.arg0 = s.hbox___89417;
s.callLocIdx = 785; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
@@ -76413,9 +75560,9 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.right___29429 = (r0);
- s.tmp_1 = game_Hitbox_top__P1964_mk(s);
- s.tmp_1.arg0 = s.hbox___29420;
+ s.right___89426 = (r0);
+ s.tmp_1 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_1.arg0 = s.hbox___89417;
s.callLocIdx = 788; s.pc = 10; return s.tmp_1;
case 10:
r0 = s.retval;
@@ -76425,9 +75572,9 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.top___29435 = (r0);
- s.tmp_1 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_1.arg0 = s.hbox___29420;
+ s.top___89432 = (r0);
+ s.tmp_1 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_1.arg0 = s.hbox___89417;
s.callLocIdx = 791; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
@@ -76437,24 +75584,24 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.bottom___29441 = (r0);
- s.col___29447 = (s.left___29423);
+ s.bottom___89438 = (r0);
+ s.col___89444 = (s.left___89420);
case 1:
- r0 = (s.col___29447 <= s.right___29429);
+ r0 = (s.col___89444 <= s.right___89426);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 6; continue; }
- s.row___29453 = (s.top___29435);
+ s.row___89450 = (s.top___89432);
case 2:
- r0 = (s.row___29453 <= s.bottom___29441);
+ r0 = (s.row___89450 <= s.bottom___89438);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_2 = tiles_TileMap__C2314_v12_3_mk(s);
+ s.tmp_2 = tiles_TileMap__C62309_v12_3_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.col___29447;
- s.tmp_2.arg2 = s.row___29453;
- if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.col___89444;
+ s.tmp_2.arg2 = s.row___89450;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isObstacle;
s.pc = 12; return s.tmp_2;
case 12:
@@ -76466,12 +75613,12 @@ switch (step) {
{ step = 7; continue; }
case 3:
case 4:
- r0 = (s.row___29453 + 1);
- s.row___29453 = (r0);
+ r0 = (s.row___89450 + 1);
+ s.row___89450 = (r0);
{ step = 2; continue; }
case 5:
- r0 = (s.col___29447 + 1);
- s.col___29447 = (r0);
+ r0 = (s.col___89444 + 1);
+ s.col___89444 = (r0);
{ step = 1; continue; }
case 6:
r0 = false;
@@ -76479,24 +75626,24 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMap_isOnWall__P2334.info = {"start":11951,"length":627,"line":397,"column":8,"endLine":414,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]}
+tiles_TileMap_isOnWall__P62330.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]}
-function tiles_TileMap_isOnWall__P2334_mk(s) {
+function tiles_TileMap_isOnWall__P62330_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMap_isOnWall__P2334, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMap_isOnWall__P62330, depth: s.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___29420: undefined,
- left___29423: undefined,
- right___29429: undefined,
- top___29435: undefined,
- bottom___29441: undefined,
- col___29447: undefined,
- row___29453: undefined,
+ hbox___89417: undefined,
+ left___89420: undefined,
+ right___89426: undefined,
+ top___89432: undefined,
+ bottom___89438: undefined,
+ col___89444: undefined,
+ row___89450: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -76505,7 +75652,7 @@ function tiles_TileMap_isOnWall__P2334_mk(s) {
-function MovingSprite_constructor__P2169(s) {
+function MovingSprite_constructor__P62164(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76527,7 +75674,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, MovingSprite__C2168_VT)) failedCast(r0);
+ if (!checkSubtype(r0, MovingSprite__C62163_VT)) failedCast(r0);
r0 = (s.arg0).fields["sprite"] = (s.arg1);
r0 = (s.arg0).fields["cachedVx"] = (s.arg2);
r0 = (s.arg0).fields["cachedVy"] = (s.arg3);
@@ -76539,12 +75686,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-MovingSprite_constructor__P2169.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]}
+MovingSprite_constructor__P62164.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]}
-function MovingSprite_constructor__P2169_mk(s) {
+function MovingSprite_constructor__P62164_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: MovingSprite_constructor__P2169, depth: s.depth + 1,
+ parent: s, fn: MovingSprite_constructor__P62164, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -76560,7 +75707,7 @@ function MovingSprite_constructor__P2169_mk(s) {
-function ArcadePhysicsEngine_move__P2182(s) {
+function ArcadePhysicsEngine_move__P62177(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -76570,34 +75717,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.dtf___30204 = undefined;
- s.dtSec___30211 = undefined;
- s.dt2___30215 = undefined;
- s.scene___30219 = undefined;
- s.tileMap___30222 = undefined;
- s.movingSprites___30225 = undefined;
- s.MAX_STEP_COUNT___30256 = undefined;
- s.overlapHandlers___30267 = undefined;
- s.selected___30274 = undefined;
- s.buffers___30275 = undefined;
- s.count___30279 = undefined;
- s.currMovers___30289 = undefined;
- s.remainingMovers___30296 = undefined;
- s.ms___30301 = undefined;
- s.unnamed62___U14 = undefined;
- s.unnamed63___U15 = undefined;
- s.s___30303 = undefined;
- s.stepX___30396 = undefined;
- s.stepY___30410 = undefined;
+ s.dtf___90201 = undefined;
+ s.dtSec___90208 = undefined;
+ s.dt2___90212 = undefined;
+ s.scene___90216 = undefined;
+ s.tileMap___90219 = undefined;
+ s.movingSprites___90222 = undefined;
+ s.MAX_STEP_COUNT___90253 = undefined;
+ s.overlapHandlers___90264 = undefined;
+ s.selected___90271 = undefined;
+ s.buffers___90272 = undefined;
+ s.count___90276 = undefined;
+ s.currMovers___90286 = undefined;
+ s.remainingMovers___90293 = undefined;
+ s.ms___90298 = undefined;
+ s.unnamed142___U14 = undefined;
+ s.unnamed143___U15 = undefined;
+ s.s___90300 = undefined;
+ s.stepX___90393 = undefined;
+ s.stepY___90407 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = Fx_min__P158_mk(s);
- s.tmp_0.arg0 = globals.MAX_TIME_STEP___2165;
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = Fx_min__P60153_mk(s);
+ s.tmp_0.arg0 = globals.MAX_TIME_STEP___62160;
r0 = (s.arg1 * 1000);
s.tmp_1 = r0;
r0 = (s.tmp_1 * 256);
@@ -76607,45 +75754,45 @@ switch (step) {
s.callLocIdx = 517; s.pc = 47; return s.tmp_0;
case 47:
r0 = s.retval;
- s.dtf___30204 = (r0);
- r0 = pxsim.Math_.idiv(s.dtf___30204, 1000);
- s.dtSec___30211 = (r0);
- r0 = pxsim.Math_.idiv(s.dtf___30204, 2);
- s.dt2___30215 = (r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.dtf___90201 = (r0);
+ r0 = pxsim.Math_.idiv(s.dtf___90201, 1000);
+ s.dtSec___90208 = (r0);
+ r0 = pxsim.Math_.idiv(s.dtf___90201, 2);
+ s.dt2___90212 = (r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 520; s.pc = 48; return s.tmp_0;
case 48:
r0 = s.retval;
- s.scene___30219 = (r0);
- r0 = s.scene___30219.fields["tileMap"];
- s.tileMap___30222 = (r0);
- r0 = pxsim_pxtcore_mkAction(3, inline__P30227);
+ s.scene___90216 = (r0);
+ r0 = s.scene___90216.fields["tileMap"];
+ s.tileMap___90219 = (r0);
+ r0 = pxsim_pxtcore_mkAction(3, inline__P90224);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtSec___30211);
- r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___30215);
- s.tmp_1 = helpers_arrayMap__P101_mk(s);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtSec___90208);
+ r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___90212);
+ s.tmp_1 = helpers_arrayMap__P60096_mk(s);
r0 = s.arg0.fields["sprites"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
s.callLocIdx = 522; s.pc = 49; return s.tmp_1;
case 49:
r0 = s.retval;
- s.movingSprites___30225 = (r0);
- s.tmp_0 = helpers_arrayForEach__P104_mk(s);
+ s.movingSprites___90222 = (r0);
+ s.tmp_0 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["sprites"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = inline__P30239;
+ s.tmp_0.arg1 = inline__P90236;
s.callLocIdx = 526; s.pc = 50; return s.tmp_0;
case 50:
r0 = s.retval;
- s.tmp_0 = sprites_SpriteMap_clear__P2097_mk(s);
+ s.tmp_0 = sprites_SpriteMap_clear__P62092_mk(s);
r0 = s.arg0.fields["map"];
s.tmp_0.arg0 = r0;
s.callLocIdx = 527; s.pc = 51; return s.tmp_0;
case 51:
r0 = s.retval;
- s.tmp_0 = sprites_SpriteMap_resizeBuckets__P2096_mk(s);
+ s.tmp_0 = sprites_SpriteMap_resizeBuckets__P62091_mk(s);
r0 = s.arg0.fields["map"];
s.tmp_0.arg0 = r0;
r0 = s.arg0.fields["sprites"];
@@ -76661,41 +75808,41 @@ switch (step) {
s.tmp_4 = r0;
r0 = pxsim.Math_.idiv(s.tmp_4, s.tmp_3);
s.tmp_1 = r0;
- r0 = pxsim.Math_.imul(s.tmp_1, s.dtSec___30211);
+ r0 = pxsim.Math_.imul(s.tmp_1, s.dtSec___90208);
s.tmp_5 = r0;
r0 = (s.tmp_5 >> 8);
s.tmp_0 = r0;
r0 = (s.tmp_0 + 128);
s.tmp_6 = r0;
r0 = (s.tmp_6 >> 8);
- s.MAX_STEP_COUNT___30256 = (r0);
- s.tmp_0 = helpers_arraySlice__P109_mk(s);
- r0 = s.scene___30219.fields["overlapHandlers"];
+ s.MAX_STEP_COUNT___90253 = (r0);
+ s.tmp_0 = helpers_arraySlice__P60104_mk(s);
+ r0 = s.scene___90216.fields["overlapHandlers"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = undefined;
s.tmp_0.arg2 = undefined;
s.callLocIdx = 532; s.pc = 53; return s.tmp_0;
case 53:
r0 = s.retval;
- s.overlapHandlers___30267 = (r0);
- s.selected___30274 = (0);
+ s.overlapHandlers___90264 = (r0);
+ s.selected___90271 = (0);
r0 = pxsim_Array__mk();
s.tmp_0 = r0;
- r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___30225);
+ r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___90222);
r0 = pxsim_Array__mk();
s.tmp_1 = r0;
r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
- s.buffers___30275 = (s.tmp_0);
- s.count___30279 = (0);
+ s.buffers___90272 = (s.tmp_0);
+ s.count___90276 = (0);
case 1:
- r0 = (s.count___30279 < s.MAX_STEP_COUNT___30256);
+ r0 = (s.count___90276 < s.MAX_STEP_COUNT___90253);
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___30275, s.selected___30274);
+ r0 = pxsim_Array__getAt(s.buffers___90272, s.selected___90271);
s.tmp_2 = r0;
r0 = pxsim_Array__length(s.tmp_2);
s.tmp_1 = r0;
@@ -76705,43 +75852,43 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 46; continue; }
- r0 = pxsim_Array__getAt(s.buffers___30275, s.selected___30274);
- s.currMovers___30289 = (r0);
- r0 = (s.selected___30274 ^ 1);
- s.selected___30274 = (r0);
- r0 = pxsim_Array__getAt(s.buffers___30275, s.selected___30274);
- s.remainingMovers___30296 = (r0);
- s.ms___30301 = (undefined);
- s.unnamed62___U14 = (s.currMovers___30289);
- s.unnamed63___U15 = (0);
+ r0 = pxsim_Array__getAt(s.buffers___90272, s.selected___90271);
+ s.currMovers___90286 = (r0);
+ r0 = (s.selected___90271 ^ 1);
+ s.selected___90271 = (r0);
+ r0 = pxsim_Array__getAt(s.buffers___90272, s.selected___90271);
+ s.remainingMovers___90293 = (r0);
+ s.ms___90298 = (undefined);
+ s.unnamed142___U14 = (s.currMovers___90286);
+ s.unnamed143___U15 = (0);
case 4:
- s.tmp_0 = r0 = s.unnamed63___U15;
- r0 = pxsim_Array__length(s.unnamed62___U14);
+ s.tmp_0 = r0 = s.unnamed143___U15;
+ r0 = pxsim_Array__length(s.unnamed142___U14);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 43; continue; }
- r0 = pxsim_Array__getAt(s.unnamed62___U14, s.unnamed63___U15);
- s.ms___30301 = (r0);
- r0 = s.ms___30301.fields["sprite"];
- s.s___30303 = (r0);
- r0 = s.ms___30301.fields["cachedVx"];
+ r0 = pxsim_Array__getAt(s.unnamed142___U14, s.unnamed143___U15);
+ s.ms___90298 = (r0);
+ r0 = s.ms___90298.fields["sprite"];
+ s.s___90300 = (r0);
+ r0 = s.ms___90298.fields["cachedVx"];
s.tmp_1 = r0;
- r0 = s.s___30303.fields["_vx"];
+ r0 = s.s___90300.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___30303.fields["_vx"];
+ r0 = s.s___90300.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___30301).fields["dx"] = (0);
+ r0 = (s.ms___90298).fields["dx"] = (0);
{ step = 14; continue; }
case 5:
- r0 = s.s___30303.fields["_vx"];
+ r0 = s.s___90300.fields["_vx"];
s.tmp_1 = r0;
r0 = (s.tmp_1 < 0);
s.tmp_0 = r0;
@@ -76750,7 +75897,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 7; continue; }
case 6:
- r0 = s.ms___30301.fields["cachedVx"];
+ r0 = s.ms___90298.fields["cachedVx"];
s.tmp_2 = r0;
r0 = (s.tmp_2 > 0);
case 7:
@@ -76761,7 +75908,7 @@ switch (step) {
r0 = s.tmp_3;
{ step = 11; continue; }
case 8:
- r0 = s.s___30303.fields["_vx"];
+ r0 = s.s___90300.fields["_vx"];
s.tmp_5 = r0;
r0 = (s.tmp_5 > 0);
s.tmp_4 = r0;
@@ -76770,7 +75917,7 @@ switch (step) {
r0 = s.tmp_4;
{ step = 10; continue; }
case 9:
- r0 = s.ms___30301.fields["cachedVx"];
+ r0 = s.ms___90298.fields["cachedVx"];
s.tmp_6 = r0;
r0 = (s.tmp_6 < 0);
case 10:
@@ -76782,14 +75929,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___30301;
- r0 = s.ms___30301.fields["dx"];
+ s.tmp_9 = r0 = s.ms___90298;
+ r0 = s.ms___90298.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___30301;
- r0 = s.ms___30301.fields["xStep"];
+ s.tmp_0 = r0 = s.ms___90298;
+ r0 = s.ms___90298.fields["xStep"];
s.tmp_2 = r0;
r0 = (0 - s.tmp_2);
s.tmp_1 = r0;
@@ -76797,29 +75944,29 @@ switch (step) {
case 12:
case 13:
case 14:
- r0 = s.s___30303.fields["_vx"];
+ r0 = s.s___90300.fields["_vx"];
s.tmp_0 = r0;
- r0 = (s.ms___30301).fields["cachedVx"] = (s.tmp_0);
+ r0 = (s.ms___90298).fields["cachedVx"] = (s.tmp_0);
case 15:
case 16:
- r0 = s.ms___30301.fields["cachedVy"];
+ r0 = s.ms___90298.fields["cachedVy"];
s.tmp_1 = r0;
- r0 = s.s___30303.fields["_vy"];
+ r0 = s.s___90300.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___30303.fields["_vy"];
+ r0 = s.s___90300.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___30301).fields["dy"] = (0);
+ r0 = (s.ms___90298).fields["dy"] = (0);
{ step = 26; continue; }
case 17:
- r0 = s.s___30303.fields["_vy"];
+ r0 = s.s___90300.fields["_vy"];
s.tmp_1 = r0;
r0 = (s.tmp_1 < 0);
s.tmp_0 = r0;
@@ -76828,7 +75975,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 19; continue; }
case 18:
- r0 = s.ms___30301.fields["cachedVy"];
+ r0 = s.ms___90298.fields["cachedVy"];
s.tmp_2 = r0;
r0 = (s.tmp_2 > 0);
case 19:
@@ -76839,7 +75986,7 @@ switch (step) {
r0 = s.tmp_3;
{ step = 23; continue; }
case 20:
- r0 = s.s___30303.fields["_vy"];
+ r0 = s.s___90300.fields["_vy"];
s.tmp_5 = r0;
r0 = (s.tmp_5 > 0);
s.tmp_4 = r0;
@@ -76848,7 +75995,7 @@ switch (step) {
r0 = s.tmp_4;
{ step = 22; continue; }
case 21:
- r0 = s.ms___30301.fields["cachedVy"];
+ r0 = s.ms___90298.fields["cachedVy"];
s.tmp_6 = r0;
r0 = (s.tmp_6 < 0);
case 22:
@@ -76860,14 +76007,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___30301;
- r0 = s.ms___30301.fields["dy"];
+ s.tmp_9 = r0 = s.ms___90298;
+ r0 = s.ms___90298.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___30301;
- r0 = s.ms___30301.fields["yStep"];
+ s.tmp_0 = r0 = s.ms___90298;
+ r0 = s.ms___90298.fields["yStep"];
s.tmp_2 = r0;
r0 = (0 - s.tmp_2);
s.tmp_1 = r0;
@@ -76875,20 +76022,20 @@ switch (step) {
case 24:
case 25:
case 26:
- r0 = s.s___30303.fields["_vy"];
+ r0 = s.s___90300.fields["_vy"];
s.tmp_0 = r0;
- r0 = (s.ms___30301).fields["cachedVy"] = (s.tmp_0);
+ r0 = (s.ms___90298).fields["cachedVy"] = (s.tmp_0);
case 27:
case 28:
- s.tmp_2 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["xStep"];
+ s.tmp_2 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["xStep"];
s.tmp_2.arg0 = r0;
s.callLocIdx = 537; s.pc = 54; return s.tmp_2;
case 54:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_4 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["dx"];
+ s.tmp_4 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["dx"];
s.tmp_4.arg0 = r0;
s.callLocIdx = 538; s.pc = 55; return s.tmp_4;
case 55:
@@ -76898,23 +76045,23 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 29; continue; }
- r0 = s.ms___30301.fields["dx"];
+ r0 = s.ms___90298.fields["dx"];
{ step = 30; continue; }
case 29:
- r0 = s.ms___30301.fields["xStep"];
+ r0 = s.ms___90298.fields["xStep"];
case 30:
// jmp value (already in r0)
s.tmp_5 = r0;
- s.stepX___30396 = (s.tmp_5);
- s.tmp_2 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["yStep"];
+ s.stepX___90393 = (s.tmp_5);
+ s.tmp_2 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["yStep"];
s.tmp_2.arg0 = r0;
s.callLocIdx = 539; s.pc = 56; return s.tmp_2;
case 56:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_4 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["dy"];
+ s.tmp_4 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["dy"];
s.tmp_4.arg0 = r0;
s.callLocIdx = 540; s.pc = 57; return s.tmp_4;
case 57:
@@ -76924,45 +76071,45 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 31; continue; }
- r0 = s.ms___30301.fields["dy"];
+ r0 = s.ms___90298.fields["dy"];
{ step = 32; continue; }
case 31:
- r0 = s.ms___30301.fields["yStep"];
+ r0 = s.ms___90298.fields["yStep"];
case 32:
// jmp value (already in r0)
s.tmp_5 = r0;
- s.stepY___30410 = (s.tmp_5);
- s.tmp_0 = r0 = s.ms___30301;
- r0 = s.ms___30301.fields["dx"];
+ s.stepY___90407 = (s.tmp_5);
+ s.tmp_0 = r0 = s.ms___90298;
+ r0 = s.ms___90298.fields["dx"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.stepX___30396);
+ r0 = (s.tmp_2 - s.stepX___90393);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["dx"] = (s.tmp_1);
- s.tmp_0 = r0 = s.ms___30301;
- r0 = s.ms___30301.fields["dy"];
+ s.tmp_0 = r0 = s.ms___90298;
+ r0 = s.ms___90298.fields["dy"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 - s.stepY___30410);
+ r0 = (s.tmp_2 - s.stepY___90407);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["dy"] = (s.tmp_1);
- r0 = s.s___30303.fields["_x"];
+ r0 = s.s___90300.fields["_x"];
s.tmp_0 = r0;
- r0 = (s.s___30303).fields["_lastX"] = (s.tmp_0);
- r0 = s.s___30303.fields["_y"];
+ r0 = (s.s___90300).fields["_lastX"] = (s.tmp_0);
+ r0 = s.s___90300.fields["_y"];
s.tmp_0 = r0;
- r0 = (s.s___30303).fields["_lastY"] = (s.tmp_0);
- s.tmp_0 = r0 = s.s___30303;
- r0 = s.s___30303.fields["_x"];
+ r0 = (s.s___90300).fields["_lastY"] = (s.tmp_0);
+ s.tmp_0 = r0 = s.s___90300;
+ r0 = s.s___90300.fields["_x"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.stepX___30396);
+ r0 = (s.tmp_2 + s.stepX___90393);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["_x"] = (s.tmp_1);
- s.tmp_0 = r0 = s.s___30303;
- r0 = s.s___30303.fields["_y"];
+ s.tmp_0 = r0 = s.s___90300;
+ r0 = s.s___90300.fields["_y"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.stepY___30410);
+ r0 = (s.tmp_2 + s.stepY___90407);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["_y"] = (s.tmp_1);
- r0 = s.s___30303.fields["flags"];
+ r0 = s.s___90300.fields["flags"];
s.tmp_3 = r0;
r0 = (s.tmp_3 & 515);
s.tmp_2 = r0;
@@ -76972,22 +76119,22 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 37; continue; }
- s.tmp_4 = sprites_SpriteMap_insertAABB__P2098_mk(s);
+ s.tmp_4 = sprites_SpriteMap_insertAABB__P62093_mk(s);
r0 = s.arg0.fields["map"];
s.tmp_4.arg0 = r0;
- s.tmp_4.arg1 = s.s___30303;
+ s.tmp_4.arg1 = s.s___90300;
s.callLocIdx = 545; s.pc = 58; return s.tmp_4;
case 58:
r0 = s.retval;
- s.tmp_0 = r0 = s.tileMap___30222;
+ s.tmp_0 = r0 = s.tileMap___90219;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 33; continue; }
r0 = s.tmp_0;
{ step = 34; continue; }
case 33:
- s.tmp_1 = tiles_TileMap__C2314_v6_1_mk(s);
- s.tmp_1.arg0 = s.tileMap___30222;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ s.tmp_1 = tiles_TileMap__C62309_v6_1_mk(s);
+ s.tmp_1.arg0 = s.tileMap___90219;
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled;
s.pc = 59; return s.tmp_1;
case 59:
@@ -76997,10 +76144,10 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 35; continue; }
- s.tmp_3 = ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s);
+ s.tmp_3 = ArcadePhysicsEngine_tilemapCollisions__P64149_mk(s);
s.tmp_3.arg0 = s.arg0;
- s.tmp_3.arg1 = s.ms___30301;
- s.tmp_3.arg2 = s.tileMap___30222;
+ s.tmp_3.arg1 = s.ms___90298;
+ s.tmp_3.arg2 = s.tileMap___90219;
s.callLocIdx = 546; s.pc = 60; return s.tmp_3;
case 60:
r0 = s.retval;
@@ -77008,70 +76155,70 @@ switch (step) {
case 36:
case 37:
case 38:
- s.tmp_2 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["dx"];
+ s.tmp_2 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["dx"];
s.tmp_2.arg0 = r0;
s.callLocIdx = 547; s.pc = 61; return s.tmp_2;
case 61:
r0 = s.retval;
s.tmp_1 = r0;
- r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___2167);
+ r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___62162);
s.tmp_0 = r0;
r0 = pxsim_numops_toBool(s.tmp_0);
if (!r0) { step = 39; continue; }
r0 = s.tmp_0;
{ step = 40; continue; }
case 39:
- s.tmp_4 = Fx_abs__P157_mk(s);
- r0 = s.ms___30301.fields["dy"];
+ s.tmp_4 = Fx_abs__P60152_mk(s);
+ r0 = s.ms___90298.fields["dy"];
s.tmp_4.arg0 = r0;
s.callLocIdx = 548; s.pc = 62; return s.tmp_4;
case 62:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___2167);
+ r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___62162);
case 40:
// jmp value (already in r0)
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 41; continue; }
- r0 = pxsim_Array__push(s.remainingMovers___30296, s.ms___30301);
+ r0 = pxsim_Array__push(s.remainingMovers___90293, s.ms___90298);
case 41:
case 42:
- r0 = (s.unnamed63___U15 + 1);
- s.unnamed63___U15 = (r0);
+ r0 = (s.unnamed143___U15 + 1);
+ s.unnamed143___U15 = (r0);
{ step = 4; continue; }
case 43:
- s.unnamed62___U14 = (undefined);
- s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P4151_mk(s);
+ s.unnamed142___U14 = (undefined);
+ s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P64148_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.currMovers___30289;
- s.tmp_0.arg2 = s.overlapHandlers___30267;
+ s.tmp_0.arg1 = s.currMovers___90286;
+ s.tmp_0.arg2 = s.overlapHandlers___90264;
s.callLocIdx = 549; s.pc = 63; return s.tmp_0;
case 63:
r0 = s.retval;
case 44:
- r0 = pxsim_Array__length(s.currMovers___30289);
+ r0 = pxsim_Array__length(s.currMovers___90286);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 45; continue; }
- r0 = pxsim_Array_.pop(s.currMovers___30289);
+ r0 = pxsim_Array_.pop(s.currMovers___90286);
{ step = 44; continue; }
case 45:
- r0 = (s.count___30279 + 1);
- s.count___30279 = (r0);
+ r0 = (s.count___90276 + 1);
+ s.count___90276 = (r0);
{ step = 1; continue; }
case 46:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_move__P2182.info = {"start":2551,"length":3932,"line":109,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]}
+ArcadePhysicsEngine_move__P62177.info = {"start":2551,"length":3932,"line":109,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]}
-function ArcadePhysicsEngine_move__P2182_mk(s) {
+function ArcadePhysicsEngine_move__P62177_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_move__P2182, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_move__P62177, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77085,25 +76232,25 @@ function ArcadePhysicsEngine_move__P2182_mk(s) {
tmp_9: undefined,
tmp_10: undefined,
tmp_11: undefined,
- dtf___30204: undefined,
- dtSec___30211: undefined,
- dt2___30215: undefined,
- scene___30219: undefined,
- tileMap___30222: undefined,
- movingSprites___30225: undefined,
- MAX_STEP_COUNT___30256: undefined,
- overlapHandlers___30267: undefined,
- selected___30274: undefined,
- buffers___30275: undefined,
- count___30279: undefined,
- currMovers___30289: undefined,
- remainingMovers___30296: undefined,
- ms___30301: undefined,
- unnamed62___U14: undefined,
- unnamed63___U15: undefined,
- s___30303: undefined,
- stepX___30396: undefined,
- stepY___30410: undefined,
+ dtf___90201: undefined,
+ dtSec___90208: undefined,
+ dt2___90212: undefined,
+ scene___90216: undefined,
+ tileMap___90219: undefined,
+ movingSprites___90222: undefined,
+ MAX_STEP_COUNT___90253: undefined,
+ overlapHandlers___90264: undefined,
+ selected___90271: undefined,
+ buffers___90272: undefined,
+ count___90276: undefined,
+ currMovers___90286: undefined,
+ remainingMovers___90293: undefined,
+ ms___90298: undefined,
+ unnamed142___U14: undefined,
+ unnamed143___U15: undefined,
+ s___90300: undefined,
+ stepX___90393: undefined,
+ stepY___90407: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -77112,7 +76259,7 @@ function ArcadePhysicsEngine_move__P2182_mk(s) {
-function inline__P30227(s) {
+function inline__P90224(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77126,7 +76273,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P4150_mk(s);
+ s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P64147_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.tmp_0.arg1 = s.arg0;
s.tmp_0.arg2 = s.caps[1];
@@ -77137,12 +76284,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30227.info = {"start":2985,"length":53,"line":122,"column":17,"endLine":122,"endColumn":70,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]}
+inline__P90224.info = {"start":2985,"length":53,"line":122,"column":17,"endLine":122,"endColumn":70,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]}
-function inline__P30227_mk(s) {
+function inline__P90224_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30227, depth: s.depth + 1,
+ parent: s, fn: inline__P90224, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -77152,7 +76299,7 @@ function inline__P30227_mk(s) {
-function inline__P30239(s) {
+function inline__P90236(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77166,7 +76313,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_1 = Sprite_vx__P2026_mk(s);
+ s.tmp_1 = Sprite_vx__P62021_mk(s);
s.tmp_1.arg0 = s.arg0;
s.callLocIdx = 523; s.pc = 5; return s.tmp_1;
case 5:
@@ -77177,7 +76324,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 2; continue; }
case 1:
- s.tmp_2 = Sprite_vy__P2028_mk(s);
+ s.tmp_2 = Sprite_vy__P62023_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 524; s.pc = 6; return s.tmp_2;
case 6:
@@ -77187,7 +76334,7 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 3; continue; }
- s.tmp_4 = Sprite_clearObstacles__P2081_mk(s);
+ s.tmp_4 = Sprite_clearObstacles__P62076_mk(s);
s.tmp_4.arg0 = s.arg0;
s.callLocIdx = 525; s.pc = 7; return s.tmp_4;
case 7:
@@ -77198,12 +76345,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30239.info = {"start":3121,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]}
+inline__P90236.info = {"start":3121,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]}
-function inline__P30239_mk(s) {
+function inline__P90236_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30239, depth: s.depth + 1,
+ parent: s, fn: inline__P90236, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77217,7 +76364,7 @@ function inline__P30239_mk(s) {
-function ArcadePhysicsEngine_spriteCollisions__P4151(s) {
+function ArcadePhysicsEngine_spriteCollisions__P64148(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77227,18 +76374,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ms___30511 = undefined;
- s.unnamed64___U1 = undefined;
- s.unnamed65___U2 = undefined;
- s.sprite___30513 = undefined;
- s.overSprites___30520 = undefined;
- s.overlapper___30528 = undefined;
- s.unnamed66___U6 = undefined;
- s.unnamed67___U7 = undefined;
- s.thisKind___30534 = undefined;
- s.otherKind___30538 = undefined;
- s.higher___30551 = undefined;
- s.lower___30560 = undefined;
+ s.ms___90508 = undefined;
+ s.unnamed144___U1 = undefined;
+ s.unnamed145___U2 = undefined;
+ s.sprite___90510 = undefined;
+ s.overSprites___90517 = undefined;
+ s.overlapper___90525 = undefined;
+ s.unnamed146___U6 = undefined;
+ s.unnamed147___U7 = undefined;
+ s.thisKind___90531 = undefined;
+ s.otherKind___90535 = undefined;
+ s.higher___90548 = undefined;
+ s.lower___90557 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -77246,7 +76393,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = pxsim_Array__length(s.arg2);
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
@@ -77258,20 +76405,20 @@ switch (step) {
{ step = 21; continue; }
case 1:
case 2:
- s.ms___30511 = (undefined);
- s.unnamed64___U1 = (s.arg1);
- s.unnamed65___U2 = (0);
+ s.ms___90508 = (undefined);
+ s.unnamed144___U1 = (s.arg1);
+ s.unnamed145___U2 = (0);
case 3:
- s.tmp_0 = r0 = s.unnamed65___U2;
- r0 = pxsim_Array__length(s.unnamed64___U1);
+ s.tmp_0 = r0 = s.unnamed145___U2;
+ r0 = pxsim_Array__length(s.unnamed144___U1);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 20; continue; }
- r0 = pxsim_Array__getAt(s.unnamed64___U1, s.unnamed65___U2);
- s.ms___30511 = (r0);
- r0 = s.ms___30511.fields["sprite"];
- s.sprite___30513 = (r0);
- r0 = s.sprite___30513.fields["flags"];
+ r0 = pxsim_Array__getAt(s.unnamed144___U1, s.unnamed145___U2);
+ s.ms___90508 = (r0);
+ r0 = s.ms___90508.fields["sprite"];
+ s.sprite___90510 = (r0);
+ r0 = s.sprite___90510.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 515);
s.tmp_0 = r0;
@@ -77280,27 +76427,27 @@ switch (step) {
{ step = 19; continue; }
case 4:
case 5:
- s.tmp_2 = sprites_SpriteMap_overlaps__P2094_mk(s);
+ s.tmp_2 = sprites_SpriteMap_overlaps__P62089_mk(s);
r0 = s.arg0.fields["map"];
s.tmp_2.arg0 = r0;
- r0 = s.ms___30511.fields["sprite"];
+ r0 = s.ms___90508.fields["sprite"];
s.tmp_2.arg1 = r0;
s.callLocIdx = 583; s.pc = 22; return s.tmp_2;
case 22:
r0 = s.retval;
- s.overSprites___30520 = (r0);
- s.overlapper___30528 = (undefined);
- s.unnamed66___U6 = (s.overSprites___30520);
- s.unnamed67___U7 = (0);
+ s.overSprites___90517 = (r0);
+ s.overlapper___90525 = (undefined);
+ s.unnamed146___U6 = (s.overSprites___90517);
+ s.unnamed147___U7 = (0);
case 6:
- s.tmp_0 = r0 = s.unnamed67___U7;
- r0 = pxsim_Array__length(s.unnamed66___U6);
+ s.tmp_0 = r0 = s.unnamed147___U7;
+ r0 = pxsim_Array__length(s.unnamed146___U6);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 18; continue; }
- r0 = pxsim_Array__getAt(s.unnamed66___U6, s.unnamed67___U7);
- s.overlapper___30528 = (r0);
- r0 = s.overlapper___30528.fields["flags"];
+ r0 = pxsim_Array__getAt(s.unnamed146___U6, s.unnamed147___U7);
+ s.overlapper___90525 = (r0);
+ r0 = s.overlapper___90525.fields["flags"];
s.tmp_3 = r0;
r0 = (s.tmp_3 & 515);
s.tmp_2 = r0;
@@ -77309,13 +76456,13 @@ switch (step) {
{ step = 17; continue; }
case 7:
case 8:
- r0 = s.sprite___30513.fields["_kind"];
- s.thisKind___30534 = (r0);
- r0 = s.overlapper___30528.fields["_kind"];
- s.otherKind___30538 = (r0);
- r0 = s.sprite___30513.fields["_kindsOverlappedWith"];
+ r0 = s.sprite___90510.fields["_kind"];
+ s.thisKind___90531 = (r0);
+ r0 = s.overlapper___90525.fields["_kind"];
+ s.otherKind___90535 = (r0);
+ r0 = s.sprite___90510.fields["_kindsOverlappedWith"];
s.tmp_2 = r0;
- r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___30538, undefined);
+ r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___90535, undefined);
s.tmp_1 = r0;
r0 = (s.tmp_1 === -1);
s.tmp_0 = r0;
@@ -77324,37 +76471,37 @@ switch (step) {
{ step = 17; continue; }
case 9:
case 10:
- r0 = s.sprite___30513.fields["id"];
+ r0 = s.sprite___90510.fields["id"];
s.tmp_4 = r0;
- r0 = s.overlapper___30528.fields["id"];
+ r0 = s.overlapper___90525.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___30513;
+ r0 = s.sprite___90510;
{ step = 12; continue; }
case 11:
- r0 = s.overlapper___30528;
+ r0 = s.overlapper___90525;
case 12:
// jmp value (already in r0)
s.tmp_6 = r0;
- s.higher___30551 = (s.tmp_6);
- r0 = (s.higher___30551 === s.sprite___30513);
+ s.higher___90548 = (s.tmp_6);
+ r0 = (s.higher___90548 === s.sprite___90510);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 13; continue; }
- r0 = s.overlapper___30528;
+ r0 = s.overlapper___90525;
{ step = 14; continue; }
case 13:
- r0 = s.sprite___30513;
+ r0 = s.sprite___90510;
case 14:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.lower___30560 = (s.tmp_1);
- r0 = s.higher___30551.fields["_overlappers"];
+ s.lower___90557 = (s.tmp_1);
+ r0 = s.higher___90548.fields["_overlappers"];
s.tmp_2 = r0;
- r0 = s.lower___30560.fields["id"];
+ r0 = s.lower___90557.fields["id"];
s.tmp_3 = r0;
r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined);
s.tmp_1 = r0;
@@ -77362,19 +76509,19 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 15; continue; }
- r0 = pxsim_pxtcore_mkAction(2, inline__P30580);
+ r0 = pxsim_pxtcore_mkAction(2, inline__P90577);
s.tmp_4 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___30534);
- r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___30538);
- r0 = pxsim_pxtcore_mkAction(5, inline__P30604);
+ r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___90531);
+ r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___90535);
+ r0 = pxsim_pxtcore_mkAction(5, inline__P90601);
s.tmp_5 = r0;
- r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___30551);
- r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___30560);
- r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___30513);
- r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___30528);
- r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___30534);
- s.tmp_6 = helpers_arrayForEach__P104_mk(s);
- s.tmp_7 = helpers_arrayFilter__P105_mk(s);
+ r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___90548);
+ r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___90557);
+ r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___90510);
+ r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___90525);
+ r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___90531);
+ s.tmp_6 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_7 = helpers_arrayFilter__P60100_mk(s);
s.tmp_7.arg0 = s.arg2;
s.tmp_7.arg1 = s.tmp_4;
s.callLocIdx = 586; s.pc = 24; return s.tmp_7;
@@ -77388,28 +76535,28 @@ switch (step) {
case 15:
case 16:
case 17:
- r0 = (s.unnamed67___U7 + 1);
- s.unnamed67___U7 = (r0);
+ r0 = (s.unnamed147___U7 + 1);
+ s.unnamed147___U7 = (r0);
{ step = 6; continue; }
case 18:
- s.unnamed66___U6 = (undefined);
+ s.unnamed146___U6 = (undefined);
case 19:
- r0 = (s.unnamed65___U2 + 1);
- s.unnamed65___U2 = (r0);
+ r0 = (s.unnamed145___U2 + 1);
+ s.unnamed145___U2 = (r0);
{ step = 3; continue; }
case 20:
- s.unnamed64___U1 = (undefined);
+ s.unnamed144___U1 = (undefined);
case 21:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_spriteCollisions__P4151.info = {"start":9157,"length":2254,"line":304,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]}
+ArcadePhysicsEngine_spriteCollisions__P64148.info = {"start":9157,"length":2254,"line":304,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]}
-function ArcadePhysicsEngine_spriteCollisions__P4151_mk(s) {
+function ArcadePhysicsEngine_spriteCollisions__P64148_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P4151, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P64148, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77419,18 +76566,18 @@ function ArcadePhysicsEngine_spriteCollisions__P4151_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- ms___30511: undefined,
- unnamed64___U1: undefined,
- unnamed65___U2: undefined,
- sprite___30513: undefined,
- overSprites___30520: undefined,
- overlapper___30528: undefined,
- unnamed66___U6: undefined,
- unnamed67___U7: undefined,
- thisKind___30534: undefined,
- otherKind___30538: undefined,
- higher___30551: undefined,
- lower___30560: undefined,
+ ms___90508: undefined,
+ unnamed144___U1: undefined,
+ unnamed145___U2: undefined,
+ sprite___90510: undefined,
+ overSprites___90517: undefined,
+ overlapper___90525: undefined,
+ unnamed146___U6: undefined,
+ unnamed147___U7: undefined,
+ thisKind___90531: undefined,
+ otherKind___90535: undefined,
+ higher___90548: undefined,
+ lower___90557: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -77440,7 +76587,7 @@ function ArcadePhysicsEngine_spriteCollisions__P4151_mk(s) {
-function inline__P30580(s) {
+function inline__P90577(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77497,12 +76644,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30580.info = {"start":10516,"length":137,"line":330,"column":32,"endLine":331,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90577.info = {"start":10516,"length":137,"line":330,"column":32,"endLine":331,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30580_mk(s) {
+function inline__P90577_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30580, depth: s.depth + 1,
+ parent: s, fn: inline__P90577, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77520,7 +76667,7 @@ function inline__P30580_mk(s) {
-function inline__P30604(s) {
+function inline__P90601(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77539,7 +76686,7 @@ switch (step) {
r0 = s.caps[1].fields["id"];
s.tmp_1 = r0;
r0 = pxsim_Array__push(s.tmp_0, s.tmp_1);
- r0 = pxsim_pxtcore_mkAction(6, inline__P30614);
+ r0 = pxsim_pxtcore_mkAction(6, inline__P90611);
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]);
@@ -77552,12 +76699,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30604.info = {"start":10713,"length":648,"line":333,"column":33,"endLine":344,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
+inline__P90601.info = {"start":10713,"length":648,"line":333,"column":33,"endLine":344,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]}
-function inline__P30604_mk(s) {
+function inline__P90601_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30604, depth: s.depth + 1,
+ parent: s, fn: inline__P90601, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77568,7 +76715,7 @@ function inline__P30604_mk(s) {
-function inline__P30614(s) {
+function inline__P90611(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77644,12 +76791,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30614.info = {"start":10834,"length":499,"line":335,"column":50,"endLine":343,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]}
+inline__P90611.info = {"start":10834,"length":499,"line":335,"column":50,"endLine":343,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]}
-function inline__P30614_mk(s) {
+function inline__P90611_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30614, depth: s.depth + 1,
+ parent: s, fn: inline__P90611, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77670,7 +76817,7 @@ function inline__P30614_mk(s) {
-function sprites_SpriteMap_overlaps__P2094(s) {
+function sprites_SpriteMap_overlaps__P62089(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77680,47 +76827,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.n___30648 = undefined;
- s.o___30652 = undefined;
+ s.n___90645 = undefined;
+ s.o___90649 = 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__C2091_VT)) failedCast(r0);
- s.tmp_0 = sprites_SpriteMap_neighbors__P2093_mk(s);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = sprites_SpriteMap_neighbors__P62088_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.callLocIdx = 466; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.n___30648 = (r0);
- r0 = pxsim_pxtcore_mkAction(1, inline__P30654);
+ s.n___90645 = (r0);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P90651);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1);
- s.tmp_1 = helpers_arrayFilter__P105_mk(s);
- s.tmp_1.arg0 = s.n___30648;
+ s.tmp_1 = helpers_arrayFilter__P60100_mk(s);
+ s.tmp_1.arg0 = s.n___90645;
s.tmp_1.arg1 = s.tmp_0;
s.callLocIdx = 468; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
- s.o___30652 = (r0);
- r0 = s.o___30652;
+ s.o___90649 = (r0);
+ r0 = s.o___90649;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_overlaps__P2094.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__P62089.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__P2094_mk(s) {
+function sprites_SpriteMap_overlaps__P62089_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_overlaps__P2094, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_overlaps__P62089, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
- n___30648: undefined,
- o___30652: undefined,
+ n___90645: undefined,
+ o___90649: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -77729,7 +76876,7 @@ function sprites_SpriteMap_overlaps__P2094_mk(s) {
-function inline__P30654(s) {
+function inline__P90651(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77743,7 +76890,7 @@ switch (step) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
- s.tmp_0 = Sprite_overlapsWith__P2077_mk(s);
+ s.tmp_0 = Sprite_overlapsWith__P62072_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.tmp_0.arg1 = s.arg0;
s.callLocIdx = 467; s.pc = 1; return s.tmp_0;
@@ -77752,12 +76899,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P30654.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]}
+inline__P90651.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]}
-function inline__P30654_mk(s) {
+function inline__P90651_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P30654, depth: s.depth + 1,
+ parent: s, fn: inline__P90651, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -77767,7 +76914,7 @@ function inline__P30654_mk(s) {
-function sprites_SpriteMap_neighbors__P2093(s) {
+function sprites_SpriteMap_neighbors__P62088(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77777,112 +76924,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.n___30696 = undefined;
- s.layer___30698 = undefined;
+ s.n___90693 = undefined;
+ s.layer___90695 = 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__C2091_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
r0 = pxsim_Array__mk();
- s.n___30696 = (r0);
+ s.n___90693 = (r0);
r0 = s.arg1.fields["layer"];
- s.layer___30698 = (r0);
- s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s);
+ s.layer___90695 = (r0);
+ s.tmp_0 = sprites_SpriteMap_mergeAtKey__P64126_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = Sprite_left__P2059_mk(s);
+ s.tmp_1 = Sprite_left__P62054_mk(s);
s.tmp_1.arg0 = s.arg1;
s.callLocIdx = 454; s.pc = 2; return s.tmp_1;
case 2:
r0 = s.retval;
s.tmp_0.arg1 = r0;
- s.tmp_2 = Sprite_top__P2063_mk(s);
+ s.tmp_2 = Sprite_top__P62058_mk(s);
s.tmp_2.arg0 = s.arg1;
s.callLocIdx = 455; s.pc = 3; return s.tmp_2;
case 3:
r0 = s.retval;
s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.layer___30698;
- s.tmp_0.arg4 = s.n___30696;
+ s.tmp_0.arg3 = s.layer___90695;
+ s.tmp_0.arg4 = s.n___90693;
s.callLocIdx = 456; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s);
+ s.tmp_0 = sprites_SpriteMap_mergeAtKey__P64126_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = Sprite_left__P2059_mk(s);
+ s.tmp_1 = Sprite_left__P62054_mk(s);
s.tmp_1.arg0 = s.arg1;
s.callLocIdx = 457; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
s.tmp_0.arg1 = r0;
- s.tmp_2 = Sprite_bottom__P2065_mk(s);
+ s.tmp_2 = Sprite_bottom__P62060_mk(s);
s.tmp_2.arg0 = s.arg1;
s.callLocIdx = 458; s.pc = 6; return s.tmp_2;
case 6:
r0 = s.retval;
s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.layer___30698;
- s.tmp_0.arg4 = s.n___30696;
+ s.tmp_0.arg3 = s.layer___90695;
+ s.tmp_0.arg4 = s.n___90693;
s.callLocIdx = 459; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
- s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s);
+ s.tmp_0 = sprites_SpriteMap_mergeAtKey__P64126_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = Sprite_right__P2061_mk(s);
+ s.tmp_1 = Sprite_right__P62056_mk(s);
s.tmp_1.arg0 = s.arg1;
s.callLocIdx = 460; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
s.tmp_0.arg1 = r0;
- s.tmp_2 = Sprite_top__P2063_mk(s);
+ s.tmp_2 = Sprite_top__P62058_mk(s);
s.tmp_2.arg0 = s.arg1;
s.callLocIdx = 461; s.pc = 9; return s.tmp_2;
case 9:
r0 = s.retval;
s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.layer___30698;
- s.tmp_0.arg4 = s.n___30696;
+ s.tmp_0.arg3 = s.layer___90695;
+ s.tmp_0.arg4 = s.n___90693;
s.callLocIdx = 462; s.pc = 7; return s.tmp_0;
case 7:
r0 = s.retval;
- s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s);
+ s.tmp_0 = sprites_SpriteMap_mergeAtKey__P64126_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_1 = Sprite_right__P2061_mk(s);
+ s.tmp_1 = Sprite_right__P62056_mk(s);
s.tmp_1.arg0 = s.arg1;
s.callLocIdx = 463; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
s.tmp_0.arg1 = r0;
- s.tmp_2 = Sprite_bottom__P2065_mk(s);
+ s.tmp_2 = Sprite_bottom__P62060_mk(s);
s.tmp_2.arg0 = s.arg1;
s.callLocIdx = 464; s.pc = 12; return s.tmp_2;
case 12:
r0 = s.retval;
s.tmp_0.arg2 = r0;
- s.tmp_0.arg3 = s.layer___30698;
- s.tmp_0.arg4 = s.n___30696;
+ s.tmp_0.arg3 = s.layer___90695;
+ s.tmp_0.arg4 = s.n___90693;
s.callLocIdx = 465; s.pc = 10; return s.tmp_0;
case 10:
r0 = s.retval;
- r0 = pxsim_Array_.removeElement(s.n___30696, s.arg1);
- r0 = s.n___30696;
+ r0 = pxsim_Array_.removeElement(s.n___90693, s.arg1);
+ r0 = s.n___90693;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_neighbors__P2093.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__P62088.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__P2093_mk(s) {
+function sprites_SpriteMap_neighbors__P62088_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_neighbors__P2093, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_neighbors__P62088, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- n___30696: undefined,
- layer___30698: undefined,
+ n___90693: undefined,
+ layer___90695: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -77891,7 +77038,7 @@ function sprites_SpriteMap_neighbors__P2093_mk(s) {
-function sprites_SpriteMap_mergeAtKey__P4129(s) {
+function sprites_SpriteMap_mergeAtKey__P64126(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -77901,11 +77048,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.k___30739 = undefined;
- s.bucket___30744 = undefined;
- s.sprite___30751 = undefined;
- s.unnamed60___U3 = undefined;
- s.unnamed61___U4 = undefined;
+ s.k___90736 = undefined;
+ s.bucket___90741 = undefined;
+ s.sprite___90748 = undefined;
+ s.unnamed140___U3 = undefined;
+ s.unnamed141___U4 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -77915,33 +77062,33 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
- s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = sprites_SpriteMap_key__P64124_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = s.arg2;
s.callLocIdx = 490; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.k___30739 = (r0);
+ s.k___90736 = (r0);
r0 = s.arg0.fields["buckets"];
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.k___30739);
- s.bucket___30744 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.bucket___30744);
+ r0 = pxsim_Array__getAt(s.tmp_0, s.k___90736);
+ s.bucket___90741 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.bucket___90741);
if (!r0) { step = 7; continue; }
- s.sprite___30751 = (undefined);
- s.unnamed60___U3 = (s.bucket___30744);
- s.unnamed61___U4 = (0);
+ s.sprite___90748 = (undefined);
+ s.unnamed140___U3 = (s.bucket___90741);
+ s.unnamed141___U4 = (0);
case 1:
- s.tmp_0 = r0 = s.unnamed61___U4;
- r0 = pxsim_Array__length(s.unnamed60___U3);
+ s.tmp_0 = r0 = s.unnamed141___U4;
+ r0 = pxsim_Array__length(s.unnamed140___U3);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 6; continue; }
- r0 = pxsim_Array__getAt(s.unnamed60___U3, s.unnamed61___U4);
- s.sprite___30751 = (r0);
- r0 = s.sprite___30751.fields["layer"];
+ r0 = pxsim_Array__getAt(s.unnamed140___U3, s.unnamed141___U4);
+ s.sprite___90748 = (r0);
+ r0 = s.sprite___90748.fields["layer"];
s.tmp_3 = r0;
r0 = (s.tmp_3 & s.arg3);
s.tmp_2 = r0;
@@ -77950,7 +77097,7 @@ switch (step) {
r0 = s.tmp_2;
{ step = 3; continue; }
case 2:
- r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___30751, undefined);
+ r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___90748, undefined);
s.tmp_4 = r0;
r0 = (s.tmp_4 < 0);
case 3:
@@ -77958,26 +77105,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___30751);
+ r0 = pxsim_Array__push(s.arg4, s.sprite___90748);
case 4:
case 5:
- r0 = (s.unnamed61___U4 + 1);
- s.unnamed61___U4 = (r0);
+ r0 = (s.unnamed141___U4 + 1);
+ s.unnamed141___U4 = (r0);
{ step = 1; continue; }
case 6:
- s.unnamed60___U3 = (undefined);
+ s.unnamed140___U3 = (undefined);
case 7:
case 8:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_mergeAtKey__P4129.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__P64126.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__P4129_mk(s) {
+function sprites_SpriteMap_mergeAtKey__P64126_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_mergeAtKey__P4129, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_mergeAtKey__P64126, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -77985,11 +77132,11 @@ function sprites_SpriteMap_mergeAtKey__P4129_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- k___30739: undefined,
- bucket___30744: undefined,
- sprite___30751: undefined,
- unnamed60___U3: undefined,
- unnamed61___U4: undefined,
+ k___90736: undefined,
+ bucket___90741: undefined,
+ sprite___90748: undefined,
+ unnamed140___U3: undefined,
+ unnamed141___U4: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -78001,7 +77148,7 @@ function sprites_SpriteMap_mergeAtKey__P4129_mk(s) {
-function sprites_SpriteMap_key__P4127(s) {
+function sprites_SpriteMap_key__P64124(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78011,8 +77158,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.xi___30772 = undefined;
- s.yi___30784 = undefined;
+ s.xi___90769 = undefined;
+ s.yi___90781 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -78020,8 +77167,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 0;
r0 = s.arg0.fields["columnCount"];
s.tmp_0.arg1 = r0;
@@ -78032,8 +77179,8 @@ switch (step) {
s.callLocIdx = 478; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.xi___30772 = (r0);
- s.tmp_0 = Math_clamp__P119_mk(s);
+ s.xi___90769 = (r0);
+ s.tmp_0 = Math_clamp__P60114_mk(s);
s.tmp_0.arg0 = 0;
r0 = s.arg0.fields["rowCount"];
s.tmp_0.arg1 = r0;
@@ -78044,28 +77191,28 @@ switch (step) {
s.callLocIdx = 479; s.pc = 2; return s.tmp_0;
case 2:
r0 = s.retval;
- s.yi___30784 = (r0);
- s.tmp_0 = r0 = s.xi___30772;
+ s.yi___90781 = (r0);
+ s.tmp_0 = r0 = s.xi___90769;
r0 = s.arg0.fields["columnCount"];
s.tmp_2 = r0;
- r0 = (s.yi___30784 * s.tmp_2);
+ r0 = (s.yi___90781 * s.tmp_2);
s.tmp_1 = r0;
r0 = (s.tmp_0 + s.tmp_1);
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_key__P4127.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__P64124.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__P4127_mk(s) {
+function sprites_SpriteMap_key__P64124_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_key__P4127, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_key__P64124, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- xi___30772: undefined,
- yi___30784: undefined,
+ xi___90769: undefined,
+ yi___90781: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -78075,7 +77222,7 @@ function sprites_SpriteMap_key__P4127_mk(s) {
-function Sprite_overlapsWith__P2077(s) {
+function Sprite_overlapsWith__P62072(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78091,7 +77238,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
r0 = (s.arg1 == s.arg0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -78124,13 +77271,13 @@ switch (step) {
s.tmp_5 = r0;
r0 = s.arg0.fields["_image"];
s.tmp_6 = r0;
- s.tmp_9 = Sprite_left__P2059_mk(s);
+ s.tmp_9 = Sprite_left__P62054_mk(s);
s.tmp_9.arg0 = s.arg0;
s.callLocIdx = 417; s.pc = 8; return s.tmp_9;
case 8:
r0 = s.retval;
s.tmp_8 = r0;
- s.tmp_11 = Sprite_left__P2059_mk(s);
+ s.tmp_11 = Sprite_left__P62054_mk(s);
s.tmp_11.arg0 = s.arg1;
s.callLocIdx = 418; s.pc = 9; return s.tmp_11;
case 9:
@@ -78138,13 +77285,13 @@ switch (step) {
s.tmp_10 = r0;
r0 = (s.tmp_8 - s.tmp_10);
s.tmp_7 = r0;
- s.tmp_14 = Sprite_top__P2063_mk(s);
+ s.tmp_14 = Sprite_top__P62058_mk(s);
s.tmp_14.arg0 = s.arg0;
s.callLocIdx = 419; s.pc = 10; return s.tmp_14;
case 10:
r0 = s.retval;
s.tmp_13 = r0;
- s.tmp_16 = Sprite_top__P2063_mk(s);
+ s.tmp_16 = Sprite_top__P62058_mk(s);
s.tmp_16.arg0 = s.arg1;
s.callLocIdx = 420; s.pc = 11; return s.tmp_16;
case 11:
@@ -78157,12 +77304,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite_overlapsWith__P2077.info = {"start":24414,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]}
+Sprite_overlapsWith__P62072.info = {"start":24387,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]}
-function Sprite_overlapsWith__P2077_mk(s) {
+function Sprite_overlapsWith__P62072_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_overlapsWith__P2077, depth: s.depth + 1,
+ parent: s, fn: Sprite_overlapsWith__P62072, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -78189,7 +77336,7 @@ function Sprite_overlapsWith__P2077_mk(s) {
-function ArcadePhysicsEngine_createMovingSprite__P4150(s) {
+function ArcadePhysicsEngine_createMovingSprite__P64147(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78199,16 +77346,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ovx___30986 = undefined;
- s.ovy___30991 = undefined;
- s.fx___31017 = undefined;
- s.c___31023 = undefined;
- s.fy___31065 = undefined;
- s.c___31071 = undefined;
- s.dx___31110 = undefined;
- s.dy___31119 = undefined;
- s.xStep___31128 = undefined;
- s.yStep___31130 = undefined;
+ s.ovx___90983 = undefined;
+ s.ovy___90988 = undefined;
+ s.fx___91014 = undefined;
+ s.c___91020 = undefined;
+ s.fy___91062 = undefined;
+ s.c___91068 = undefined;
+ s.dx___91107 = undefined;
+ s.dy___91116 = undefined;
+ s.xStep___91125 = undefined;
+ s.yStep___91127 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -78217,23 +77364,23 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = ArcadePhysicsEngine_constrain__P4155_mk(s);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = ArcadePhysicsEngine_constrain__P64152_mk(s);
s.tmp_0.arg0 = s.arg0;
r0 = s.arg1.fields["_vx"];
s.tmp_0.arg1 = r0;
s.callLocIdx = 550; s.pc = 25; return s.tmp_0;
case 25:
r0 = s.retval;
- s.ovx___30986 = (r0);
- s.tmp_0 = ArcadePhysicsEngine_constrain__P4155_mk(s);
+ s.ovx___90983 = (r0);
+ s.tmp_0 = ArcadePhysicsEngine_constrain__P64152_mk(s);
s.tmp_0.arg0 = s.arg0;
r0 = s.arg1.fields["_vy"];
s.tmp_0.arg1 = r0;
s.callLocIdx = 551; s.pc = 26; return s.tmp_0;
case 26:
r0 = s.retval;
- s.ovy___30991 = (r0);
+ s.ovy___90988 = (r0);
r0 = s.arg1.fields["_x"];
s.tmp_0 = r0;
r0 = (s.arg1).fields["_lastX"] = (s.tmp_0);
@@ -78267,21 +77414,21 @@ switch (step) {
r0 = pxsim.Math_.imul(s.tmp_1, s.arg2);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.fx___31017 = (r0);
+ s.fx___91014 = (r0);
r0 = s.arg1.fields["_vx"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.fx___31017);
- s.c___31023 = (r0);
- r0 = (s.c___31023 < 0);
+ r0 = (s.tmp_0 - s.fx___91014);
+ s.c___91020 = (r0);
+ r0 = (s.c___91020 < 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__P158_mk(s);
+ s.tmp_3 = Fx_min__P60153_mk(s);
s.tmp_3.arg0 = 0;
r0 = s.arg1.fields["_vx"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 + s.fx___31017);
+ r0 = (s.tmp_4 + s.fx___91014);
s.tmp_3.arg1 = r0;
s.callLocIdx = 557; s.pc = 27; return s.tmp_3;
case 27:
@@ -78290,16 +77437,16 @@ switch (step) {
r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2);
{ step = 5; continue; }
case 2:
- r0 = (s.c___31023 > 0);
+ r0 = (s.c___91020 > 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__P159_mk(s);
+ s.tmp_3 = Fx_max__P60154_mk(s);
s.tmp_3.arg0 = 0;
r0 = s.arg1.fields["_vx"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.fx___31017);
+ r0 = (s.tmp_4 - s.fx___91014);
s.tmp_3.arg1 = r0;
s.callLocIdx = 559; s.pc = 28; return s.tmp_3;
case 28:
@@ -78341,21 +77488,21 @@ switch (step) {
r0 = pxsim.Math_.imul(s.tmp_1, s.arg2);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
- s.fy___31065 = (r0);
+ s.fy___91062 = (r0);
r0 = s.arg1.fields["_vy"];
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.fy___31065);
- s.c___31071 = (r0);
- r0 = (s.c___31071 < 0);
+ r0 = (s.tmp_0 - s.fy___91062);
+ s.c___91068 = (r0);
+ r0 = (s.c___91068 < 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__P158_mk(s);
+ s.tmp_3 = Fx_min__P60153_mk(s);
s.tmp_3.arg0 = 0;
r0 = s.arg1.fields["_vy"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 + s.fy___31065);
+ r0 = (s.tmp_4 + s.fy___91062);
s.tmp_3.arg1 = r0;
s.callLocIdx = 565; s.pc = 29; return s.tmp_3;
case 29:
@@ -78364,16 +77511,16 @@ switch (step) {
r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2);
{ step = 13; continue; }
case 10:
- r0 = (s.c___31071 > 0);
+ r0 = (s.c___91068 > 0);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 11; continue; }
s.tmp_1 = r0 = s.arg1;
- s.tmp_3 = Fx_min__P158_mk(s);
+ s.tmp_3 = Fx_min__P60153_mk(s);
s.tmp_3.arg0 = 0;
r0 = s.arg1.fields["_vy"];
s.tmp_4 = r0;
- r0 = (s.tmp_4 - s.fy___31065);
+ r0 = (s.tmp_4 - s.fy___91062);
s.tmp_3.arg1 = r0;
s.callLocIdx = 567; s.pc = 30; return s.tmp_3;
case 30:
@@ -78389,7 +77536,7 @@ switch (step) {
case 15:
case 16:
s.tmp_0 = r0 = s.arg1;
- s.tmp_2 = ArcadePhysicsEngine_constrain__P4155_mk(s);
+ s.tmp_2 = ArcadePhysicsEngine_constrain__P64152_mk(s);
s.tmp_2.arg0 = s.arg0;
r0 = s.arg1.fields["_vx"];
s.tmp_2.arg1 = r0;
@@ -78399,7 +77546,7 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1);
s.tmp_0 = r0 = s.arg1;
- s.tmp_2 = ArcadePhysicsEngine_constrain__P4155_mk(s);
+ s.tmp_2 = ArcadePhysicsEngine_constrain__P64152_mk(s);
s.tmp_2.arg0 = s.arg0;
r0 = s.arg1.fields["_vy"];
s.tmp_2.arg1 = r0;
@@ -78410,29 +77557,29 @@ switch (step) {
r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1);
r0 = s.arg1.fields["_vx"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.ovx___30986);
+ r0 = (s.tmp_2 + s.ovx___90983);
s.tmp_1 = r0;
r0 = pxsim.Math_.imul(s.tmp_1, s.arg3);
s.tmp_3 = r0;
r0 = (s.tmp_3 >> 8);
s.tmp_0 = r0;
r0 = pxsim.Math_.idiv(s.tmp_0, 1000);
- s.dx___31110 = (r0);
+ s.dx___91107 = (r0);
r0 = s.arg1.fields["_vy"];
s.tmp_2 = r0;
- r0 = (s.tmp_2 + s.ovy___30991);
+ r0 = (s.tmp_2 + s.ovy___90988);
s.tmp_1 = r0;
r0 = pxsim.Math_.imul(s.tmp_1, s.arg3);
s.tmp_3 = r0;
r0 = (s.tmp_3 >> 8);
s.tmp_0 = r0;
r0 = pxsim.Math_.idiv(s.tmp_0, 1000);
- s.dy___31119 = (r0);
- s.xStep___31128 = (s.dx___31110);
- s.yStep___31130 = (s.dy___31119);
+ s.dy___91116 = (r0);
+ s.xStep___91125 = (s.dx___91107);
+ s.yStep___91127 = (s.dy___91116);
case 17:
- s.tmp_2 = Fx_abs__P157_mk(s);
- s.tmp_2.arg0 = s.xStep___31128;
+ s.tmp_2 = Fx_abs__P60152_mk(s);
+ s.tmp_2.arg0 = s.xStep___91125;
s.callLocIdx = 576; s.pc = 33; return s.tmp_2;
case 33:
r0 = s.retval;
@@ -78446,8 +77593,8 @@ switch (step) {
r0 = s.tmp_0;
{ step = 19; continue; }
case 18:
- s.tmp_5 = Fx_abs__P157_mk(s);
- s.tmp_5.arg0 = s.yStep___31130;
+ s.tmp_5 = Fx_abs__P60152_mk(s);
+ s.tmp_5.arg0 = s.yStep___91127;
s.callLocIdx = 577; s.pc = 34; return s.tmp_5;
case 34:
r0 = s.retval;
@@ -78460,8 +77607,8 @@ switch (step) {
s.tmp_7 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_7);
if (!r0) { step = 24; continue; }
- s.tmp_10 = Fx_abs__P157_mk(s);
- s.tmp_10.arg0 = s.xStep___31128;
+ s.tmp_10 = Fx_abs__P60152_mk(s);
+ s.tmp_10.arg0 = s.xStep___91125;
s.callLocIdx = 578; s.pc = 35; return s.tmp_10;
case 35:
r0 = s.retval;
@@ -78472,12 +77619,12 @@ switch (step) {
s.tmp_8 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_8);
if (!r0) { step = 20; continue; }
- r0 = pxsim.Math_.idiv(s.xStep___31128, 2);
- s.xStep___31128 = (r0);
+ r0 = pxsim.Math_.idiv(s.xStep___91125, 2);
+ s.xStep___91125 = (r0);
case 20:
case 21:
- s.tmp_2 = Fx_abs__P157_mk(s);
- s.tmp_2.arg0 = s.yStep___31130;
+ s.tmp_2 = Fx_abs__P60152_mk(s);
+ s.tmp_2.arg0 = s.yStep___91127;
s.callLocIdx = 580; s.pc = 36; return s.tmp_2;
case 36:
r0 = s.retval;
@@ -78488,25 +77635,25 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 22; continue; }
- r0 = pxsim.Math_.idiv(s.yStep___31130, 2);
- s.yStep___31130 = (r0);
+ r0 = pxsim.Math_.idiv(s.yStep___91127, 2);
+ s.yStep___91127 = (r0);
case 22:
case 23:
{ step = 17; continue; }
case 24:
- r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2168_VT);
+ r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C62163_VT);
s.tmp_0 = r0;
- s.tmp_1 = MovingSprite_constructor__P2169_mk(s);
+ s.tmp_1 = MovingSprite_constructor__P62164_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___31110;
- s.tmp_1.arg5 = s.dy___31119;
- s.tmp_1.arg6 = s.xStep___31128;
- s.tmp_1.arg7 = s.yStep___31130;
+ s.tmp_1.arg4 = s.dx___91107;
+ s.tmp_1.arg5 = s.dy___91116;
+ s.tmp_1.arg6 = s.xStep___91125;
+ s.tmp_1.arg7 = s.yStep___91127;
s.callLocIdx = 582; s.pc = 37; return s.tmp_1;
case 37:
r0 = s.retval;
@@ -78514,12 +77661,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_createMovingSprite__P4150.info = {"start":6489,"length":2662,"line":211,"column":4,"endLine":302,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtSec","dt2"]}
+ArcadePhysicsEngine_createMovingSprite__P64147.info = {"start":6489,"length":2662,"line":211,"column":4,"endLine":302,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtSec","dt2"]}
-function ArcadePhysicsEngine_createMovingSprite__P4150_mk(s) {
+function ArcadePhysicsEngine_createMovingSprite__P64147_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P4150, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P64147, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -78533,16 +77680,16 @@ function ArcadePhysicsEngine_createMovingSprite__P4150_mk(s) {
tmp_9: undefined,
tmp_10: undefined,
tmp_11: undefined,
- ovx___30986: undefined,
- ovy___30991: undefined,
- fx___31017: undefined,
- c___31023: undefined,
- fy___31065: undefined,
- c___31071: undefined,
- dx___31110: undefined,
- dy___31119: undefined,
- xStep___31128: undefined,
- yStep___31130: undefined,
+ ovx___90983: undefined,
+ ovy___90988: undefined,
+ fx___91014: undefined,
+ c___91020: undefined,
+ fy___91062: undefined,
+ c___91068: undefined,
+ dx___91107: undefined,
+ dy___91116: undefined,
+ xStep___91125: undefined,
+ yStep___91127: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -78553,7 +77700,7 @@ function ArcadePhysicsEngine_createMovingSprite__P4150_mk(s) {
-function ArcadePhysicsEngine_constrain__P4155(s) {
+function ArcadePhysicsEngine_constrain__P64152(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78569,9 +77716,9 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = Fx_max__P159_mk(s);
- s.tmp_1 = Fx_min__P158_mk(s);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = Fx_max__P60154_mk(s);
+ s.tmp_1 = Fx_min__P60153_mk(s);
r0 = s.arg0.fields["maxVelocity"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.arg1;
@@ -78587,12 +77734,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_constrain__P4155.info = {"start":24856,"length":191,"line":731,"column":4,"endLine":739,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]}
+ArcadePhysicsEngine_constrain__P64152.info = {"start":24856,"length":191,"line":731,"column":4,"endLine":739,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]}
-function ArcadePhysicsEngine_constrain__P4155_mk(s) {
+function ArcadePhysicsEngine_constrain__P64152_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_constrain__P4155, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_constrain__P64152, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -78604,7 +77751,7 @@ function ArcadePhysicsEngine_constrain__P4155_mk(s) {
-function Fx_max__P159(s) {
+function Fx_max__P60154(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78635,12 +77782,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_max__P159.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]}
+Fx_max__P60154.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]}
-function Fx_max__P159_mk(s) {
+function Fx_max__P60154_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_max__P159, depth: s.depth + 1,
+ parent: s, fn: Fx_max__P60154, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -78651,7 +77798,7 @@ function Fx_max__P159_mk(s) {
-function Fx_compare__P156(s) {
+function Fx_compare__P60151(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78670,12 +77817,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_compare__P156.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__P60151.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__P156_mk(s) {
+function Fx_compare__P60151_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_compare__P156, depth: s.depth + 1,
+ parent: s, fn: Fx_compare__P60151, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -78685,7 +77832,7 @@ function Fx_compare__P156_mk(s) {
-function sprites_SpriteMap_insertAABB__P2098(s) {
+function sprites_SpriteMap_insertAABB__P62093(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78695,31 +77842,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.left___30804 = undefined;
- s.top___30807 = undefined;
- s.xn___30810 = undefined;
- s.yn___30821 = undefined;
- s.x___30832 = undefined;
- s.y___30837 = undefined;
+ s.left___90801 = undefined;
+ s.top___90804 = undefined;
+ s.xn___90807 = undefined;
+ s.yn___90818 = undefined;
+ s.x___90829 = undefined;
+ s.y___90834 = 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__C2091_VT)) failedCast(r0);
- s.tmp_0 = Sprite_left__P2059_mk(s);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_left__P62054_mk(s);
s.tmp_0.arg0 = s.arg1;
s.callLocIdx = 481; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.left___30804 = (r0);
- s.tmp_0 = Sprite_top__P2063_mk(s);
+ s.left___90801 = (r0);
+ s.tmp_0 = Sprite_top__P62058_mk(s);
s.tmp_0.arg0 = s.arg1;
s.callLocIdx = 482; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.top___30807 = (r0);
+ s.top___90804 = (r0);
r0 = s.arg1.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_3);
@@ -78733,7 +77880,7 @@ switch (step) {
r0 = s.arg0.fields["cellWidth"];
s.tmp_5 = r0;
r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5);
- s.xn___30810 = (r0);
+ s.xn___90807 = (r0);
r0 = s.arg1.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_3);
@@ -78747,30 +77894,30 @@ switch (step) {
r0 = s.arg0.fields["cellHeight"];
s.tmp_5 = r0;
r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5);
- s.yn___30821 = (r0);
- s.x___30832 = (0);
+ s.yn___90818 = (r0);
+ s.x___90829 = (0);
case 1:
- r0 = (s.x___30832 <= s.xn___30810);
+ r0 = (s.x___90829 <= s.xn___90807);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 4; continue; }
- s.y___30837 = (0);
+ s.y___90834 = (0);
case 2:
- r0 = (s.y___30837 <= s.yn___30821);
+ r0 = (s.y___90834 <= s.yn___90818);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.tmp_1 = sprites_SpriteMap_insertAtKey__P4128_mk(s);
+ s.tmp_1 = sprites_SpriteMap_insertAtKey__P64125_mk(s);
s.tmp_1.arg0 = s.arg0;
- s.tmp_2 = r0 = s.left___30804;
- s.tmp_4 = Math_min__P123_mk(s);
+ s.tmp_2 = r0 = s.left___90801;
+ s.tmp_4 = Math_min__P60118_mk(s);
r0 = s.arg1.fields["_image"];
s.tmp_5 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_5);
s.tmp_4.arg0 = r0;
r0 = s.arg0.fields["cellWidth"];
s.tmp_6 = r0;
- r0 = (s.x___30832 * s.tmp_6);
+ r0 = (s.x___90829 * s.tmp_6);
s.tmp_4.arg1 = r0;
s.callLocIdx = 486; s.pc = 8; return s.tmp_4;
case 8:
@@ -78778,15 +77925,15 @@ switch (step) {
s.tmp_3 = r0;
r0 = (s.tmp_2 + s.tmp_3);
s.tmp_1.arg1 = r0;
- s.tmp_7 = r0 = s.top___30807;
- s.tmp_9 = Math_min__P123_mk(s);
+ s.tmp_7 = r0 = s.top___90804;
+ s.tmp_9 = Math_min__P60118_mk(s);
r0 = s.arg1.fields["_image"];
s.tmp_10 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_10);
s.tmp_9.arg0 = r0;
r0 = s.arg0.fields["cellHeight"];
s.tmp_11 = r0;
- r0 = (s.y___30837 * s.tmp_11);
+ r0 = (s.y___90834 * s.tmp_11);
s.tmp_9.arg1 = r0;
s.callLocIdx = 488; s.pc = 9; return s.tmp_9;
case 9:
@@ -78798,24 +77945,24 @@ switch (step) {
s.callLocIdx = 489; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
- r0 = (s.y___30837 + 1);
- s.y___30837 = (r0);
+ r0 = (s.y___90834 + 1);
+ s.y___90834 = (r0);
{ step = 2; continue; }
case 3:
- r0 = (s.x___30832 + 1);
- s.x___30832 = (r0);
+ r0 = (s.x___90829 + 1);
+ s.x___90829 = (r0);
{ step = 1; continue; }
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_insertAABB__P2098.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__P62093.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__P2098_mk(s) {
+function sprites_SpriteMap_insertAABB__P62093_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_insertAABB__P2098, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_insertAABB__P62093, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -78829,12 +77976,12 @@ function sprites_SpriteMap_insertAABB__P2098_mk(s) {
tmp_9: undefined,
tmp_10: undefined,
tmp_11: undefined,
- left___30804: undefined,
- top___30807: undefined,
- xn___30810: undefined,
- yn___30821: undefined,
- x___30832: undefined,
- y___30837: undefined,
+ left___90801: undefined,
+ top___90804: undefined,
+ xn___90807: undefined,
+ yn___90818: undefined,
+ x___90829: undefined,
+ y___90834: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -78843,7 +77990,7 @@ function sprites_SpriteMap_insertAABB__P2098_mk(s) {
-function sprites_SpriteMap_insertAtKey__P4128(s) {
+function sprites_SpriteMap_insertAtKey__P64125(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78853,8 +78000,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.k___30872 = undefined;
- s.bucket___30877 = undefined;
+ s.k___90869 = undefined;
+ s.bucket___90874 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -78863,20 +78010,20 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
- s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.tmp_0 = sprites_SpriteMap_key__P64124_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = s.arg2;
s.callLocIdx = 480; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.k___30872 = (r0);
+ s.k___90869 = (r0);
r0 = s.arg0.fields["buckets"];
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.k___30872);
- s.bucket___30877 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.bucket___30877);
+ r0 = pxsim_Array__getAt(s.tmp_0, s.k___90869);
+ s.bucket___90874 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.bucket___90874);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
s.tmp_0 = r0;
@@ -78884,40 +78031,40 @@ switch (step) {
if (!r0) { step = 1; continue; }
r0 = s.arg0.fields["buckets"];
s.tmp_2 = r0;
- s.tmp_3 = r0 = s.k___30872;
+ s.tmp_3 = r0 = s.k___90869;
r0 = pxsim_Array__mk();
s.tmp_4 = r0;
r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4);
- s.bucket___30877 = (s.tmp_4);
+ s.bucket___90874 = (s.tmp_4);
case 1:
case 2:
- r0 = pxsim_Array_.indexOf(s.bucket___30877, s.arg3, undefined);
+ r0 = pxsim_Array_.indexOf(s.bucket___90874, 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___30877, s.arg3);
+ r0 = pxsim_Array__push(s.bucket___90874, s.arg3);
case 3:
case 4:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_insertAtKey__P4128.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__P64125.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__P4128_mk(s) {
+function sprites_SpriteMap_insertAtKey__P64125_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_insertAtKey__P4128, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_insertAtKey__P64125, depth: s.depth + 1,
pc: 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___30872: undefined,
- bucket___30877: undefined,
+ k___90869: undefined,
+ bucket___90874: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -78928,7 +78075,7 @@ function sprites_SpriteMap_insertAtKey__P4128_mk(s) {
-function sprites_SpriteMap_clear__P2097(s) {
+function sprites_SpriteMap_clear__P62092(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78943,7 +78090,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
s.tmp_1 = r0;
@@ -78952,12 +78099,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_clear__P2097.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__P62092.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__P2097_mk(s) {
+function sprites_SpriteMap_clear__P62092_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_clear__P2097, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_clear__P62092, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -78968,7 +78115,7 @@ function sprites_SpriteMap_clear__P2097_mk(s) {
-function sprites_SpriteMap_resizeBuckets__P2096(s) {
+function sprites_SpriteMap_resizeBuckets__P62091(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -78978,111 +78125,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.maxWidth___30909 = undefined;
- s.maxHeight___30910 = undefined;
- s.sprite___30912 = undefined;
- s.unnamed58___U3 = undefined;
- s.unnamed59___U4 = undefined;
- s.tMap___30928 = undefined;
- s.areaWidth___30932 = undefined;
- s.areaHeight___30939 = undefined;
+ s.maxWidth___90906 = undefined;
+ s.maxHeight___90907 = undefined;
+ s.sprite___90909 = undefined;
+ s.unnamed138___U3 = undefined;
+ s.unnamed139___U4 = undefined;
+ s.tMap___90925 = undefined;
+ s.areaWidth___90929 = undefined;
+ s.areaHeight___90936 = 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__C2091_VT)) failedCast(r0);
- s.maxWidth___30909 = (0);
- s.maxHeight___30910 = (0);
- s.sprite___30912 = (undefined);
- s.unnamed58___U3 = (s.arg1);
- s.unnamed59___U4 = (0);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.maxWidth___90906 = (0);
+ s.maxHeight___90907 = (0);
+ s.sprite___90909 = (undefined);
+ s.unnamed138___U3 = (s.arg1);
+ s.unnamed139___U4 = (0);
case 1:
- s.tmp_0 = r0 = s.unnamed59___U4;
- r0 = pxsim_Array__length(s.unnamed58___U3);
+ s.tmp_0 = r0 = s.unnamed139___U4;
+ r0 = pxsim_Array__length(s.unnamed138___U3);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 6; continue; }
- r0 = pxsim_Array__getAt(s.unnamed58___U3, s.unnamed59___U4);
- s.sprite___30912 = (r0);
- r0 = s.sprite___30912.fields["_image"];
+ r0 = pxsim_Array__getAt(s.unnamed138___U3, s.unnamed139___U4);
+ s.sprite___90909 = (r0);
+ r0 = s.sprite___90909.fields["_image"];
s.tmp_4 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_4);
s.tmp_3 = r0;
- r0 = (s.tmp_3 > s.maxWidth___30909);
+ r0 = (s.tmp_3 > s.maxWidth___90906);
s.tmp_2 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_2);
if (!r0) { step = 2; continue; }
- r0 = s.sprite___30912.fields["_image"];
+ r0 = s.sprite___90909.fields["_image"];
s.tmp_5 = r0;
r0 = pxsim_ImageMethods.width(s.tmp_5);
- s.maxWidth___30909 = (r0);
+ s.maxWidth___90906 = (r0);
case 2:
case 3:
- r0 = s.sprite___30912.fields["_image"];
+ r0 = s.sprite___90909.fields["_image"];
s.tmp_2 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_2);
s.tmp_1 = r0;
- r0 = (s.tmp_1 > s.maxHeight___30910);
+ r0 = (s.tmp_1 > s.maxHeight___90907);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 4; continue; }
- r0 = s.sprite___30912.fields["_image"];
+ r0 = s.sprite___90909.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_3);
- s.maxHeight___30910 = (r0);
+ s.maxHeight___90907 = (r0);
case 4:
case 5:
- r0 = (s.unnamed59___U4 + 1);
- s.unnamed59___U4 = (r0);
+ r0 = (s.unnamed139___U4 + 1);
+ s.unnamed139___U4 = (r0);
{ step = 1; continue; }
case 6:
- s.unnamed58___U3 = (undefined);
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.unnamed138___U3 = (undefined);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 475; s.pc = 11; return s.tmp_0;
case 11:
r0 = s.retval;
r0 = r0.fields["tileMap"];
- s.tMap___30928 = (r0);
- r0 = pxsim_numops_toBoolDecr(s.tMap___30928);
+ s.tMap___90925 = (r0);
+ r0 = pxsim_numops_toBoolDecr(s.tMap___90925);
if (!r0) { step = 7; continue; }
- s.tmp_0 = tiles_TileMap__C2314_v3_1_mk(s);
- s.tmp_0.arg0 = s.tMap___30928;
- if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0 = tiles_TileMap__C62309_v3_1_mk(s);
+ s.tmp_0.arg0 = s.tMap___90925;
+ if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_0.arg0);
s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.areaWidth;
s.pc = 12; return s.tmp_0;
case 12:
r0 = s.retval;
{ step = 8; continue; }
case 7:
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
case 8:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.areaWidth___30932 = (s.tmp_1);
- r0 = pxsim_numops_toBoolDecr(s.tMap___30928);
+ s.areaWidth___90929 = (s.tmp_1);
+ r0 = pxsim_numops_toBoolDecr(s.tMap___90925);
if (!r0) { step = 9; continue; }
- s.tmp_0 = tiles_TileMap__C2314_v4_1_mk(s);
- s.tmp_0.arg0 = s.tMap___30928;
- if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0);
+ s.tmp_0 = tiles_TileMap__C62309_v4_1_mk(s);
+ s.tmp_0.arg0 = s.tMap___90925;
+ if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_0.arg0);
s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.areaHeight;
s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
{ step = 10; continue; }
case 9:
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
case 10:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.areaHeight___30939 = (s.tmp_1);
+ s.areaHeight___90936 = (s.tmp_1);
s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = Math_clamp__P119_mk(s);
+ s.tmp_2 = Math_clamp__P60114_mk(s);
s.tmp_2.arg0 = 8;
- r0 = (s.areaWidth___30932 >> 2);
+ r0 = (s.areaWidth___90929 >> 2);
s.tmp_2.arg1 = r0;
- r0 = (s.maxWidth___30909 * 2);
+ r0 = (s.maxWidth___90906 * 2);
s.tmp_2.arg2 = r0;
s.callLocIdx = 476; s.pc = 14; return s.tmp_2;
case 14:
@@ -79090,11 +78237,11 @@ switch (step) {
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1);
s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = Math_clamp__P119_mk(s);
+ s.tmp_2 = Math_clamp__P60114_mk(s);
s.tmp_2.arg0 = 8;
- r0 = (s.areaHeight___30939 >> 2);
+ r0 = (s.areaHeight___90936 >> 2);
s.tmp_2.arg1 = r0;
- r0 = (s.maxHeight___30910 * 2);
+ r0 = (s.maxHeight___90907 * 2);
s.tmp_2.arg2 = r0;
s.callLocIdx = 477; s.pc = 15; return s.tmp_2;
case 15:
@@ -79104,25 +78251,25 @@ switch (step) {
s.tmp_0 = r0 = s.arg0;
r0 = s.arg0.fields["cellHeight"];
s.tmp_2 = r0;
- r0 = pxsim.Math_.idiv(s.areaHeight___30939, s.tmp_2);
+ r0 = pxsim.Math_.idiv(s.areaHeight___90936, 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___30932, s.tmp_2);
+ r0 = pxsim.Math_.idiv(s.areaWidth___90929, 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__P2096.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__P62091.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__P2096_mk(s) {
+function sprites_SpriteMap_resizeBuckets__P62091_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_resizeBuckets__P2096, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_resizeBuckets__P62091, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79130,14 +78277,14 @@ function sprites_SpriteMap_resizeBuckets__P2096_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- maxWidth___30909: undefined,
- maxHeight___30910: undefined,
- sprite___30912: undefined,
- unnamed58___U3: undefined,
- unnamed59___U4: undefined,
- tMap___30928: undefined,
- areaWidth___30932: undefined,
- areaHeight___30939: undefined,
+ maxWidth___90906: undefined,
+ maxHeight___90907: undefined,
+ sprite___90909: undefined,
+ unnamed138___U3: undefined,
+ unnamed139___U4: undefined,
+ tMap___90925: undefined,
+ areaWidth___90929: undefined,
+ areaHeight___90936: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -79146,7 +78293,7 @@ function sprites_SpriteMap_resizeBuckets__P2096_mk(s) {
-function Sprite_clearObstacles__P2081(s) {
+function Sprite_clearObstacles__P62076(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79161,7 +78308,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
r0 = pxsim_Array__mk();
s.tmp_1 = r0;
@@ -79170,12 +78317,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite_clearObstacles__P2081.info = {"start":26810,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
+Sprite_clearObstacles__P62076.info = {"start":26783,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
-function Sprite_clearObstacles__P2081_mk(s) {
+function Sprite_clearObstacles__P62076_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_clearObstacles__P2081, depth: s.depth + 1,
+ parent: s, fn: Sprite_clearObstacles__P62076, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79186,7 +78333,7 @@ function Sprite_clearObstacles__P2081_mk(s) {
-function Fx_idiv__P155(s) {
+function Fx_idiv__P60150(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79205,12 +78352,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_idiv__P155.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__P60150.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__P155_mk(s) {
+function Fx_idiv__P60150_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_idiv__P155, depth: s.depth + 1,
+ parent: s, fn: Fx_idiv__P60150, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -79220,7 +78367,7 @@ function Fx_idiv__P155_mk(s) {
-function Fx_div__P154(s) {
+function Fx_div__P60149(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79241,12 +78388,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Fx_div__P154.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]}
+Fx_div__P60149.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]}
-function Fx_div__P154_mk(s) {
+function Fx_div__P60149_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Fx_div__P154, depth: s.depth + 1,
+ parent: s, fn: Fx_div__P60149, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -79257,7 +78404,7 @@ function Fx_div__P154_mk(s) {
-function ArcadePhysicsEngine_draw__P2181(s) {
+function ArcadePhysicsEngine_draw__P62176(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79272,8 +78419,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
- s.tmp_0 = sprites_SpriteMap_draw__P2095_mk(s);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
+ s.tmp_0 = sprites_SpriteMap_draw__P62090_mk(s);
r0 = s.arg0.fields["map"];
s.tmp_0.arg0 = r0;
s.callLocIdx = 515; s.pc = 1; return s.tmp_0;
@@ -79283,12 +78430,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_draw__P2181.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]}
+ArcadePhysicsEngine_draw__P62176.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]}
-function ArcadePhysicsEngine_draw__P2181_mk(s) {
+function ArcadePhysicsEngine_draw__P62176_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_draw__P2181, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_draw__P62176, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -79298,7 +78445,7 @@ function ArcadePhysicsEngine_draw__P2181_mk(s) {
-function sprites_SpriteMap_draw__P2095(s) {
+function sprites_SpriteMap_draw__P62090(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79308,70 +78455,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.x___31208 = undefined;
- s.y___31214 = undefined;
- s.left___31220 = undefined;
- s.top___31225 = undefined;
- s.k___31230 = undefined;
- s.b___31235 = undefined;
+ s.x___91205 = undefined;
+ s.y___91211 = undefined;
+ s.left___91217 = undefined;
+ s.top___91222 = undefined;
+ s.k___91227 = undefined;
+ s.b___91232 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0);
- s.x___31208 = (0);
+ if (!checkSubtype(r0, sprites_SpriteMap__C62086_VT)) failedCast(r0);
+ s.x___91205 = (0);
case 1:
r0 = s.arg0.fields["columnCount"];
s.tmp_1 = r0;
- r0 = (s.x___31208 < s.tmp_1);
+ r0 = (s.x___91205 < s.tmp_1);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 8; continue; }
- s.y___31214 = (0);
+ s.y___91211 = (0);
case 2:
r0 = s.arg0.fields["rowCount"];
s.tmp_1 = r0;
- r0 = (s.y___31214 < s.tmp_1);
+ r0 = (s.y___91211 < 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___31208 * s.tmp_2);
- s.left___31220 = (r0);
+ r0 = (s.x___91205 * s.tmp_2);
+ s.left___91217 = (r0);
r0 = s.arg0.fields["cellHeight"];
s.tmp_0 = r0;
- r0 = (s.y___31214 * s.tmp_0);
- s.top___31225 = (r0);
- s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s);
+ r0 = (s.y___91211 * s.tmp_0);
+ s.top___91222 = (r0);
+ s.tmp_0 = sprites_SpriteMap_key__P64124_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = s.left___31220;
- s.tmp_0.arg2 = s.top___31225;
+ s.tmp_0.arg1 = s.left___91217;
+ s.tmp_0.arg2 = s.top___91222;
s.callLocIdx = 469; s.pc = 9; return s.tmp_0;
case 9:
r0 = s.retval;
- s.k___31230 = (r0);
+ s.k___91227 = (r0);
r0 = s.arg0.fields["buckets"];
s.tmp_0 = r0;
- r0 = pxsim_Array__getAt(s.tmp_0, s.k___31230);
- s.b___31235 = (r0);
- s.tmp_0 = r0 = s.b___31235;
+ r0 = pxsim_Array__getAt(s.tmp_0, s.k___91227);
+ s.b___91232 = (r0);
+ s.tmp_0 = r0 = s.b___91232;
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___31235);
+ r0 = pxsim_Array__length(s.b___91232);
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__P1728_mk(s);
- s.tmp_2.arg0 = globals.screen___1799;
- s.tmp_2.arg1 = s.left___31220;
- s.tmp_2.arg2 = s.top___31225;
+ s.tmp_2 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_2.arg0 = globals.screen___61794;
+ s.tmp_2.arg1 = s.left___91217;
+ s.tmp_2.arg2 = s.top___91222;
r0 = s.arg0.fields["cellWidth"];
s.tmp_2.arg3 = r0;
r0 = s.arg0.fields["cellHeight"];
@@ -79382,34 +78529,34 @@ switch (step) {
r0 = s.retval;
case 5:
case 6:
- r0 = (s.y___31214 + 1);
- s.y___31214 = (r0);
+ r0 = (s.y___91211 + 1);
+ s.y___91211 = (r0);
{ step = 2; continue; }
case 7:
- r0 = (s.x___31208 + 1);
- s.x___31208 = (r0);
+ r0 = (s.x___91205 + 1);
+ s.x___91205 = (r0);
{ step = 1; continue; }
case 8:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_SpriteMap_draw__P2095.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__P62090.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__P2095_mk(s) {
+function sprites_SpriteMap_draw__P62090_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_SpriteMap_draw__P2095, depth: s.depth + 1,
+ parent: s, fn: sprites_SpriteMap_draw__P62090, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- x___31208: undefined,
- y___31214: undefined,
- left___31220: undefined,
- top___31225: undefined,
- k___31230: undefined,
- b___31235: undefined,
+ x___91205: undefined,
+ y___91211: undefined,
+ left___91217: undefined,
+ top___91222: undefined,
+ k___91227: undefined,
+ b___91232: undefined,
arg0: undefined,
} }
@@ -79417,7 +78564,7 @@ function sprites_SpriteMap_draw__P2095_mk(s) {
-function ArcadePhysicsEngine_removeSprite__P2180(s) {
+function ArcadePhysicsEngine_removeSprite__P62175(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79433,7 +78580,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_VT)) failedCast(r0);
r0 = s.arg0.fields["sprites"];
s.tmp_0 = r0;
r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1);
@@ -79441,12 +78588,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_removeSprite__P2180.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]}
+ArcadePhysicsEngine_removeSprite__P62175.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]}
-function ArcadePhysicsEngine_removeSprite__P2180_mk(s) {
+function ArcadePhysicsEngine_removeSprite__P62175_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_removeSprite__P2180, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_removeSprite__P62175, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -79457,7 +78604,7 @@ function ArcadePhysicsEngine_removeSprite__P2180_mk(s) {
-function ArcadePhysicsEngine_addSprite__P2179(s) {
+function ArcadePhysicsEngine_addSprite__P62174(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79467,33 +78614,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.tm___31272 = undefined;
+ s.tm___91269 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0);
+ if (!checkSubtype(r0, ArcadePhysicsEngine__C62165_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__P2524_mk(s);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 514; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
r0 = r0.fields["tileMap"];
- s.tm___31272 = (r0);
- s.tmp_0 = r0 = s.tm___31272;
+ s.tm___91269 = (r0);
+ s.tmp_0 = r0 = s.tm___91269;
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__C2314_v14_2_mk(s);
- s.tmp_1.arg0 = s.tm___31272;
+ s.tmp_1 = tiles_TileMap__C62309_v14_2_mk(s);
+ s.tmp_1.arg0 = s.tm___91269;
s.tmp_1.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C62309_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall;
s.pc = 6; return s.tmp_1;
case 6:
@@ -79515,12 +78662,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-ArcadePhysicsEngine_addSprite__P2179.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]}
+ArcadePhysicsEngine_addSprite__P62174.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]}
-function ArcadePhysicsEngine_addSprite__P2179_mk(s) {
+function ArcadePhysicsEngine_addSprite__P62174_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: ArcadePhysicsEngine_addSprite__P2179, depth: s.depth + 1,
+ parent: s, fn: ArcadePhysicsEngine_addSprite__P62174, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79528,7 +78675,7 @@ function ArcadePhysicsEngine_addSprite__P2179_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- tm___31272: undefined,
+ tm___91269: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -79537,7 +78684,7 @@ function ArcadePhysicsEngine_addSprite__P2179_mk(s) {
-function tiles_TileMapData_constructor__P2302(s) {
+function tiles_TileMapData_constructor__P62297(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79556,11 +78703,11 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_TileMapData__C62296_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__P2306_mk(s);
+ s.tmp_0 = tiles_TileMapData_scale__P62301_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg4;
s.callLocIdx = 732; s.pc = 1; return s.tmp_0;
@@ -79578,12 +78725,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_TileMapData_constructor__P2302.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]}
+tiles_TileMapData_constructor__P62297.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]}
-function tiles_TileMapData_constructor__P2302_mk(s) {
+function tiles_TileMapData_constructor__P62297_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_TileMapData_constructor__P2302, depth: s.depth + 1,
+ parent: s, fn: tiles_TileMapData_constructor__P62297, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79598,7 +78745,7 @@ function tiles_TileMapData_constructor__P2302_mk(s) {
-function scene_BackgroundLayer_constructor__P2279(s) {
+function scene_BackgroundLayer_constructor__P62274(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79616,9 +78763,9 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_BackgroundLayer__C2272_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_BackgroundLayer__C62267_VT)) failedCast(r0);
s.tmp_0 = r0 = s.arg0;
- s.tmp_2 = Math_max__P122_mk(s);
+ s.tmp_2 = Math_max__P60117_mk(s);
s.tmp_2.arg0 = 1;
s.tmp_2.arg1 = s.arg1;
s.callLocIdx = 725; s.pc = 7; return s.tmp_2;
@@ -79664,12 +78811,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_BackgroundLayer_constructor__P2279.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]}
+scene_BackgroundLayer_constructor__P62274.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__P2279_mk(s) {
+function scene_BackgroundLayer_constructor__P62274_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_BackgroundLayer_constructor__P2279, depth: s.depth + 1,
+ parent: s, fn: scene_BackgroundLayer_constructor__P62274, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79684,7 +78831,7 @@ function scene_BackgroundLayer_constructor__P2279_mk(s) {
-function scene_Camera_y__P2362(s) {
+function scene_Camera_y__P62359(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79699,10 +78846,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
r0 = s.arg0.fields["drawOffsetY"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 1);
s.tmp_1 = r0;
@@ -79710,13 +78857,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Camera_y__P2362.info = {"start":1398,"length":79,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]}
-scene_Camera_y__P2362.isGetter = true;
+scene_Camera_y__P62359.info = {"start":1398,"length":79,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]}
+scene_Camera_y__P62359.isGetter = true;
-function scene_Camera_y__P2362_mk(s) {
+function scene_Camera_y__P62359_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_y__P2362, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_y__P62359, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79728,7 +78875,7 @@ function scene_Camera_y__P2362_mk(s) {
-function scene_Camera_x__P2361(s) {
+function scene_Camera_x__P62358(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79743,10 +78890,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
r0 = s.arg0.fields["drawOffsetX"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 1);
s.tmp_1 = r0;
@@ -79754,13 +78901,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Camera_x__P2361.info = {"start":1311,"length":78,"line":46,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]}
-scene_Camera_x__P2361.isGetter = true;
+scene_Camera_x__P62358.info = {"start":1311,"length":78,"line":46,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]}
+scene_Camera_x__P62358.isGetter = true;
-function scene_Camera_x__P2361_mk(s) {
+function scene_Camera_x__P62358_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_x__P2361, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_x__P62358, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79772,7 +78919,7 @@ function scene_Camera_x__P2361_mk(s) {
-function particles_ParticleSource___draw__P2676(s) {
+function particles_ParticleSource___draw__P62673(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79782,18 +78929,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.current___31336 = undefined;
- s.left___31339 = undefined;
- s.top___31349 = undefined;
+ s.current___91333 = undefined;
+ s.left___91336 = undefined;
+ s.top___91346 = 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__C2670_VT)) failedCast(r0);
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
r0 = s.arg0.fields["head"];
- s.current___31336 = (r0);
+ s.current___91333 = (r0);
r0 = s.arg0.fields["pFlags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 4);
@@ -79811,7 +78958,7 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.left___31339 = (s.tmp_4);
+ s.left___91336 = (s.tmp_4);
r0 = s.arg0.fields["pFlags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 4);
@@ -79829,49 +78976,49 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.top___31349 = (s.tmp_4);
+ s.top___91346 = (s.tmp_4);
case 5:
- r0 = pxsim_numops_toBoolDecr(s.current___31336);
+ r0 = pxsim_numops_toBoolDecr(s.current___91333);
if (!r0) { step = 8; continue; }
- r0 = s.current___31336.fields["lifespan"];
+ r0 = s.current___91333.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__P4627_mk(s);
+ s.tmp_2 = particles_ParticleSource_drawParticle__P64630_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.current___31336;
- s.tmp_2.arg2 = s.left___31339;
- s.tmp_2.arg3 = s.top___31349;
- s.callLocIdx = 1076; s.pc = 9; return s.tmp_2;
+ s.tmp_2.arg1 = s.current___91333;
+ s.tmp_2.arg2 = s.left___91336;
+ s.tmp_2.arg3 = s.top___91346;
+ s.callLocIdx = 1082; s.pc = 9; return s.tmp_2;
case 9:
r0 = s.retval;
case 6:
case 7:
- r0 = s.current___31336.fields["next"];
- s.current___31336 = (r0);
+ r0 = s.current___91333.fields["next"];
+ s.current___91333 = (r0);
{ step = 5; continue; }
case 8:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource___draw__P2676.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]}
+particles_ParticleSource___draw__P62673.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]}
-function particles_ParticleSource___draw__P2676_mk(s) {
+function particles_ParticleSource___draw__P62673_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource___draw__P2676, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource___draw__P62673, depth: s.depth + 1,
pc: 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___31336: undefined,
- left___31339: undefined,
- top___31349: undefined,
+ current___91333: undefined,
+ left___91336: undefined,
+ top___91346: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -79880,7 +79027,7 @@ function particles_ParticleSource___draw__P2676_mk(s) {
-function particles_ParticleSource_drawParticle__P4627(s) {
+function particles_ParticleSource_drawParticle__P64630(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79898,8 +79045,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0);
- s.tmp_0 = particles_ParticleFactory__C2706_v1_4_mk(s);
+ if (!checkSubtype(r0, particles_ParticleSource__C62667_VT)) failedCast(r0);
+ s.tmp_0 = particles_ParticleFactory__C62703_v1_4_mk(s);
r0 = s.arg0.fields["_factory"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = s.arg1;
@@ -79911,7 +79058,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__C2706_VT)) failedCast(s.tmp_0.arg0);
+ if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C62703_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:
@@ -79920,12 +79067,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-particles_ParticleSource_drawParticle__P4627.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]}
+particles_ParticleSource_drawParticle__P64630.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]}
-function particles_ParticleSource_drawParticle__P4627_mk(s) {
+function particles_ParticleSource_drawParticle__P64630_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleSource_drawParticle__P4627, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleSource_drawParticle__P64630, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79940,7 +79087,7 @@ function particles_ParticleSource_drawParticle__P4627_mk(s) {
-function particles_ParticleFactory_drawParticle__P2709(s) {
+function particles_ParticleFactory_drawParticle__P62706(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -79958,8 +79105,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ParticleFactory__C2706_VT)) failedCast(r0);
- s.tmp_0 = r0 = globals.screen___1799;
+ if (!checkSubtype(r0, particles_ParticleFactory__C62703_VT)) failedCast(r0);
+ s.tmp_0 = r0 = globals.screen___61794;
r0 = (s.arg2 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
@@ -79973,12 +79120,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-particles_ParticleFactory_drawParticle__P2709.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__P62706.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__P2709_mk(s) {
+function particles_ParticleFactory_drawParticle__P62706_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ParticleFactory_drawParticle__P2709, depth: s.depth + 1,
+ parent: s, fn: particles_ParticleFactory_drawParticle__P62706, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -79995,7 +79142,7 @@ function particles_ParticleFactory_drawParticle__P2709_mk(s) {
-function particles_ShapeFactory_createParticle__P2736(s) {
+function particles_ShapeFactory_createParticle__P62733(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80005,47 +79152,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___31400 = undefined;
+ s.p___91397 = 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__C2732_VT)) failedCast(r0);
- s.tmp_0 = particles_AreaFactory_createParticle__P2722_mk(s);
+ if (!checkSubtype(r0, particles_ShapeFactory__C62729_VT)) failedCast(r0);
+ s.tmp_0 = particles_AreaFactory_createParticle__P62719_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1170; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1176; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.p___31400 = (r0);
- s.tmp_0 = r0 = s.p___31400;
- s.tmp_2 = Math_FastRandom_randomRange__P2582_mk(s);
+ s.p___91397 = (r0);
+ s.tmp_0 = r0 = s.p___91397;
+ s.tmp_2 = Math_FastRandom_randomRange__P62579_mk(s);
r0 = s.arg0.fields["galois"];
s.tmp_2.arg0 = r0;
s.tmp_2.arg1 = 1;
s.tmp_2.arg2 = 14;
- s.callLocIdx = 1171; s.pc = 2; return s.tmp_2;
+ s.callLocIdx = 1177; 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___31400;
+ r0 = s.p___91397;
return leave(s, r0)
default: oops()
} } }
-particles_ShapeFactory_createParticle__P2736.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__P62733.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__P2736_mk(s) {
+function particles_ShapeFactory_createParticle__P62733_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ShapeFactory_createParticle__P2736, depth: s.depth + 1,
+ parent: s, fn: particles_ShapeFactory_createParticle__P62733, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
tmp_2: undefined,
- p___31400: undefined,
+ p___91397: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -80054,7 +79201,7 @@ function particles_ShapeFactory_createParticle__P2736_mk(s) {
-function particles_AreaFactory_createParticle__P2722(s) {
+function particles_AreaFactory_createParticle__P62719(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80064,42 +79211,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___31412 = undefined;
+ s.p___91409 = 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__C2716_VT)) failedCast(r0);
- s.tmp_0 = particles_SprayFactory_createParticle__P2712_mk(s);
+ if (!checkSubtype(r0, particles_AreaFactory__C62713_VT)) failedCast(r0);
+ s.tmp_0 = particles_SprayFactory_createParticle__P62709_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1152; s.pc = 3; return s.tmp_0;
+ s.callLocIdx = 1158; s.pc = 3; return s.tmp_0;
case 3:
r0 = s.retval;
- s.p___31412 = (r0);
- s.tmp_0 = r0 = s.p___31412;
- s.tmp_2 = Math_FastRandom_randomRange__P2582_mk(s);
+ s.p___91409 = (r0);
+ s.tmp_0 = r0 = s.p___91409;
+ s.tmp_2 = Math_FastRandom_randomRange__P62579_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 = 1153; s.pc = 4; return s.tmp_2;
+ s.callLocIdx = 1159; 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___31412;
- s.tmp_4 = Math_FastRandom_randomRange__P2582_mk(s);
+ s.tmp_0 = r0 = s.p___91409;
+ s.tmp_4 = Math_FastRandom_randomRange__P62579_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 = 1154; s.pc = 5; return s.tmp_4;
+ s.callLocIdx = 1160; s.pc = 5; return s.tmp_4;
case 5:
r0 = s.retval;
s.tmp_3 = r0;
@@ -80109,7 +79256,7 @@ switch (step) {
s.tmp_5 = r0;
r0 = (s.tmp_3 - s.tmp_5);
s.tmp_2 = r0;
- r0 = s.p___31412.fields["_x"];
+ r0 = s.p___91409.fields["_x"];
s.tmp_7 = r0;
r0 = (s.tmp_2 << 8);
s.tmp_8 = r0;
@@ -80124,7 +79271,7 @@ switch (step) {
s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"];
if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; }
else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); }
- else { s.callLocIdx = 1157; s.pc = 6; return s.tmp_1; }
+ else { s.callLocIdx = 1163; s.pc = 6; return s.tmp_1; }
}
case 6:
r0 = s.retval;
@@ -80139,7 +79286,7 @@ switch (step) {
s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"];
if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; }
else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); }
- else { s.callLocIdx = 1158; s.pc = 7; return s.tmp_3; }
+ else { s.callLocIdx = 1164; s.pc = 7; return s.tmp_3; }
}
case 7:
r0 = s.retval;
@@ -80151,36 +79298,36 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.tmp_5 = r0 = s.p___31412;
- s.tmp_9 = Math_FastRandom_randomRange__P2582_mk(s);
+ s.tmp_5 = r0 = s.p___91409;
+ s.tmp_9 = Math_FastRandom_randomRange__P62579_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 = 1156; s.pc = 8; return s.tmp_9;
+ s.callLocIdx = 1162; 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___31412.fields["_y"];
+ r0 = s.p___91409.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___31412;
+ r0 = s.p___91409;
return leave(s, r0)
default: oops()
} } }
-particles_AreaFactory_createParticle__P2722.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]}
+particles_AreaFactory_createParticle__P62719.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__P2722_mk(s) {
+function particles_AreaFactory_createParticle__P62719_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_AreaFactory_createParticle__P2722, depth: s.depth + 1,
+ parent: s, fn: particles_AreaFactory_createParticle__P62719, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -80194,7 +79341,7 @@ function particles_AreaFactory_createParticle__P2722_mk(s) {
tmp_9: undefined,
tmp_10: undefined,
tmp_11: undefined,
- p___31412: undefined,
+ p___91409: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -80203,7 +79350,7 @@ function particles_AreaFactory_createParticle__P2722_mk(s) {
-function particles_SprayFactory_createParticle__P2712(s) {
+function particles_SprayFactory_createParticle__P62709(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80213,39 +79360,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.p___31460 = undefined;
- s.angle___31464 = undefined;
+ s.p___91457 = undefined;
+ s.angle___91461 = 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__C2710_VT)) failedCast(r0);
- s.tmp_0 = particles_ParticleFactory_createParticle__P2708_mk(s);
+ if (!checkSubtype(r0, particles_SprayFactory__C62707_VT)) failedCast(r0);
+ s.tmp_0 = particles_ParticleFactory_createParticle__P62705_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = s.arg1;
- s.callLocIdx = 1141; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1147; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
- s.p___31460 = (r0);
+ s.p___91457 = (r0);
r0 = s.arg0.fields["minAngle"];
s.tmp_1 = r0;
- s.tmp_3 = Math_FastRandom_randomRange__P2582_mk(s);
- s.tmp_3.arg0 = globals.galois___4641;
+ s.tmp_3 = Math_FastRandom_randomRange__P62579_mk(s);
+ s.tmp_3.arg0 = globals.galois___64644;
s.tmp_3.arg1 = 0;
r0 = s.arg0.fields["spread"];
s.tmp_3.arg2 = r0;
- s.callLocIdx = 1142; s.pc = 2; return s.tmp_3;
+ s.callLocIdx = 1148; s.pc = 2; return s.tmp_3;
case 2:
r0 = s.retval;
s.tmp_2 = r0;
r0 = (s.tmp_1 + s.tmp_2);
s.tmp_0 = r0;
r0 = (s.tmp_0 % 100);
- s.angle___31464 = (r0);
- s.tmp_0 = r0 = s.p___31460;
- r0 = pxsim_Array__getAt(globals.cachedSin___4636, s.angle___31464);
+ s.angle___91461 = (r0);
+ s.tmp_0 = r0 = s.p___91457;
+ r0 = pxsim_Array__getAt(globals.cachedSin___64639, s.angle___91461);
s.tmp_2 = r0;
r0 = s.arg0.fields["speed"];
s.tmp_3 = r0;
@@ -80254,8 +79401,8 @@ switch (step) {
r0 = (s.tmp_4 >> 8);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["vx"] = (s.tmp_1);
- s.tmp_0 = r0 = s.p___31460;
- r0 = pxsim_Array__getAt(globals.cachedCos___4637, s.angle___31464);
+ s.tmp_0 = r0 = s.p___91457;
+ r0 = pxsim_Array__getAt(globals.cachedCos___64640, s.angle___91461);
s.tmp_2 = r0;
r0 = s.arg0.fields["speed"];
s.tmp_3 = r0;
@@ -80264,24 +79411,24 @@ switch (step) {
r0 = (s.tmp_4 >> 8);
s.tmp_1 = r0;
r0 = (s.tmp_0).fields["vy"] = (s.tmp_1);
- r0 = s.p___31460;
+ r0 = s.p___91457;
return leave(s, r0)
default: oops()
} } }
-particles_SprayFactory_createParticle__P2712.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]}
+particles_SprayFactory_createParticle__P62709.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]}
-function particles_SprayFactory_createParticle__P2712_mk(s) {
+function particles_SprayFactory_createParticle__P62709_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_SprayFactory_createParticle__P2712, depth: s.depth + 1,
+ parent: s, fn: particles_SprayFactory_createParticle__P62709, depth: s.depth + 1,
pc: 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___31460: undefined,
- angle___31464: undefined,
+ p___91457: undefined,
+ angle___91461: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -80290,7 +79437,7 @@ function particles_SprayFactory_createParticle__P2712_mk(s) {
-function scene_Scene_data__P2434(s) {
+function scene_Scene_data__P62431(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80305,18 +79452,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Scene__C62408_VT)) failedCast(r0);
r0 = s.arg0.fields["_data"];
return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Scene_data__P2434.info = {"start":6655,"length":53,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]}
-scene_Scene_data__P2434.isGetter = true;
+scene_Scene_data__P62431.info = {"start":6655,"length":53,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]}
+scene_Scene_data__P62431.isGetter = true;
-function scene_Scene_data__P2434_mk(s) {
+function scene_Scene_data__P62431_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Scene_data__P2434, depth: s.depth + 1,
+ parent: s, fn: scene_Scene_data__P62431, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -80325,7 +79472,7 @@ function scene_Scene_data__P2434_mk(s) {
-function Sprite_toString__P2087(s) {
+function Sprite_toString__P62082(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80340,7 +79487,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
r0 = pxsim_String_.mkEmpty();
s.tmp_9 = r0;
r0 = s.arg0.fields["id"];
@@ -80358,7 +79505,7 @@ switch (step) {
s.tmp_8 = r0;
r0 = pxsim_String__concat(s.tmp_8, "(");
s.tmp_7 = r0;
- s.tmp_14 = Sprite_x__P2022_mk(s);
+ s.tmp_14 = Sprite_x__P62017_mk(s);
s.tmp_14.arg0 = s.arg0;
s.callLocIdx = 450; s.pc = 2; return s.tmp_14;
case 2:
@@ -80377,7 +79524,7 @@ switch (step) {
s.tmp_6 = r0;
r0 = pxsim_String__concat(s.tmp_6, ",");
s.tmp_5 = r0;
- s.tmp_17 = Sprite_y__P2024_mk(s);
+ s.tmp_17 = Sprite_y__P62019_mk(s);
s.tmp_17.arg0 = s.arg0;
s.callLocIdx = 451; s.pc = 4; return s.tmp_17;
case 4:
@@ -80396,7 +79543,7 @@ switch (step) {
s.tmp_4 = r0;
r0 = pxsim_String__concat(s.tmp_4, ")->(");
s.tmp_3 = r0;
- s.tmp_20 = Sprite_vx__P2026_mk(s);
+ s.tmp_20 = Sprite_vx__P62021_mk(s);
s.tmp_20.arg0 = s.arg0;
s.callLocIdx = 452; s.pc = 6; return s.tmp_20;
case 6:
@@ -80415,7 +79562,7 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_String__concat(s.tmp_2, ",");
s.tmp_1 = r0;
- s.tmp_23 = Sprite_vy__P2028_mk(s);
+ s.tmp_23 = Sprite_vy__P62023_mk(s);
s.tmp_23.arg0 = s.arg0;
s.callLocIdx = 453; s.pc = 8; return s.tmp_23;
case 8:
@@ -80436,12 +79583,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite_toString__P2087.info = {"start":33133,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
+Sprite_toString__P62082.info = {"start":33106,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
-function Sprite_toString__P2087_mk(s) {
+function Sprite_toString__P62082_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_toString__P2087, depth: s.depth + 1,
+ parent: s, fn: Sprite_toString__P62082, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -80474,7 +79621,7 @@ function Sprite_toString__P2087_mk(s) {
-function Sprite___update__P2075(s) {
+function Sprite___update__P62070(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80484,8 +79631,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.bounce___31720 = undefined;
- s.tm___31725 = undefined;
+ s.bounce___91717 = undefined;
+ s.tm___91722 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -80493,7 +79640,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
r0 = s.arg0.fields["lifespan"];
s.tmp_1 = r0;
r0 = (s.tmp_1 !== undefined);
@@ -80515,7 +79662,7 @@ 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__P2085_mk(s);
+ s.tmp_0 = Sprite__destroyCore__P62080_mk(s);
s.tmp_0.arg0 = s.arg0;
s.callLocIdx = 388; s.pc = 33; return s.tmp_0;
case 33:
@@ -80533,10 +79680,10 @@ switch (step) {
r0 = s.tmp_0;
{ step = 6; continue; }
case 5:
- s.tmp_2 = Sprite__C2013_v4_2_mk(s);
+ s.tmp_2 = Sprite__C62008_v4_2_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_2.arg0, Sprite__C2013_VT)) failedCast(s.tmp_2.arg0);
+ if (!checkSubtype(s.tmp_2.arg0, Sprite__C62008_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isOutOfScreen;
s.pc = 34; return s.tmp_2;
case 34:
@@ -80546,7 +79693,7 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 7; continue; }
- s.tmp_4 = Sprite_destroy__P2084_mk(s);
+ s.tmp_4 = Sprite_destroy__P62079_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = undefined;
s.tmp_4.arg2 = undefined;
@@ -80558,13 +79705,13 @@ switch (step) {
r0 = s.arg0.fields["flags"];
s.tmp_0 = r0;
r0 = (s.tmp_0 & 32);
- s.bounce___31720 = (r0);
- s.tmp_0 = game_currentScene__P2524_mk(s);
+ s.bounce___91717 = (r0);
+ s.tmp_0 = game_currentScene__P62521_mk(s);
s.callLocIdx = 390; s.pc = 36; return s.tmp_0;
case 36:
r0 = s.retval;
r0 = r0.fields["tileMap"];
- s.tm___31725 = (r0);
+ s.tm___91722 = (r0);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 8);
@@ -80574,13 +79721,13 @@ switch (step) {
r0 = s.tmp_0;
{ step = 12; continue; }
case 9:
- s.tmp_2 = r0 = s.bounce___31720;
+ s.tmp_2 = r0 = s.bounce___91717;
r0 = pxsim_numops_toBool(s.tmp_2);
if (r0) { step = 10; continue; }
r0 = s.tmp_2;
{ step = 11; continue; }
case 10:
- r0 = pxsim_numops_toBoolDecr(s.tm___31725);
+ r0 = pxsim_numops_toBoolDecr(s.tm___91722);
s.tmp_3 = r0;
r0 = pxsim_Boolean__bang(s.tmp_3);
case 11:
@@ -80592,7 +79739,7 @@ switch (step) {
s.tmp_5 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_5);
if (!r0) { step = 29; continue; }
- s.tmp_8 = Sprite_left__P2059_mk(s);
+ s.tmp_8 = Sprite_left__P62054_mk(s);
s.tmp_8.arg0 = s.arg0;
s.callLocIdx = 391; s.pc = 37; return s.tmp_8;
case 37:
@@ -80604,18 +79751,18 @@ switch (step) {
s.tmp_6 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_6);
if (!r0) { step = 15; continue; }
- s.tmp_10 = Sprite_left__P2060_mk(s);
+ s.tmp_10 = Sprite_left__P62055_mk(s);
s.tmp_10.arg0 = s.arg0;
r0 = s.arg1.fields["_offsetX"];
s.tmp_10.arg1 = r0;
s.callLocIdx = 394; s.pc = 38; return s.tmp_10;
case 38:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.bounce___31720);
+ r0 = pxsim_numops_toBoolDecr(s.bounce___91717);
if (!r0) { step = 13; continue; }
- s.tmp_0 = Sprite_vx__P2027_mk(s);
+ s.tmp_0 = Sprite_vx__P62022_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_vx__P2026_mk(s);
+ s.tmp_2 = Sprite_vx__P62021_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 395; s.pc = 40; return s.tmp_2;
case 40:
@@ -80630,7 +79777,7 @@ switch (step) {
case 14:
{ step = 20; continue; }
case 15:
- s.tmp_2 = Sprite_right__P2061_mk(s);
+ s.tmp_2 = Sprite_right__P62056_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 397; s.pc = 41; return s.tmp_2;
case 41:
@@ -80638,7 +79785,7 @@ switch (step) {
s.tmp_1 = r0;
r0 = s.arg1.fields["_offsetX"];
s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_5 = r0;
r0 = (s.tmp_4 + s.tmp_5);
s.tmp_3 = r0;
@@ -80646,22 +79793,22 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 18; continue; }
- s.tmp_6 = Sprite_right__P2062_mk(s);
+ s.tmp_6 = Sprite_right__P62057_mk(s);
s.tmp_6.arg0 = s.arg0;
r0 = s.arg1.fields["_offsetX"];
s.tmp_7 = r0;
- r0 = pxsim_ImageMethods.width(globals.screen___1799);
+ r0 = pxsim_ImageMethods.width(globals.screen___61794);
s.tmp_8 = r0;
r0 = (s.tmp_7 + s.tmp_8);
s.tmp_6.arg1 = r0;
s.callLocIdx = 400; s.pc = 42; return s.tmp_6;
case 42:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.bounce___31720);
+ r0 = pxsim_numops_toBoolDecr(s.bounce___91717);
if (!r0) { step = 16; continue; }
- s.tmp_0 = Sprite_vx__P2027_mk(s);
+ s.tmp_0 = Sprite_vx__P62022_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_vx__P2026_mk(s);
+ s.tmp_2 = Sprite_vx__P62021_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 401; s.pc = 44; return s.tmp_2;
case 44:
@@ -80677,7 +79824,7 @@ switch (step) {
case 18:
case 19:
case 20:
- s.tmp_2 = Sprite_top__P2063_mk(s);
+ s.tmp_2 = Sprite_top__P62058_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 403; s.pc = 45; return s.tmp_2;
case 45:
@@ -80689,18 +79836,18 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 23; continue; }
- s.tmp_4 = Sprite_top__P2064_mk(s);
+ s.tmp_4 = Sprite_top__P62059_mk(s);
s.tmp_4.arg0 = s.arg0;
r0 = s.arg1.fields["_offsetY"];
s.tmp_4.arg1 = r0;
s.callLocIdx = 406; s.pc = 46; return s.tmp_4;
case 46:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.bounce___31720);
+ r0 = pxsim_numops_toBoolDecr(s.bounce___91717);
if (!r0) { step = 21; continue; }
- s.tmp_0 = Sprite_vy__P2029_mk(s);
+ s.tmp_0 = Sprite_vy__P62024_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_vy__P2028_mk(s);
+ s.tmp_2 = Sprite_vy__P62023_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 407; s.pc = 48; return s.tmp_2;
case 48:
@@ -80715,7 +79862,7 @@ switch (step) {
case 22:
{ step = 28; continue; }
case 23:
- s.tmp_2 = Sprite_bottom__P2065_mk(s);
+ s.tmp_2 = Sprite_bottom__P62060_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 409; s.pc = 49; return s.tmp_2;
case 49:
@@ -80723,7 +79870,7 @@ switch (step) {
s.tmp_1 = r0;
r0 = s.arg1.fields["_offsetY"];
s.tmp_4 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_5 = r0;
r0 = (s.tmp_4 + s.tmp_5);
s.tmp_3 = r0;
@@ -80731,22 +79878,22 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 26; continue; }
- s.tmp_6 = Sprite_bottom__P2066_mk(s);
+ s.tmp_6 = Sprite_bottom__P62061_mk(s);
s.tmp_6.arg0 = s.arg0;
r0 = s.arg1.fields["_offsetY"];
s.tmp_7 = r0;
- r0 = pxsim_ImageMethods.height(globals.screen___1799);
+ r0 = pxsim_ImageMethods.height(globals.screen___61794);
s.tmp_8 = r0;
r0 = (s.tmp_7 + s.tmp_8);
s.tmp_6.arg1 = r0;
s.callLocIdx = 412; s.pc = 50; return s.tmp_6;
case 50:
r0 = s.retval;
- r0 = pxsim_numops_toBoolDecr(s.bounce___31720);
+ r0 = pxsim_numops_toBoolDecr(s.bounce___91717);
if (!r0) { step = 24; continue; }
- s.tmp_0 = Sprite_vy__P2029_mk(s);
+ s.tmp_0 = Sprite_vy__P62024_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_2 = Sprite_vy__P2028_mk(s);
+ s.tmp_2 = Sprite_vy__P62023_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 413; s.pc = 52; return s.tmp_2;
case 52:
@@ -80789,12 +79936,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite___update__P2075.info = {"start":22191,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]}
+Sprite___update__P62070.info = {"start":22164,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]}
-function Sprite___update__P2075_mk(s) {
+function Sprite___update__P62070_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite___update__P2075, depth: s.depth + 1,
+ parent: s, fn: Sprite___update__P62070, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -80807,8 +79954,8 @@ function Sprite___update__P2075_mk(s) {
tmp_8: undefined,
tmp_9: undefined,
tmp_10: undefined,
- bounce___31720: undefined,
- tm___31725: undefined,
+ bounce___91717: undefined,
+ tm___91722: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -80818,7 +79965,7 @@ function Sprite___update__P2075_mk(s) {
-function Sprite_bottom__P2066(s) {
+function Sprite_bottom__P62061(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80834,8 +79981,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_0 = Sprite_top__P2064_mk(s);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_0 = Sprite_top__P62059_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_1 = r0 = s.arg1;
r0 = s.arg0.fields["_image"];
@@ -80851,12 +79998,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite_bottom__P2066.info = {"start":10262,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]}
+Sprite_bottom__P62061.info = {"start":10235,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]}
-function Sprite_bottom__P2066_mk(s) {
+function Sprite_bottom__P62061_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_bottom__P2066, depth: s.depth + 1,
+ parent: s, fn: Sprite_bottom__P62061, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -80870,7 +80017,7 @@ function Sprite_bottom__P2066_mk(s) {
-function Sprite_data__P2039(s) {
+function Sprite_data__P62034(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80886,18 +80033,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
r0 = (s.arg0).fields["_data"] = (s.arg1);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-Sprite_data__P2039.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]}
+Sprite_data__P62034.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]}
-function Sprite_data__P2039_mk(s) {
+function Sprite_data__P62034_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite_data__P2039, depth: s.depth + 1,
+ parent: s, fn: Sprite_data__P62034, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -80907,7 +80054,7 @@ function Sprite_data__P2039_mk(s) {
-function sprites_BaseSprite___update__P1863(s) {
+function sprites_BaseSprite___update__P61858(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80924,17 +80071,17 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_BaseSprite___update__P1863.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__P61858.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__P1863_mk(s) {
+function sprites_BaseSprite___update__P61858_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite___update__P1863, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite___update__P61858, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -80945,7 +80092,7 @@ function sprites_BaseSprite___update__P1863_mk(s) {
-function sprites_BaseSprite___draw__P1861(s) {
+function sprites_BaseSprite___draw__P61856(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -80961,10 +80108,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
- s.tmp_1 = sprites_BaseSprite__C1855_v0_1_mk(s);
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
+ s.tmp_1 = sprites_BaseSprite__C61850_v0_1_mk(s);
s.tmp_1.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C1855_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C61850_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:
@@ -80972,10 +80119,10 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_2 = sprites_BaseSprite__C1855_v2_2_mk(s);
+ s.tmp_2 = sprites_BaseSprite__C61850_v2_2_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C1855_VT)) failedCast(s.tmp_2.arg0);
+ if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C61850_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:
@@ -80986,12 +80133,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-sprites_BaseSprite___draw__P1861.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__P61856.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__P1861_mk(s) {
+function sprites_BaseSprite___draw__P61856_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite___draw__P1861, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite___draw__P61856, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81004,7 +80151,7 @@ function sprites_BaseSprite___draw__P1861_mk(s) {
-function sprites_BaseSprite___drawCore__P1862(s) {
+function sprites_BaseSprite___drawCore__P61857(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81020,17 +80167,17 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-sprites_BaseSprite___drawCore__P1862.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__P61857.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__P1862_mk(s) {
+function sprites_BaseSprite___drawCore__P61857_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite___drawCore__P1862, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite___drawCore__P61857, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
arg1: undefined,
@@ -81040,7 +80187,7 @@ function sprites_BaseSprite___drawCore__P1862_mk(s) {
-function sprites_BaseSprite___visible__P1858(s) {
+function sprites_BaseSprite___visible__P61853(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81055,17 +80202,17 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_BaseSprite__C61850_VT)) failedCast(r0);
r0 = true;
return leave(s, r0)
default: oops()
} } }
-sprites_BaseSprite___visible__P1858.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__P61853.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__P1858_mk(s) {
+function sprites_BaseSprite___visible__P61853_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_BaseSprite___visible__P1858, depth: s.depth + 1,
+ parent: s, fn: sprites_BaseSprite___visible__P61853, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -81074,7 +80221,7 @@ function sprites_BaseSprite___visible__P1858_mk(s) {
-function tileworld_GameHome_update__P17526(s) {
+function tileworld_GameHome_update__P77514(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81089,7 +80236,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_GameHome__C3829_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_GameHome__C63826_VT)) failedCast(r0);
r0 = s.arg0.fields["p"];
r0 = r0.fields["help"];
s.tmp_2 = r0;
@@ -81099,95 +80246,95 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_3 = Sprite_say__P2071_mk(s);
+ s.tmp_3 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_3.arg0 = r0;
s.tmp_3.arg1 = null;
s.tmp_3.arg2 = undefined;
s.tmp_3.arg3 = 15;
s.tmp_3.arg4 = 1;
- s.callLocIdx = 1405; s.pc = 3; return s.tmp_3;
+ s.callLocIdx = 1406; s.pc = 3; return s.tmp_3;
case 3:
r0 = s.retval;
case 1:
case 2:
- r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0);
+ r0 = pxsim_ImageMethods.fill(globals.screen___61794, 0);
r0 = s.arg0.fields["dirMap"];
s.tmp_0 = r0;
r0 = pxsim_ImageMethods.fill(s.tmp_0, 15);
- r0 = pxsim_pxtcore_mkAction(1, inline__P17720);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77708);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
- s.tmp_1.arg0 = globals.commandImages___17519;
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
+ s.tmp_1.arg0 = globals.commandImages___77507;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1409; s.pc = 4; return s.tmp_1;
+ s.callLocIdx = 1410; s.pc = 4; return s.tmp_1;
case 4:
r0 = s.retval;
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.arg0;
s.tmp_0.arg1 = 9;
s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = globals.settingsIcon___3719;
- s.callLocIdx = 1410; s.pc = 5; return s.tmp_0;
+ s.tmp_0.arg3 = globals.settingsIcon___63716;
+ s.callLocIdx = 1411; s.pc = 5; return s.tmp_0;
case 5:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_0.arg1 = "Backgrounds";
s.tmp_0.arg2 = 16;
s.tmp_0.arg3 = 44;
s.tmp_0.arg4 = undefined;
s.tmp_0.arg5 = undefined;
s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1411; s.pc = 6; return s.tmp_0;
+ s.callLocIdx = 1412; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17755);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77743);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["p"];
s.tmp_2 = r0;
r0 = s.tmp_2.fields["_backgroundsI"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1414; s.pc = 7; return s.tmp_1;
+ s.callLocIdx = 1415; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
s.tmp_0.arg1 = "Sprites";
s.tmp_0.arg2 = 16;
s.tmp_0.arg3 = 76;
s.tmp_0.arg4 = undefined;
s.tmp_0.arg5 = undefined;
s.tmp_0.arg6 = undefined;
- s.callLocIdx = 1415; s.pc = 8; return s.tmp_0;
+ s.callLocIdx = 1416; s.pc = 8; return s.tmp_0;
case 8:
r0 = s.retval;
- r0 = pxsim_pxtcore_mkAction(1, inline__P17789);
+ r0 = pxsim_pxtcore_mkAction(1, inline__P77777);
s.tmp_0 = r0;
r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0);
- s.tmp_1 = helpers_arrayForEach__P104_mk(s);
+ s.tmp_1 = helpers_arrayForEach__P60099_mk(s);
r0 = s.arg0.fields["p"];
s.tmp_2 = r0;
r0 = s.tmp_2.fields["_spritesI"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = s.tmp_0;
- s.callLocIdx = 1418; s.pc = 9; return s.tmp_1;
+ s.callLocIdx = 1419; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_GameHome_update__P17526.info = {"start":3011,"length":917,"line":74,"column":8,"endLine":96,"endColumn":9,"fileName":"home.ts","functionName":"update","argumentNames":["this"]}
+tileworld_GameHome_update__P77514.info = {"start":3011,"length":917,"line":74,"column":8,"endLine":96,"endColumn":9,"fileName":"home.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_GameHome_update__P17526_mk(s) {
+function tileworld_GameHome_update__P77514_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_GameHome_update__P17526, depth: s.depth + 1,
+ parent: s, fn: tileworld_GameHome_update__P77514, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81200,7 +80347,7 @@ function tileworld_GameHome_update__P17526_mk(s) {
-function inline__P17720(s) {
+function inline__P77708(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81210,13 +80357,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.img2___17723 = undefined;
+ s.img2___77711 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- r0 = (s.arg0 == globals.play___3713);
+ r0 = (s.arg0 == globals.play___63710);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
@@ -81233,9 +80380,9 @@ switch (step) {
r0 = s.arg0;
{ step = 2; continue; }
case 1:
- s.tmp_5 = tileworld_greyImage__P3539_mk(s);
+ s.tmp_5 = tileworld_greyImage__P63536_mk(s);
s.tmp_5.arg0 = s.arg0;
- s.callLocIdx = 1407; s.pc = 5; return s.tmp_5;
+ s.callLocIdx = 1408; s.pc = 5; return s.tmp_5;
case 5:
r0 = s.retval;
case 2:
@@ -81248,25 +80395,25 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_7 = r0;
- s.img2___17723 = (s.tmp_7);
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.img2___77711 = (s.tmp_7);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
s.tmp_0.arg1 = s.arg1;
s.tmp_0.arg2 = 0;
- s.tmp_0.arg3 = s.img2___17723;
- s.callLocIdx = 1408; s.pc = 6; return s.tmp_0;
+ s.tmp_0.arg3 = s.img2___77711;
+ s.callLocIdx = 1409; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-inline__P17720.info = {"start":3218,"length":172,"line":80,"column":34,"endLine":83,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P77708.info = {"start":3218,"length":172,"line":80,"column":34,"endLine":83,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
-function inline__P17720_mk(s) {
+function inline__P77708_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17720, depth: s.depth + 1,
+ parent: s, fn: inline__P77708, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81276,7 +80423,7 @@ function inline__P17720_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- img2___17723: undefined,
+ img2___77711: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -81285,7 +80432,7 @@ function inline__P17720_mk(s) {
-function inline__P17755(s) {
+function inline__P77743(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81300,7 +80447,7 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
r0 = (s.arg1 << 1);
s.tmp_1 = r0;
@@ -81308,7 +80455,7 @@ switch (step) {
s.tmp_0.arg1 = r0;
s.tmp_0.arg2 = 3;
s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 1413; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1414; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = s.caps[0].fields["dirMap"];
@@ -81322,12 +80469,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P17755.info = {"start":3548,"length":129,"line":87,"column":46,"endLine":90,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P77743.info = {"start":3548,"length":129,"line":87,"column":46,"endLine":90,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
-function inline__P17755_mk(s) {
+function inline__P77743_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17755, depth: s.depth + 1,
+ parent: s, fn: inline__P77743, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81340,7 +80487,7 @@ function inline__P17755_mk(s) {
-function inline__P17789(s) {
+function inline__P77777(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81355,7 +80502,7 @@ switch (step) {
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
- s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s);
+ s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P72688_mk(s);
s.tmp_0.arg0 = s.caps[0];
r0 = (s.arg1 << 1);
s.tmp_1 = r0;
@@ -81363,7 +80510,7 @@ switch (step) {
s.tmp_0.arg1 = r0;
s.tmp_0.arg2 = 5;
s.tmp_0.arg3 = s.arg0;
- s.callLocIdx = 1417; s.pc = 1; return s.tmp_0;
+ s.callLocIdx = 1418; s.pc = 1; return s.tmp_0;
case 1:
r0 = s.retval;
r0 = s.caps[0].fields["dirMap"];
@@ -81377,12 +80524,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-inline__P17789.info = {"start":3778,"length":138,"line":92,"column":42,"endLine":95,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
+inline__P77777.info = {"start":3778,"length":138,"line":92,"column":42,"endLine":95,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]}
-function inline__P17789_mk(s) {
+function inline__P77777_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: inline__P17789, depth: s.depth + 1,
+ parent: s, fn: inline__P77777, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81395,7 +80542,7 @@ function inline__P17789_mk(s) {
-function tileworld_GameHome_cursorMove__P17525(s) {
+function tileworld_GameHome_cursorMove__P77513(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81405,8 +80552,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___17670 = undefined;
- s.message___17680 = undefined;
+ s.index___77658 = undefined;
+ s.message___77668 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -81414,16 +80561,16 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_GameHome__C3829_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_GameHome__C63826_VT)) failedCast(r0);
r0 = s.arg0.fields["p"];
r0 = r0.fields["help"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 7; continue; }
- s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_3 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_3.arg0 = s.arg0;
s.tmp_3.arg1 = true;
- s.callLocIdx = 1390; s.pc = 9; return s.tmp_3;
+ s.callLocIdx = 1391; s.pc = 9; return s.tmp_3;
case 9:
r0 = s.retval;
s.tmp_2 = r0;
@@ -81431,20 +80578,20 @@ switch (step) {
s.tmp_1 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_1);
if (!r0) { step = 1; continue; }
- s.tmp_5 = Sprite_x__P2022_mk(s);
+ s.tmp_5 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_5.arg0 = r0;
- s.callLocIdx = 1391; s.pc = 10; return s.tmp_5;
+ s.callLocIdx = 1392; s.pc = 10; return s.tmp_5;
case 10:
r0 = s.retval;
s.tmp_4 = r0;
r0 = (s.tmp_4 + 8);
{ step = 2; continue; }
case 1:
- s.tmp_7 = Sprite_x__P2022_mk(s);
+ s.tmp_7 = Sprite_x__P62017_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_7.arg0 = r0;
- s.callLocIdx = 1392; s.pc = 11; return s.tmp_7;
+ s.callLocIdx = 1393; s.pc = 11; return s.tmp_7;
case 11:
r0 = s.retval;
s.tmp_6 = r0;
@@ -81452,50 +80599,50 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_8 = r0;
- s.tmp_9 = Sprite_x__P2023_mk(s);
+ s.tmp_9 = Sprite_x__P62018_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_9.arg0 = r0;
s.tmp_9.arg1 = s.tmp_8;
- s.callLocIdx = 1393; s.pc = 12; return s.tmp_9;
+ s.callLocIdx = 1394; s.pc = 12; return s.tmp_9;
case 12:
r0 = s.retval;
- s.tmp_0 = Sprite_y__P2025_mk(s);
+ s.tmp_0 = Sprite_y__P62020_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
- s.tmp_2 = Sprite_y__P2024_mk(s);
+ s.tmp_2 = Sprite_y__P62019_mk(s);
r0 = s.arg0.fields["cursor"];
s.tmp_2.arg0 = r0;
- s.callLocIdx = 1394; s.pc = 14; return s.tmp_2;
+ s.callLocIdx = 1395; s.pc = 14; return s.tmp_2;
case 14:
r0 = s.retval;
s.tmp_1 = r0;
r0 = (s.tmp_1 + 32);
s.tmp_0.arg1 = r0;
- s.callLocIdx = 1395; s.pc = 13; return s.tmp_0;
+ s.callLocIdx = 1396; s.pc = 13; return s.tmp_0;
case 13:
r0 = s.retval;
r0 = s.arg0.fields["dirMap"];
s.tmp_0 = r0;
- s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_2 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1396; s.pc = 15; return s.tmp_2;
+ s.callLocIdx = 1397; s.pc = 15; return s.tmp_2;
case 15:
r0 = s.retval;
s.tmp_1 = r0;
- s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_4 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 1397; s.pc = 16; return s.tmp_4;
+ s.callLocIdx = 1398; s.pc = 16; return s.tmp_4;
case 16:
r0 = s.retval;
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3);
- s.index___17670 = (r0);
- s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.index___77658 = (r0);
+ s.tmp_2 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_2.arg0 = s.arg0;
s.tmp_2.arg1 = true;
- s.callLocIdx = 1398; s.pc = 17; return s.tmp_2;
+ s.callLocIdx = 1399; s.pc = 17; return s.tmp_2;
case 17:
r0 = s.retval;
s.tmp_1 = r0;
@@ -81503,62 +80650,62 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 3; continue; }
- s.tmp_3 = tileworld_getHelp__P3537_mk(s);
- s.tmp_3.arg0 = globals.helpString___17516;
- s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s);
+ s.tmp_3 = tileworld_getHelp__P63534_mk(s);
+ s.tmp_3.arg0 = globals.helpString___77504;
+ s.tmp_4 = tileworld_RuleVisualsBase_col__P72686_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = true;
- s.callLocIdx = 1399; s.pc = 19; return s.tmp_4;
+ s.callLocIdx = 1400; s.pc = 19; return s.tmp_4;
case 19:
r0 = s.retval;
s.tmp_3.arg1 = r0;
- s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s);
+ s.tmp_5 = tileworld_RuleVisualsBase_row__P72687_mk(s);
s.tmp_5.arg0 = s.arg0;
s.tmp_5.arg1 = true;
- s.callLocIdx = 1400; s.pc = 20; return s.tmp_5;
+ s.callLocIdx = 1401; s.pc = 20; return s.tmp_5;
case 20:
r0 = s.retval;
s.tmp_3.arg2 = r0;
- s.callLocIdx = 1401; s.pc = 18; return s.tmp_3;
+ s.callLocIdx = 1402; s.pc = 18; return s.tmp_3;
case 18:
r0 = s.retval;
- s.message___17680 = (r0);
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.message___77668 = (r0);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
- s.tmp_0.arg1 = s.message___17680;
+ s.tmp_0.arg1 = s.message___77668;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 1402; s.pc = 21; return s.tmp_0;
+ s.callLocIdx = 1403; s.pc = 21; return s.tmp_0;
case 21:
r0 = s.retval;
{ step = 6; continue; }
case 3:
- r0 = (s.index___17670 != 15);
+ r0 = (s.index___77658 != 15);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 4; continue; }
- s.tmp_1 = Sprite_say__P2071_mk(s);
+ s.tmp_1 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_1.arg0 = r0;
s.tmp_1.arg1 = "A: gallery";
s.tmp_1.arg2 = undefined;
s.tmp_1.arg3 = 15;
s.tmp_1.arg4 = 1;
- s.callLocIdx = 1403; s.pc = 22; return s.tmp_1;
+ s.callLocIdx = 1404; s.pc = 22; return s.tmp_1;
case 22:
r0 = s.retval;
{ step = 5; continue; }
case 4:
- s.tmp_0 = Sprite_say__P2071_mk(s);
+ s.tmp_0 = Sprite_say__P62066_mk(s);
r0 = s.arg0.fields["helpCursor"];
s.tmp_0.arg0 = r0;
s.tmp_0.arg1 = null;
s.tmp_0.arg2 = undefined;
s.tmp_0.arg3 = 15;
s.tmp_0.arg4 = 1;
- s.callLocIdx = 1404; s.pc = 23; return s.tmp_0;
+ s.callLocIdx = 1405; s.pc = 23; return s.tmp_0;
case 23:
r0 = s.retval;
case 5:
@@ -81569,12 +80716,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_GameHome_cursorMove__P17525.info = {"start":2295,"length":698,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"home.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_GameHome_cursorMove__P77513.info = {"start":2295,"length":698,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"home.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_GameHome_cursorMove__P17525_mk(s) {
+function tileworld_GameHome_cursorMove__P77513_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_GameHome_cursorMove__P17525, depth: s.depth + 1,
+ parent: s, fn: tileworld_GameHome_cursorMove__P77513, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81586,8 +80733,8 @@ function tileworld_GameHome_cursorMove__P17525_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- index___17670: undefined,
- message___17680: undefined,
+ index___77658: undefined,
+ message___77668: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -81597,7 +80744,7 @@ function tileworld_GameHome_cursorMove__P17525_mk(s) {
-function tileworld_LoadScreen_cursorMove__P17816(s) {
+function tileworld_LoadScreen_cursorMove__P77804(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81614,7 +80761,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_LoadScreen__C63829_VT)) failedCast(r0);
r0 = pxsim_numops_toBoolDecr(s.arg2);
if (!r0) { step = 1; continue; }
r0 = s.arg1;
@@ -81629,12 +80776,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tileworld_LoadScreen_cursorMove__P17816.info = {"start":1440,"length":119,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"loadScreen.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
+tileworld_LoadScreen_cursorMove__P77804.info = {"start":1440,"length":119,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"loadScreen.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]}
-function tileworld_LoadScreen_cursorMove__P17816_mk(s) {
+function tileworld_LoadScreen_cursorMove__P77804_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_LoadScreen_cursorMove__P17816, depth: s.depth + 1,
+ parent: s, fn: tileworld_LoadScreen_cursorMove__P77804, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -81646,7 +80793,7 @@ function tileworld_LoadScreen_cursorMove__P17816_mk(s) {
-function tileworld_BackgroundBase_update__P11383(s) {
+function tileworld_BackgroundBase_update__P71375(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81661,17 +80808,17 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_BackgroundBase__C3782_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tileworld_BackgroundBase__C63779_VT)) failedCast(r0);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_BackgroundBase_update__P11383.info = {"start":212,"length":31,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"rulesBase.ts","functionName":"update","argumentNames":["this"]}
+tileworld_BackgroundBase_update__P71375.info = {"start":212,"length":31,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"rulesBase.ts","functionName":"update","argumentNames":["this"]}
-function tileworld_BackgroundBase_update__P11383_mk(s) {
+function tileworld_BackgroundBase_update__P71375_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_BackgroundBase_update__P11383, depth: s.depth + 1,
+ parent: s, fn: tileworld_BackgroundBase_update__P71375, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -81680,7 +80827,7 @@ function tileworld_BackgroundBase_update__P11383_mk(s) {
-function controller_AnyButton_isPressed__P4118(s) {
+function controller_AnyButton_isPressed__P64115(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81690,36 +80837,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ctrl___31822 = undefined;
- s.b___31826 = undefined;
- s.unnamed56___U2 = undefined;
- s.unnamed57___U3 = undefined;
+ s.ctrl___91819 = undefined;
+ s.b___91823 = undefined;
+ s.unnamed136___U2 = undefined;
+ s.unnamed137___U3 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_AnyButton__C4116_VT)) failedCast(r0);
- s.tmp_0 = controller__player1__P1914_mk(s);
+ if (!checkSubtype(r0, controller_AnyButton__C64113_VT)) failedCast(r0);
+ s.tmp_0 = controller__player1__P61909_mk(s);
s.callLocIdx = 158; s.pc = 6; return s.tmp_0;
case 6:
r0 = s.retval;
- s.ctrl___31822 = (r0);
- s.b___31826 = (undefined);
- r0 = s.ctrl___31822.fields["buttons"];
- s.unnamed56___U2 = (r0);
- s.unnamed57___U3 = (0);
+ s.ctrl___91819 = (r0);
+ s.b___91823 = (undefined);
+ r0 = s.ctrl___91819.fields["buttons"];
+ s.unnamed136___U2 = (r0);
+ s.unnamed137___U3 = (0);
case 1:
- s.tmp_0 = r0 = s.unnamed57___U3;
- r0 = pxsim_Array__length(s.unnamed56___U2);
+ s.tmp_0 = r0 = s.unnamed137___U3;
+ r0 = pxsim_Array__length(s.unnamed136___U2);
s.tmp_1 = r0;
r0 = (s.tmp_0 < s.tmp_1);
if (!r0) { step = 4; continue; }
- r0 = pxsim_Array__getAt(s.unnamed56___U2, s.unnamed57___U3);
- s.b___31826 = (r0);
- s.tmp_3 = controller_Button__C1900_v0_1_mk(s);
- s.tmp_3.arg0 = s.b___31826;
- if (!checkSubtype(s.tmp_3.arg0, controller_Button__C1900_VT)) failedCast(s.tmp_3.arg0);
+ r0 = pxsim_Array__getAt(s.unnamed136___U2, s.unnamed137___U3);
+ s.b___91823 = (r0);
+ s.tmp_3 = controller_Button__C61895_v0_1_mk(s);
+ s.tmp_3.arg0 = s.b___91823;
+ if (!checkSubtype(s.tmp_3.arg0, controller_Button__C61895_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:
@@ -81731,31 +80878,31 @@ switch (step) {
{ step = 5; continue; }
case 2:
case 3:
- r0 = (s.unnamed57___U3 + 1);
- s.unnamed57___U3 = (r0);
+ r0 = (s.unnamed137___U3 + 1);
+ s.unnamed137___U3 = (r0);
{ step = 1; continue; }
case 4:
- s.unnamed56___U2 = (undefined);
+ s.unnamed136___U2 = (undefined);
r0 = false;
case 5:
return leave(s, r0)
default: oops()
} } }
-controller_AnyButton_isPressed__P4118.info = {"start":5874,"length":202,"line":185,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]}
+controller_AnyButton_isPressed__P64115.info = {"start":5874,"length":202,"line":185,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]}
-function controller_AnyButton_isPressed__P4118_mk(s) {
+function controller_AnyButton_isPressed__P64115_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_AnyButton_isPressed__P4118, depth: s.depth + 1,
+ parent: s, fn: controller_AnyButton_isPressed__P64115, depth: s.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___31822: undefined,
- b___31826: undefined,
- unnamed56___U2: undefined,
- unnamed57___U3: undefined,
+ ctrl___91819: undefined,
+ b___91823: undefined,
+ unnamed136___U2: undefined,
+ unnamed137___U3: undefined,
arg0: undefined,
} }
@@ -81763,7 +80910,7 @@ function controller_AnyButton_isPressed__P4118_mk(s) {
-function controller_Button_toString__P1905(s) {
+function controller_Button_toString__P61900(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81778,7 +80925,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0);
+ if (!checkSubtype(r0, controller_Button__C61895_VT)) failedCast(r0);
r0 = s.arg0.fields["_pressed"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -81818,12 +80965,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-controller_Button_toString__P1905.info = {"start":1479,"length":100,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"toString","argumentNames":["this"]}
+controller_Button_toString__P61900.info = {"start":1479,"length":100,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"toString","argumentNames":["this"]}
-function controller_Button_toString__P1905_mk(s) {
+function controller_Button_toString__P61900_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: controller_Button_toString__P1905, depth: s.depth + 1,
+ parent: s, fn: controller_Button_toString__P61900, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81839,7 +80986,7 @@ function controller_Button_toString__P1905_mk(s) {
-function sprites_StaticObstacle_width__P2153(s) {
+function sprites_StaticObstacle_width__P62148(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81854,20 +81001,20 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_StaticObstacle__C62138_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__P2153.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__P2153.isGetter = true;
+sprites_StaticObstacle_width__P62148.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__P62148.isGetter = true;
-function sprites_StaticObstacle_width__P2153_mk(s) {
+function sprites_StaticObstacle_width__P62148_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_StaticObstacle_width__P2153, depth: s.depth + 1,
+ parent: s, fn: sprites_StaticObstacle_width__P62148, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -81877,7 +81024,7 @@ function sprites_StaticObstacle_width__P2153_mk(s) {
-function sprites_StaticObstacle_height__P2152(s) {
+function sprites_StaticObstacle_height__P62147(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81892,20 +81039,20 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_StaticObstacle__C62138_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__P2152.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__P2152.isGetter = true;
+sprites_StaticObstacle_height__P62147.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__P62147.isGetter = true;
-function sprites_StaticObstacle_height__P2152_mk(s) {
+function sprites_StaticObstacle_height__P62147_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_StaticObstacle_height__P2152, depth: s.depth + 1,
+ parent: s, fn: sprites_StaticObstacle_height__P62147, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -81915,7 +81062,7 @@ function sprites_StaticObstacle_height__P2152_mk(s) {
-function sprites_StaticObstacle_y__P2151(s) {
+function sprites_StaticObstacle_y__P62146(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81930,7 +81077,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_StaticObstacle__C62138_VT)) failedCast(r0);
r0 = s.arg0.fields["top"];
s.tmp_0 = r0;
r0 = s.arg0.fields["image"];
@@ -81943,13 +81090,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-sprites_StaticObstacle_y__P2151.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__P2151.isGetter = true;
+sprites_StaticObstacle_y__P62146.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__P62146.isGetter = true;
-function sprites_StaticObstacle_y__P2151_mk(s) {
+function sprites_StaticObstacle_y__P62146_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_StaticObstacle_y__P2151, depth: s.depth + 1,
+ parent: s, fn: sprites_StaticObstacle_y__P62146, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -81962,7 +81109,7 @@ function sprites_StaticObstacle_y__P2151_mk(s) {
-function sprites_StaticObstacle_x__P2150(s) {
+function sprites_StaticObstacle_x__P62145(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -81977,7 +81124,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0);
+ if (!checkSubtype(r0, sprites_StaticObstacle__C62138_VT)) failedCast(r0);
r0 = s.arg0.fields["left"];
s.tmp_0 = r0;
r0 = s.arg0.fields["image"];
@@ -81990,13 +81137,13 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-sprites_StaticObstacle_x__P2150.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__P2150.isGetter = true;
+sprites_StaticObstacle_x__P62145.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__P62145.isGetter = true;
-function sprites_StaticObstacle_x__P2150_mk(s) {
+function sprites_StaticObstacle_x__P62145_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: sprites_StaticObstacle_x__P2150, depth: s.depth + 1,
+ parent: s, fn: sprites_StaticObstacle_x__P62145, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82009,7 +81156,7 @@ function sprites_StaticObstacle_x__P2150_mk(s) {
-function tiles_Location_y__P2291(s) {
+function tiles_Location_y__P62286(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82019,22 +81166,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scale___31565 = undefined;
+ s.scale___91562 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
r0 = s.arg0.fields["tileMap"];
s.tmp_0 = r0;
r0 = s.tmp_0.fields["_scale"];
- s.scale___31565 = (r0);
+ s.scale___91562 = (r0);
r0 = s.arg0.fields["_row"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 << s.scale___31565);
+ r0 = (s.tmp_1 << s.scale___91562);
s.tmp_0 = r0;
- r0 = (s.scale___31565 - 1);
+ r0 = (s.scale___91562 - 1);
s.tmp_3 = r0;
r0 = (1 << s.tmp_3);
s.tmp_2 = r0;
@@ -82042,19 +81189,19 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_Location_y__P2291.info = {"start":836,"length":135,"line":38,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]}
-tiles_Location_y__P2291.isGetter = true;
+tiles_Location_y__P62286.info = {"start":836,"length":135,"line":38,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]}
+tiles_Location_y__P62286.isGetter = true;
-function tiles_Location_y__P2291_mk(s) {
+function tiles_Location_y__P62286_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_y__P2291, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_y__P62286, depth: s.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___31565: undefined,
+ scale___91562: undefined,
arg0: undefined,
} }
@@ -82062,7 +81209,7 @@ function tiles_Location_y__P2291_mk(s) {
-function tiles_Location_x__P2290(s) {
+function tiles_Location_x__P62285(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82072,22 +81219,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.scale___31582 = undefined;
+ s.scale___91579 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_Location__C62281_VT)) failedCast(r0);
r0 = s.arg0.fields["tileMap"];
s.tmp_0 = r0;
r0 = s.tmp_0.fields["_scale"];
- s.scale___31582 = (r0);
+ s.scale___91579 = (r0);
r0 = s.arg0.fields["_col"];
s.tmp_1 = r0;
- r0 = (s.tmp_1 << s.scale___31582);
+ r0 = (s.tmp_1 << s.scale___91579);
s.tmp_0 = r0;
- r0 = (s.scale___31582 - 1);
+ r0 = (s.scale___91579 - 1);
s.tmp_3 = r0;
r0 = (1 << s.tmp_3);
s.tmp_2 = r0;
@@ -82095,19 +81242,19 @@ switch (step) {
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_Location_x__P2290.info = {"start":691,"length":135,"line":33,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]}
-tiles_Location_x__P2290.isGetter = true;
+tiles_Location_x__P62285.info = {"start":691,"length":135,"line":33,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]}
+tiles_Location_x__P62285.isGetter = true;
-function tiles_Location_x__P2290_mk(s) {
+function tiles_Location_x__P62285_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_Location_x__P2290, depth: s.depth + 1,
+ parent: s, fn: tiles_Location_x__P62285, depth: s.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___31582: undefined,
+ scale___91579: undefined,
arg0: undefined,
} }
@@ -82115,7 +81262,7 @@ function tiles_Location_x__P2290_mk(s) {
-function tiles_legacy_LegacyTilemap_getTileImage__P3875(s) {
+function tiles_legacy_LegacyTilemap_getTileImage__P63872(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82131,7 +81278,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_tileSets"];
s.tmp_3 = r0;
r0 = pxsim_Array__getAt(s.tmp_3, s.arg1);
@@ -82142,31 +81289,31 @@ switch (step) {
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 1; continue; }
- s.tmp_4 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s);
+ s.tmp_4 = tiles_legacy_LegacyTilemap_generateTile__P71430_mk(s);
s.tmp_4.arg0 = s.arg0;
s.tmp_4.arg1 = s.arg1;
- s.callLocIdx = 1755; s.pc = 3; return s.tmp_4;
+ s.callLocIdx = 1702; s.pc = 3; return s.tmp_4;
case 3:
r0 = s.retval;
case 1:
case 2:
- s.tmp_0 = tiles_legacy_TileSet_image__P20141_mk(s);
+ s.tmp_0 = tiles_legacy_TileSet_image__P80125_mk(s);
r0 = s.arg0.fields["_tileSets"];
s.tmp_1 = r0;
r0 = pxsim_Array__getAt(s.tmp_1, s.arg1);
s.tmp_0.arg0 = r0;
- s.callLocIdx = 1756; s.pc = 4; return s.tmp_0;
+ s.callLocIdx = 1703; s.pc = 4; return s.tmp_0;
case 4:
r0 = s.retval;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_getTileImage__P3875.info = {"start":9286,"length":160,"line":273,"column":8,"endLine":276,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
+tiles_legacy_LegacyTilemap_getTileImage__P63872.info = {"start":9286,"length":160,"line":273,"column":8,"endLine":276,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]}
-function tiles_legacy_LegacyTilemap_getTileImage__P3875_mk(s) {
+function tiles_legacy_LegacyTilemap_getTileImage__P63872_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_getTileImage__P3875, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_getTileImage__P63872, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82181,7 +81328,7 @@ function tiles_legacy_LegacyTilemap_getTileImage__P3875_mk(s) {
-function tiles_legacy_LegacyTilemap_isOnWall__P3873(s) {
+function tiles_legacy_LegacyTilemap_isOnWall__P63870(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82191,25 +81338,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.hbox___20750 = undefined;
- s.left___20753 = undefined;
- s.right___20759 = undefined;
- s.top___20765 = undefined;
- s.bottom___20771 = undefined;
- s.col___20777 = undefined;
- s.row___20783 = undefined;
+ s.hbox___80734 = undefined;
+ s.left___80737 = undefined;
+ s.right___80743 = undefined;
+ s.top___80749 = undefined;
+ s.bottom___80755 = undefined;
+ s.col___80761 = undefined;
+ s.row___80767 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg1.fields["_hitbox"];
- s.hbox___20750 = (r0);
- s.tmp_1 = game_Hitbox_left__P1963_mk(s);
- s.tmp_1.arg0 = s.hbox___20750;
- s.callLocIdx = 1743; s.pc = 8; return s.tmp_1;
+ s.hbox___80734 = (r0);
+ s.tmp_1 = game_Hitbox_left__P61958_mk(s);
+ s.tmp_1.arg0 = s.hbox___80734;
+ s.callLocIdx = 1690; s.pc = 8; return s.tmp_1;
case 8:
r0 = s.retval;
s.tmp_0 = r0;
@@ -82218,10 +81365,10 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.left___20753 = (r0);
- s.tmp_1 = game_Hitbox_right__P1965_mk(s);
- s.tmp_1.arg0 = s.hbox___20750;
- s.callLocIdx = 1746; s.pc = 9; return s.tmp_1;
+ s.left___80737 = (r0);
+ s.tmp_1 = game_Hitbox_right__P61960_mk(s);
+ s.tmp_1.arg0 = s.hbox___80734;
+ s.callLocIdx = 1693; s.pc = 9; return s.tmp_1;
case 9:
r0 = s.retval;
s.tmp_0 = r0;
@@ -82230,10 +81377,10 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.right___20759 = (r0);
- s.tmp_1 = game_Hitbox_top__P1964_mk(s);
- s.tmp_1.arg0 = s.hbox___20750;
- s.callLocIdx = 1749; s.pc = 10; return s.tmp_1;
+ s.right___80743 = (r0);
+ s.tmp_1 = game_Hitbox_top__P61959_mk(s);
+ s.tmp_1.arg0 = s.hbox___80734;
+ s.callLocIdx = 1696; s.pc = 10; return s.tmp_1;
case 10:
r0 = s.retval;
s.tmp_0 = r0;
@@ -82242,10 +81389,10 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.top___20765 = (r0);
- s.tmp_1 = game_Hitbox_bottom__P1966_mk(s);
- s.tmp_1.arg0 = s.hbox___20750;
- s.callLocIdx = 1752; s.pc = 11; return s.tmp_1;
+ s.top___80749 = (r0);
+ s.tmp_1 = game_Hitbox_bottom__P61961_mk(s);
+ s.tmp_1.arg0 = s.hbox___80734;
+ s.callLocIdx = 1699; s.pc = 11; return s.tmp_1;
case 11:
r0 = s.retval;
s.tmp_0 = r0;
@@ -82254,24 +81401,24 @@ switch (step) {
r0 = (s.tmp_2 + 8);
s.tmp_3 = r0;
r0 = (s.tmp_0 >> s.tmp_3);
- s.bottom___20771 = (r0);
- s.col___20777 = (s.left___20753);
+ s.bottom___80755 = (r0);
+ s.col___80761 = (s.left___80737);
case 1:
- r0 = (s.col___20777 <= s.right___20759);
+ r0 = (s.col___80761 <= s.right___80743);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 6; continue; }
- s.row___20783 = (s.top___20765);
+ s.row___80767 = (s.top___80749);
case 2:
- r0 = (s.row___20783 <= s.bottom___20771);
+ r0 = (s.row___80767 <= s.bottom___80755);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 5; continue; }
- s.tmp_2 = tiles_legacy_LegacyTilemap__C3850_v12_3_mk(s);
+ s.tmp_2 = tiles_legacy_LegacyTilemap__C63847_v12_3_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.col___20777;
- s.tmp_2.arg2 = s.row___20783;
- if (!checkSubtype(s.tmp_2.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_2.arg0);
+ s.tmp_2.arg1 = s.col___80761;
+ s.tmp_2.arg2 = s.row___80767;
+ if (!checkSubtype(s.tmp_2.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_2.arg0);
s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isObstacle;
s.pc = 12; return s.tmp_2;
case 12:
@@ -82283,12 +81430,12 @@ switch (step) {
{ step = 7; continue; }
case 3:
case 4:
- r0 = (s.row___20783 + 1);
- s.row___20783 = (r0);
+ r0 = (s.row___80767 + 1);
+ s.row___80767 = (r0);
{ step = 2; continue; }
case 5:
- r0 = (s.col___20777 + 1);
- s.col___20777 = (r0);
+ r0 = (s.col___80761 + 1);
+ s.col___80761 = (r0);
{ step = 1; continue; }
case 6:
r0 = false;
@@ -82296,24 +81443,24 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_isOnWall__P3873.info = {"start":8529,"length":626,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]}
+tiles_legacy_LegacyTilemap_isOnWall__P63870.info = {"start":8529,"length":626,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]}
-function tiles_legacy_LegacyTilemap_isOnWall__P3873_mk(s) {
+function tiles_legacy_LegacyTilemap_isOnWall__P63870_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_isOnWall__P3873, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_isOnWall__P63870, depth: s.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___20750: undefined,
- left___20753: undefined,
- right___20759: undefined,
- top___20765: undefined,
- bottom___20771: undefined,
- col___20777: undefined,
- row___20783: undefined,
+ hbox___80734: undefined,
+ left___80737: undefined,
+ right___80743: undefined,
+ top___80749: undefined,
+ bottom___80755: undefined,
+ col___80761: undefined,
+ row___80767: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -82322,7 +81469,7 @@ function tiles_legacy_LegacyTilemap_isOnWall__P3873_mk(s) {
-function tiles_legacy_LegacyTilemap_getObstacle__P3872(s) {
+function tiles_legacy_LegacyTilemap_getObstacle__P63869(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82332,8 +81479,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.index___20717 = undefined;
- s.tile___20728 = undefined;
+ s.index___80701 = undefined;
+ s.tile___80712 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -82341,12 +81488,12 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_1 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_1 = tiles_legacy_LegacyTilemap_isOutsideMap__P71431_mk(s);
s.tmp_1.arg0 = s.arg0;
s.tmp_1.arg1 = s.arg1;
s.tmp_1.arg2 = s.arg2;
- s.callLocIdx = 1737; s.pc = 5; return s.tmp_1;
+ s.callLocIdx = 1684; s.pc = 5; return s.tmp_1;
case 5:
r0 = s.retval;
s.tmp_0 = r0;
@@ -82361,33 +81508,33 @@ switch (step) {
case 2:
// jmp value (already in r0)
s.tmp_3 = r0;
- s.index___20717 = (s.tmp_3);
+ s.index___80701 = (s.tmp_3);
r0 = s.arg0.fields["_tileSets"];
s.tmp_1 = r0;
- r0 = pxsim_Array__getAt(s.tmp_1, s.index___20717);
+ r0 = pxsim_Array__getAt(s.tmp_1, s.index___80701);
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_2 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s);
+ s.tmp_2 = tiles_legacy_LegacyTilemap_generateTile__P71430_mk(s);
s.tmp_2.arg0 = s.arg0;
- s.tmp_2.arg1 = s.index___20717;
- s.callLocIdx = 1738; s.pc = 6; return s.tmp_2;
+ s.tmp_2.arg1 = s.index___80701;
+ s.callLocIdx = 1685; s.pc = 6; return s.tmp_2;
case 6:
r0 = s.retval;
case 4:
// jmp value (already in r0)
s.tmp_3 = r0;
- s.tile___20728 = (s.tmp_3);
- r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2143_VT);
+ s.tile___80712 = (s.tmp_3);
+ r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C62138_VT);
s.tmp_0 = r0;
- s.tmp_1 = sprites_StaticObstacle_constructor__P2149_mk(s);
+ s.tmp_1 = sprites_StaticObstacle_constructor__P62144_mk(s);
s.tmp_1.arg0 = s.tmp_0;
- s.tmp_2 = tiles_legacy_TileSet_image__P20141_mk(s);
- s.tmp_2.arg0 = s.tile___20728;
- s.callLocIdx = 1739; s.pc = 8; return s.tmp_2;
+ s.tmp_2 = tiles_legacy_TileSet_image__P80125_mk(s);
+ s.tmp_2.arg0 = s.tile___80712;
+ s.callLocIdx = 1686; s.pc = 8; return s.tmp_2;
case 8:
r0 = s.retval;
s.tmp_1.arg1 = r0;
@@ -82401,28 +81548,28 @@ switch (step) {
s.tmp_6 = r0;
r0 = (s.tmp_5 << s.tmp_6);
s.tmp_1.arg3 = r0;
- s.tmp_7 = tiles_legacy_LegacyTilemap__C3850_v5_1_mk(s);
+ s.tmp_7 = tiles_legacy_LegacyTilemap__C63847_v5_1_mk(s);
s.tmp_7.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_7.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_7.arg0);
+ if (!checkSubtype(s.tmp_7.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_7.arg0);
s.tmp_7.fn = s.tmp_7.arg0.vtable.methods.layer;
s.pc = 9; return s.tmp_7;
case 9:
r0 = s.retval;
s.tmp_1.arg4 = r0;
- s.tmp_1.arg5 = s.index___20717;
- s.callLocIdx = 1742; s.pc = 7; return s.tmp_1;
+ s.tmp_1.arg5 = s.index___80701;
+ s.callLocIdx = 1689; s.pc = 7; return s.tmp_1;
case 7:
r0 = s.retval;
r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_getObstacle__P3872.info = {"start":8082,"length":437,"line":238,"column":8,"endLine":248,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]}
+tiles_legacy_LegacyTilemap_getObstacle__P63869.info = {"start":8082,"length":437,"line":238,"column":8,"endLine":248,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]}
-function tiles_legacy_LegacyTilemap_getObstacle__P3872_mk(s) {
+function tiles_legacy_LegacyTilemap_getObstacle__P63869_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_getObstacle__P3872, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_getObstacle__P63869, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82432,8 +81579,8 @@ function tiles_legacy_LegacyTilemap_getObstacle__P3872_mk(s) {
tmp_5: undefined,
tmp_6: undefined,
tmp_7: undefined,
- index___20717: undefined,
- tile___20728: undefined,
+ index___80701: undefined,
+ tile___80712: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -82443,7 +81590,7 @@ function tiles_legacy_LegacyTilemap_getObstacle__P3872_mk(s) {
-function tiles_legacy_LegacyTilemap_isObstacle__P3871(s) {
+function tiles_legacy_LegacyTilemap_isObstacle__P63868(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82453,7 +81600,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.t___20701 = undefined;
+ s.t___80685 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -82461,10 +81608,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ s.tmp_3 = tiles_legacy_LegacyTilemap__C63847_v6_1_mk(s);
s.tmp_3.arg0 = s.arg0;
- if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0);
+ if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(s.tmp_3.arg0);
s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled;
s.pc = 8; return s.tmp_3;
case 8:
@@ -82480,11 +81627,11 @@ switch (step) {
{ step = 7; continue; }
case 1:
case 2:
- s.tmp_5 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s);
+ s.tmp_5 = tiles_legacy_LegacyTilemap_isOutsideMap__P71431_mk(s);
s.tmp_5.arg0 = s.arg0;
s.tmp_5.arg1 = s.arg1;
s.tmp_5.arg2 = s.arg2;
- s.callLocIdx = 1736; s.pc = 9; return s.tmp_5;
+ s.callLocIdx = 1683; s.pc = 9; return s.tmp_5;
case 9:
r0 = s.retval;
s.tmp_4 = r0;
@@ -82501,14 +81648,14 @@ switch (step) {
r0 = pxsim_ImageMethods.getPixel(s.tmp_8, s.arg1, s.arg2);
s.tmp_7 = r0;
r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7);
- s.t___20701 = (r0);
- s.tmp_0 = r0 = s.t___20701;
+ s.t___80685 = (r0);
+ s.tmp_0 = r0 = s.t___80685;
r0 = pxsim_numops_toBool(s.tmp_0);
if (r0) { step = 5; continue; }
r0 = s.tmp_0;
{ step = 6; continue; }
case 5:
- r0 = s.t___20701.fields["obstacle"];
+ r0 = s.t___80685.fields["obstacle"];
case 6:
// jmp value (already in r0)
s.tmp_1 = r0;
@@ -82517,12 +81664,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_isObstacle__P3871.info = {"start":7806,"length":266,"line":230,"column":8,"endLine":236,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]}
+tiles_legacy_LegacyTilemap_isObstacle__P63868.info = {"start":7806,"length":266,"line":230,"column":8,"endLine":236,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]}
-function tiles_legacy_LegacyTilemap_isObstacle__P3871_mk(s) {
+function tiles_legacy_LegacyTilemap_isObstacle__P63868_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_isObstacle__P3871, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_isObstacle__P63868, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82533,7 +81680,7 @@ function tiles_legacy_LegacyTilemap_isObstacle__P3871_mk(s) {
tmp_6: undefined,
tmp_7: undefined,
tmp_8: undefined,
- t___20701: undefined,
+ t___80685: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -82543,7 +81690,7 @@ function tiles_legacy_LegacyTilemap_isObstacle__P3871_mk(s) {
-function tiles_legacy_LegacyTilemap_getTile__P3867(s) {
+function tiles_legacy_LegacyTilemap_getTile__P63864(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82560,27 +81707,27 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
- r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2286_VT);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
+ r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C62281_VT);
s.tmp_0 = r0;
- s.tmp_1 = tiles_Location_constructor__P2289_mk(s);
+ s.tmp_1 = tiles_Location_constructor__P62284_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 = 1713; s.pc = 1; return s.tmp_1;
+ s.callLocIdx = 1660; s.pc = 1; return s.tmp_1;
case 1:
r0 = s.retval;
r0 = s.tmp_0;
return leave(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_getTile__P3867.info = {"start":3371,"length":111,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
+tiles_legacy_LegacyTilemap_getTile__P63864.info = {"start":3371,"length":111,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]}
-function tiles_legacy_LegacyTilemap_getTile__P3867_mk(s) {
+function tiles_legacy_LegacyTilemap_getTile__P63864_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_getTile__P3867, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_getTile__P63864, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82593,7 +81740,7 @@ function tiles_legacy_LegacyTilemap_getTile__P3867_mk(s) {
-function tiles_legacy_LegacyTilemap_layer__P3861(s) {
+function tiles_legacy_LegacyTilemap_layer__P63858(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82608,18 +81755,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0);
+ if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C63847_VT)) failedCast(r0);
r0 = s.arg0.fields["_layer"];
return leaveAccessor(s, r0)
default: oops()
} } }
-tiles_legacy_LegacyTilemap_layer__P3861.info = {"start":2685,"length":63,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"mytilemap.ts","functionName":"layer","argumentNames":["this"]}
-tiles_legacy_LegacyTilemap_layer__P3861.isGetter = true;
+tiles_legacy_LegacyTilemap_layer__P63858.info = {"start":2685,"length":63,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"mytilemap.ts","functionName":"layer","argumentNames":["this"]}
+tiles_legacy_LegacyTilemap_layer__P63858.isGetter = true;
-function tiles_legacy_LegacyTilemap_layer__P3861_mk(s) {
+function tiles_legacy_LegacyTilemap_layer__P63858_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tiles_legacy_LegacyTilemap_layer__P3861, depth: s.depth + 1,
+ parent: s, fn: tiles_legacy_LegacyTilemap_layer__P63858, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -82628,7 +81775,7 @@ function tiles_legacy_LegacyTilemap_layer__P3861_mk(s) {
-function tileworld_TileSprite___drawCore__P9374(s) {
+function tileworld_TileSprite___drawCore__P69370(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82638,21 +81785,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___9514 = undefined;
- s.oy___9522 = undefined;
- s.l___9530 = undefined;
- s.t___9538 = undefined;
+ s.ox___69510 = undefined;
+ s.oy___69518 = undefined;
+ s.l___69526 = undefined;
+ s.t___69534 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0);
- s.tmp_1 = tileworld_TileSprite__C9368_v4_2_mk(s);
+ if (!checkSubtype(r0, tileworld_TileSprite__C69364_VT)) failedCast(r0);
+ s.tmp_1 = tileworld_TileSprite__C69364_v4_2_mk(s);
s.tmp_1.arg0 = s.arg0;
s.tmp_1.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_1.arg0, tileworld_TileSprite__C9368_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, tileworld_TileSprite__C69364_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOutOfScreen;
s.pc = 10; return s.tmp_1;
case 10:
@@ -82676,7 +81823,7 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.ox___9514 = (s.tmp_4);
+ s.ox___69510 = (s.tmp_4);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 512);
@@ -82690,7 +81837,7 @@ switch (step) {
case 6:
// jmp value (already in r0)
s.tmp_2 = r0;
- s.oy___9522 = (s.tmp_2);
+ s.oy___69518 = (s.tmp_2);
r0 = s.arg0.fields["debug"];
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
@@ -82702,49 +81849,49 @@ switch (step) {
case 8:
// jmp value (already in r0)
s.tmp_1 = r0;
- s.tmp_4 = Sprite_left__P2059_mk(s);
+ s.tmp_4 = Sprite_left__P62054_mk(s);
s.tmp_4.arg0 = s.arg0;
- s.callLocIdx = 296; s.pc = 11; return s.tmp_4;
+ s.callLocIdx = 298; s.pc = 11; return s.tmp_4;
case 11:
r0 = s.retval;
s.tmp_3 = r0;
- r0 = (s.tmp_3 - s.ox___9514);
+ r0 = (s.tmp_3 - s.ox___69510);
s.tmp_2 = r0;
r0 = (s.tmp_2 + s.tmp_1);
- s.l___9530 = (r0);
- s.tmp_1 = Sprite_top__P2063_mk(s);
+ s.l___69526 = (r0);
+ s.tmp_1 = Sprite_top__P62058_mk(s);
s.tmp_1.arg0 = s.arg0;
- s.callLocIdx = 297; s.pc = 12; return s.tmp_1;
+ s.callLocIdx = 299; s.pc = 12; return s.tmp_1;
case 12:
r0 = s.retval;
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.oy___9522);
- s.t___9538 = (r0);
- s.tmp_0 = r0 = globals.screen___1799;
+ r0 = (s.tmp_0 - s.oy___69518);
+ s.t___69534 = (r0);
+ s.tmp_0 = r0 = globals.screen___61794;
r0 = s.arg0.fields["_image"];
s.tmp_1 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.l___9530, s.t___9538);
+ r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.l___69526, s.t___69534);
case 9:
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-tileworld_TileSprite___drawCore__P9374.info = {"start":2191,"length":627,"line":45,"column":8,"endLine":58,"endColumn":9,"fileName":"vm.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
+tileworld_TileSprite___drawCore__P69370.info = {"start":2191,"length":625,"line":45,"column":8,"endLine":58,"endColumn":9,"fileName":"vm.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
-function tileworld_TileSprite___drawCore__P9374_mk(s) {
+function tileworld_TileSprite___drawCore__P69370_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: tileworld_TileSprite___drawCore__P9374, depth: s.depth + 1,
+ parent: s, fn: tileworld_TileSprite___drawCore__P69370, depth: s.depth + 1,
pc: 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___9514: undefined,
- oy___9522: undefined,
- l___9530: undefined,
- t___9538: undefined,
+ ox___69510: undefined,
+ oy___69518: undefined,
+ l___69526: undefined,
+ t___69534: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -82753,7 +81900,7 @@ function tileworld_TileSprite___drawCore__P9374_mk(s) {
-function scene_Renderable___drawCore__P2373(s) {
+function scene_Renderable___drawCore__P62370(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82769,10 +81916,10 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Renderable__C62367_VT)) failedCast(r0);
s.tmp_0 = if_handler_3_mk(s);
s.tmp_0.arg0 = s.arg0;
- s.tmp_0.arg1 = globals.screen___1799;
+ s.tmp_0.arg1 = globals.screen___61794;
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);
@@ -82789,12 +81936,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_Renderable___drawCore__P2373.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
+scene_Renderable___drawCore__P62370.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
-function scene_Renderable___drawCore__P2373_mk(s) {
+function scene_Renderable___drawCore__P62370_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Renderable___drawCore__P2373, depth: s.depth + 1,
+ parent: s, fn: scene_Renderable___drawCore__P62370, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -82805,7 +81952,7 @@ function scene_Renderable___drawCore__P2373_mk(s) {
-function scene_Renderable___visible__P2372(s) {
+function scene_Renderable___visible__P62369(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82820,7 +81967,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Renderable__C62367_VT)) failedCast(r0);
s.tmp_0 = if_shouldBeVisible_1_mk(s);
s.tmp_0.arg0 = s.arg0;
if (!s.tmp_0.arg0.vtable.iface) {
@@ -82837,12 +81984,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-scene_Renderable___visible__P2372.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]}
+scene_Renderable___visible__P62369.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]}
-function scene_Renderable___visible__P2372_mk(s) {
+function scene_Renderable___visible__P62369_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Renderable___visible__P2372, depth: s.depth + 1,
+ parent: s, fn: scene_Renderable___visible__P62369, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
arg0: undefined,
@@ -82852,7 +81999,7 @@ function scene_Renderable___visible__P2372_mk(s) {
-function scene_Camera_top__P2365(s) {
+function scene_Camera_top__P62362(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82867,18 +82014,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
r0 = s.arg0.fields["drawOffsetY"];
return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Camera_top__P2365.info = {"start":1638,"length":58,"line":58,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]}
-scene_Camera_top__P2365.isGetter = true;
+scene_Camera_top__P62362.info = {"start":1638,"length":58,"line":58,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]}
+scene_Camera_top__P62362.isGetter = true;
-function scene_Camera_top__P2365_mk(s) {
+function scene_Camera_top__P62362_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_top__P2365, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_top__P62362, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -82887,7 +82034,7 @@ function scene_Camera_top__P2365_mk(s) {
-function scene_Camera_left__P2363(s) {
+function scene_Camera_left__P62360(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82902,18 +82049,18 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0);
+ if (!checkSubtype(r0, scene_Camera__C62349_VT)) failedCast(r0);
r0 = s.arg0.fields["drawOffsetX"];
return leaveAccessor(s, r0)
default: oops()
} } }
-scene_Camera_left__P2363.info = {"start":1486,"length":59,"line":52,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]}
-scene_Camera_left__P2363.isGetter = true;
+scene_Camera_left__P62360.info = {"start":1486,"length":59,"line":52,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]}
+scene_Camera_left__P62360.isGetter = true;
-function scene_Camera_left__P2363_mk(s) {
+function scene_Camera_left__P62360_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: scene_Camera_left__P2363, depth: s.depth + 1,
+ parent: s, fn: scene_Camera_left__P62360, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
arg0: undefined,
} }
@@ -82922,7 +82069,7 @@ function scene_Camera_left__P2363_mk(s) {
-function particles_ShapeFactory_drawParticle__P2735(s) {
+function particles_ShapeFactory_drawParticle__P62732(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -82932,7 +82079,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.pImage___31847 = undefined;
+ s.pImage___91844 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -82941,23 +82088,23 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0);
- s.tmp_1 = Math_FastRandom_pickRandom__P2583_mk(s);
+ if (!checkSubtype(r0, particles_ShapeFactory__C62729_VT)) failedCast(r0);
+ s.tmp_1 = Math_FastRandom_pickRandom__P62580_mk(s);
r0 = s.arg0.fields["galois"];
s.tmp_1.arg0 = r0;
r0 = s.arg0.fields["sources"];
s.tmp_1.arg1 = r0;
- s.callLocIdx = 1165; s.pc = 1; return s.tmp_1;
+ s.callLocIdx = 1171; 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___31847 = (r0);
+ s.pImage___91844 = (r0);
r0 = s.arg1.fields["color"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.replace(s.pImage___31847, 15, s.tmp_0);
- s.tmp_0 = r0 = globals.screen___1799;
- s.tmp_1 = r0 = s.pImage___31847;
+ r0 = pxsim_ImageMethods.replace(s.pImage___91844, 15, s.tmp_0);
+ s.tmp_0 = r0 = globals.screen___61794;
+ s.tmp_1 = r0 = s.pImage___91844;
r0 = s.arg0.fields["ox"];
s.tmp_4 = r0;
r0 = (s.arg2 - s.tmp_4);
@@ -82979,12 +82126,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-particles_ShapeFactory_drawParticle__P2735.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__P62732.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__P2735_mk(s) {
+function particles_ShapeFactory_drawParticle__P62732_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_ShapeFactory_drawParticle__P2735, depth: s.depth + 1,
+ parent: s, fn: particles_ShapeFactory_drawParticle__P62732, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -82996,7 +82143,7 @@ function particles_ShapeFactory_drawParticle__P2735_mk(s) {
tmp_7: undefined,
tmp_8: undefined,
tmp_9: undefined,
- pImage___31847: undefined,
+ pImage___91844: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -83007,7 +82154,7 @@ function particles_ShapeFactory_drawParticle__P2735_mk(s) {
-function Math_FastRandom_pickRandom__P2583(s) {
+function Math_FastRandom_pickRandom__P62580(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -83023,7 +82170,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Math_FastRandom__C62575_VT)) failedCast(r0);
r0 = pxsim_numops_toBoolDecr(s.arg1);
s.tmp_1 = r0;
r0 = pxsim_Boolean__bang(s.tmp_1);
@@ -83046,7 +82193,7 @@ switch (step) {
case 3:
case 4:
s.tmp_4 = r0 = s.arg1;
- s.tmp_6 = Math_FastRandom_randomRange__P2582_mk(s);
+ s.tmp_6 = Math_FastRandom_randomRange__P62579_mk(s);
s.tmp_6.arg0 = s.arg0;
s.tmp_6.arg1 = 0;
r0 = pxsim_Array__length(s.arg1);
@@ -83062,12 +82209,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Math_FastRandom_pickRandom__P2583.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__P62580.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__P2583_mk(s) {
+function Math_FastRandom_pickRandom__P62580_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Math_FastRandom_pickRandom__P2583, depth: s.depth + 1,
+ parent: s, fn: Math_FastRandom_pickRandom__P62580, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -83085,7 +82232,7 @@ function Math_FastRandom_pickRandom__P2583_mk(s) {
-function particles_AreaFactory_drawParticle__P2723(s) {
+function particles_AreaFactory_drawParticle__P62720(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -83095,7 +82242,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.col___31893 = undefined;
+ s.col___91890 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
@@ -83104,7 +82251,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_AreaFactory__C2716_VT)) failedCast(r0);
+ if (!checkSubtype(r0, particles_AreaFactory__C62713_VT)) failedCast(r0);
r0 = s.arg1.fields["lifespan"];
s.tmp_1 = r0;
r0 = (s.tmp_1 > 500);
@@ -83131,8 +82278,8 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_5 = r0;
- s.col___31893 = (s.tmp_5);
- s.tmp_0 = r0 = globals.screen___1799;
+ s.col___91890 = (s.tmp_5);
+ s.tmp_0 = r0 = globals.screen___61794;
r0 = (s.arg2 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
@@ -83141,17 +82288,17 @@ switch (step) {
s.tmp_4 = r0;
r0 = (s.tmp_4 >> 8);
s.tmp_3 = r0;
- r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___31893);
+ r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___91890);
r0 = undefined;
return leave(s, r0)
default: oops()
} } }
-particles_AreaFactory_drawParticle__P2723.info = {"start":4770,"length":222,"line":158,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]}
+particles_AreaFactory_drawParticle__P62720.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__P2723_mk(s) {
+function particles_AreaFactory_drawParticle__P62720_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_AreaFactory_drawParticle__P2723, depth: s.depth + 1,
+ parent: s, fn: particles_AreaFactory_drawParticle__P62720, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -83159,7 +82306,7 @@ function particles_AreaFactory_drawParticle__P2723_mk(s) {
tmp_3: undefined,
tmp_4: undefined,
tmp_5: undefined,
- col___31893: undefined,
+ col___91890: undefined,
arg0: undefined,
arg1: undefined,
arg2: undefined,
@@ -83170,7 +82317,7 @@ function particles_AreaFactory_drawParticle__P2723_mk(s) {
-function particles_SprayFactory_drawParticle__P2713(s) {
+function particles_SprayFactory_drawParticle__P62710(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -83188,8 +82335,8 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0);
- s.tmp_0 = r0 = globals.screen___1799;
+ if (!checkSubtype(r0, particles_SprayFactory__C62707_VT)) failedCast(r0);
+ s.tmp_0 = r0 = globals.screen___61794;
r0 = (s.arg2 + 128);
s.tmp_2 = r0;
r0 = (s.tmp_2 >> 8);
@@ -83203,12 +82350,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-particles_SprayFactory_drawParticle__P2713.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]}
+particles_SprayFactory_drawParticle__P62710.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]}
-function particles_SprayFactory_drawParticle__P2713_mk(s) {
+function particles_SprayFactory_drawParticle__P62710_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: particles_SprayFactory_drawParticle__P2713, depth: s.depth + 1,
+ parent: s, fn: particles_SprayFactory_drawParticle__P62710, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -83225,7 +82372,7 @@ function particles_SprayFactory_drawParticle__P2713_mk(s) {
-function Sprite___drawCore__P2074(s) {
+function Sprite___drawCore__P62069(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -83235,24 +82382,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
switch (step) {
case 0:
- s.ox___31937 = undefined;
- s.oy___31945 = undefined;
- s.l___31953 = undefined;
- s.t___31957 = undefined;
- s.font___31972 = undefined;
- s.tx___31976 = undefined;
- s.ty___31978 = undefined;
+ s.ox___91934 = undefined;
+ s.oy___91942 = undefined;
+ s.l___91950 = undefined;
+ s.t___91954 = undefined;
+ s.font___91969 = undefined;
+ s.tx___91973 = undefined;
+ s.ty___91975 = undefined;
if (s.lambdaArgs) {
s.arg0 = (s.lambdaArgs[0]);
s.arg1 = (s.lambdaArgs[1]);
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
- s.tmp_1 = Sprite__C2013_v4_2_mk(s);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
+ s.tmp_1 = Sprite__C62008_v4_2_mk(s);
s.tmp_1.arg0 = s.arg0;
s.tmp_1.arg1 = s.arg1;
- if (!checkSubtype(s.tmp_1.arg0, Sprite__C2013_VT)) failedCast(s.tmp_1.arg0);
+ if (!checkSubtype(s.tmp_1.arg0, Sprite__C62008_VT)) failedCast(s.tmp_1.arg0);
s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOutOfScreen;
s.pc = 20; return s.tmp_1;
case 20:
@@ -83276,7 +82423,7 @@ switch (step) {
case 4:
// jmp value (already in r0)
s.tmp_4 = r0;
- s.ox___31937 = (s.tmp_4);
+ s.ox___91934 = (s.tmp_4);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 512);
@@ -83290,35 +82437,35 @@ switch (step) {
case 6:
// jmp value (already in r0)
s.tmp_2 = r0;
- s.oy___31945 = (s.tmp_2);
- s.tmp_1 = Sprite_left__P2059_mk(s);
+ s.oy___91942 = (s.tmp_2);
+ s.tmp_1 = Sprite_left__P62054_mk(s);
s.tmp_1.arg0 = s.arg0;
s.callLocIdx = 362; s.pc = 21; return s.tmp_1;
case 21:
r0 = s.retval;
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.ox___31937);
- s.l___31953 = (r0);
- s.tmp_1 = Sprite_top__P2063_mk(s);
+ r0 = (s.tmp_0 - s.ox___91934);
+ s.l___91950 = (r0);
+ s.tmp_1 = Sprite_top__P62058_mk(s);
s.tmp_1.arg0 = s.arg0;
s.callLocIdx = 363; s.pc = 22; return s.tmp_1;
case 22:
r0 = s.retval;
s.tmp_0 = r0;
- r0 = (s.tmp_0 - s.oy___31945);
- s.t___31957 = (r0);
+ r0 = (s.tmp_0 - s.oy___91942);
+ s.t___91954 = (r0);
r0 = s.arg0.fields["_image"];
s.tmp_0 = r0;
- r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, s.tmp_0, s.l___31953, s.t___31957);
+ r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___61794, s.tmp_0, s.l___91950, s.t___91954);
r0 = s.arg0.fields["flags"];
s.tmp_1 = r0;
r0 = (s.tmp_1 & 64);
s.tmp_0 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_0);
if (!r0) { step = 15; continue; }
- s.font___31972 = (globals.font5___1747);
- s.tx___31976 = (s.l___31953);
- s.tmp_1 = r0 = s.t___31957;
+ s.font___91969 = (globals.font5___61742);
+ s.tx___91973 = (s.l___91950);
+ s.tmp_1 = r0 = s.t___91954;
r0 = s.arg0.fields["_image"];
s.tmp_3 = r0;
r0 = pxsim_ImageMethods.height(s.tmp_3);
@@ -83326,12 +82473,12 @@ switch (step) {
r0 = (s.tmp_1 + s.tmp_2);
s.tmp_0 = r0;
r0 = (s.tmp_0 + 2);
- s.ty___31978 = (r0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
+ s.ty___91975 = (r0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
r0 = pxsim_String_.mkEmpty();
s.tmp_3 = r0;
- s.tmp_7 = Sprite_x__P2022_mk(s);
+ s.tmp_7 = Sprite_x__P62017_mk(s);
s.tmp_7.arg0 = s.arg0;
s.callLocIdx = 365; s.pc = 24; return s.tmp_7;
case 24:
@@ -83352,7 +82499,7 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_String__concat(s.tmp_2, ",");
s.tmp_1 = r0;
- s.tmp_11 = Sprite_y__P2024_mk(s);
+ s.tmp_11 = Sprite_y__P62019_mk(s);
s.tmp_11.arg0 = s.arg0;
s.callLocIdx = 366; s.pc = 26; return s.tmp_11;
case 26:
@@ -83371,17 +82518,17 @@ 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___31976;
- s.tmp_0.arg3 = s.ty___31978;
+ s.tmp_0.arg2 = s.tx___91973;
+ s.tmp_0.arg3 = s.ty___91975;
s.tmp_0.arg4 = 1;
- s.tmp_0.arg5 = s.font___31972;
+ s.tmp_0.arg5 = s.font___91969;
s.tmp_0.arg6 = undefined;
s.callLocIdx = 367; s.pc = 23; return s.tmp_0;
case 23:
r0 = s.retval;
- s.tmp_0 = r0 = s.tx___31976;
+ s.tmp_0 = r0 = s.tx___91973;
s.tmp_2 = if_charWidth_1_mk(s);
- s.tmp_2.arg0 = s.font___31972;
+ s.tmp_2.arg0 = s.font___91969;
if (!s.tmp_2.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth");
} else {
@@ -83394,8 +82541,8 @@ switch (step) {
r0 = s.retval;
s.tmp_1 = r0;
r0 = (s.tmp_0 - s.tmp_1);
- s.tx___31976 = (r0);
- s.tmp_1 = Sprite_vx__P2026_mk(s);
+ s.tx___91973 = (r0);
+ s.tmp_1 = Sprite_vx__P62021_mk(s);
s.tmp_1.arg0 = s.arg0;
s.callLocIdx = 369; s.pc = 29; return s.tmp_1;
case 29:
@@ -83406,7 +82553,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 8; continue; }
case 7:
- s.tmp_2 = Sprite_vy__P2028_mk(s);
+ s.tmp_2 = Sprite_vy__P62023_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 370; s.pc = 30; return s.tmp_2;
case 30:
@@ -83416,9 +82563,9 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 9; continue; }
- s.tmp_4 = r0 = s.ty___31978;
+ s.tmp_4 = r0 = s.ty___91975;
s.tmp_7 = if_charHeight_1_mk(s);
- s.tmp_7.arg0 = s.font___31972;
+ s.tmp_7.arg0 = s.font___91969;
if (!s.tmp_7.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight");
} else {
@@ -83433,10 +82580,10 @@ switch (step) {
r0 = (s.tmp_6 + 2);
s.tmp_5 = r0;
r0 = (s.tmp_4 + s.tmp_5);
- s.ty___31978 = (r0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_6 = Sprite_vx__P2026_mk(s);
+ s.ty___91975 = (r0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_6 = Sprite_vx__P62021_mk(s);
s.tmp_6.arg0 = s.arg0;
s.callLocIdx = 372; s.pc = 33; return s.tmp_6;
case 33:
@@ -83457,7 +82604,7 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_String__concat(s.tmp_2, ",");
s.tmp_1 = r0;
- s.tmp_10 = Sprite_vy__P2028_mk(s);
+ s.tmp_10 = Sprite_vy__P62023_mk(s);
s.tmp_10.arg0 = s.arg0;
s.callLocIdx = 373; s.pc = 35; return s.tmp_10;
case 35:
@@ -83476,17 +82623,17 @@ 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___31976;
- s.tmp_0.arg3 = s.ty___31978;
+ s.tmp_0.arg2 = s.tx___91973;
+ s.tmp_0.arg3 = s.ty___91975;
s.tmp_0.arg4 = 1;
- s.tmp_0.arg5 = s.font___31972;
+ s.tmp_0.arg5 = s.font___91969;
s.tmp_0.arg6 = undefined;
s.callLocIdx = 374; s.pc = 32; return s.tmp_0;
case 32:
r0 = s.retval;
case 9:
case 10:
- s.tmp_1 = Sprite_ax__P2030_mk(s);
+ s.tmp_1 = Sprite_ax__P62025_mk(s);
s.tmp_1.arg0 = s.arg0;
s.callLocIdx = 375; s.pc = 37; return s.tmp_1;
case 37:
@@ -83497,7 +82644,7 @@ switch (step) {
r0 = s.tmp_0;
{ step = 12; continue; }
case 11:
- s.tmp_2 = Sprite_ay__P2032_mk(s);
+ s.tmp_2 = Sprite_ay__P62027_mk(s);
s.tmp_2.arg0 = s.arg0;
s.callLocIdx = 376; s.pc = 38; return s.tmp_2;
case 38:
@@ -83507,9 +82654,9 @@ switch (step) {
s.tmp_3 = r0;
r0 = pxsim_numops_toBoolDecr(s.tmp_3);
if (!r0) { step = 13; continue; }
- s.tmp_4 = r0 = s.ty___31978;
+ s.tmp_4 = r0 = s.ty___91975;
s.tmp_7 = if_charHeight_1_mk(s);
- s.tmp_7.arg0 = s.font___31972;
+ s.tmp_7.arg0 = s.font___91969;
if (!s.tmp_7.arg0.vtable.iface) {
s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight");
} else {
@@ -83524,10 +82671,10 @@ switch (step) {
r0 = (s.tmp_6 + 2);
s.tmp_5 = r0;
r0 = (s.tmp_4 + s.tmp_5);
- s.ty___31978 = (r0);
- s.tmp_0 = helpers_imagePrint__P1757_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_6 = Sprite_ax__P2030_mk(s);
+ s.ty___91975 = (r0);
+ s.tmp_0 = helpers_imagePrint__P61752_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_6 = Sprite_ax__P62025_mk(s);
s.tmp_6.arg0 = s.arg0;
s.callLocIdx = 378; s.pc = 41; return s.tmp_6;
case 41:
@@ -83548,7 +82695,7 @@ switch (step) {
s.tmp_2 = r0;
r0 = pxsim_String__concat(s.tmp_2, ",");
s.tmp_1 = r0;
- s.tmp_10 = Sprite_ay__P2032_mk(s);
+ s.tmp_10 = Sprite_ay__P62027_mk(s);
s.tmp_10.arg0 = s.arg0;
s.callLocIdx = 379; s.pc = 43; return s.tmp_10;
case 43:
@@ -83567,10 +82714,10 @@ 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___31976;
- s.tmp_0.arg3 = s.ty___31978;
+ s.tmp_0.arg2 = s.tx___91973;
+ s.tmp_0.arg3 = s.ty___91975;
s.tmp_0.arg4 = 1;
- s.tmp_0.arg5 = s.font___31972;
+ s.tmp_0.arg5 = s.font___91969;
s.tmp_0.arg6 = undefined;
s.callLocIdx = 380; s.pc = 40; return s.tmp_0;
case 40:
@@ -83579,11 +82726,11 @@ switch (step) {
case 14:
case 15:
case 16:
- r0 = pxsim_numops_toBoolDecr(globals.debug___2520);
+ r0 = pxsim_numops_toBoolDecr(globals.debug___62517);
if (!r0) { step = 17; continue; }
- s.tmp_0 = helpers_imageDrawRect__P1728_mk(s);
- s.tmp_0.arg0 = globals.screen___1799;
- s.tmp_3 = game_Hitbox_left__P1963_mk(s);
+ s.tmp_0 = helpers_imageDrawRect__P61723_mk(s);
+ s.tmp_0.arg0 = globals.screen___61794;
+ s.tmp_3 = game_Hitbox_left__P61958_mk(s);
r0 = s.arg0.fields["_hitbox"];
s.tmp_3.arg0 = r0;
s.callLocIdx = 381; s.pc = 46; return s.tmp_3;
@@ -83594,9 +82741,9 @@ switch (step) {
s.tmp_4 = r0;
r0 = (s.tmp_4 >> 8);
s.tmp_1 = r0;
- r0 = (s.tmp_1 - s.ox___31937);
+ r0 = (s.tmp_1 - s.ox___91934);
s.tmp_0.arg1 = r0;
- s.tmp_7 = game_Hitbox_top__P1964_mk(s);
+ s.tmp_7 = game_Hitbox_top__P61959_mk(s);
r0 = s.arg0.fields["_hitbox"];
s.tmp_7.arg0 = r0;
s.callLocIdx = 383; s.pc = 47; return s.tmp_7;
@@ -83607,7 +82754,7 @@ switch (step) {
s.tmp_8 = r0;
r0 = (s.tmp_8 >> 8);
s.tmp_5 = r0;
- r0 = (s.tmp_5 - s.oy___31945);
+ r0 = (s.tmp_5 - s.oy___91942);
s.tmp_0.arg2 = r0;
r0 = s.arg0.fields["_hitbox"];
r0 = r0.fields["width"];
@@ -83634,12 +82781,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite___drawCore__P2074.info = {"start":20802,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
+Sprite___drawCore__P62069.info = {"start":20775,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]}
-function Sprite___drawCore__P2074_mk(s) {
+function Sprite___drawCore__P62069_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite___drawCore__P2074, depth: s.depth + 1,
+ parent: s, fn: Sprite___drawCore__P62069, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -83654,13 +82801,13 @@ function Sprite___drawCore__P2074_mk(s) {
tmp_10: undefined,
tmp_11: undefined,
tmp_12: undefined,
- ox___31937: undefined,
- oy___31945: undefined,
- l___31953: undefined,
- t___31957: undefined,
- font___31972: undefined,
- tx___31976: undefined,
- ty___31978: undefined,
+ ox___91934: undefined,
+ oy___91942: undefined,
+ l___91950: undefined,
+ t___91954: undefined,
+ font___91969: undefined,
+ tx___91973: undefined,
+ ty___91975: undefined,
arg0: undefined,
arg1: undefined,
} }
@@ -83669,7 +82816,7 @@ function Sprite___drawCore__P2074_mk(s) {
-function Sprite___visible__P2056(s) {
+function Sprite___visible__P62051(s) {
let r0 = s.r0, step = s.pc;
s.pc = -1;
@@ -83684,7 +82831,7 @@ switch (step) {
s.lambdaArgs = null;
}
r0 = s.arg0;
- if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0);
+ if (!checkSubtype(r0, Sprite__C62008_VT)) failedCast(r0);
r0 = s.arg0.fields["flags"];
s.tmp_2 = r0;
r0 = (s.tmp_2 & 128);
@@ -83695,12 +82842,12 @@ switch (step) {
return leave(s, r0)
default: oops()
} } }
-Sprite___visible__P2056.info = {"start":8356,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]}
+Sprite___visible__P62051.info = {"start":8329,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]}
-function Sprite___visible__P2056_mk(s) {
+function Sprite___visible__P62051_mk(s) {
checkStack(s.depth);
return {
- parent: s, fn: Sprite___visible__P2056, depth: s.depth + 1,
+ parent: s, fn: Sprite___visible__P62051, depth: s.depth + 1,
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
tmp_0: undefined,
tmp_1: undefined,
@@ -83769,7 +82916,7 @@ function if_flags_1_mk(s) {
} }
-function particles_ParticleFactory__C2706_v0_2_mk(s) {
+function particles_ParticleFactory__C62703_v0_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -83784,7 +82931,7 @@ function particles_ParticleFactory__C2706_v0_2_mk(s) {
} }
-function particles_ParticleSource__C2670_v4_3_mk(s) {
+function particles_ParticleSource__C62667_v4_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -83885,7 +83032,7 @@ function if_id_2_mk(s) {
} }
-function PhysicsEngine__C2156_v4_2_mk(s) {
+function PhysicsEngine__C62151_v4_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -83931,7 +83078,7 @@ function lambda_2_mk(s) {
} }
-function PhysicsEngine__C2156_v3_1_mk(s) {
+function PhysicsEngine__C62151_v3_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -83988,7 +83135,7 @@ function if_id_1_mk(s) {
} }
-function tiles_TileMap__C2314_v6_1_mk(s) {
+function tiles_TileMap__C62309_v6_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84002,7 +83149,7 @@ function tiles_TileMap__C2314_v6_1_mk(s) {
} }
-function tiles_TileMap__C2314_v2_2_mk(s) {
+function tiles_TileMap__C62309_v2_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84017,7 +83164,7 @@ function tiles_TileMap__C2314_v2_2_mk(s) {
} }
-function tiles_TileMap__C2314_v4_1_mk(s) {
+function tiles_TileMap__C62309_v4_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84031,7 +83178,7 @@ function tiles_TileMap__C2314_v4_1_mk(s) {
} }
-function tiles_TileMap__C2314_v1_2_mk(s) {
+function tiles_TileMap__C62309_v1_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84046,7 +83193,7 @@ function tiles_TileMap__C2314_v1_2_mk(s) {
} }
-function tiles_TileMap__C2314_v3_1_mk(s) {
+function tiles_TileMap__C62309_v3_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84060,7 +83207,7 @@ function tiles_TileMap__C2314_v3_1_mk(s) {
} }
-function controller_Button__C1900_v0_1_mk(s) {
+function controller_Button__C61895_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84172,7 +83319,7 @@ function if_yOffset_1_mk(s) {
} }
-function PhysicsEngine__C2156_v2_4_mk(s) {
+function PhysicsEngine__C62151_v2_4_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84237,7 +83384,7 @@ function if_z_2_mk(s) {
} }
-function Sprite__C2013_v4_2_mk(s) {
+function Sprite__C62008_v4_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84284,7 +83431,7 @@ function if_sourceFactory_3_mk(s) {
} }
-function PhysicsEngine__C2156_v1_2_mk(s) {
+function PhysicsEngine__C62151_v1_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84328,7 +83475,7 @@ function if_handler_2_mk(s) {
} }
-function PhysicsEngine__C2156_v0_2_mk(s) {
+function PhysicsEngine__C62151_v0_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84343,7 +83490,7 @@ function PhysicsEngine__C2156_v0_2_mk(s) {
} }
-function tiles_TileMap__C2314_v0_1_mk(s) {
+function tiles_TileMap__C62309_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84357,7 +83504,7 @@ function tiles_TileMap__C2314_v0_1_mk(s) {
} }
-function tiles_TileMap__C2314_v10_2_mk(s) {
+function tiles_TileMap__C62309_v10_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84372,7 +83519,7 @@ function tiles_TileMap__C2314_v10_2_mk(s) {
} }
-function tiles_TileMap__C2314_v11_3_mk(s) {
+function tiles_TileMap__C62309_v11_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84584,7 +83731,7 @@ function if_activeCard_1_mk(s) {
} }
-function tiles_TileMap__C2314_v14_2_mk(s) {
+function tiles_TileMap__C62309_v14_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84599,7 +83746,7 @@ function tiles_TileMap__C2314_v14_2_mk(s) {
} }
-function tiles_TileMap__C2314_v12_3_mk(s) {
+function tiles_TileMap__C62309_v12_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84615,7 +83762,7 @@ function tiles_TileMap__C2314_v12_3_mk(s) {
} }
-function tiles_TileMap__C2314_v13_3_mk(s) {
+function tiles_TileMap__C62309_v13_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84631,7 +83778,7 @@ function tiles_TileMap__C2314_v13_3_mk(s) {
} }
-function tiles_TileMap__C2314_v7_3_mk(s) {
+function tiles_TileMap__C62309_v7_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84663,7 +83810,7 @@ function if_handler_3_mk(s) {
} }
-function tiles_TileMap__C2314_v15_2_mk(s) {
+function tiles_TileMap__C62309_v15_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84678,7 +83825,7 @@ function tiles_TileMap__C2314_v15_2_mk(s) {
} }
-function tiles_TileMap__C2314_v8_3_mk(s) {
+function tiles_TileMap__C62309_v8_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84694,7 +83841,7 @@ function tiles_TileMap__C2314_v8_3_mk(s) {
} }
-function tiles_TileMap__C2314_v5_1_mk(s) {
+function tiles_TileMap__C62309_v5_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84750,7 +83897,7 @@ function if_top_1_mk(s) {
} }
-function particles_ParticleFactory__C2706_v1_4_mk(s) {
+function particles_ParticleFactory__C62703_v1_4_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84781,7 +83928,7 @@ function if_height_1_mk(s) {
} }
-function sprites_BaseSprite__C1855_v0_1_mk(s) {
+function sprites_BaseSprite__C61850_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84795,7 +83942,7 @@ function sprites_BaseSprite__C1855_v0_1_mk(s) {
} }
-function sprites_BaseSprite__C1855_v2_2_mk(s) {
+function sprites_BaseSprite__C61850_v2_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84896,7 +84043,7 @@ function if_up_2_mk(s) {
} }
-function tileworld_LoadScreen__C3832_v0_1_mk(s) {
+function tileworld_LoadScreen__C63829_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84910,7 +84057,7 @@ function tileworld_LoadScreen__C3832_v0_1_mk(s) {
} }
-function tileworld_ProjectSettings__C3826_v0_1_mk(s) {
+function tileworld_ProjectSettings__C63823_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84938,7 +84085,7 @@ function if_width_1_mk(s) {
} }
-function tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s) {
+function tileworld_ruleediting_RuleRoom__C63802_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84952,7 +84099,7 @@ function tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s) {
} }
-function tileworld_ruleediting_RuleEditor__C3816_v0_1_mk(s) {
+function tileworld_ruleediting_RuleEditor__C63813_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84966,7 +84113,7 @@ function tileworld_ruleediting_RuleEditor__C3816_v0_1_mk(s) {
} }
-function tileworld_ruleediting_RuleDisplay__C3797_v4_4_mk(s) {
+function tileworld_ruleediting_RuleDisplay__C63794_v4_4_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84983,7 +84130,7 @@ function tileworld_ruleediting_RuleDisplay__C3797_v4_4_mk(s) {
} }
-function tileworld_ruleediting_RuleDisplay__C3797_v3_1_mk(s) {
+function tileworld_ruleediting_RuleDisplay__C63794_v3_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -84997,7 +84144,7 @@ function tileworld_ruleediting_RuleDisplay__C3797_v3_1_mk(s) {
} }
-function tileworld_ruleediting_RuleRoom__C3805_v3_1_mk(s) {
+function tileworld_ruleediting_RuleRoom__C63802_v3_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85011,7 +84158,7 @@ function tileworld_ruleediting_RuleRoom__C3805_v3_1_mk(s) {
} }
-function tileworld_ImageEditor__C3778_v0_1_mk(s) {
+function tileworld_ImageEditor__C63775_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85039,7 +84186,7 @@ function if_update_1_mk(s) {
} }
-function tileworld_MapEditor__C3819_v0_1_mk(s) {
+function tileworld_MapEditor__C63816_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85053,7 +84200,7 @@ function tileworld_MapEditor__C3819_v0_1_mk(s) {
} }
-function tiles_TileMap__C2314_v9_4_mk(s) {
+function tiles_TileMap__C62309_v9_4_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85070,7 +84217,7 @@ function tiles_TileMap__C2314_v9_4_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v10_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85085,7 +84232,7 @@ function tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s) {
} }
-function tileworld_RuleVisualsBase__C3784_v1_1_mk(s) {
+function tileworld_RuleVisualsBase__C63781_v1_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85099,7 +84246,7 @@ function tileworld_RuleVisualsBase__C3784_v1_1_mk(s) {
} }
-function tileworld_RuleVisualsBase__C3784_v2_3_mk(s) {
+function tileworld_RuleVisualsBase__C63781_v2_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85115,7 +84262,7 @@ function tileworld_RuleVisualsBase__C3784_v2_3_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v6_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85129,7 +84276,7 @@ function tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v4_1_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v4_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85143,7 +84290,7 @@ function tiles_legacy_LegacyTilemap__C3850_v4_1_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v3_1_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v3_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85157,7 +84304,7 @@ function tiles_legacy_LegacyTilemap__C3850_v3_1_mk(s) {
} }
-function tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s) {
+function tileworld_ruleediting_RuleViewDisplay__C63798_v0_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85171,7 +84318,7 @@ function tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v12_3_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v12_3_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85187,7 +84334,7 @@ function tiles_legacy_LegacyTilemap__C3850_v12_3_mk(s) {
} }
-function tiles_legacy_LegacyTilemap__C3850_v5_1_mk(s) {
+function tiles_legacy_LegacyTilemap__C63847_v5_1_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85201,7 +84348,7 @@ function tiles_legacy_LegacyTilemap__C3850_v5_1_mk(s) {
} }
-function tileworld_TileSprite__C9368_v4_2_mk(s) {
+function tileworld_TileSprite__C69364_v4_2_mk(s) {
checkStack(s.depth);
return {
parent: s, fn: null, depth: s.depth + 1,
@@ -85215,14 +84362,14 @@ function tileworld_TileSprite__C9368_v4_2_mk(s) {
arg1: undefined,
} }
-const controller_Button__C1900_VT = mkVTable({
+const controller_Button__C61895_VT = mkVTable({
name: "Button",
numFields: 7,
classNo: 16,
lastSubtypeNo: 17,
maxBgInstances: null,
methods: {
- "isPressed": controller_Button_isPressed__P1909,
+ "isPressed": controller_Button_isPressed__P61904,
},
iface: {
"_owner": null,
@@ -85239,26 +84386,26 @@ const controller_Button__C1900_VT = mkVTable({
"set/_pressedElasped": null,
"_repeatCount": null,
"set/_repeatCount": null,
- "toString": controller_Button_toString__P1905,
- "raiseButtonUp": controller_Button_raiseButtonUp__P4113,
- "raiseButtonDown": controller_Button_raiseButtonDown__P4114,
- "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4115,
- "onEvent": controller_Button_onEvent__P1907,
- "isPressed": controller_Button_isPressed__P1909,
- "pressureLevel": controller_Button_pressureLevel__P1910,
- "setPressed": controller_Button_setPressed__P1911,
- "__update": controller_Button___update__P1912,
+ "toString": controller_Button_toString__P61900,
+ "raiseButtonUp": controller_Button_raiseButtonUp__P64110,
+ "raiseButtonDown": controller_Button_raiseButtonDown__P64111,
+ "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P64112,
+ "onEvent": controller_Button_onEvent__P61902,
+ "isPressed": controller_Button_isPressed__P61904,
+ "pressureLevel": controller_Button_pressureLevel__P61905,
+ "setPressed": controller_Button_setPressed__P61906,
+ "__update": controller_Button___update__P61907,
},
- toStringMethod: controller_Button_toString__P1905,
+ toStringMethod: controller_Button_toString__P61900,
});
-const controller_AnyButton__C4116_VT = mkVTable({
+const controller_AnyButton__C64113_VT = mkVTable({
name: "AnyButton",
numFields: 7,
classNo: 17,
lastSubtypeNo: 17,
maxBgInstances: null,
methods: {
- "isPressed": controller_AnyButton_isPressed__P4118,
+ "isPressed": controller_AnyButton_isPressed__P64115,
},
iface: {
"_owner": null,
@@ -85275,18 +84422,18 @@ const controller_AnyButton__C4116_VT = mkVTable({
"set/_pressedElasped": null,
"_repeatCount": null,
"set/_repeatCount": null,
- "isPressed": controller_AnyButton_isPressed__P4118,
- "toString": controller_Button_toString__P1905,
- "raiseButtonUp": controller_Button_raiseButtonUp__P4113,
- "raiseButtonDown": controller_Button_raiseButtonDown__P4114,
- "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4115,
- "onEvent": controller_Button_onEvent__P1907,
- "pressureLevel": controller_Button_pressureLevel__P1910,
- "setPressed": controller_Button_setPressed__P1911,
- "__update": controller_Button___update__P1912,
+ "isPressed": controller_AnyButton_isPressed__P64115,
+ "toString": controller_Button_toString__P61900,
+ "raiseButtonUp": controller_Button_raiseButtonUp__P64110,
+ "raiseButtonDown": controller_Button_raiseButtonDown__P64111,
+ "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P64112,
+ "onEvent": controller_Button_onEvent__P61902,
+ "pressureLevel": controller_Button_pressureLevel__P61905,
+ "setPressed": controller_Button_setPressed__P61906,
+ "__update": controller_Button___update__P61907,
},
});
-const Math_FastRandom__C2578_VT = mkVTable({
+const Math_FastRandom__C62575_VT = mkVTable({
name: "FastRandom",
numFields: 2,
classNo: 18,
@@ -85299,12 +84446,12 @@ const Math_FastRandom__C2578_VT = mkVTable({
"set/lfsr": null,
"seed": null,
"set/seed": null,
- "next": Math_FastRandom_next__P2581,
- "randomRange": Math_FastRandom_randomRange__P2582,
- "pickRandom": Math_FastRandom_pickRandom__P2583,
+ "next": Math_FastRandom_next__P62578,
+ "randomRange": Math_FastRandom_randomRange__P62579,
+ "pickRandom": Math_FastRandom_pickRandom__P62580,
},
});
-const texteffects_TextEffect__C2823_VT = mkVTable({
+const texteffects_TextEffect__C62820_VT = mkVTable({
name: "TextEffect",
numFields: 1,
classNo: 19,
@@ -85317,29 +84464,29 @@ const texteffects_TextEffect__C2823_VT = mkVTable({
"set/getState": null,
},
});
-const tileworld_BackgroundBase__C3782_VT = mkVTable({
+const tileworld_BackgroundBase__C63779_VT = mkVTable({
name: "BackgroundBase",
numFields: 0,
classNo: 20,
lastSubtypeNo: 32,
maxBgInstances: null,
methods: {
- "update": tileworld_BackgroundBase_update__P11383,
+ "update": tileworld_BackgroundBase_update__P71375,
},
iface: {
- "update": tileworld_BackgroundBase_update__P11383,
+ "update": tileworld_BackgroundBase_update__P71375,
},
});
-const tileworld_RuleVisualsBase__C3784_VT = mkVTable({
+const tileworld_RuleVisualsBase__C63781_VT = mkVTable({
name: "RuleVisualsBase",
numFields: 6,
classNo: 21,
lastSubtypeNo: 29,
maxBgInstances: null,
methods: {
- "update": tileworld_BackgroundBase_update__P11383,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
+ "update": tileworld_BackgroundBase_update__P71375,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
},
iface: {
"cursor": null,
@@ -85354,35 +84501,35 @@ const tileworld_RuleVisualsBase__C3784_VT = mkVTable({
"set/dirMap": null,
"p": null,
"set/p": null,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
- "update": tileworld_BackgroundBase_update__P11383,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
+ "update": tileworld_BackgroundBase_update__P71375,
},
});
-const tileworld_LoadScreen__C3832_VT = mkVTable({
+const tileworld_LoadScreen__C63829_VT = mkVTable({
name: "LoadScreen",
numFields: 7,
classNo: 22,
lastSubtypeNo: 22,
maxBgInstances: null,
methods: {
- "update": tileworld_LoadScreen_update__P17818,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_LoadScreen_cursorMove__P17816,
+ "update": tileworld_LoadScreen_update__P77806,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_LoadScreen_cursorMove__P77804,
},
iface: {
"cursor": null,
@@ -85399,27 +84546,27 @@ const tileworld_LoadScreen__C3832_VT = mkVTable({
"set/p": null,
"lastDir": null,
"set/lastDir": null,
- "cursorMove": tileworld_LoadScreen_cursorMove__P17816,
- "makeIt": tileworld_LoadScreen_makeIt__P17817,
- "update": tileworld_LoadScreen_update__P17818,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "cursorMove": tileworld_LoadScreen_cursorMove__P77804,
+ "makeIt": tileworld_LoadScreen_makeIt__P77805,
+ "update": tileworld_LoadScreen_update__P77806,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_Project__C3677_VT = mkVTable({
+const tileworld_Project__C63674_VT = mkVTable({
name: "Project",
numFields: 12,
classNo: 33,
@@ -85452,45 +84599,45 @@ const tileworld_Project__C3677_VT = mkVTable({
"set/_backgroundsI": null,
"_spritesI": null,
"set/_spritesI": null,
- "setRules": tileworld_Project_setRules__P3683,
- "getRules": tileworld_Project_getRules__P3684,
- "setPlayer": tileworld_Project_setPlayer__P3685,
- "getPlayer": tileworld_Project_getPlayer__P3686,
- "setWorldBackgrounds": tileworld_Project_setWorldBackgrounds__P3687,
- "getWorldBackgrounds": tileworld_Project_getWorldBackgrounds__P3688,
- "setWorldSprites": tileworld_Project_setWorldSprites__P3689,
- "getWorldSprites": tileworld_Project_getWorldSprites__P3690,
- "backCnt": tileworld_Project_backCnt__P3691,
- "spriteCnt": tileworld_Project_spriteCnt__P3692,
- "allCnt": tileworld_Project_allCnt__P3693,
- "backgroundImages": tileworld_Project_backgroundImages__P3694,
- "spriteImages": tileworld_Project_spriteImages__P3695,
- "getBackgroundImage": tileworld_Project_getBackgroundImage__P3696,
- "getSpriteImage": tileworld_Project_getSpriteImage__P3697,
- "saveBackgroundImage": tileworld_Project_saveBackgroundImage__P3698,
- "saveSpriteImage": tileworld_Project_saveSpriteImage__P3699,
- "saveRule": tileworld_Project_saveRule__P3700,
- "makeRule": tileworld_Project_makeRule__P3701,
- "removeRule": tileworld_Project_removeRule__P3702,
- "saveWorld": tileworld_Project_saveWorld__P3703,
- "saveHelp": tileworld_Project_saveHelp__P3704,
- "newHighScore": tileworld_Project_newHighScore__P3705,
- "storeRule": tileworld_Project_storeRule__P8110,
- "saveProject": tileworld_Project_saveProject__P3706,
- "wrapRule": tileworld_Project_wrapRule__P8111,
- "getRulesForSpriteKind": tileworld_Project_getRulesForSpriteKind__P3708,
+ "setRules": tileworld_Project_setRules__P63680,
+ "getRules": tileworld_Project_getRules__P63681,
+ "setPlayer": tileworld_Project_setPlayer__P63682,
+ "getPlayer": tileworld_Project_getPlayer__P63683,
+ "setWorldBackgrounds": tileworld_Project_setWorldBackgrounds__P63684,
+ "getWorldBackgrounds": tileworld_Project_getWorldBackgrounds__P63685,
+ "setWorldSprites": tileworld_Project_setWorldSprites__P63686,
+ "getWorldSprites": tileworld_Project_getWorldSprites__P63687,
+ "backCnt": tileworld_Project_backCnt__P63688,
+ "spriteCnt": tileworld_Project_spriteCnt__P63689,
+ "allCnt": tileworld_Project_allCnt__P63690,
+ "backgroundImages": tileworld_Project_backgroundImages__P63691,
+ "spriteImages": tileworld_Project_spriteImages__P63692,
+ "getBackgroundImage": tileworld_Project_getBackgroundImage__P63693,
+ "getSpriteImage": tileworld_Project_getSpriteImage__P63694,
+ "saveBackgroundImage": tileworld_Project_saveBackgroundImage__P63695,
+ "saveSpriteImage": tileworld_Project_saveSpriteImage__P63696,
+ "saveRule": tileworld_Project_saveRule__P63697,
+ "makeRule": tileworld_Project_makeRule__P63698,
+ "removeRule": tileworld_Project_removeRule__P63699,
+ "saveWorld": tileworld_Project_saveWorld__P63700,
+ "saveHelp": tileworld_Project_saveHelp__P63701,
+ "newHighScore": tileworld_Project_newHighScore__P63702,
+ "storeRule": tileworld_Project_storeRule__P68102,
+ "saveProject": tileworld_Project_saveProject__P63703,
+ "wrapRule": tileworld_Project_wrapRule__P68103,
+ "getRulesForSpriteKind": tileworld_Project_getRulesForSpriteKind__P63705,
},
});
-const tileworld_GameHome__C3829_VT = mkVTable({
+const tileworld_GameHome__C63826_VT = mkVTable({
name: "GameHome",
numFields: 6,
classNo: 23,
lastSubtypeNo: 23,
maxBgInstances: null,
methods: {
- "update": tileworld_GameHome_update__P17526,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_GameHome_cursorMove__P17525,
+ "update": tileworld_GameHome_update__P77514,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_GameHome_cursorMove__P77513,
},
iface: {
"cursor": null,
@@ -85505,35 +84652,35 @@ const tileworld_GameHome__C3829_VT = mkVTable({
"set/dirMap": null,
"p": null,
"set/p": null,
- "cursorMove": tileworld_GameHome_cursorMove__P17525,
- "update": tileworld_GameHome_update__P17526,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "cursorMove": tileworld_GameHome_cursorMove__P77513,
+ "update": tileworld_GameHome_update__P77514,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_ProjectSettings__C3826_VT = mkVTable({
+const tileworld_ProjectSettings__C63823_VT = mkVTable({
name: "ProjectSettings",
numFields: 7,
classNo: 24,
lastSubtypeNo: 24,
maxBgInstances: null,
methods: {
- "update": tileworld_ProjectSettings_update__P17291,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
+ "update": tileworld_ProjectSettings_update__P77279,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
},
iface: {
"cursor": null,
@@ -85550,62 +84697,62 @@ const tileworld_ProjectSettings__C3826_VT = mkVTable({
"set/p": null,
"askDeleteRule": null,
"set/askDeleteRule": null,
- "update": tileworld_ProjectSettings_update__P17291,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
+ "update": tileworld_ProjectSettings_update__P77279,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
},
});
-const sprites_BaseSprite__C1855_VT = mkVTable({
+const sprites_BaseSprite__C61850_VT = mkVTable({
name: "BaseSprite",
numFields: 2,
classNo: 34,
lastSubtypeNo: 38,
maxBgInstances: null,
methods: {
- "__visible": sprites_BaseSprite___visible__P1858,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__drawCore": sprites_BaseSprite___drawCore__P1862,
- "__update": sprites_BaseSprite___update__P1863,
+ "__visible": sprites_BaseSprite___visible__P61853,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__drawCore": sprites_BaseSprite___drawCore__P61857,
+ "__update": sprites_BaseSprite___update__P61858,
},
iface: {
"_z": null,
"set/_z": null,
"id": null,
"set/id": null,
- "__visible": sprites_BaseSprite___visible__P1858,
- "z": sprites_BaseSprite_z__P1859,
- "set/z": sprites_BaseSprite_z__P1860,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__drawCore": sprites_BaseSprite___drawCore__P1862,
- "__update": sprites_BaseSprite___update__P1863,
+ "__visible": sprites_BaseSprite___visible__P61853,
+ "z": sprites_BaseSprite_z__P61854,
+ "set/z": sprites_BaseSprite_z__P61855,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__drawCore": sprites_BaseSprite___drawCore__P61857,
+ "__update": sprites_BaseSprite___update__P61858,
},
});
-const Sprite__C2013_VT = mkVTable({
+const Sprite__C62008_VT = mkVTable({
name: "Sprite",
numFields: 26,
classNo: 35,
lastSubtypeNo: 36,
maxBgInstances: null,
methods: {
- "__visible": Sprite___visible__P2056,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__drawCore": Sprite___drawCore__P2074,
- "__update": Sprite___update__P2075,
- "isOutOfScreen": Sprite_isOutOfScreen__P2073,
+ "__visible": Sprite___visible__P62051,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__drawCore": Sprite___drawCore__P62069,
+ "__update": Sprite___update__P62070,
+ "isOutOfScreen": Sprite_isOutOfScreen__P62068,
},
iface: {
"_z": null,
@@ -85660,59 +84807,59 @@ const Sprite__C2013_VT = mkVTable({
"set/flags": null,
"destroyHandler": null,
"set/destroyHandler": null,
- "x": Sprite_x__P2022,
- "set/x": Sprite_x__P2023,
- "y": Sprite_y__P2024,
- "set/y": Sprite_y__P2025,
- "vx": Sprite_vx__P2026,
- "set/vx": Sprite_vx__P2027,
- "vy": Sprite_vy__P2028,
- "set/vy": Sprite_vy__P2029,
- "ax": Sprite_ax__P2030,
- "set/ax": Sprite_ax__P2031,
- "ay": Sprite_ay__P2032,
- "set/ay": Sprite_ay__P2033,
- "fx": Sprite_fx__P2034,
- "set/fx": Sprite_fx__P2035,
- "fy": Sprite_fy__P2036,
- "set/fy": Sprite_fy__P2037,
- "data": Sprite_data__P2038,
- "set/data": Sprite_data__P2039,
- "image": Sprite_image__P2052,
- "setImage": Sprite_setImage__P2053,
- "setHitbox": Sprite_setHitbox__P2054,
- "isStatic": Sprite_isStatic__P2055,
- "__visible": Sprite___visible__P2056,
- "width": Sprite_width__P2057,
- "height": Sprite_height__P2058,
- "left": Sprite_left__P2059,
- "set/left": Sprite_left__P2060,
- "right": Sprite_right__P2061,
- "set/right": Sprite_right__P2062,
- "top": Sprite_top__P2063,
- "set/top": Sprite_top__P2064,
- "bottom": Sprite_bottom__P2065,
- "set/bottom": Sprite_bottom__P2066,
- "kind": Sprite_kind__P2067,
- "setKind": Sprite_setKind__P2068,
- "say": Sprite_say__P2071,
- "isOutOfScreen": Sprite_isOutOfScreen__P2073,
- "__drawCore": Sprite___drawCore__P2074,
- "__update": Sprite___update__P2075,
- "setFlag": Sprite_setFlag__P2076,
- "overlapsWith": Sprite_overlapsWith__P2077,
- "clearObstacles": Sprite_clearObstacles__P2081,
- "registerObstacle": Sprite_registerObstacle__P2082,
- "destroy": Sprite_destroy__P2084,
- "_destroyCore": Sprite__destroyCore__P2085,
- "toString": Sprite_toString__P2087,
- "z": sprites_BaseSprite_z__P1859,
- "set/z": sprites_BaseSprite_z__P1860,
- "__draw": sprites_BaseSprite___draw__P1861,
+ "x": Sprite_x__P62017,
+ "set/x": Sprite_x__P62018,
+ "y": Sprite_y__P62019,
+ "set/y": Sprite_y__P62020,
+ "vx": Sprite_vx__P62021,
+ "set/vx": Sprite_vx__P62022,
+ "vy": Sprite_vy__P62023,
+ "set/vy": Sprite_vy__P62024,
+ "ax": Sprite_ax__P62025,
+ "set/ax": Sprite_ax__P62026,
+ "ay": Sprite_ay__P62027,
+ "set/ay": Sprite_ay__P62028,
+ "fx": Sprite_fx__P62029,
+ "set/fx": Sprite_fx__P62030,
+ "fy": Sprite_fy__P62031,
+ "set/fy": Sprite_fy__P62032,
+ "data": Sprite_data__P62033,
+ "set/data": Sprite_data__P62034,
+ "image": Sprite_image__P62047,
+ "setImage": Sprite_setImage__P62048,
+ "setHitbox": Sprite_setHitbox__P62049,
+ "isStatic": Sprite_isStatic__P62050,
+ "__visible": Sprite___visible__P62051,
+ "width": Sprite_width__P62052,
+ "height": Sprite_height__P62053,
+ "left": Sprite_left__P62054,
+ "set/left": Sprite_left__P62055,
+ "right": Sprite_right__P62056,
+ "set/right": Sprite_right__P62057,
+ "top": Sprite_top__P62058,
+ "set/top": Sprite_top__P62059,
+ "bottom": Sprite_bottom__P62060,
+ "set/bottom": Sprite_bottom__P62061,
+ "kind": Sprite_kind__P62062,
+ "setKind": Sprite_setKind__P62063,
+ "say": Sprite_say__P62066,
+ "isOutOfScreen": Sprite_isOutOfScreen__P62068,
+ "__drawCore": Sprite___drawCore__P62069,
+ "__update": Sprite___update__P62070,
+ "setFlag": Sprite_setFlag__P62071,
+ "overlapsWith": Sprite_overlapsWith__P62072,
+ "clearObstacles": Sprite_clearObstacles__P62076,
+ "registerObstacle": Sprite_registerObstacle__P62077,
+ "destroy": Sprite_destroy__P62079,
+ "_destroyCore": Sprite__destroyCore__P62080,
+ "toString": Sprite_toString__P62082,
+ "z": sprites_BaseSprite_z__P61854,
+ "set/z": sprites_BaseSprite_z__P61855,
+ "__draw": sprites_BaseSprite___draw__P61856,
},
- toStringMethod: Sprite_toString__P2087,
+ toStringMethod: Sprite_toString__P62082,
});
-const scene_Scene__C2411_VT = mkVTable({
+const scene_Scene__C62408_VT = mkVTable({
name: "Scene",
numFields: 23,
classNo: 39,
@@ -85767,14 +84914,14 @@ const scene_Scene__C2411_VT = mkVTable({
"set/_data": null,
"previousScene": null,
"set/previousScene": null,
- "init": scene_Scene_init__P2433,
- "data": scene_Scene_data__P2434,
- "millis": scene_Scene_millis__P2435,
- "addSprite": scene_Scene_addSprite__P2436,
- "render": scene_Scene_render__P2438,
+ "init": scene_Scene_init__P62430,
+ "data": scene_Scene_data__P62431,
+ "millis": scene_Scene_millis__P62432,
+ "addSprite": scene_Scene_addSprite__P62433,
+ "render": scene_Scene_render__P62435,
},
});
-const effects_ImageEffect__C2808_VT = mkVTable({
+const effects_ImageEffect__C62805_VT = mkVTable({
name: "ImageEffect",
numFields: 4,
classNo: 40,
@@ -85791,11 +84938,11 @@ const effects_ImageEffect__C2808_VT = mkVTable({
"set/fastRandom": null,
"times": null,
"set/times": null,
- "applyTo": effects_ImageEffect_applyTo__P2810,
- "change": effects_ImageEffect_change__P2811,
+ "applyTo": effects_ImageEffect_applyTo__P62807,
+ "change": effects_ImageEffect_change__P62808,
},
});
-const effects_ParticleEffect__C2781_VT = mkVTable({
+const effects_ParticleEffect__C62778_VT = mkVTable({
name: "ParticleEffect",
numFields: 3,
classNo: 41,
@@ -85810,11 +84957,11 @@ const effects_ParticleEffect__C2781_VT = mkVTable({
"set/defaultRate": null,
"defaultLifespan": null,
"set/defaultLifespan": null,
- "start": effects_ParticleEffect_start__P2783,
- "destroy": effects_ParticleEffect_destroy__P2784,
+ "start": effects_ParticleEffect_start__P62780,
+ "destroy": effects_ParticleEffect_destroy__P62781,
},
});
-const effects_ScreenEffect__C2785_VT = mkVTable({
+const effects_ScreenEffect__C62782_VT = mkVTable({
name: "ScreenEffect",
numFields: 5,
classNo: 42,
@@ -85833,34 +84980,34 @@ const effects_ScreenEffect__C2785_VT = mkVTable({
"set/source": null,
"sceneDefaultRate": null,
"set/sceneDefaultRate": null,
- "start": effects_ParticleEffect_start__P2783,
- "destroy": effects_ParticleEffect_destroy__P2784,
+ "start": effects_ParticleEffect_start__P62780,
+ "destroy": effects_ParticleEffect_destroy__P62781,
},
});
-const particles_ParticleFactory__C2706_VT = mkVTable({
+const particles_ParticleFactory__C62703_VT = mkVTable({
name: "ParticleFactory",
numFields: 0,
classNo: 43,
lastSubtypeNo: 47,
maxBgInstances: null,
methods: {
- "createParticle": particles_ParticleFactory_createParticle__P2708,
- "drawParticle": particles_ParticleFactory_drawParticle__P2709,
+ "createParticle": particles_ParticleFactory_createParticle__P62705,
+ "drawParticle": particles_ParticleFactory_drawParticle__P62706,
},
iface: {
- "createParticle": particles_ParticleFactory_createParticle__P2708,
- "drawParticle": particles_ParticleFactory_drawParticle__P2709,
+ "createParticle": particles_ParticleFactory_createParticle__P62705,
+ "drawParticle": particles_ParticleFactory_drawParticle__P62706,
},
});
-const particles_SprayFactory__C2710_VT = mkVTable({
+const particles_SprayFactory__C62707_VT = mkVTable({
name: "SprayFactory",
numFields: 3,
classNo: 44,
lastSubtypeNo: 47,
maxBgInstances: null,
methods: {
- "createParticle": particles_SprayFactory_createParticle__P2712,
- "drawParticle": particles_SprayFactory_drawParticle__P2713,
+ "createParticle": particles_SprayFactory_createParticle__P62709,
+ "drawParticle": particles_SprayFactory_drawParticle__P62710,
},
iface: {
"speed": null,
@@ -85869,21 +85016,21 @@ const particles_SprayFactory__C2710_VT = mkVTable({
"set/minAngle": null,
"spread": null,
"set/spread": null,
- "createParticle": particles_SprayFactory_createParticle__P2712,
- "drawParticle": particles_SprayFactory_drawParticle__P2713,
- "setSpeed": particles_SprayFactory_setSpeed__P2714,
- "setDirection": particles_SprayFactory_setDirection__P2715,
+ "createParticle": particles_SprayFactory_createParticle__P62709,
+ "drawParticle": particles_SprayFactory_drawParticle__P62710,
+ "setSpeed": particles_SprayFactory_setSpeed__P62711,
+ "setDirection": particles_SprayFactory_setDirection__P62712,
},
});
-const particles_AreaFactory__C2716_VT = mkVTable({
+const particles_AreaFactory__C62713_VT = mkVTable({
name: "AreaFactory",
numFields: 8,
classNo: 45,
lastSubtypeNo: 47,
maxBgInstances: null,
methods: {
- "createParticle": particles_AreaFactory_createParticle__P2722,
- "drawParticle": particles_AreaFactory_drawParticle__P2723,
+ "createParticle": particles_AreaFactory_createParticle__P62719,
+ "drawParticle": particles_AreaFactory_drawParticle__P62720,
},
iface: {
"speed": null,
@@ -85902,21 +85049,21 @@ const particles_AreaFactory__C2716_VT = mkVTable({
"set/maxLifespan": null,
"galois": null,
"set/galois": null,
- "createParticle": particles_AreaFactory_createParticle__P2722,
- "drawParticle": particles_AreaFactory_drawParticle__P2723,
- "setSpeed": particles_SprayFactory_setSpeed__P2714,
- "setDirection": particles_SprayFactory_setDirection__P2715,
+ "createParticle": particles_AreaFactory_createParticle__P62719,
+ "drawParticle": particles_AreaFactory_drawParticle__P62720,
+ "setSpeed": particles_SprayFactory_setSpeed__P62711,
+ "setDirection": particles_SprayFactory_setDirection__P62712,
},
});
-const particles_ShapeFactory__C2732_VT = mkVTable({
+const particles_ShapeFactory__C62729_VT = mkVTable({
name: "ShapeFactory",
numFields: 11,
classNo: 46,
lastSubtypeNo: 47,
maxBgInstances: null,
methods: {
- "createParticle": particles_ShapeFactory_createParticle__P2736,
- "drawParticle": particles_ShapeFactory_drawParticle__P2735,
+ "createParticle": particles_ShapeFactory_createParticle__P62733,
+ "drawParticle": particles_ShapeFactory_drawParticle__P62732,
},
iface: {
"speed": null,
@@ -85941,22 +85088,22 @@ const particles_ShapeFactory__C2732_VT = mkVTable({
"set/ox": null,
"oy": null,
"set/oy": null,
- "addShape": particles_ShapeFactory_addShape__P2734,
- "drawParticle": particles_ShapeFactory_drawParticle__P2735,
- "createParticle": particles_ShapeFactory_createParticle__P2736,
- "setSpeed": particles_SprayFactory_setSpeed__P2714,
- "setDirection": particles_SprayFactory_setDirection__P2715,
+ "addShape": particles_ShapeFactory_addShape__P62731,
+ "drawParticle": particles_ShapeFactory_drawParticle__P62732,
+ "createParticle": particles_ShapeFactory_createParticle__P62733,
+ "setSpeed": particles_SprayFactory_setSpeed__P62711,
+ "setDirection": particles_SprayFactory_setDirection__P62712,
},
});
-const particles_ConfettiFactory__C2737_VT = mkVTable({
+const particles_ConfettiFactory__C62734_VT = mkVTable({
name: "ConfettiFactory",
numFields: 11,
classNo: 47,
lastSubtypeNo: 47,
maxBgInstances: null,
methods: {
- "createParticle": particles_ShapeFactory_createParticle__P2736,
- "drawParticle": particles_ShapeFactory_drawParticle__P2735,
+ "createParticle": particles_ShapeFactory_createParticle__P62733,
+ "drawParticle": particles_ShapeFactory_drawParticle__P62732,
},
iface: {
"speed": null,
@@ -85981,25 +85128,25 @@ const particles_ConfettiFactory__C2737_VT = mkVTable({
"set/ox": null,
"oy": null,
"set/oy": null,
- "addShape": particles_ShapeFactory_addShape__P2734,
- "drawParticle": particles_ShapeFactory_drawParticle__P2735,
- "createParticle": particles_ShapeFactory_createParticle__P2736,
- "setSpeed": particles_SprayFactory_setSpeed__P2714,
- "setDirection": particles_SprayFactory_setDirection__P2715,
+ "addShape": particles_ShapeFactory_addShape__P62731,
+ "drawParticle": particles_ShapeFactory_drawParticle__P62732,
+ "createParticle": particles_ShapeFactory_createParticle__P62733,
+ "setSpeed": particles_SprayFactory_setSpeed__P62711,
+ "setDirection": particles_SprayFactory_setDirection__P62712,
},
});
-const particles_ParticleSource__C2670_VT = mkVTable({
+const particles_ParticleSource__C62667_VT = mkVTable({
name: "ParticleSource",
numFields: 13,
classNo: 37,
lastSubtypeNo: 37,
maxBgInstances: null,
methods: {
- "__visible": sprites_BaseSprite___visible__P1858,
- "__draw": particles_ParticleSource___draw__P2676,
- "__drawCore": sprites_BaseSprite___drawCore__P1862,
- "__update": sprites_BaseSprite___update__P1863,
- "updateParticle": particles_ParticleSource_updateParticle__P4626,
+ "__visible": sprites_BaseSprite___visible__P61853,
+ "__draw": particles_ParticleSource___draw__P62673,
+ "__drawCore": sprites_BaseSprite___drawCore__P61857,
+ "__update": sprites_BaseSprite___update__P61858,
+ "updateParticle": particles_ParticleSource_updateParticle__P64629,
},
iface: {
"_z": null,
@@ -86028,28 +85175,28 @@ const particles_ParticleSource__C2670_VT = mkVTable({
"set/ax": null,
"ay": null,
"set/ay": null,
- "__draw": particles_ParticleSource___draw__P2676,
- "_update": particles_ParticleSource__update__P2677,
- "_prune": particles_ParticleSource__prune__P2678,
- "setAcceleration": particles_ParticleSource_setAcceleration__P2679,
- "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P2681,
- "enabled": particles_ParticleSource_enabled__P2682,
- "set/enabled": particles_ParticleSource_enabled__P2683,
- "destroy": particles_ParticleSource_destroy__P2684,
- "clear": particles_ParticleSource_clear__P2685,
- "setAnchor": particles_ParticleSource_setAnchor__P2686,
- "setRate": particles_ParticleSource_setRate__P2687,
- "setFactory": particles_ParticleSource_setFactory__P2689,
- "updateParticle": particles_ParticleSource_updateParticle__P4626,
- "drawParticle": particles_ParticleSource_drawParticle__P4627,
- "__visible": sprites_BaseSprite___visible__P1858,
- "z": sprites_BaseSprite_z__P1859,
- "set/z": sprites_BaseSprite_z__P1860,
- "__drawCore": sprites_BaseSprite___drawCore__P1862,
- "__update": sprites_BaseSprite___update__P1863,
+ "__draw": particles_ParticleSource___draw__P62673,
+ "_update": particles_ParticleSource__update__P62674,
+ "_prune": particles_ParticleSource__prune__P62675,
+ "setAcceleration": particles_ParticleSource_setAcceleration__P62676,
+ "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P62678,
+ "enabled": particles_ParticleSource_enabled__P62679,
+ "set/enabled": particles_ParticleSource_enabled__P62680,
+ "destroy": particles_ParticleSource_destroy__P62681,
+ "clear": particles_ParticleSource_clear__P62682,
+ "setAnchor": particles_ParticleSource_setAnchor__P62683,
+ "setRate": particles_ParticleSource_setRate__P62684,
+ "setFactory": particles_ParticleSource_setFactory__P62686,
+ "updateParticle": particles_ParticleSource_updateParticle__P64629,
+ "drawParticle": particles_ParticleSource_drawParticle__P64630,
+ "__visible": sprites_BaseSprite___visible__P61853,
+ "z": sprites_BaseSprite_z__P61854,
+ "set/z": sprites_BaseSprite_z__P61855,
+ "__drawCore": sprites_BaseSprite___drawCore__P61857,
+ "__update": sprites_BaseSprite___update__P61858,
},
});
-const particles_Particle__C2651_VT = mkVTable({
+const particles_Particle__C62648_VT = mkVTable({
name: "Particle",
numFields: 8,
classNo: 48,
@@ -86076,7 +85223,7 @@ const particles_Particle__C2651_VT = mkVTable({
"set/color": null,
},
});
-const control_EventContext__C381_VT = mkVTable({
+const control_EventContext__C60376_VT = mkVTable({
name: "EventContext",
numFields: 9,
classNo: 49,
@@ -86103,16 +85250,16 @@ const control_EventContext__C381_VT = mkVTable({
"set/idleCallbacks": null,
"runningCallbacks": null,
"set/runningCallbacks": null,
- "deltaTime": control_EventContext_deltaTime__P386,
- "runCallbacks": control_EventContext_runCallbacks__P3958,
- "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P3959,
- "register": control_EventContext_register__P387,
- "unregister": control_EventContext_unregister__P388,
- "registerFrameHandler": control_EventContext_registerFrameHandler__P389,
- "registerHandler": control_EventContext_registerHandler__P391,
+ "deltaTime": control_EventContext_deltaTime__P60381,
+ "runCallbacks": control_EventContext_runCallbacks__P63955,
+ "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P63956,
+ "register": control_EventContext_register__P60382,
+ "unregister": control_EventContext_unregister__P60383,
+ "registerFrameHandler": control_EventContext_registerFrameHandler__P60384,
+ "registerHandler": control_EventContext_registerHandler__P60386,
},
});
-const control_FrameCallback__C378_VT = mkVTable({
+const control_FrameCallback__C60373_VT = mkVTable({
name: "FrameCallback",
numFields: 2,
classNo: 50,
@@ -86127,7 +85274,7 @@ const control_FrameCallback__C378_VT = mkVTable({
"set/handler": null,
},
});
-const control_PollEvent__C3932_VT = mkVTable({
+const control_PollEvent__C63929_VT = mkVTable({
name: "PollEvent",
numFields: 6,
classNo: 51,
@@ -86150,7 +85297,7 @@ const control_PollEvent__C3932_VT = mkVTable({
"set/once": null,
},
});
-const control_EventHandler__C3953_VT = mkVTable({
+const control_EventHandler__C63950_VT = mkVTable({
name: "EventHandler",
numFields: 4,
classNo: 52,
@@ -86167,32 +85314,32 @@ const control_EventHandler__C3953_VT = mkVTable({
"set/handler": null,
"flags": null,
"set/flags": null,
- "register": control_EventHandler_register__P3954,
- "unregister": control_EventHandler_unregister__P3955,
+ "register": control_EventHandler_register__P63951,
+ "unregister": control_EventHandler_unregister__P63952,
},
});
-const PhysicsEngine__C2156_VT = mkVTable({
+const PhysicsEngine__C62151_VT = mkVTable({
name: "PhysicsEngine",
numFields: 0,
classNo: 53,
lastSubtypeNo: 54,
maxBgInstances: null,
methods: {
- "addSprite": PhysicsEngine_addSprite__P2158,
- "removeSprite": PhysicsEngine_removeSprite__P2159,
- "moveSprite": PhysicsEngine_moveSprite__P2160,
- "draw": PhysicsEngine_draw__P2161,
- "move": PhysicsEngine_move__P2162,
+ "addSprite": PhysicsEngine_addSprite__P62153,
+ "removeSprite": PhysicsEngine_removeSprite__P62154,
+ "moveSprite": PhysicsEngine_moveSprite__P62155,
+ "draw": PhysicsEngine_draw__P62156,
+ "move": PhysicsEngine_move__P62157,
},
iface: {
- "addSprite": PhysicsEngine_addSprite__P2158,
- "removeSprite": PhysicsEngine_removeSprite__P2159,
- "moveSprite": PhysicsEngine_moveSprite__P2160,
- "draw": PhysicsEngine_draw__P2161,
- "move": PhysicsEngine_move__P2162,
+ "addSprite": PhysicsEngine_addSprite__P62153,
+ "removeSprite": PhysicsEngine_removeSprite__P62154,
+ "moveSprite": PhysicsEngine_moveSprite__P62155,
+ "draw": PhysicsEngine_draw__P62156,
+ "move": PhysicsEngine_move__P62157,
},
});
-const scene_Camera__C2352_VT = mkVTable({
+const scene_Camera__C62349_VT = mkVTable({
name: "Camera",
numFields: 8,
classNo: 55,
@@ -86217,18 +85364,18 @@ const scene_Camera__C2352_VT = mkVTable({
"set/shakeDuration": null,
"shakeAmplitude": null,
"set/shakeAmplitude": null,
- "offsetX": scene_Camera_offsetX__P2357,
- "set/offsetX": scene_Camera_offsetX__P2358,
- "offsetY": scene_Camera_offsetY__P2359,
- "set/offsetY": scene_Camera_offsetY__P2360,
- "x": scene_Camera_x__P2361,
- "y": scene_Camera_y__P2362,
- "left": scene_Camera_left__P2363,
- "top": scene_Camera_top__P2365,
- "update": scene_Camera_update__P2368,
+ "offsetX": scene_Camera_offsetX__P62354,
+ "set/offsetX": scene_Camera_offsetX__P62355,
+ "offsetY": scene_Camera_offsetY__P62356,
+ "set/offsetY": scene_Camera_offsetY__P62357,
+ "x": scene_Camera_x__P62358,
+ "y": scene_Camera_y__P62359,
+ "left": scene_Camera_left__P62360,
+ "top": scene_Camera_top__P62362,
+ "update": scene_Camera_update__P62365,
},
});
-const scene_Background__C2262_VT = mkVTable({
+const scene_Background__C62257_VT = mkVTable({
name: "Background",
numFields: 4,
classNo: 56,
@@ -86245,10 +85392,10 @@ const scene_Background__C2262_VT = mkVTable({
"set/camera": null,
"_layers": null,
"set/_layers": null,
- "draw": scene_Background_draw__P2271,
+ "draw": scene_Background_draw__P62266,
},
});
-const scene_BackgroundLayer__C2272_VT = mkVTable({
+const scene_BackgroundLayer__C62267_VT = mkVTable({
name: "BackgroundLayer",
numFields: 6,
classNo: 57,
@@ -86269,32 +85416,32 @@ const scene_BackgroundLayer__C2272_VT = mkVTable({
"set/alignX": null,
"alignY": null,
"set/alignY": null,
- "draw": scene_BackgroundLayer_draw__P2280,
+ "draw": scene_BackgroundLayer_draw__P62275,
},
});
-const tiles_TileMap__C2314_VT = mkVTable({
+const tiles_TileMap__C62309_VT = mkVTable({
name: "TileMap",
numFields: 3,
classNo: 58,
lastSubtypeNo: 59,
maxBgInstances: null,
methods: {
- "data": tiles_TileMap_data__P4221,
- "offsetX": tiles_TileMap_offsetX__P2318,
- "offsetY": tiles_TileMap_offsetY__P2319,
- "areaWidth": tiles_TileMap_areaWidth__P2320,
- "areaHeight": tiles_TileMap_areaHeight__P2321,
- "layer": tiles_TileMap_layer__P2322,
- "enabled": tiles_TileMap_enabled__P2324,
- "getTile": tiles_TileMap_getTile__P2326,
- "getTileIndex": tiles_TileMap_getTileIndex__P2327,
- "setTileAt": tiles_TileMap_setTileAt__P2328,
- "isInvalidIndex": tiles_TileMap_isInvalidIndex__P4222,
- "draw": tiles_TileMap_draw__P4223,
- "isObstacle": tiles_TileMap_isObstacle__P2332,
- "getObstacle": tiles_TileMap_getObstacle__P2333,
- "isOnWall": tiles_TileMap_isOnWall__P2334,
- "getTileImage": tiles_TileMap_getTileImage__P2335,
+ "data": tiles_TileMap_data__P64218,
+ "offsetX": tiles_TileMap_offsetX__P62313,
+ "offsetY": tiles_TileMap_offsetY__P62314,
+ "areaWidth": tiles_TileMap_areaWidth__P62315,
+ "areaHeight": tiles_TileMap_areaHeight__P62316,
+ "layer": tiles_TileMap_layer__P62317,
+ "enabled": tiles_TileMap_enabled__P62319,
+ "getTile": tiles_TileMap_getTile__P62321,
+ "getTileIndex": tiles_TileMap_getTileIndex__P62322,
+ "setTileAt": tiles_TileMap_setTileAt__P62323,
+ "isInvalidIndex": tiles_TileMap_isInvalidIndex__P64219,
+ "draw": tiles_TileMap_draw__P64220,
+ "isObstacle": tiles_TileMap_isObstacle__P62328,
+ "getObstacle": tiles_TileMap_getObstacle__P62329,
+ "isOnWall": tiles_TileMap_isOnWall__P62330,
+ "getTileImage": tiles_TileMap_getTileImage__P62331,
},
iface: {
"_scale": null,
@@ -86303,27 +85450,27 @@ const tiles_TileMap__C2314_VT = mkVTable({
"set/_layer": null,
"_map": null,
"set/_map": null,
- "scale": tiles_TileMap_scale__P2316,
- "set/scale": tiles_TileMap_scale__P2317,
- "data": tiles_TileMap_data__P4221,
- "offsetX": tiles_TileMap_offsetX__P2318,
- "offsetY": tiles_TileMap_offsetY__P2319,
- "areaWidth": tiles_TileMap_areaWidth__P2320,
- "areaHeight": tiles_TileMap_areaHeight__P2321,
- "layer": tiles_TileMap_layer__P2322,
- "enabled": tiles_TileMap_enabled__P2324,
- "getTile": tiles_TileMap_getTile__P2326,
- "getTileIndex": tiles_TileMap_getTileIndex__P2327,
- "setTileAt": tiles_TileMap_setTileAt__P2328,
- "isInvalidIndex": tiles_TileMap_isInvalidIndex__P4222,
- "draw": tiles_TileMap_draw__P4223,
- "isObstacle": tiles_TileMap_isObstacle__P2332,
- "getObstacle": tiles_TileMap_getObstacle__P2333,
- "isOnWall": tiles_TileMap_isOnWall__P2334,
- "getTileImage": tiles_TileMap_getTileImage__P2335,
+ "scale": tiles_TileMap_scale__P62311,
+ "set/scale": tiles_TileMap_scale__P62312,
+ "data": tiles_TileMap_data__P64218,
+ "offsetX": tiles_TileMap_offsetX__P62313,
+ "offsetY": tiles_TileMap_offsetY__P62314,
+ "areaWidth": tiles_TileMap_areaWidth__P62315,
+ "areaHeight": tiles_TileMap_areaHeight__P62316,
+ "layer": tiles_TileMap_layer__P62317,
+ "enabled": tiles_TileMap_enabled__P62319,
+ "getTile": tiles_TileMap_getTile__P62321,
+ "getTileIndex": tiles_TileMap_getTileIndex__P62322,
+ "setTileAt": tiles_TileMap_setTileAt__P62323,
+ "isInvalidIndex": tiles_TileMap_isInvalidIndex__P64219,
+ "draw": tiles_TileMap_draw__P64220,
+ "isObstacle": tiles_TileMap_isObstacle__P62328,
+ "getObstacle": tiles_TileMap_getObstacle__P62329,
+ "isOnWall": tiles_TileMap_isOnWall__P62330,
+ "getTileImage": tiles_TileMap_getTileImage__P62331,
},
});
-const tiles_TileMapData__C2301_VT = mkVTable({
+const tiles_TileMapData__C62296_VT = mkVTable({
name: "TileMapData",
numFields: 7,
classNo: 60,
@@ -86346,18 +85493,18 @@ const tiles_TileMapData__C2301_VT = mkVTable({
"set/_width": null,
"_height": null,
"set/_height": null,
- "width": tiles_TileMapData_width__P2303,
- "height": tiles_TileMapData_height__P2304,
- "scale": tiles_TileMapData_scale__P2305,
- "set/scale": tiles_TileMapData_scale__P2306,
- "getTile": tiles_TileMapData_getTile__P2307,
- "setTile": tiles_TileMapData_setTile__P2308,
- "getTileImage": tiles_TileMapData_getTileImage__P2310,
- "isWall": tiles_TileMapData_isWall__P2312,
- "isOutsideMap": tiles_TileMapData_isOutsideMap__P2313,
+ "width": tiles_TileMapData_width__P62298,
+ "height": tiles_TileMapData_height__P62299,
+ "scale": tiles_TileMapData_scale__P62300,
+ "set/scale": tiles_TileMapData_scale__P62301,
+ "getTile": tiles_TileMapData_getTile__P62302,
+ "setTile": tiles_TileMapData_setTile__P62303,
+ "getTileImage": tiles_TileMapData_getTileImage__P62305,
+ "isWall": tiles_TileMapData_isWall__P62307,
+ "isOutsideMap": tiles_TileMapData_isOutsideMap__P62308,
},
});
-const controller_Controller__C1920_VT = mkVTable({
+const controller_Controller__C61915_VT = mkVTable({
name: "Controller",
numFields: 5,
classNo: 61,
@@ -86376,32 +85523,32 @@ const controller_Controller__C1920_VT = mkVTable({
"set/_id": null,
"_connected": null,
"set/_connected": null,
- "_controlledSprites": controller_Controller__controlledSprites__P1925,
- "set/_controlledSprites": controller_Controller__controlledSprites__P1926,
- "id": controller_Controller_id__P1927,
- "left": controller_Controller_left__P1929,
- "right": controller_Controller_right__P1930,
- "up": controller_Controller_up__P1931,
- "down": controller_Controller_down__P1932,
- "button": controller_Controller_button__P4121,
- "connected": controller_Controller_connected__P1939,
- "set/connected": controller_Controller_connected__P1940,
- "__preUpdate": controller_Controller___preUpdate__P1944,
- "__update": controller_Controller___update__P1945,
+ "_controlledSprites": controller_Controller__controlledSprites__P61920,
+ "set/_controlledSprites": controller_Controller__controlledSprites__P61921,
+ "id": controller_Controller_id__P61922,
+ "left": controller_Controller_left__P61924,
+ "right": controller_Controller_right__P61925,
+ "up": controller_Controller_up__P61926,
+ "down": controller_Controller_down__P61927,
+ "button": controller_Controller_button__P64118,
+ "connected": controller_Controller_connected__P61934,
+ "set/connected": controller_Controller_connected__P61935,
+ "__preUpdate": controller_Controller___preUpdate__P61939,
+ "__update": controller_Controller___update__P61940,
},
});
-const ArcadePhysicsEngine__C2170_VT = mkVTable({
+const ArcadePhysicsEngine__C62165_VT = mkVTable({
name: "ArcadePhysicsEngine",
numFields: 6,
classNo: 54,
lastSubtypeNo: 54,
maxBgInstances: null,
methods: {
- "addSprite": ArcadePhysicsEngine_addSprite__P2179,
- "removeSprite": ArcadePhysicsEngine_removeSprite__P2180,
- "moveSprite": ArcadePhysicsEngine_moveSprite__P2184,
- "draw": ArcadePhysicsEngine_draw__P2181,
- "move": ArcadePhysicsEngine_move__P2182,
+ "addSprite": ArcadePhysicsEngine_addSprite__P62174,
+ "removeSprite": ArcadePhysicsEngine_removeSprite__P62175,
+ "moveSprite": ArcadePhysicsEngine_moveSprite__P62179,
+ "draw": ArcadePhysicsEngine_draw__P62176,
+ "move": ArcadePhysicsEngine_move__P62177,
},
iface: {
"sprites": null,
@@ -86416,26 +85563,26 @@ const ArcadePhysicsEngine__C2170_VT = mkVTable({
"set/minSingleStep": null,
"maxSingleStep": null,
"set/maxSingleStep": null,
- "maxSpeed": ArcadePhysicsEngine_maxSpeed__P2172,
- "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P2173,
- "minStep": ArcadePhysicsEngine_minStep__P2174,
- "set/minStep": ArcadePhysicsEngine_minStep__P2175,
- "maxStep": ArcadePhysicsEngine_maxStep__P2176,
- "set/maxStep": ArcadePhysicsEngine_maxStep__P2177,
- "addSprite": ArcadePhysicsEngine_addSprite__P2179,
- "removeSprite": ArcadePhysicsEngine_removeSprite__P2180,
- "draw": ArcadePhysicsEngine_draw__P2181,
- "move": ArcadePhysicsEngine_move__P2182,
- "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P4150,
- "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P4151,
- "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P4152,
- "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P4153,
- "moveSprite": ArcadePhysicsEngine_moveSprite__P2184,
- "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P4154,
- "constrain": ArcadePhysicsEngine_constrain__P4155,
+ "maxSpeed": ArcadePhysicsEngine_maxSpeed__P62167,
+ "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P62168,
+ "minStep": ArcadePhysicsEngine_minStep__P62169,
+ "set/minStep": ArcadePhysicsEngine_minStep__P62170,
+ "maxStep": ArcadePhysicsEngine_maxStep__P62171,
+ "set/maxStep": ArcadePhysicsEngine_maxStep__P62172,
+ "addSprite": ArcadePhysicsEngine_addSprite__P62174,
+ "removeSprite": ArcadePhysicsEngine_removeSprite__P62175,
+ "draw": ArcadePhysicsEngine_draw__P62176,
+ "move": ArcadePhysicsEngine_move__P62177,
+ "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P64147,
+ "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P64148,
+ "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P64149,
+ "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P64150,
+ "moveSprite": ArcadePhysicsEngine_moveSprite__P62179,
+ "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P64151,
+ "constrain": ArcadePhysicsEngine_constrain__P64152,
},
});
-const sprites_SpriteMap__C2091_VT = mkVTable({
+const sprites_SpriteMap__C62086_VT = mkVTable({
name: "SpriteMap",
numFields: 5,
classNo: 62,
@@ -86454,20 +85601,20 @@ const sprites_SpriteMap__C2091_VT = mkVTable({
"set/columnCount": null,
"buckets": null,
"set/buckets": null,
- "neighbors": sprites_SpriteMap_neighbors__P2093,
- "overlaps": sprites_SpriteMap_overlaps__P2094,
- "draw": sprites_SpriteMap_draw__P2095,
- "resizeBuckets": sprites_SpriteMap_resizeBuckets__P2096,
- "clear": sprites_SpriteMap_clear__P2097,
- "key": sprites_SpriteMap_key__P4127,
- "insertAtKey": sprites_SpriteMap_insertAtKey__P4128,
- "insertAABB": sprites_SpriteMap_insertAABB__P2098,
- "mergeAtKey": sprites_SpriteMap_mergeAtKey__P4129,
- "toString": sprites_SpriteMap_toString__P2099,
+ "neighbors": sprites_SpriteMap_neighbors__P62088,
+ "overlaps": sprites_SpriteMap_overlaps__P62089,
+ "draw": sprites_SpriteMap_draw__P62090,
+ "resizeBuckets": sprites_SpriteMap_resizeBuckets__P62091,
+ "clear": sprites_SpriteMap_clear__P62092,
+ "key": sprites_SpriteMap_key__P64124,
+ "insertAtKey": sprites_SpriteMap_insertAtKey__P64125,
+ "insertAABB": sprites_SpriteMap_insertAABB__P62093,
+ "mergeAtKey": sprites_SpriteMap_mergeAtKey__P64126,
+ "toString": sprites_SpriteMap_toString__P62094,
},
- toStringMethod: sprites_SpriteMap_toString__P2099,
+ toStringMethod: sprites_SpriteMap_toString__P62094,
});
-const music_Melody__C1595_VT = mkVTable({
+const music_Melody__C61590_VT = mkVTable({
name: "Melody",
numFields: 2,
classNo: 63,
@@ -86480,20 +85627,20 @@ const music_Melody__C1595_VT = mkVTable({
"set/_text": null,
"_player": null,
"set/_player": null,
- "toString": music_Melody_toString__P1604,
+ "toString": music_Melody_toString__P61599,
},
- toStringMethod: music_Melody_toString__P1604,
+ toStringMethod: music_Melody_toString__P61599,
});
-const tileworld_Gallery__C3823_VT = mkVTable({
+const tileworld_Gallery__C63820_VT = mkVTable({
name: "Gallery",
numFields: 11,
classNo: 25,
lastSubtypeNo: 25,
maxBgInstances: null,
methods: {
- "update": tileworld_Gallery_update__P17156,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
+ "update": tileworld_Gallery_update__P77144,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
},
iface: {
"cursor": null,
@@ -86518,26 +85665,26 @@ const tileworld_Gallery__C3823_VT = mkVTable({
"set/wrapper": null,
"gallery": null,
"set/gallery": null,
- "update": tileworld_Gallery_update__P17156,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
- "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702,
+ "update": tileworld_Gallery_update__P77144,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
+ "cursorMove": tileworld_RuleVisualsBase_cursorMove__P72694,
},
});
-const tileworld_SwitchExport__C3666_VT = mkVTable({
+const tileworld_SwitchExport__C63663_VT = mkVTable({
name: "SwitchExport",
numFields: 2,
classNo: 64,
@@ -86550,18 +85697,18 @@ const tileworld_SwitchExport__C3666_VT = mkVTable({
"set/p": null,
"backgrounds": null,
"set/backgrounds": null,
- "getImage": tileworld_SwitchExport_getImage__P3669,
- "saveImage": tileworld_SwitchExport_saveImage__P3670,
+ "getImage": tileworld_SwitchExport_getImage__P63666,
+ "saveImage": tileworld_SwitchExport_saveImage__P63667,
},
});
-const tileworld_RunGame__C3773_VT = mkVTable({
+const tileworld_RunGame__C63770_VT = mkVTable({
name: "RunGame",
numFields: 7,
classNo: 30,
lastSubtypeNo: 30,
maxBgInstances: null,
methods: {
- "update": tileworld_BackgroundBase_update__P11383,
+ "update": tileworld_BackgroundBase_update__P71375,
},
iface: {
"running": null,
@@ -86578,22 +85725,22 @@ const tileworld_RunGame__C3773_VT = mkVTable({
"set/debug": null,
"currentDirection": null,
"set/currentDirection": null,
- "setWorld": tileworld_RunGame_setWorld__P3775,
- "roundToCompletion": tileworld_RunGame_roundToCompletion__P11384,
- "start": tileworld_RunGame_start__P3776,
- "registerController": tileworld_RunGame_registerController__P11386,
- "requestMove": tileworld_RunGame_requestMove__P11387,
- "update": tileworld_BackgroundBase_update__P11383,
+ "setWorld": tileworld_RunGame_setWorld__P63772,
+ "roundToCompletion": tileworld_RunGame_roundToCompletion__P71376,
+ "start": tileworld_RunGame_start__P63773,
+ "registerController": tileworld_RunGame_registerController__P71378,
+ "requestMove": tileworld_RunGame_requestMove__P71379,
+ "update": tileworld_BackgroundBase_update__P71375,
},
});
-const tileworld_MapEditor__C3819_VT = mkVTable({
+const tileworld_MapEditor__C63816_VT = mkVTable({
name: "MapEditor",
numFields: 9,
classNo: 31,
lastSubtypeNo: 31,
maxBgInstances: null,
methods: {
- "update": tileworld_MapEditor_update__P3821,
+ "update": tileworld_MapEditor_update__P63818,
},
iface: {
"offsetX": null,
@@ -86614,28 +85761,28 @@ const tileworld_MapEditor__C3819_VT = mkVTable({
"set/aDown": null,
"p": null,
"set/p": null,
- "paintHome": tileworld_MapEditor_paintHome__P15295,
- "setCursor": tileworld_MapEditor_setCursor__P15296,
- "moveLeft": tileworld_MapEditor_moveLeft__P15297,
- "moveRight": tileworld_MapEditor_moveRight__P15298,
- "moveUp": tileworld_MapEditor_moveUp__P15299,
- "moveDown": tileworld_MapEditor_moveDown__P15300,
- "updateSelection": tileworld_MapEditor_updateSelection__P15301,
- "cursorAction": tileworld_MapEditor_cursorAction__P15302,
- "col": tileworld_MapEditor_col__P15303,
- "row": tileworld_MapEditor_row__P15304,
- "drawImage": tileworld_MapEditor_drawImage__P15305,
- "update": tileworld_MapEditor_update__P3821,
+ "paintHome": tileworld_MapEditor_paintHome__P75287,
+ "setCursor": tileworld_MapEditor_setCursor__P75288,
+ "moveLeft": tileworld_MapEditor_moveLeft__P75289,
+ "moveRight": tileworld_MapEditor_moveRight__P75290,
+ "moveUp": tileworld_MapEditor_moveUp__P75291,
+ "moveDown": tileworld_MapEditor_moveDown__P75292,
+ "updateSelection": tileworld_MapEditor_updateSelection__P75293,
+ "cursorAction": tileworld_MapEditor_cursorAction__P75294,
+ "col": tileworld_MapEditor_col__P75295,
+ "row": tileworld_MapEditor_row__P75296,
+ "drawImage": tileworld_MapEditor_drawImage__P75297,
+ "update": tileworld_MapEditor_update__P63818,
},
});
-const tileworld_ImageEditor__C3778_VT = mkVTable({
+const tileworld_ImageEditor__C63775_VT = mkVTable({
name: "ImageEditor",
numFields: 10,
classNo: 32,
lastSubtypeNo: 32,
maxBgInstances: null,
methods: {
- "update": tileworld_ImageEditor_update__P11913,
+ "update": tileworld_ImageEditor_update__P71905,
},
iface: {
"cursorType": null,
@@ -86658,17 +85805,17 @@ const tileworld_ImageEditor__C3778_VT = mkVTable({
"set/dirty": null,
"p": null,
"set/p": null,
- "paintPixel": tileworld_ImageEditor_paintPixel__P11906,
- "moveLeft": tileworld_ImageEditor_moveLeft__P11907,
- "moveRight": tileworld_ImageEditor_moveRight__P11908,
- "moveUp": tileworld_ImageEditor_moveUp__P11909,
- "moveDown": tileworld_ImageEditor_moveDown__P11910,
- "saveAndPop": tileworld_ImageEditor_saveAndPop__P11911,
- "setCursor": tileworld_ImageEditor_setCursor__P11912,
- "update": tileworld_ImageEditor_update__P11913,
+ "paintPixel": tileworld_ImageEditor_paintPixel__P71898,
+ "moveLeft": tileworld_ImageEditor_moveLeft__P71899,
+ "moveRight": tileworld_ImageEditor_moveRight__P71900,
+ "moveUp": tileworld_ImageEditor_moveUp__P71901,
+ "moveDown": tileworld_ImageEditor_moveDown__P71902,
+ "saveAndPop": tileworld_ImageEditor_saveAndPop__P71903,
+ "setCursor": tileworld_ImageEditor_setCursor__P71904,
+ "update": tileworld_ImageEditor_update__P71905,
},
});
-const tileworld_AllExport__C3671_VT = mkVTable({
+const tileworld_AllExport__C63668_VT = mkVTable({
name: "AllExport",
numFields: 2,
classNo: 65,
@@ -86681,24 +85828,24 @@ const tileworld_AllExport__C3671_VT = mkVTable({
"set/allImages": null,
"p": null,
"set/p": null,
- "getImages": tileworld_AllExport_getImages__P3673,
- "getImage": tileworld_AllExport_getImage__P3674,
- "saveImage": tileworld_AllExport_saveImage__P3675,
- "getSetAttr": tileworld_AllExport_getSetAttr__P3676,
+ "getImages": tileworld_AllExport_getImages__P63670,
+ "getImage": tileworld_AllExport_getImage__P63671,
+ "saveImage": tileworld_AllExport_saveImage__P63672,
+ "getSetAttr": tileworld_AllExport_getSetAttr__P63673,
},
});
-const tileworld_ruleediting_RuleDisplay__C3797_VT = mkVTable({
+const tileworld_ruleediting_RuleDisplay__C63794_VT = mkVTable({
name: "RuleDisplay",
numFields: 13,
classNo: 26,
lastSubtypeNo: 29,
maxBgInstances: null,
methods: {
- "update": tileworld_ruleediting_RuleDisplay_update__P13111,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P13108,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
+ "update": tileworld_ruleediting_RuleDisplay_update__P73103,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P73100,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
},
iface: {
"cursor": null,
@@ -86727,59 +85874,59 @@ const tileworld_ruleediting_RuleDisplay__C3797_VT = mkVTable({
"set/commandLengths": null,
"tokens": null,
"set/tokens": null,
- "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102,
- "getType": tileworld_ruleediting_RuleDisplay_getType__P13103,
- "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106,
- "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107,
- "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P13108,
- "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109,
- "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110,
- "update": tileworld_ruleediting_RuleDisplay_update__P13111,
- "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112,
- "active": tileworld_ruleediting_RuleDisplay_active__P13113,
- "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114,
- "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115,
- "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116,
- "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117,
- "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118,
- "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119,
- "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120,
- "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121,
- "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
- "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124,
- "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "getDir": tileworld_ruleediting_RuleDisplay_getDir__P73094,
+ "getType": tileworld_ruleediting_RuleDisplay_getType__P73095,
+ "getKind": tileworld_ruleediting_RuleDisplay_getKind__P73096,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098,
+ "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099,
+ "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P73100,
+ "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P73101,
+ "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P73102,
+ "update": tileworld_ruleediting_RuleDisplay_update__P73103,
+ "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P73104,
+ "active": tileworld_ruleediting_RuleDisplay_active__P73105,
+ "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106,
+ "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107,
+ "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P73108,
+ "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P73109,
+ "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110,
+ "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P73111,
+ "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P73112,
+ "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P73113,
+ "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
+ "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P73116,
+ "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P73117,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_ruleediting_RuleRoom__C3805_VT = mkVTable({
+const tileworld_ruleediting_RuleRoom__C63802_VT = mkVTable({
name: "RuleRoom",
numFields: 16,
classNo: 27,
lastSubtypeNo: 27,
maxBgInstances: null,
methods: {
- "update": tileworld_ruleediting_RuleRoom_update__P14387,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P14386,
- "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P14388,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
+ "update": tileworld_ruleediting_RuleRoom_update__P74379,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P74378,
+ "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P74380,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
},
iface: {
"cursor": null,
@@ -86814,64 +85961,64 @@ const tileworld_ruleediting_RuleRoom__C3805_VT = mkVTable({
"set/moreHelp": null,
"rules": null,
"set/rules": null,
- "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P14386,
- "update": tileworld_ruleediting_RuleRoom_update__P14387,
- "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P14388,
- "make3by3": tileworld_ruleediting_RuleRoom_make3by3__P14389,
- "setRuleType": tileworld_ruleediting_RuleRoom_setRuleType__P14390,
- "doBoth": tileworld_ruleediting_RuleRoom_doBoth__P14391,
- "stringColumn": tileworld_ruleediting_RuleRoom_stringColumn__P14392,
- "showRuleMenu": tileworld_ruleediting_RuleRoom_showRuleMenu__P14393,
- "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102,
- "getType": tileworld_ruleediting_RuleDisplay_getType__P13103,
- "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104,
- "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106,
- "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107,
- "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109,
- "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110,
- "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112,
- "active": tileworld_ruleediting_RuleDisplay_active__P13113,
- "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114,
- "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115,
- "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116,
- "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117,
- "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118,
- "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119,
- "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120,
- "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121,
- "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
- "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124,
- "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P74378,
+ "update": tileworld_ruleediting_RuleRoom_update__P74379,
+ "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P74380,
+ "make3by3": tileworld_ruleediting_RuleRoom_make3by3__P74381,
+ "setRuleType": tileworld_ruleediting_RuleRoom_setRuleType__P74382,
+ "doBoth": tileworld_ruleediting_RuleRoom_doBoth__P74383,
+ "stringColumn": tileworld_ruleediting_RuleRoom_stringColumn__P74384,
+ "showRuleMenu": tileworld_ruleediting_RuleRoom_showRuleMenu__P74385,
+ "getDir": tileworld_ruleediting_RuleDisplay_getDir__P73094,
+ "getType": tileworld_ruleediting_RuleDisplay_getType__P73095,
+ "getKind": tileworld_ruleediting_RuleDisplay_getKind__P73096,
+ "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098,
+ "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099,
+ "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P73101,
+ "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P73102,
+ "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P73104,
+ "active": tileworld_ruleediting_RuleDisplay_active__P73105,
+ "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106,
+ "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107,
+ "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P73108,
+ "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P73109,
+ "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110,
+ "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P73111,
+ "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P73112,
+ "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P73113,
+ "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
+ "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P73116,
+ "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P73117,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_ruleediting_RuleEditor__C3816_VT = mkVTable({
+const tileworld_ruleediting_RuleEditor__C63813_VT = mkVTable({
name: "RuleEditor",
numFields: 19,
classNo: 28,
lastSubtypeNo: 28,
maxBgInstances: null,
methods: {
- "update": tileworld_ruleediting_RuleEditor_update__P14510,
- "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P14502,
- "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P14508,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P14521,
+ "update": tileworld_ruleediting_RuleEditor_update__P74502,
+ "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P74494,
+ "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P74500,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P74513,
},
iface: {
"cursor": null,
@@ -86912,71 +86059,71 @@ const tileworld_ruleediting_RuleEditor__C3816_VT = mkVTable({
"set/askDeleteRule": null,
"kind": null,
"set/kind": null,
- "mainMenu": tileworld_ruleediting_RuleEditor_mainMenu__P14501,
- "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P14502,
- "restoreCursor": tileworld_ruleediting_RuleEditor_restoreCursor__P14503,
- "changeRule": tileworld_ruleediting_RuleEditor_changeRule__P14504,
- "resetRule": tileworld_ruleediting_RuleEditor_resetRule__P14505,
- "saveAndPop": tileworld_ruleediting_RuleEditor_saveAndPop__P14506,
- "currentRules": tileworld_ruleediting_RuleEditor_currentRules__P14507,
- "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P14508,
- "inWhenPredicate": tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509,
- "update": tileworld_ruleediting_RuleEditor_update__P14510,
- "showMainMenu": tileworld_ruleediting_RuleEditor_showMainMenu__P14511,
- "tryEditCommand": tileworld_ruleediting_RuleEditor_tryEditCommand__P14512,
- "makeCommandMenu": tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513,
- "modifyCommandMenu": tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514,
- "instToStartArg": tileworld_ruleediting_RuleEditor_instToStartArg__P14515,
- "instToArgText": tileworld_ruleediting_RuleEditor_instToArgText__P14516,
- "instToNumArgs": tileworld_ruleediting_RuleEditor_instToNumArgs__P14517,
- "makeArgMenu": tileworld_ruleediting_RuleEditor_makeArgMenu__P14518,
- "commandUpdate": tileworld_ruleediting_RuleEditor_commandUpdate__P14519,
- "setCommand": tileworld_ruleediting_RuleEditor_setCommand__P14520,
- "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P14521,
- "attrMenu": tileworld_ruleediting_RuleEditor_attrMenu__P14522,
- "selectAttr": tileworld_ruleediting_RuleEditor_selectAttr__P14523,
- "attrUpdate": tileworld_ruleediting_RuleEditor_attrUpdate__P14524,
- "setAttr": tileworld_ruleediting_RuleEditor_setAttr__P14525,
- "dirExprMenu": tileworld_ruleediting_RuleEditor_dirExprMenu__P14526,
- "dirExprUpdate": tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527,
- "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102,
- "getType": tileworld_ruleediting_RuleDisplay_getType__P13103,
- "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106,
- "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107,
- "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109,
- "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110,
- "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112,
- "active": tileworld_ruleediting_RuleDisplay_active__P13113,
- "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114,
- "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115,
- "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116,
- "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117,
- "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118,
- "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119,
- "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120,
- "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121,
- "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122,
- "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124,
- "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "mainMenu": tileworld_ruleediting_RuleEditor_mainMenu__P74493,
+ "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P74494,
+ "restoreCursor": tileworld_ruleediting_RuleEditor_restoreCursor__P74495,
+ "changeRule": tileworld_ruleediting_RuleEditor_changeRule__P74496,
+ "resetRule": tileworld_ruleediting_RuleEditor_resetRule__P74497,
+ "saveAndPop": tileworld_ruleediting_RuleEditor_saveAndPop__P74498,
+ "currentRules": tileworld_ruleediting_RuleEditor_currentRules__P74499,
+ "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P74500,
+ "inWhenPredicate": tileworld_ruleediting_RuleEditor_inWhenPredicate__P74501,
+ "update": tileworld_ruleediting_RuleEditor_update__P74502,
+ "showMainMenu": tileworld_ruleediting_RuleEditor_showMainMenu__P74503,
+ "tryEditCommand": tileworld_ruleediting_RuleEditor_tryEditCommand__P74504,
+ "makeCommandMenu": tileworld_ruleediting_RuleEditor_makeCommandMenu__P74505,
+ "modifyCommandMenu": tileworld_ruleediting_RuleEditor_modifyCommandMenu__P74506,
+ "instToStartArg": tileworld_ruleediting_RuleEditor_instToStartArg__P74507,
+ "instToArgText": tileworld_ruleediting_RuleEditor_instToArgText__P74508,
+ "instToNumArgs": tileworld_ruleediting_RuleEditor_instToNumArgs__P74509,
+ "makeArgMenu": tileworld_ruleediting_RuleEditor_makeArgMenu__P74510,
+ "commandUpdate": tileworld_ruleediting_RuleEditor_commandUpdate__P74511,
+ "setCommand": tileworld_ruleediting_RuleEditor_setCommand__P74512,
+ "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P74513,
+ "attrMenu": tileworld_ruleediting_RuleEditor_attrMenu__P74514,
+ "selectAttr": tileworld_ruleediting_RuleEditor_selectAttr__P74515,
+ "attrUpdate": tileworld_ruleediting_RuleEditor_attrUpdate__P74516,
+ "setAttr": tileworld_ruleediting_RuleEditor_setAttr__P74517,
+ "dirExprMenu": tileworld_ruleediting_RuleEditor_dirExprMenu__P74518,
+ "dirExprUpdate": tileworld_ruleediting_RuleEditor_dirExprUpdate__P74519,
+ "getDir": tileworld_ruleediting_RuleDisplay_getDir__P73094,
+ "getType": tileworld_ruleediting_RuleDisplay_getType__P73095,
+ "getKind": tileworld_ruleediting_RuleDisplay_getKind__P73096,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098,
+ "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099,
+ "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P73101,
+ "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P73102,
+ "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P73104,
+ "active": tileworld_ruleediting_RuleDisplay_active__P73105,
+ "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106,
+ "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107,
+ "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P73108,
+ "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P73109,
+ "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110,
+ "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P73111,
+ "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P73112,
+ "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P73113,
+ "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114,
+ "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P73116,
+ "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P73117,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_RuleView__C3630_VT = mkVTable({
+const tileworld_RuleView__C63627_VT = mkVTable({
name: "RuleView",
numFields: 4,
classNo: 66,
@@ -86993,51 +86140,51 @@ const tileworld_RuleView__C3630_VT = mkVTable({
"set/rid": null,
"r": null,
"set/r": null,
- "getBaseRule": tileworld_RuleView_getBaseRule__P3632,
- "getDerivedRules": tileworld_RuleView_getDerivedRules__P3633,
- "getTransforms": tileworld_RuleView_getTransforms__P3635,
- "setTransforms": tileworld_RuleView_setTransforms__P3636,
- "getRuleId": tileworld_RuleView_getRuleId__P3637,
- "getRuleType": tileworld_RuleView_getRuleType__P3638,
- "getRuleArg": tileworld_RuleView_getRuleArg__P3640,
- "getDirFromRule": tileworld_RuleView_getDirFromRule__P3642,
- "rawView": tileworld_RuleView_rawView__P7044,
- "getWhenDo": tileworld_RuleView_getWhenDo__P3643,
- "makeWhenDo": tileworld_RuleView_makeWhenDo__P3644,
- "getWhenDoCol": tileworld_RuleView_getWhenDoCol__P3645,
- "getWhenDoRow": tileworld_RuleView_getWhenDoRow__P3646,
- "getSetBuffAttr": tileworld_RuleView_getSetBuffAttr__P7045,
- "getSetBgAttr": tileworld_RuleView_getSetBgAttr__P3647,
- "getSetSpAttr": tileworld_RuleView_getSetSpAttr__P3648,
- "attrCnt": tileworld_RuleView_attrCnt__P3649,
- "attrBgIndex": tileworld_RuleView_attrBgIndex__P7046,
- "attrSpIndex": tileworld_RuleView_attrSpIndex__P7047,
- "findWitnessColRow": tileworld_RuleView_findWitnessColRow__P3650,
- "getWitnessDirection": tileworld_RuleView_getWitnessDirection__P3651,
- "setWitnessDirection": tileworld_RuleView_setWitnessDirection__P3652,
- "getCmdsLen": tileworld_RuleView_getCmdsLen__P3653,
- "getCmdInst": tileworld_RuleView_getCmdInst__P3654,
- "getCmdArg": tileworld_RuleView_getCmdArg__P3655,
- "setCmdInst": tileworld_RuleView_setCmdInst__P3656,
- "setCmdArg": tileworld_RuleView_setCmdArg__P3657,
- "removeCommand": tileworld_RuleView_removeCommand__P3658,
- "getSpriteKinds": tileworld_RuleView_getSpriteKinds__P3659,
- "hasSpriteKind": tileworld_RuleView_hasSpriteKind__P3660,
- "whendoTrue": tileworld_RuleView_whendoTrue__P3661,
+ "getBaseRule": tileworld_RuleView_getBaseRule__P63629,
+ "getDerivedRules": tileworld_RuleView_getDerivedRules__P63630,
+ "getTransforms": tileworld_RuleView_getTransforms__P63632,
+ "setTransforms": tileworld_RuleView_setTransforms__P63633,
+ "getRuleId": tileworld_RuleView_getRuleId__P63634,
+ "getRuleType": tileworld_RuleView_getRuleType__P63635,
+ "getRuleArg": tileworld_RuleView_getRuleArg__P63637,
+ "getDirFromRule": tileworld_RuleView_getDirFromRule__P63639,
+ "rawView": tileworld_RuleView_rawView__P67036,
+ "getWhenDo": tileworld_RuleView_getWhenDo__P63640,
+ "makeWhenDo": tileworld_RuleView_makeWhenDo__P63641,
+ "getWhenDoCol": tileworld_RuleView_getWhenDoCol__P63642,
+ "getWhenDoRow": tileworld_RuleView_getWhenDoRow__P63643,
+ "getSetBuffAttr": tileworld_RuleView_getSetBuffAttr__P67037,
+ "getSetBgAttr": tileworld_RuleView_getSetBgAttr__P63644,
+ "getSetSpAttr": tileworld_RuleView_getSetSpAttr__P63645,
+ "attrCnt": tileworld_RuleView_attrCnt__P63646,
+ "attrBgIndex": tileworld_RuleView_attrBgIndex__P67038,
+ "attrSpIndex": tileworld_RuleView_attrSpIndex__P67039,
+ "findWitnessColRow": tileworld_RuleView_findWitnessColRow__P63647,
+ "getWitnessDirection": tileworld_RuleView_getWitnessDirection__P63648,
+ "setWitnessDirection": tileworld_RuleView_setWitnessDirection__P63649,
+ "getCmdsLen": tileworld_RuleView_getCmdsLen__P63650,
+ "getCmdInst": tileworld_RuleView_getCmdInst__P63651,
+ "getCmdArg": tileworld_RuleView_getCmdArg__P63652,
+ "setCmdInst": tileworld_RuleView_setCmdInst__P63653,
+ "setCmdArg": tileworld_RuleView_setCmdArg__P63654,
+ "removeCommand": tileworld_RuleView_removeCommand__P63655,
+ "getSpriteKinds": tileworld_RuleView_getSpriteKinds__P63656,
+ "hasSpriteKind": tileworld_RuleView_hasSpriteKind__P63657,
+ "whendoTrue": tileworld_RuleView_whendoTrue__P63658,
},
});
-const tileworld_ruleediting_RuleViewDisplay__C3801_VT = mkVTable({
+const tileworld_ruleediting_RuleViewDisplay__C63798_VT = mkVTable({
name: "RuleViewDisplay",
numFields: 15,
classNo: 29,
lastSubtypeNo: 29,
maxBgInstances: null,
methods: {
- "update": tileworld_ruleediting_RuleViewDisplay_update__P14222,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
+ "update": tileworld_ruleediting_RuleViewDisplay_update__P74214,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
},
iface: {
"cursor": null,
@@ -87070,49 +86217,49 @@ const tileworld_ruleediting_RuleViewDisplay__C3801_VT = mkVTable({
"set/ruleViews": null,
"baseRule": null,
"set/baseRule": null,
- "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220,
- "cursorToView": tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221,
- "update": tileworld_ruleediting_RuleViewDisplay_update__P14222,
- "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102,
- "getType": tileworld_ruleediting_RuleDisplay_getType__P13103,
- "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104,
- "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105,
- "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106,
- "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107,
- "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109,
- "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110,
- "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112,
- "active": tileworld_ruleediting_RuleDisplay_active__P13113,
- "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114,
- "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115,
- "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116,
- "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117,
- "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118,
- "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119,
- "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120,
- "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121,
- "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122,
- "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123,
- "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124,
- "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125,
- "moveInX": tileworld_RuleVisualsBase_moveInX__P12687,
- "moveUp": tileworld_RuleVisualsBase_moveUp__P12688,
- "moveDown": tileworld_RuleVisualsBase_moveDown__P12689,
- "okToMove": tileworld_RuleVisualsBase_okToMove__P12690,
- "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691,
- "setCol": tileworld_RuleVisualsBase_setCol__P12692,
- "setRow": tileworld_RuleVisualsBase_setRow__P12693,
- "col": tileworld_RuleVisualsBase_col__P12694,
- "row": tileworld_RuleVisualsBase_row__P12695,
- "drawImage": tileworld_RuleVisualsBase_drawImage__P12696,
- "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697,
- "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698,
- "fillTile": tileworld_RuleVisualsBase_fillTile__P12699,
- "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700,
- "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701,
+ "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P74212,
+ "cursorToView": tileworld_ruleediting_RuleViewDisplay_cursorToView__P74213,
+ "update": tileworld_ruleediting_RuleViewDisplay_update__P74214,
+ "getDir": tileworld_ruleediting_RuleDisplay_getDir__P73094,
+ "getType": tileworld_ruleediting_RuleDisplay_getType__P73095,
+ "getKind": tileworld_ruleediting_RuleDisplay_getKind__P73096,
+ "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P73097,
+ "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P73098,
+ "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P73099,
+ "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P73101,
+ "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P73102,
+ "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P73104,
+ "active": tileworld_ruleediting_RuleDisplay_active__P73105,
+ "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P73106,
+ "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P73107,
+ "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P73108,
+ "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P73109,
+ "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P73110,
+ "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P73111,
+ "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P73112,
+ "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P73113,
+ "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P73114,
+ "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P73115,
+ "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P73116,
+ "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P73117,
+ "moveInX": tileworld_RuleVisualsBase_moveInX__P72679,
+ "moveUp": tileworld_RuleVisualsBase_moveUp__P72680,
+ "moveDown": tileworld_RuleVisualsBase_moveDown__P72681,
+ "okToMove": tileworld_RuleVisualsBase_okToMove__P72682,
+ "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P72683,
+ "setCol": tileworld_RuleVisualsBase_setCol__P72684,
+ "setRow": tileworld_RuleVisualsBase_setRow__P72685,
+ "col": tileworld_RuleVisualsBase_col__P72686,
+ "row": tileworld_RuleVisualsBase_row__P72687,
+ "drawImage": tileworld_RuleVisualsBase_drawImage__P72688,
+ "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P72689,
+ "drawOutline": tileworld_RuleVisualsBase_drawOutline__P72690,
+ "fillTile": tileworld_RuleVisualsBase_fillTile__P72691,
+ "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P72692,
+ "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P72693,
},
});
-const tileworld_WhenDo__C3603_VT = mkVTable({
+const tileworld_WhenDo__C63600_VT = mkVTable({
name: "WhenDo",
numFields: 7,
classNo: 67,
@@ -87137,7 +86284,7 @@ const tileworld_WhenDo__C3603_VT = mkVTable({
"set/commandsLen": null,
},
});
-const sprites_SpriteSet__C2108_VT = mkVTable({
+const sprites_SpriteSet__C62103_VT = mkVTable({
name: "SpriteSet",
numFields: 1,
classNo: 68,
@@ -87148,15 +86295,15 @@ const sprites_SpriteSet__C2108_VT = mkVTable({
iface: {
"_sprites": null,
"set/_sprites": null,
- "length": sprites_SpriteSet_length__P2111,
- "add": sprites_SpriteSet_add__P2113,
- "remove": sprites_SpriteSet_remove__P2115,
- "contains": sprites_SpriteSet_contains__P2116,
- "toString": sprites_SpriteSet_toString__P2119,
+ "length": sprites_SpriteSet_length__P62106,
+ "add": sprites_SpriteSet_add__P62108,
+ "remove": sprites_SpriteSet_remove__P62110,
+ "contains": sprites_SpriteSet_contains__P62111,
+ "toString": sprites_SpriteSet_toString__P62114,
},
- toStringMethod: sprites_SpriteSet_toString__P2119,
+ toStringMethod: sprites_SpriteSet_toString__P62114,
});
-const game_Hitbox__C1956_VT = mkVTable({
+const game_Hitbox__C61951_VT = mkVTable({
name: "Hitbox",
numFields: 5,
classNo: 69,
@@ -87175,13 +86322,13 @@ const game_Hitbox__C1956_VT = mkVTable({
"set/width": null,
"height": null,
"set/height": null,
- "left": game_Hitbox_left__P1963,
- "top": game_Hitbox_top__P1964,
- "right": game_Hitbox_right__P1965,
- "bottom": game_Hitbox_bottom__P1966,
+ "left": game_Hitbox_left__P61958,
+ "top": game_Hitbox_top__P61959,
+ "right": game_Hitbox_right__P61960,
+ "bottom": game_Hitbox_bottom__P61961,
},
});
-const JSON_Stringifier__C3950_VT = mkVTable({
+const JSON_Stringifier__C63947_VT = mkVTable({
name: "Stringifier",
numFields: 3,
classNo: 70,
@@ -87196,11 +86343,11 @@ const JSON_Stringifier__C3950_VT = mkVTable({
"set/indentStep": null,
"indent": null,
"set/indent": null,
- "doString": JSON_Stringifier_doString__P3951,
- "go": JSON_Stringifier_go__P3952,
+ "doString": JSON_Stringifier_doString__P63948,
+ "go": JSON_Stringifier_go__P63949,
},
});
-const tileworld_Rule__C3615_VT = mkVTable({
+const tileworld_Rule__C63612_VT = mkVTable({
name: "Rule",
numFields: 4,
classNo: 71,
@@ -87219,7 +86366,7 @@ const tileworld_Rule__C3615_VT = mkVTable({
"set/transforms": null,
},
});
-const animation_Animation__C2911_VT = mkVTable({
+const animation_Animation__C62908_VT = mkVTable({
name: "Animation",
numFields: 6,
classNo: 72,
@@ -87240,24 +86387,24 @@ const animation_Animation__C2911_VT = mkVTable({
"set/action": null,
"lastTime": null,
"set/lastTime": null,
- "_init": animation_Animation__init__P2919,
- "update": animation_Animation_update__P2920,
- "getImage": animation_Animation_getImage__P2921,
- "addAnimationFrame": animation_Animation_addAnimationFrame__P2925,
- "registerSprite": animation_Animation_registerSprite__P2926,
+ "_init": animation_Animation__init__P62916,
+ "update": animation_Animation_update__P62917,
+ "getImage": animation_Animation_getImage__P62918,
+ "addAnimationFrame": animation_Animation_addAnimationFrame__P62922,
+ "registerSprite": animation_Animation_registerSprite__P62923,
},
});
-const scene_Renderable__C2370_VT = mkVTable({
+const scene_Renderable__C62367_VT = mkVTable({
name: "Renderable",
numFields: 4,
classNo: 38,
lastSubtypeNo: 38,
maxBgInstances: null,
methods: {
- "__visible": scene_Renderable___visible__P2372,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__drawCore": scene_Renderable___drawCore__P2373,
- "__update": sprites_BaseSprite___update__P1863,
+ "__visible": scene_Renderable___visible__P62369,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__drawCore": scene_Renderable___drawCore__P62370,
+ "__update": sprites_BaseSprite___update__P61858,
},
iface: {
"_z": null,
@@ -87268,26 +86415,26 @@ const scene_Renderable__C2370_VT = mkVTable({
"set/handler": null,
"shouldBeVisible": null,
"set/shouldBeVisible": null,
- "__visible": scene_Renderable___visible__P2372,
- "__drawCore": scene_Renderable___drawCore__P2373,
- "z": sprites_BaseSprite_z__P1859,
- "set/z": sprites_BaseSprite_z__P1860,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__update": sprites_BaseSprite___update__P1863,
+ "__visible": scene_Renderable___visible__P62369,
+ "__drawCore": scene_Renderable___drawCore__P62370,
+ "z": sprites_BaseSprite_z__P61854,
+ "set/z": sprites_BaseSprite_z__P61855,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__update": sprites_BaseSprite___update__P61858,
},
});
-const tileworld_TileSprite__C9368_VT = mkVTable({
+const tileworld_TileSprite__C69364_VT = mkVTable({
name: "TileSprite",
numFields: 33,
classNo: 36,
lastSubtypeNo: 36,
maxBgInstances: null,
methods: {
- "__visible": Sprite___visible__P2056,
- "__draw": sprites_BaseSprite___draw__P1861,
- "__drawCore": tileworld_TileSprite___drawCore__P9374,
- "__update": Sprite___update__P2075,
- "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P9373,
+ "__visible": Sprite___visible__P62051,
+ "__draw": sprites_BaseSprite___draw__P61856,
+ "__drawCore": tileworld_TileSprite___drawCore__P69370,
+ "__update": Sprite___update__P62070,
+ "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P69369,
},
iface: {
"_z": null,
@@ -87356,61 +86503,61 @@ const tileworld_TileSprite__C9368_VT = mkVTable({
"set/arg": null,
"movedToStopped": null,
"set/movedToStopped": null,
- "col": tileworld_TileSprite_col__P9370,
- "row": tileworld_TileSprite_row__P9371,
- "update": tileworld_TileSprite_update__P9372,
- "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P9373,
- "__drawCore": tileworld_TileSprite___drawCore__P9374,
- "x": Sprite_x__P2022,
- "set/x": Sprite_x__P2023,
- "y": Sprite_y__P2024,
- "set/y": Sprite_y__P2025,
- "vx": Sprite_vx__P2026,
- "set/vx": Sprite_vx__P2027,
- "vy": Sprite_vy__P2028,
- "set/vy": Sprite_vy__P2029,
- "ax": Sprite_ax__P2030,
- "set/ax": Sprite_ax__P2031,
- "ay": Sprite_ay__P2032,
- "set/ay": Sprite_ay__P2033,
- "fx": Sprite_fx__P2034,
- "set/fx": Sprite_fx__P2035,
- "fy": Sprite_fy__P2036,
- "set/fy": Sprite_fy__P2037,
- "data": Sprite_data__P2038,
- "set/data": Sprite_data__P2039,
- "image": Sprite_image__P2052,
- "setImage": Sprite_setImage__P2053,
- "setHitbox": Sprite_setHitbox__P2054,
- "isStatic": Sprite_isStatic__P2055,
- "__visible": Sprite___visible__P2056,
- "width": Sprite_width__P2057,
- "height": Sprite_height__P2058,
- "left": Sprite_left__P2059,
- "set/left": Sprite_left__P2060,
- "right": Sprite_right__P2061,
- "set/right": Sprite_right__P2062,
- "top": Sprite_top__P2063,
- "set/top": Sprite_top__P2064,
- "bottom": Sprite_bottom__P2065,
- "set/bottom": Sprite_bottom__P2066,
- "kind": Sprite_kind__P2067,
- "setKind": Sprite_setKind__P2068,
- "say": Sprite_say__P2071,
- "__update": Sprite___update__P2075,
- "setFlag": Sprite_setFlag__P2076,
- "overlapsWith": Sprite_overlapsWith__P2077,
- "clearObstacles": Sprite_clearObstacles__P2081,
- "registerObstacle": Sprite_registerObstacle__P2082,
- "destroy": Sprite_destroy__P2084,
- "_destroyCore": Sprite__destroyCore__P2085,
- "toString": Sprite_toString__P2087,
- "z": sprites_BaseSprite_z__P1859,
- "set/z": sprites_BaseSprite_z__P1860,
- "__draw": sprites_BaseSprite___draw__P1861,
+ "col": tileworld_TileSprite_col__P69366,
+ "row": tileworld_TileSprite_row__P69367,
+ "update": tileworld_TileSprite_update__P69368,
+ "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P69369,
+ "__drawCore": tileworld_TileSprite___drawCore__P69370,
+ "x": Sprite_x__P62017,
+ "set/x": Sprite_x__P62018,
+ "y": Sprite_y__P62019,
+ "set/y": Sprite_y__P62020,
+ "vx": Sprite_vx__P62021,
+ "set/vx": Sprite_vx__P62022,
+ "vy": Sprite_vy__P62023,
+ "set/vy": Sprite_vy__P62024,
+ "ax": Sprite_ax__P62025,
+ "set/ax": Sprite_ax__P62026,
+ "ay": Sprite_ay__P62027,
+ "set/ay": Sprite_ay__P62028,
+ "fx": Sprite_fx__P62029,
+ "set/fx": Sprite_fx__P62030,
+ "fy": Sprite_fy__P62031,
+ "set/fy": Sprite_fy__P62032,
+ "data": Sprite_data__P62033,
+ "set/data": Sprite_data__P62034,
+ "image": Sprite_image__P62047,
+ "setImage": Sprite_setImage__P62048,
+ "setHitbox": Sprite_setHitbox__P62049,
+ "isStatic": Sprite_isStatic__P62050,
+ "__visible": Sprite___visible__P62051,
+ "width": Sprite_width__P62052,
+ "height": Sprite_height__P62053,
+ "left": Sprite_left__P62054,
+ "set/left": Sprite_left__P62055,
+ "right": Sprite_right__P62056,
+ "set/right": Sprite_right__P62057,
+ "top": Sprite_top__P62058,
+ "set/top": Sprite_top__P62059,
+ "bottom": Sprite_bottom__P62060,
+ "set/bottom": Sprite_bottom__P62061,
+ "kind": Sprite_kind__P62062,
+ "setKind": Sprite_setKind__P62063,
+ "say": Sprite_say__P62066,
+ "__update": Sprite___update__P62070,
+ "setFlag": Sprite_setFlag__P62071,
+ "overlapsWith": Sprite_overlapsWith__P62072,
+ "clearObstacles": Sprite_clearObstacles__P62076,
+ "registerObstacle": Sprite_registerObstacle__P62077,
+ "destroy": Sprite_destroy__P62079,
+ "_destroyCore": Sprite__destroyCore__P62080,
+ "toString": Sprite_toString__P62082,
+ "z": sprites_BaseSprite_z__P61854,
+ "set/z": sprites_BaseSprite_z__P61855,
+ "__draw": sprites_BaseSprite___draw__P61856,
},
});
-const tileworld_TileWorldVM__C9567_VT = mkVTable({
+const tileworld_TileWorldVM__C69563_VT = mkVTable({
name: "TileWorldVM",
numFields: 7,
classNo: 73,
@@ -87433,31 +86580,31 @@ const tileworld_TileWorldVM__C9567_VT = mkVTable({
"set/p": null,
"rules": null,
"set/rules": null,
- "setState": tileworld_TileWorldVM_setState__P9568,
- "startRound": tileworld_TileWorldVM_startRound__P9569,
- "processClosure": tileworld_TileWorldVM_processClosure__P9570,
- "continueRound": tileworld_TileWorldVM_continueRound__P9571,
- "allSprites": tileworld_TileWorldVM_allSprites__P9572,
- "contextChanged": tileworld_TileWorldVM_contextChanged__P9573,
- "ruleMatchesSprite": tileworld_TileWorldVM_ruleMatchesSprite__P9574,
- "exprMatchesDirection": tileworld_TileWorldVM_exprMatchesDirection__P9575,
- "ruleMatchesDirection": tileworld_TileWorldVM_ruleMatchesDirection__P9576,
- "applyRules": tileworld_TileWorldVM_applyRules__P9577,
- "collidingRules": tileworld_TileWorldVM_collidingRules__P9578,
- "moving": tileworld_TileWorldVM_moving__P9579,
- "collisionDetection": tileworld_TileWorldVM_collisionDetection__P9580,
- "collide": tileworld_TileWorldVM_collide__P9582,
- "updateWorld": tileworld_TileWorldVM_updateWorld__P9583,
- "evaluateRule": tileworld_TileWorldVM_evaluateRule__P9584,
- "getWitness": tileworld_TileWorldVM_getWitness__P9585,
- "inBounds": tileworld_TileWorldVM_inBounds__P9586,
- "evaluateWhenDo": tileworld_TileWorldVM_evaluateWhenDo__P9587,
- "manhattan": tileworld_TileWorldVM_manhattan__P9588,
- "evaluateRuleClosure": tileworld_TileWorldVM_evaluateRuleClosure__P9589,
- "evaluateWhenDoCommands": tileworld_TileWorldVM_evaluateWhenDoCommands__P9590,
+ "setState": tileworld_TileWorldVM_setState__P69564,
+ "startRound": tileworld_TileWorldVM_startRound__P69565,
+ "processClosure": tileworld_TileWorldVM_processClosure__P69566,
+ "continueRound": tileworld_TileWorldVM_continueRound__P69567,
+ "allSprites": tileworld_TileWorldVM_allSprites__P69568,
+ "contextChanged": tileworld_TileWorldVM_contextChanged__P69569,
+ "ruleMatchesSprite": tileworld_TileWorldVM_ruleMatchesSprite__P69570,
+ "exprMatchesDirection": tileworld_TileWorldVM_exprMatchesDirection__P69571,
+ "ruleMatchesDirection": tileworld_TileWorldVM_ruleMatchesDirection__P69572,
+ "applyRules": tileworld_TileWorldVM_applyRules__P69573,
+ "collidingRules": tileworld_TileWorldVM_collidingRules__P69574,
+ "moving": tileworld_TileWorldVM_moving__P69575,
+ "collisionDetection": tileworld_TileWorldVM_collisionDetection__P69576,
+ "collide": tileworld_TileWorldVM_collide__P69578,
+ "updateWorld": tileworld_TileWorldVM_updateWorld__P69579,
+ "evaluateRule": tileworld_TileWorldVM_evaluateRule__P69580,
+ "getWitness": tileworld_TileWorldVM_getWitness__P69581,
+ "inBounds": tileworld_TileWorldVM_inBounds__P69582,
+ "evaluateWhenDo": tileworld_TileWorldVM_evaluateWhenDo__P69583,
+ "manhattan": tileworld_TileWorldVM_manhattan__P69584,
+ "evaluateRuleClosure": tileworld_TileWorldVM_evaluateRuleClosure__P69585,
+ "evaluateWhenDoCommands": tileworld_TileWorldVM_evaluateWhenDoCommands__P69586,
},
});
-const tileworld_Tile__C9548_VT = mkVTable({
+const tileworld_Tile__C69544_VT = mkVTable({
name: "Tile",
numFields: 3,
classNo: 74,
@@ -87474,7 +86621,7 @@ const tileworld_Tile__C9548_VT = mkVTable({
"set/kind": null,
},
});
-const tileworld_RuleClosure__C9561_VT = mkVTable({
+const tileworld_RuleClosure__C69557_VT = mkVTable({
name: "RuleClosure",
numFields: 3,
classNo: 75,
@@ -87491,7 +86638,7 @@ const tileworld_RuleClosure__C9561_VT = mkVTable({
"set/witnesses": null,
},
});
-const tileworld_VMState__C9554_VT = mkVTable({
+const tileworld_VMState__C69550_VT = mkVTable({
name: "VMState",
numFields: 14,
classNo: 76,
@@ -87530,29 +86677,29 @@ const tileworld_VMState__C9554_VT = mkVTable({
"set/changed": null,
},
});
-const tiles_legacy_LegacyTilemap__C3850_VT = mkVTable({
+const tiles_legacy_LegacyTilemap__C63847_VT = mkVTable({
name: "LegacyTilemap",
numFields: 7,
classNo: 59,
lastSubtypeNo: 59,
maxBgInstances: null,
methods: {
- "data": tiles_legacy_LegacyTilemap_data__P3853,
- "offsetX": tiles_legacy_LegacyTilemap_offsetX__P3857,
- "offsetY": tiles_legacy_LegacyTilemap_offsetY__P3858,
- "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P3859,
- "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P3860,
- "layer": tiles_legacy_LegacyTilemap_layer__P3861,
- "enabled": tiles_legacy_LegacyTilemap_enabled__P3863,
- "getTile": tiles_legacy_LegacyTilemap_getTile__P3867,
- "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P3874,
- "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P3868,
- "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P11440,
- "draw": tiles_legacy_LegacyTilemap_draw__P11441,
- "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P3871,
- "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P3872,
- "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P3873,
- "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P3875,
+ "data": tiles_legacy_LegacyTilemap_data__P63850,
+ "offsetX": tiles_legacy_LegacyTilemap_offsetX__P63854,
+ "offsetY": tiles_legacy_LegacyTilemap_offsetY__P63855,
+ "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P63856,
+ "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P63857,
+ "layer": tiles_legacy_LegacyTilemap_layer__P63858,
+ "enabled": tiles_legacy_LegacyTilemap_enabled__P63860,
+ "getTile": tiles_legacy_LegacyTilemap_getTile__P63864,
+ "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P63871,
+ "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P63865,
+ "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P71432,
+ "draw": tiles_legacy_LegacyTilemap_draw__P71433,
+ "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P63868,
+ "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P63869,
+ "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P63870,
+ "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P63872,
},
iface: {
"_scale": null,
@@ -87569,33 +86716,33 @@ const tiles_legacy_LegacyTilemap__C3850_VT = mkVTable({
"set/_screenX": null,
"isLegacy": null,
"set/isLegacy": null,
- "data": tiles_legacy_LegacyTilemap_data__P3853,
- "myLeft": tiles_legacy_LegacyTilemap_myLeft__P3855,
- "myWidth": tiles_legacy_LegacyTilemap_myWidth__P3856,
- "offsetX": tiles_legacy_LegacyTilemap_offsetX__P3857,
- "offsetY": tiles_legacy_LegacyTilemap_offsetY__P3858,
- "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P3859,
- "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P3860,
- "layer": tiles_legacy_LegacyTilemap_layer__P3861,
- "enabled": tiles_legacy_LegacyTilemap_enabled__P3863,
- "setTile": tiles_legacy_LegacyTilemap_setTile__P3864,
- "setMap": tiles_legacy_LegacyTilemap_setMap__P3865,
- "getTile": tiles_legacy_LegacyTilemap_getTile__P3867,
- "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P3868,
- "generateTile": tiles_legacy_LegacyTilemap_generateTile__P11438,
- "isOutsideMap": tiles_legacy_LegacyTilemap_isOutsideMap__P11439,
- "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P11440,
- "draw": tiles_legacy_LegacyTilemap_draw__P11441,
- "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P3871,
- "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P3872,
- "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P3873,
- "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P3874,
- "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P3875,
- "scale": tiles_TileMap_scale__P2316,
- "set/scale": tiles_TileMap_scale__P2317,
+ "data": tiles_legacy_LegacyTilemap_data__P63850,
+ "myLeft": tiles_legacy_LegacyTilemap_myLeft__P63852,
+ "myWidth": tiles_legacy_LegacyTilemap_myWidth__P63853,
+ "offsetX": tiles_legacy_LegacyTilemap_offsetX__P63854,
+ "offsetY": tiles_legacy_LegacyTilemap_offsetY__P63855,
+ "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P63856,
+ "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P63857,
+ "layer": tiles_legacy_LegacyTilemap_layer__P63858,
+ "enabled": tiles_legacy_LegacyTilemap_enabled__P63860,
+ "setTile": tiles_legacy_LegacyTilemap_setTile__P63861,
+ "setMap": tiles_legacy_LegacyTilemap_setMap__P63862,
+ "getTile": tiles_legacy_LegacyTilemap_getTile__P63864,
+ "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P63865,
+ "generateTile": tiles_legacy_LegacyTilemap_generateTile__P71430,
+ "isOutsideMap": tiles_legacy_LegacyTilemap_isOutsideMap__P71431,
+ "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P71432,
+ "draw": tiles_legacy_LegacyTilemap_draw__P71433,
+ "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P63868,
+ "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P63869,
+ "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P63870,
+ "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P63871,
+ "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P63872,
+ "scale": tiles_TileMap_scale__P62311,
+ "set/scale": tiles_TileMap_scale__P62312,
},
});
-const tiles_legacy_TileSet__C20140_VT = mkVTable({
+const tiles_legacy_TileSet__C80124_VT = mkVTable({
name: "TileSet",
numFields: 4,
classNo: 77,
@@ -87612,10 +86759,10 @@ const tiles_legacy_TileSet__C20140_VT = mkVTable({
"set/originalImage": null,
"cachedImage": null,
"set/cachedImage": null,
- "image": tiles_legacy_TileSet_image__P20141,
+ "image": tiles_legacy_TileSet_image__P80125,
},
});
-const scene_systemMenu_PauseMenu__C2614_VT = mkVTable({
+const scene_systemMenu_PauseMenu__C62611_VT = mkVTable({
name: "PauseMenu",
numFields: 7,
classNo: 78,
@@ -87638,15 +86785,15 @@ const scene_systemMenu_PauseMenu__C2614_VT = mkVTable({
"set/scrollOffset": null,
"generator": null,
"set/generator": null,
- "show": scene_systemMenu_PauseMenu_show__P2616,
- "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P2617,
- "setSelection": scene_systemMenu_PauseMenu_setSelection__P2618,
- "drawText": scene_systemMenu_PauseMenu_drawText__P2619,
- "dispose": scene_systemMenu_PauseMenu_dispose__P2620,
- "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P4529,
+ "show": scene_systemMenu_PauseMenu_show__P62613,
+ "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P62614,
+ "setSelection": scene_systemMenu_PauseMenu_setSelection__P62615,
+ "drawText": scene_systemMenu_PauseMenu_drawText__P62616,
+ "dispose": scene_systemMenu_PauseMenu_dispose__P62617,
+ "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P64529,
},
});
-const scene_systemMenu_MenuOption__C2606_VT = mkVTable({
+const scene_systemMenu_MenuOption__C62603_VT = mkVTable({
name: "MenuOption",
numFields: 8,
classNo: 79,
@@ -87671,16 +86818,16 @@ const scene_systemMenu_MenuOption__C2606_VT = mkVTable({
"set/getText": null,
"action": null,
"set/action": null,
- "show": scene_systemMenu_MenuOption_show__P2608,
- "position": scene_systemMenu_MenuOption_position__P2609,
- "setOffset": scene_systemMenu_MenuOption_setOffset__P2610,
- "setTheme": scene_systemMenu_MenuOption_setTheme__P2611,
- "setState": scene_systemMenu_MenuOption_setState__P2612,
- "dispose": scene_systemMenu_MenuOption_dispose__P2613,
- "updateCard": scene_systemMenu_MenuOption_updateCard__P4528,
+ "show": scene_systemMenu_MenuOption_show__P62605,
+ "position": scene_systemMenu_MenuOption_position__P62606,
+ "setOffset": scene_systemMenu_MenuOption_setOffset__P62607,
+ "setTheme": scene_systemMenu_MenuOption_setTheme__P62608,
+ "setState": scene_systemMenu_MenuOption_setState__P62609,
+ "dispose": scene_systemMenu_MenuOption_dispose__P62610,
+ "updateCard": scene_systemMenu_MenuOption_updateCard__P64528,
},
});
-const MovingSprite__C2168_VT = mkVTable({
+const MovingSprite__C62163_VT = mkVTable({
name: "MovingSprite",
numFields: 7,
classNo: 80,
@@ -87705,7 +86852,7 @@ const MovingSprite__C2168_VT = mkVTable({
"set/yStep": null,
},
});
-const tiles_Location__C2286_VT = mkVTable({
+const tiles_Location__C62281_VT = mkVTable({
name: "Location",
numFields: 3,
classNo: 81,
@@ -87720,14 +86867,14 @@ const tiles_Location__C2286_VT = mkVTable({
"set/_col": null,
"tileMap": null,
"set/tileMap": null,
- "col": tiles_Location_col__P2287,
- "row": tiles_Location_row__P2288,
- "x": tiles_Location_x__P2290,
- "y": tiles_Location_y__P2291,
- "tileSet": tiles_Location_tileSet__P2292,
+ "col": tiles_Location_col__P62282,
+ "row": tiles_Location_row__P62283,
+ "x": tiles_Location_x__P62285,
+ "y": tiles_Location_y__P62286,
+ "tileSet": tiles_Location_tileSet__P62287,
},
});
-const sprites_StaticObstacle__C2143_VT = mkVTable({
+const sprites_StaticObstacle__C62138_VT = mkVTable({
name: "StaticObstacle",
numFields: 5,
classNo: 82,
@@ -87746,14 +86893,14 @@ const sprites_StaticObstacle__C2143_VT = mkVTable({
"set/top": null,
"left": null,
"set/left": null,
- "x": sprites_StaticObstacle_x__P2150,
- "y": sprites_StaticObstacle_y__P2151,
- "height": sprites_StaticObstacle_height__P2152,
- "width": sprites_StaticObstacle_width__P2153,
+ "x": sprites_StaticObstacle_x__P62145,
+ "y": sprites_StaticObstacle_y__P62146,
+ "height": sprites_StaticObstacle_height__P62147,
+ "width": sprites_StaticObstacle_width__P62148,
},
});
-const breakpoints = setupDebugger(1, ["zeroCode___5966","map___3712","play___3713","debug___3714","code___3715","paint___3716","music___3717","garbageCan___3718","settingsIcon___3719","addRule___3720","emptyTile___3721","emptyDiagTile___3722","cursorIn___3723","cursorOut___3724","collisionSprite___3725","genericSprite___3726","exclude___3727","include___3728","include2___3729","ok___3730","anyOutline___3731","allFourOutline___3732","restingOutline___3733","downArrowOutline___3734","upArrowOutline___3735","rightArrowOutline___3736","leftArrowOutline___3737","leftButton___3738","rightButton___3739","downButton___3740","upButton___3741","AButton___3742","flipHoriz___3743","flipVert___3744","rotate3way___3745","leftRotate___3746","rightRotate___3747","allFour___3748","downArrow___3749","upArrow___3750","rightArrow___3751","leftArrow___3752","eat___3753","stopSign___3754","uTurn___3755","spawn___3756","smallPaint___3757","portal___3758","gameIcon___3759","trophyUp___3760","trophyDown___3761","scoreUp10___3762","diskIcon___3763","reset___3764","negate___3765","twCursor___9291","apple___9294","snakeHead___3766","snakeBody___9299","ship___9302","alien___9305","missile___9308","cat___9311","fish___9314","dog___3767","chimp___9319","player___3768","diamond___9323","boulder___9326","enemy___3769","brick___9130","grass___9332","water___9335","dirt2___9338","wall___9341","wall2___9344","dirt___9347","space___9350","gallerySprites___3770","galleryTiles___3771","colorOut___11894","colorIn___11897","paintOut___11900","paintIn___11903","moveImages___3788","movedImages___3789","buttonImages___3791","attrImages___3793","gameImages___3794","transformImages___14212","categoryImages___15105","paintOut___16557","paintIn___16560","commandImages___17519","TileWorld___3834","TileWorldVersion___3665","HelpKey___8342","attrValues___3792","transformMap___14209","RuleKey___8299","bitIndex___6717","ruleBuf___6715","categoryText___15113","moveText___3790","gameText___3795","BackImageKey___8702","SpriteImageKey___8704","WorldBackgroundsKey___8317","WorldSpritesKey___8331","HighScoreKey___8358","VersionKey___8394","BackImgCntKey___8412","SpriteImgCntKey___8421","PlayerIndexKey___8430","toHex___8549","menuHelpString___15115","attrHelpString___15117","helpStringTop___14381","helpStringBot___14383","helpString___17516"])
+const breakpoints = setupDebugger(1, ["zeroCode___65969","map___63709","play___63710","debug___63711","code___63712","paint___63713","music___63714","garbageCan___63715","settingsIcon___63716","addRule___63717","emptyTile___63718","emptyDiagTile___63719","cursorIn___63720","cursorOut___63721","collisionSprite___63722","genericSprite___63723","exclude___63724","include___63725","include2___63726","ok___63727","anyOutline___63728","allFourOutline___63729","restingOutline___63730","downArrowOutline___63731","upArrowOutline___63732","rightArrowOutline___63733","leftArrowOutline___63734","leftButton___63735","rightButton___63736","downButton___63737","upButton___63738","AButton___63739","flipHoriz___63740","flipVert___63741","rotate3way___63742","leftRotate___63743","rightRotate___63744","allFour___63745","downArrow___63746","upArrow___63747","rightArrow___63748","leftArrow___63749","eat___63750","stopSign___63751","uTurn___63752","spawn___63753","smallPaint___63754","portal___63755","gameIcon___63756","trophyUp___63757","trophyDown___63758","scoreUp10___63759","diskIcon___63760","reset___63761","negate___63762","twCursor___69287","apple___69290","snakeHead___63763","snakeBody___69295","ship___69298","alien___69301","missile___69304","cat___69307","fish___69310","dog___63764","chimp___69315","player___63765","diamond___69319","boulder___69322","enemy___63766","brick___69126","grass___69328","water___69331","dirt2___69334","wall___69337","wall2___69340","dirt___69343","space___69346","gallerySprites___63767","galleryTiles___63768","colorOut___71886","colorIn___71889","paintOut___71892","paintIn___71895","moveImages___63785","movedImages___63786","buttonImages___63788","attrImages___63790","gameImages___63791","transformImages___74204","categoryImages___75097","paintOut___76545","paintIn___76548","commandImages___77507","TileWorld___63831","TileWorldVersion___63662","HelpKey___68339","attrValues___63789","transformMap___74201","RuleKey___68296","bitIndex___66709","ruleBuf___66707","categoryText___75105","moveText___63787","gameText___63792","BackImageKey___68699","SpriteImageKey___68701","WorldBackgroundsKey___68314","WorldSpritesKey___68328","HighScoreKey___68355","VersionKey___68391","BackImgCntKey___68409","SpriteImgCntKey___68418","PlayerIndexKey___68427","toHex___68546","menuHelpString___75107","attrHelpString___75109","helpStringTop___74373","helpStringBot___74375","helpString___77504"])
-return _main___P35666
+return _main___P93466
})
diff --git a/assets/version.txt b/assets/version.txt
index 078bf8b..ec87108 100644
--- a/assets/version.txt
+++ b/assets/version.txt
@@ -1 +1 @@
-4.2.2
\ No newline at end of file
+4.2.3
\ No newline at end of file
diff --git a/index.html b/index.html
index 04aeea8..52e086f 100644
--- a/index.html
+++ b/index.html
@@ -31,7 +31,6 @@