pxt-common-packages 12.2.1 → 12.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -368,6 +368,16 @@ declare namespace pxsim.browserEvents {
368
368
  wheelDz(): number;
369
369
  }
370
370
  }
371
+ declare namespace pxsim.browserEvents {
372
+ function currentTime(): number;
373
+ function getYear(time: number): number;
374
+ function getMonth(time: number): number;
375
+ function getDayOfMonth(time: number): number;
376
+ function getDayOfWeek(time: number): number;
377
+ function getHours(time: number): number;
378
+ function getMinutes(time: number): number;
379
+ function getSeconds(time: number): number;
380
+ }
371
381
  declare namespace pxsim {
372
382
  class CommonButton extends Button {
373
383
  private _pressedTime;
@@ -1061,6 +1061,44 @@ var pxsim;
1061
1061
  browserEvents.MouseState = MouseState;
1062
1062
  })(browserEvents = pxsim.browserEvents || (pxsim.browserEvents = {}));
1063
1063
  })(pxsim || (pxsim = {}));
1064
+ var pxsim;
1065
+ (function (pxsim) {
1066
+ var browserEvents;
1067
+ (function (browserEvents) {
1068
+ function currentTime() {
1069
+ return Date.now();
1070
+ }
1071
+ browserEvents.currentTime = currentTime;
1072
+ function getYear(time) {
1073
+ return new Date(time).getFullYear();
1074
+ }
1075
+ browserEvents.getYear = getYear;
1076
+ function getMonth(time) {
1077
+ return new Date(time).getMonth();
1078
+ }
1079
+ browserEvents.getMonth = getMonth;
1080
+ function getDayOfMonth(time) {
1081
+ return new Date(time).getDate();
1082
+ }
1083
+ browserEvents.getDayOfMonth = getDayOfMonth;
1084
+ function getDayOfWeek(time) {
1085
+ return new Date(time).getDay();
1086
+ }
1087
+ browserEvents.getDayOfWeek = getDayOfWeek;
1088
+ function getHours(time) {
1089
+ return new Date(time).getHours();
1090
+ }
1091
+ browserEvents.getHours = getHours;
1092
+ function getMinutes(time) {
1093
+ return new Date(time).getMinutes();
1094
+ }
1095
+ browserEvents.getMinutes = getMinutes;
1096
+ function getSeconds(time) {
1097
+ return new Date(time).getSeconds();
1098
+ }
1099
+ browserEvents.getSeconds = getSeconds;
1100
+ })(browserEvents = pxsim.browserEvents || (pxsim.browserEvents = {}));
1101
+ })(pxsim || (pxsim = {}));
1064
1102
  /// <reference path="../../core/dal.d.ts"/>
1065
1103
  var pxsim;
1066
1104
  (function (pxsim) {
@@ -26,4 +26,44 @@ int wheelDy() {
26
26
  int wheelDz() {
27
27
  return -1;
28
28
  }
29
+
30
+ //%
31
+ int currentTime() {
32
+ return -1;
33
+ }
34
+
35
+ //%
36
+ int getYear(int time) {
37
+ return -1;
38
+ }
39
+
40
+ //%
41
+ int getMonth(int time) {
42
+ return -1;
43
+ }
44
+
45
+ //%
46
+ int getDayOfMonth(int time) {
47
+ return -1;
48
+ }
49
+
50
+ //%
51
+ int getDayOfWeek(int time) {
52
+ return -1;
53
+ }
54
+
55
+ //%
56
+ int getHours(int time) {
57
+ return -1;
58
+ }
59
+
60
+ //%
61
+ int getMinutes(int time) {
62
+ return -1;
63
+ }
64
+
65
+ //%
66
+ int getSeconds(int time) {
67
+ return -1;
68
+ }
29
69
  }
@@ -10,4 +10,20 @@ declare namespace browserEvents {
10
10
  //% shim=browserEvents::wheelDz
11
11
  function wheelDz(): number;
12
12
 
13
+ //% shim=browserEvents::currentTime
14
+ function currentTime(): number;
15
+ //% shim=browserEvents::getYear
16
+ function getYear(time: number): number;
17
+ //% shim=browserEvents::getMonth
18
+ function getMonth(time: number): number;
19
+ //% shim=browserEvents::getDayOfMonth
20
+ function getDayOfMonth(time: number): number;
21
+ //% shim=browserEvents::getDayOfWeek
22
+ function getDayOfWeek(time: number): number;
23
+ //% shim=browserEvents::getHours
24
+ function getHours(time: number): number;
25
+ //% shim=browserEvents::getMinutes
26
+ function getMinutes(time: number): number;
27
+ //% shim=browserEvents::getSeconds
28
+ function getSeconds(time: number): number;
13
29
  }
@@ -0,0 +1,33 @@
1
+ namespace pxsim.browserEvents {
2
+ export function currentTime(): number {
3
+ return Date.now();
4
+ }
5
+
6
+ export function getYear(time: number): number {
7
+ return new Date(time).getFullYear();
8
+ }
9
+
10
+ export function getMonth(time: number): number {
11
+ return new Date(time).getMonth();
12
+ }
13
+
14
+ export function getDayOfMonth(time: number): number {
15
+ return new Date(time).getDate();
16
+ }
17
+
18
+ export function getDayOfWeek(time: number): number {
19
+ return new Date(time).getDay();
20
+ }
21
+
22
+ export function getHours(time: number): number {
23
+ return new Date(time).getHours();
24
+ }
25
+
26
+ export function getMinutes(time: number): number {
27
+ return new Date(time).getMinutes();
28
+ }
29
+
30
+ export function getSeconds(time: number): number {
31
+ return new Date(time).getSeconds();
32
+ }
33
+ }
@@ -15160,7 +15160,7 @@ switch (step) {
15160
15160
  return leave(s, r0)
15161
15161
  default: oops()
15162
15162
  } } }
15163
- Sprite_destroy__P66204.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
15163
+ Sprite_destroy__P66204.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
15164
15164
 
15165
15165
  function Sprite_destroy__P66204_mk(s) {
15166
15166
  checkStack(s.depth);
@@ -15295,7 +15295,7 @@ switch (step) {
15295
15295
  return leave(s, r0)
15296
15296
  default: oops()
15297
15297
  } } }
15298
- Sprite__destroyCore__P66205.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
15298
+ Sprite__destroyCore__P66205.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
15299
15299
 
15300
15300
  function Sprite__destroyCore__P66205_mk(s) {
15301
15301
  checkStack(s.depth);
@@ -15340,7 +15340,7 @@ switch (step) {
15340
15340
  return leave(s, r0)
15341
15341
  default: oops()
15342
15342
  } } }
15343
- forEach_inline__P71707.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15343
+ forEach_inline__P71707.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15344
15344
 
15345
15345
  function forEach_inline__P71707_mk(s) {
15346
15346
  checkStack(s.depth);
@@ -15388,7 +15388,7 @@ switch (step) {
15388
15388
  return leave(s, r0)
15389
15389
  default: oops()
15390
15390
  } } }
15391
- Sprite__destroyCore_inline__P71714.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15391
+ Sprite__destroyCore_inline__P71714.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15392
15392
 
15393
15393
  function Sprite__destroyCore_inline__P71714_mk(s) {
15394
15394
  checkStack(s.depth);
@@ -31961,7 +31961,7 @@ switch (step) {
31961
31961
  return leave(s, r0)
31962
31962
  default: oops()
31963
31963
  } } }
31964
- Sprite_registerObstacle__P66202.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31964
+ Sprite_registerObstacle__P66202.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31965
31965
 
31966
31966
  function Sprite_registerObstacle__P66202_mk(s) {
31967
31967
  checkStack(s.depth);
@@ -32012,7 +32012,7 @@ switch (step) {
32012
32012
  return leave(s, r0)
32013
32013
  default: oops()
32014
32014
  } } }
32015
- forEach_inline__P76281.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32015
+ forEach_inline__P76281.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32016
32016
 
32017
32017
  function forEach_inline__P76281_mk(s) {
32018
32018
  checkStack(s.depth);
@@ -32060,7 +32060,7 @@ switch (step) {
32060
32060
  return leave(s, r0)
32061
32061
  default: oops()
32062
32062
  } } }
32063
- Sprite_registerObstacle_inline__P76287.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32063
+ Sprite_registerObstacle_inline__P76287.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32064
32064
 
32065
32065
  function Sprite_registerObstacle_inline__P76287_mk(s) {
32066
32066
  checkStack(s.depth);
@@ -32097,7 +32097,7 @@ switch (step) {
32097
32097
  return leave(s, r0)
32098
32098
  default: oops()
32099
32099
  } } }
32100
- wallHandlersToRun_inline__P76300.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32100
+ wallHandlersToRun_inline__P76300.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32101
32101
 
32102
32102
  function wallHandlersToRun_inline__P76300_mk(s) {
32103
32103
  checkStack(s.depth);
@@ -32146,7 +32146,7 @@ switch (step) {
32146
32146
  return leave(s, r0)
32147
32147
  default: oops()
32148
32148
  } } }
32149
- Sprite_registerObstacle_inline__P76329.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32149
+ Sprite_registerObstacle_inline__P76329.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32150
32150
 
32151
32151
  function Sprite_registerObstacle_inline__P76329_mk(s) {
32152
32152
  checkStack(s.depth);
@@ -36150,7 +36150,7 @@ switch (step) {
36150
36150
  return leave(s, r0)
36151
36151
  default: oops()
36152
36152
  } } }
36153
- Sprite_clearObstacles__P66201.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
36153
+ Sprite_clearObstacles__P66201.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
36154
36154
 
36155
36155
  function Sprite_clearObstacles__P66201_mk(s) {
36156
36156
  checkStack(s.depth);
@@ -37168,7 +37168,7 @@ switch (step) {
37168
37168
  return leave(s, r0)
37169
37169
  default: oops()
37170
37170
  } } }
37171
- Sprite_toString__P66210.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
37171
+ Sprite_toString__P66210.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
37172
37172
 
37173
37173
  function Sprite_toString__P66210_mk(s) {
37174
37174
  checkStack(s.depth);
@@ -39960,7 +39960,7 @@ switch (step) {
39960
39960
  return leave(s, r0)
39961
39961
  default: oops()
39962
39962
  } } }
39963
- Sprite_drawDebug__P66212.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39963
+ Sprite_drawDebug__P66212.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39964
39964
 
39965
39965
  function Sprite_drawDebug__P66212_mk(s) {
39966
39966
  checkStack(s.depth);
@@ -40067,7 +40067,7 @@ switch (step) {
40067
40067
  return leave(s, r0)
40068
40068
  default: oops()
40069
40069
  } } }
40070
- Sprite_drawSprite__P66213.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
40070
+ Sprite_drawSprite__P66213.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
40071
40071
 
40072
40072
  function Sprite_drawSprite__P66213_mk(s) {
40073
40073
  checkStack(s.depth);
@@ -40167,7 +40167,7 @@ switch (step) {
40167
40167
  return leave(s, r0)
40168
40168
  default: oops()
40169
40169
  } } }
40170
- Sprite_drawSay__P66211.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
40170
+ Sprite_drawSay__P66211.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
40171
40171
 
40172
40172
  function Sprite_drawSay__P66211_mk(s) {
40173
40173
  checkStack(s.depth);
@@ -15051,7 +15051,7 @@ switch (step) {
15051
15051
  return leave(s, r0)
15052
15052
  default: oops()
15053
15053
  } } }
15054
- Sprite_destroy__P82537.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
15054
+ Sprite_destroy__P82537.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
15055
15055
 
15056
15056
  function Sprite_destroy__P82537_mk(s) {
15057
15057
  checkStack(s.depth);
@@ -15186,7 +15186,7 @@ switch (step) {
15186
15186
  return leave(s, r0)
15187
15187
  default: oops()
15188
15188
  } } }
15189
- Sprite__destroyCore__P82538.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
15189
+ Sprite__destroyCore__P82538.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
15190
15190
 
15191
15191
  function Sprite__destroyCore__P82538_mk(s) {
15192
15192
  checkStack(s.depth);
@@ -15231,7 +15231,7 @@ switch (step) {
15231
15231
  return leave(s, r0)
15232
15232
  default: oops()
15233
15233
  } } }
15234
- forEach_inline__P87809.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15234
+ forEach_inline__P87809.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15235
15235
 
15236
15236
  function forEach_inline__P87809_mk(s) {
15237
15237
  checkStack(s.depth);
@@ -15279,7 +15279,7 @@ switch (step) {
15279
15279
  return leave(s, r0)
15280
15280
  default: oops()
15281
15281
  } } }
15282
- Sprite__destroyCore_inline__P87816.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15282
+ Sprite__destroyCore_inline__P87816.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
15283
15283
 
15284
15284
  function Sprite__destroyCore_inline__P87816_mk(s) {
15285
15285
  checkStack(s.depth);
@@ -31852,7 +31852,7 @@ switch (step) {
31852
31852
  return leave(s, r0)
31853
31853
  default: oops()
31854
31854
  } } }
31855
- Sprite_registerObstacle__P82535.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31855
+ Sprite_registerObstacle__P82535.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31856
31856
 
31857
31857
  function Sprite_registerObstacle__P82535_mk(s) {
31858
31858
  checkStack(s.depth);
@@ -31903,7 +31903,7 @@ switch (step) {
31903
31903
  return leave(s, r0)
31904
31904
  default: oops()
31905
31905
  } } }
31906
- forEach_inline__P92383.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31906
+ forEach_inline__P92383.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31907
31907
 
31908
31908
  function forEach_inline__P92383_mk(s) {
31909
31909
  checkStack(s.depth);
@@ -31951,7 +31951,7 @@ switch (step) {
31951
31951
  return leave(s, r0)
31952
31952
  default: oops()
31953
31953
  } } }
31954
- Sprite_registerObstacle_inline__P92389.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31954
+ Sprite_registerObstacle_inline__P92389.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31955
31955
 
31956
31956
  function Sprite_registerObstacle_inline__P92389_mk(s) {
31957
31957
  checkStack(s.depth);
@@ -31988,7 +31988,7 @@ switch (step) {
31988
31988
  return leave(s, r0)
31989
31989
  default: oops()
31990
31990
  } } }
31991
- wallHandlersToRun_inline__P92402.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31991
+ wallHandlersToRun_inline__P92402.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31992
31992
 
31993
31993
  function wallHandlersToRun_inline__P92402_mk(s) {
31994
31994
  checkStack(s.depth);
@@ -32037,7 +32037,7 @@ switch (step) {
32037
32037
  return leave(s, r0)
32038
32038
  default: oops()
32039
32039
  } } }
32040
- Sprite_registerObstacle_inline__P92431.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32040
+ Sprite_registerObstacle_inline__P92431.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
32041
32041
 
32042
32042
  function Sprite_registerObstacle_inline__P92431_mk(s) {
32043
32043
  checkStack(s.depth);
@@ -36041,7 +36041,7 @@ switch (step) {
36041
36041
  return leave(s, r0)
36042
36042
  default: oops()
36043
36043
  } } }
36044
- Sprite_clearObstacles__P82534.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
36044
+ Sprite_clearObstacles__P82534.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
36045
36045
 
36046
36046
  function Sprite_clearObstacles__P82534_mk(s) {
36047
36047
  checkStack(s.depth);
@@ -37059,7 +37059,7 @@ switch (step) {
37059
37059
  return leave(s, r0)
37060
37060
  default: oops()
37061
37061
  } } }
37062
- Sprite_toString__P82543.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
37062
+ Sprite_toString__P82543.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
37063
37063
 
37064
37064
  function Sprite_toString__P82543_mk(s) {
37065
37065
  checkStack(s.depth);
@@ -39851,7 +39851,7 @@ switch (step) {
39851
39851
  return leave(s, r0)
39852
39852
  default: oops()
39853
39853
  } } }
39854
- Sprite_drawDebug__P82545.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39854
+ Sprite_drawDebug__P82545.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39855
39855
 
39856
39856
  function Sprite_drawDebug__P82545_mk(s) {
39857
39857
  checkStack(s.depth);
@@ -39958,7 +39958,7 @@ switch (step) {
39958
39958
  return leave(s, r0)
39959
39959
  default: oops()
39960
39960
  } } }
39961
- Sprite_drawSprite__P82546.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39961
+ Sprite_drawSprite__P82546.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39962
39962
 
39963
39963
  function Sprite_drawSprite__P82546_mk(s) {
39964
39964
  checkStack(s.depth);
@@ -40058,7 +40058,7 @@ switch (step) {
40058
40058
  return leave(s, r0)
40059
40059
  default: oops()
40060
40060
  } } }
40061
- Sprite_drawSay__P82544.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
40061
+ Sprite_drawSay__P82544.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
40062
40062
 
40063
40063
  function Sprite_drawSay__P82544_mk(s) {
40064
40064
  checkStack(s.depth);
@@ -14546,7 +14546,7 @@ switch (step) {
14546
14546
  return leave(s, r0)
14547
14547
  default: oops()
14548
14548
  } } }
14549
- Sprite_destroy__P141777.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14549
+ Sprite_destroy__P141777.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14550
14550
 
14551
14551
  function Sprite_destroy__P141777_mk(s) {
14552
14552
  checkStack(s.depth);
@@ -14681,7 +14681,7 @@ switch (step) {
14681
14681
  return leave(s, r0)
14682
14682
  default: oops()
14683
14683
  } } }
14684
- Sprite__destroyCore__P141778.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14684
+ Sprite__destroyCore__P141778.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14685
14685
 
14686
14686
  function Sprite__destroyCore__P141778_mk(s) {
14687
14687
  checkStack(s.depth);
@@ -14726,7 +14726,7 @@ switch (step) {
14726
14726
  return leave(s, r0)
14727
14727
  default: oops()
14728
14728
  } } }
14729
- forEach_inline__P146932.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
14729
+ forEach_inline__P146932.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
14730
14730
 
14731
14731
  function forEach_inline__P146932_mk(s) {
14732
14732
  checkStack(s.depth);
@@ -14774,7 +14774,7 @@ switch (step) {
14774
14774
  return leave(s, r0)
14775
14775
  default: oops()
14776
14776
  } } }
14777
- Sprite__destroyCore_inline__P146939.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
14777
+ Sprite__destroyCore_inline__P146939.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
14778
14778
 
14779
14779
  function Sprite__destroyCore_inline__P146939_mk(s) {
14780
14780
  checkStack(s.depth);
@@ -31347,7 +31347,7 @@ switch (step) {
31347
31347
  return leave(s, r0)
31348
31348
  default: oops()
31349
31349
  } } }
31350
- Sprite_registerObstacle__P141775.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31350
+ Sprite_registerObstacle__P141775.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31351
31351
 
31352
31352
  function Sprite_registerObstacle__P141775_mk(s) {
31353
31353
  checkStack(s.depth);
@@ -31398,7 +31398,7 @@ switch (step) {
31398
31398
  return leave(s, r0)
31399
31399
  default: oops()
31400
31400
  } } }
31401
- forEach_inline__P151506.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31401
+ forEach_inline__P151506.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31402
31402
 
31403
31403
  function forEach_inline__P151506_mk(s) {
31404
31404
  checkStack(s.depth);
@@ -31446,7 +31446,7 @@ switch (step) {
31446
31446
  return leave(s, r0)
31447
31447
  default: oops()
31448
31448
  } } }
31449
- Sprite_registerObstacle_inline__P151512.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31449
+ Sprite_registerObstacle_inline__P151512.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31450
31450
 
31451
31451
  function Sprite_registerObstacle_inline__P151512_mk(s) {
31452
31452
  checkStack(s.depth);
@@ -31483,7 +31483,7 @@ switch (step) {
31483
31483
  return leave(s, r0)
31484
31484
  default: oops()
31485
31485
  } } }
31486
- wallHandlersToRun_inline__P151525.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31486
+ wallHandlersToRun_inline__P151525.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31487
31487
 
31488
31488
  function wallHandlersToRun_inline__P151525_mk(s) {
31489
31489
  checkStack(s.depth);
@@ -31532,7 +31532,7 @@ switch (step) {
31532
31532
  return leave(s, r0)
31533
31533
  default: oops()
31534
31534
  } } }
31535
- Sprite_registerObstacle_inline__P151554.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31535
+ Sprite_registerObstacle_inline__P151554.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
31536
31536
 
31537
31537
  function Sprite_registerObstacle_inline__P151554_mk(s) {
31538
31538
  checkStack(s.depth);
@@ -35536,7 +35536,7 @@ switch (step) {
35536
35536
  return leave(s, r0)
35537
35537
  default: oops()
35538
35538
  } } }
35539
- Sprite_clearObstacles__P141774.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35539
+ Sprite_clearObstacles__P141774.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35540
35540
 
35541
35541
  function Sprite_clearObstacles__P141774_mk(s) {
35542
35542
  checkStack(s.depth);
@@ -36589,7 +36589,7 @@ switch (step) {
36589
36589
  return leave(s, r0)
36590
36590
  default: oops()
36591
36591
  } } }
36592
- Sprite_toString__P141783.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"sprite.ts","functionName":"toString","argumentNames":["this"]}
36592
+ Sprite_toString__P141783.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"sprite.ts","functionName":"toString","argumentNames":["this"]}
36593
36593
 
36594
36594
  function Sprite_toString__P141783_mk(s) {
36595
36595
  checkStack(s.depth);
@@ -39381,7 +39381,7 @@ switch (step) {
39381
39381
  return leave(s, r0)
39382
39382
  default: oops()
39383
39383
  } } }
39384
- Sprite_drawDebug__P141785.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39384
+ Sprite_drawDebug__P141785.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39385
39385
 
39386
39386
  function Sprite_drawDebug__P141785_mk(s) {
39387
39387
  checkStack(s.depth);
@@ -39488,7 +39488,7 @@ switch (step) {
39488
39488
  return leave(s, r0)
39489
39489
  default: oops()
39490
39490
  } } }
39491
- Sprite_drawSprite__P141786.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39491
+ Sprite_drawSprite__P141786.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39492
39492
 
39493
39493
  function Sprite_drawSprite__P141786_mk(s) {
39494
39494
  checkStack(s.depth);
@@ -39588,7 +39588,7 @@ switch (step) {
39588
39588
  return leave(s, r0)
39589
39589
  default: oops()
39590
39590
  } } }
39591
- Sprite_drawSay__P141784.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39591
+ Sprite_drawSay__P141784.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39592
39592
 
39593
39593
  function Sprite_drawSay__P141784_mk(s) {
39594
39594
  checkStack(s.depth);
@@ -789,7 +789,6 @@ class Sprite extends sprites.BaseSprite {
789
789
  */
790
790
  //% blockId=spriteobstacle block="%sprite(mySprite) wall hit on %direction"
791
791
  //% blockNamespace="scene" group="Locations"
792
- //% direction.shadow=tiles_collision_direction_editor
793
792
  //% help=sprites/sprite/tile-hit-from
794
793
  //% deprecated=1
795
794
  tileHitFrom(direction: number): number {
@@ -49,12 +49,17 @@ namespace mp {
49
49
  }
50
50
  }
51
51
 
52
+ class StateEntry {
53
+ constructor(public key: number, public value: number) {
54
+ }
55
+ }
56
+
52
57
  /**
53
58
  * A player in the game
54
59
  */
55
60
  export class Player {
56
61
  _sprite: Sprite;
57
- _state: number[];
62
+ _state: StateEntry[];
58
63
  _index: number;
59
64
  _data: any;
60
65
  _mwb: boolean;
@@ -153,20 +158,11 @@ namespace mp {
153
158
  }
154
159
 
155
160
  _setState(key: number, val: number) {
156
- this._ensureState(key);
157
- if (this._state.length > key)
158
- this._state[key] = val;
161
+ this._lookupOrCreateState(key).value = val;
159
162
  }
160
163
 
161
164
  _getState(key: number): number {
162
- this._ensureState(key);
163
- return (this._state.length > key) ? this._state[key] : 0;
164
- }
165
-
166
- _ensureState(key: number) {
167
- if (!this._state) this._state = [];
168
- if (key < 0 || key > 255) return;
169
- while (this._state.length < key) this._state.push(0);
165
+ return this._lookupOrCreateState(key).value;
170
166
  }
171
167
 
172
168
  _getInfo(): info.PlayerInfo {
@@ -188,6 +184,17 @@ namespace mp {
188
184
  }
189
185
  return undefined;
190
186
  }
187
+
188
+ _lookupOrCreateState(key: number) {
189
+ if (!this._state) this._state = [];
190
+ for (const entry of this._state) {
191
+ if (entry.key === key) return entry;
192
+ }
193
+
194
+ const newEntry = new StateEntry(key, 0);
195
+ this._state.push(newEntry);
196
+ return newEntry;
197
+ }
191
198
  }
192
199
 
193
200
  class MPState {
@@ -25279,7 +25279,7 @@ switch (step) {
25279
25279
  return leave(s, r0)
25280
25280
  default: oops()
25281
25281
  } } }
25282
- Sprite_destroy__P114299.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
25282
+ Sprite_destroy__P114299.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
25283
25283
 
25284
25284
  function Sprite_destroy__P114299_mk(s) {
25285
25285
  checkStack(s.depth);
@@ -25414,7 +25414,7 @@ switch (step) {
25414
25414
  return leave(s, r0)
25415
25415
  default: oops()
25416
25416
  } } }
25417
- Sprite__destroyCore__P114300.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
25417
+ Sprite__destroyCore__P114300.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
25418
25418
 
25419
25419
  function Sprite__destroyCore__P114300_mk(s) {
25420
25420
  checkStack(s.depth);
@@ -25459,7 +25459,7 @@ switch (step) {
25459
25459
  return leave(s, r0)
25460
25460
  default: oops()
25461
25461
  } } }
25462
- forEach_inline__P122531.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
25462
+ forEach_inline__P122531.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
25463
25463
 
25464
25464
  function forEach_inline__P122531_mk(s) {
25465
25465
  checkStack(s.depth);
@@ -25507,7 +25507,7 @@ switch (step) {
25507
25507
  return leave(s, r0)
25508
25508
  default: oops()
25509
25509
  } } }
25510
- Sprite__destroyCore_inline__P122537.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
25510
+ Sprite__destroyCore_inline__P122537.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
25511
25511
 
25512
25512
  function Sprite__destroyCore_inline__P122537_mk(s) {
25513
25513
  checkStack(s.depth);
@@ -39913,7 +39913,7 @@ switch (step) {
39913
39913
  return leave(s, r0)
39914
39914
  default: oops()
39915
39915
  } } }
39916
- Sprite_registerObstacle__P114297.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
39916
+ Sprite_registerObstacle__P114297.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
39917
39917
 
39918
39918
  function Sprite_registerObstacle__P114297_mk(s) {
39919
39919
  checkStack(s.depth);
@@ -39964,7 +39964,7 @@ switch (step) {
39964
39964
  return leave(s, r0)
39965
39965
  default: oops()
39966
39966
  } } }
39967
- forEach_inline__P126569.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
39967
+ forEach_inline__P126569.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
39968
39968
 
39969
39969
  function forEach_inline__P126569_mk(s) {
39970
39970
  checkStack(s.depth);
@@ -40012,7 +40012,7 @@ switch (step) {
40012
40012
  return leave(s, r0)
40013
40013
  default: oops()
40014
40014
  } } }
40015
- Sprite_registerObstacle_inline__P126575.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40015
+ Sprite_registerObstacle_inline__P126575.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40016
40016
 
40017
40017
  function Sprite_registerObstacle_inline__P126575_mk(s) {
40018
40018
  checkStack(s.depth);
@@ -40049,7 +40049,7 @@ switch (step) {
40049
40049
  return leave(s, r0)
40050
40050
  default: oops()
40051
40051
  } } }
40052
- wallHandlersToRun_inline__P126588.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40052
+ wallHandlersToRun_inline__P126588.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40053
40053
 
40054
40054
  function wallHandlersToRun_inline__P126588_mk(s) {
40055
40055
  checkStack(s.depth);
@@ -40098,7 +40098,7 @@ switch (step) {
40098
40098
  return leave(s, r0)
40099
40099
  default: oops()
40100
40100
  } } }
40101
- Sprite_registerObstacle_inline__P126617.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40101
+ Sprite_registerObstacle_inline__P126617.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
40102
40102
 
40103
40103
  function Sprite_registerObstacle_inline__P126617_mk(s) {
40104
40104
  checkStack(s.depth);
@@ -44102,7 +44102,7 @@ switch (step) {
44102
44102
  return leave(s, r0)
44103
44103
  default: oops()
44104
44104
  } } }
44105
- Sprite_clearObstacles__P114296.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
44105
+ Sprite_clearObstacles__P114296.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
44106
44106
 
44107
44107
  function Sprite_clearObstacles__P114296_mk(s) {
44108
44108
  checkStack(s.depth);
@@ -45872,7 +45872,7 @@ switch (step) {
45872
45872
  return leave(s, r0)
45873
45873
  default: oops()
45874
45874
  } } }
45875
- Sprite_toString__P114305.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
45875
+ Sprite_toString__P114305.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
45876
45876
 
45877
45877
  function Sprite_toString__P114305_mk(s) {
45878
45878
  checkStack(s.depth);
@@ -48390,7 +48390,7 @@ switch (step) {
48390
48390
  return leave(s, r0)
48391
48391
  default: oops()
48392
48392
  } } }
48393
- Sprite_drawDebug__P114307.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
48393
+ Sprite_drawDebug__P114307.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
48394
48394
 
48395
48395
  function Sprite_drawDebug__P114307_mk(s) {
48396
48396
  checkStack(s.depth);
@@ -48497,7 +48497,7 @@ switch (step) {
48497
48497
  return leave(s, r0)
48498
48498
  default: oops()
48499
48499
  } } }
48500
- Sprite_drawSprite__P114308.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
48500
+ Sprite_drawSprite__P114308.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
48501
48501
 
48502
48502
  function Sprite_drawSprite__P114308_mk(s) {
48503
48503
  checkStack(s.depth);
@@ -48597,7 +48597,7 @@ switch (step) {
48597
48597
  return leave(s, r0)
48598
48598
  default: oops()
48599
48599
  } } }
48600
- Sprite_drawSay__P114306.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
48600
+ Sprite_drawSay__P114306.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
48601
48601
 
48602
48602
  function Sprite_drawSay__P114306_mk(s) {
48603
48603
  checkStack(s.depth);
@@ -14546,7 +14546,7 @@ switch (step) {
14546
14546
  return leave(s, r0)
14547
14547
  default: oops()
14548
14548
  } } }
14549
- Sprite_destroy__P174790.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14549
+ Sprite_destroy__P174790.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14550
14550
 
14551
14551
  function Sprite_destroy__P174790_mk(s) {
14552
14552
  checkStack(s.depth);
@@ -14681,7 +14681,7 @@ switch (step) {
14681
14681
  return leave(s, r0)
14682
14682
  default: oops()
14683
14683
  } } }
14684
- Sprite__destroyCore__P174791.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14684
+ Sprite__destroyCore__P174791.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14685
14685
 
14686
14686
  function Sprite__destroyCore__P174791_mk(s) {
14687
14687
  checkStack(s.depth);
@@ -14726,7 +14726,7 @@ switch (step) {
14726
14726
  return leave(s, r0)
14727
14727
  default: oops()
14728
14728
  } } }
14729
- forEach_inline__P179954.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14729
+ forEach_inline__P179954.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14730
14730
 
14731
14731
  function forEach_inline__P179954_mk(s) {
14732
14732
  checkStack(s.depth);
@@ -14774,7 +14774,7 @@ switch (step) {
14774
14774
  return leave(s, r0)
14775
14775
  default: oops()
14776
14776
  } } }
14777
- Sprite__destroyCore_inline__P179961.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14777
+ Sprite__destroyCore_inline__P179961.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14778
14778
 
14779
14779
  function Sprite__destroyCore_inline__P179961_mk(s) {
14780
14780
  checkStack(s.depth);
@@ -31347,7 +31347,7 @@ switch (step) {
31347
31347
  return leave(s, r0)
31348
31348
  default: oops()
31349
31349
  } } }
31350
- Sprite_registerObstacle__P174788.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31350
+ Sprite_registerObstacle__P174788.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31351
31351
 
31352
31352
  function Sprite_registerObstacle__P174788_mk(s) {
31353
31353
  checkStack(s.depth);
@@ -31398,7 +31398,7 @@ switch (step) {
31398
31398
  return leave(s, r0)
31399
31399
  default: oops()
31400
31400
  } } }
31401
- forEach_inline__P184528.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31401
+ forEach_inline__P184528.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31402
31402
 
31403
31403
  function forEach_inline__P184528_mk(s) {
31404
31404
  checkStack(s.depth);
@@ -31446,7 +31446,7 @@ switch (step) {
31446
31446
  return leave(s, r0)
31447
31447
  default: oops()
31448
31448
  } } }
31449
- Sprite_registerObstacle_inline__P184534.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31449
+ Sprite_registerObstacle_inline__P184534.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31450
31450
 
31451
31451
  function Sprite_registerObstacle_inline__P184534_mk(s) {
31452
31452
  checkStack(s.depth);
@@ -31483,7 +31483,7 @@ switch (step) {
31483
31483
  return leave(s, r0)
31484
31484
  default: oops()
31485
31485
  } } }
31486
- wallHandlersToRun_inline__P184547.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31486
+ wallHandlersToRun_inline__P184547.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31487
31487
 
31488
31488
  function wallHandlersToRun_inline__P184547_mk(s) {
31489
31489
  checkStack(s.depth);
@@ -31532,7 +31532,7 @@ switch (step) {
31532
31532
  return leave(s, r0)
31533
31533
  default: oops()
31534
31534
  } } }
31535
- Sprite_registerObstacle_inline__P184576.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31535
+ Sprite_registerObstacle_inline__P184576.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31536
31536
 
31537
31537
  function Sprite_registerObstacle_inline__P184576_mk(s) {
31538
31538
  checkStack(s.depth);
@@ -35536,7 +35536,7 @@ switch (step) {
35536
35536
  return leave(s, r0)
35537
35537
  default: oops()
35538
35538
  } } }
35539
- Sprite_clearObstacles__P174787.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35539
+ Sprite_clearObstacles__P174787.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35540
35540
 
35541
35541
  function Sprite_clearObstacles__P174787_mk(s) {
35542
35542
  checkStack(s.depth);
@@ -36589,7 +36589,7 @@ switch (step) {
36589
36589
  return leave(s, r0)
36590
36590
  default: oops()
36591
36591
  } } }
36592
- Sprite_toString__P174796.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36592
+ Sprite_toString__P174796.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36593
36593
 
36594
36594
  function Sprite_toString__P174796_mk(s) {
36595
36595
  checkStack(s.depth);
@@ -39381,7 +39381,7 @@ switch (step) {
39381
39381
  return leave(s, r0)
39382
39382
  default: oops()
39383
39383
  } } }
39384
- Sprite_drawDebug__P174798.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39384
+ Sprite_drawDebug__P174798.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39385
39385
 
39386
39386
  function Sprite_drawDebug__P174798_mk(s) {
39387
39387
  checkStack(s.depth);
@@ -39488,7 +39488,7 @@ switch (step) {
39488
39488
  return leave(s, r0)
39489
39489
  default: oops()
39490
39490
  } } }
39491
- Sprite_drawSprite__P174799.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39491
+ Sprite_drawSprite__P174799.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39492
39492
 
39493
39493
  function Sprite_drawSprite__P174799_mk(s) {
39494
39494
  checkStack(s.depth);
@@ -39588,7 +39588,7 @@ switch (step) {
39588
39588
  return leave(s, r0)
39589
39589
  default: oops()
39590
39590
  } } }
39591
- Sprite_drawSay__P174797.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39591
+ Sprite_drawSay__P174797.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39592
39592
 
39593
39593
  function Sprite_drawSay__P174797_mk(s) {
39594
39594
  checkStack(s.depth);
@@ -14546,7 +14546,7 @@ switch (step) {
14546
14546
  return leave(s, r0)
14547
14547
  default: oops()
14548
14548
  } } }
14549
- Sprite_destroy__P196122.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14549
+ Sprite_destroy__P196122.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14550
14550
 
14551
14551
  function Sprite_destroy__P196122_mk(s) {
14552
14552
  checkStack(s.depth);
@@ -14681,7 +14681,7 @@ switch (step) {
14681
14681
  return leave(s, r0)
14682
14682
  default: oops()
14683
14683
  } } }
14684
- Sprite__destroyCore__P196123.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14684
+ Sprite__destroyCore__P196123.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14685
14685
 
14686
14686
  function Sprite__destroyCore__P196123_mk(s) {
14687
14687
  checkStack(s.depth);
@@ -14726,7 +14726,7 @@ switch (step) {
14726
14726
  return leave(s, r0)
14727
14727
  default: oops()
14728
14728
  } } }
14729
- forEach_inline__P201281.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14729
+ forEach_inline__P201281.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14730
14730
 
14731
14731
  function forEach_inline__P201281_mk(s) {
14732
14732
  checkStack(s.depth);
@@ -14774,7 +14774,7 @@ switch (step) {
14774
14774
  return leave(s, r0)
14775
14775
  default: oops()
14776
14776
  } } }
14777
- Sprite__destroyCore_inline__P201288.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14777
+ Sprite__destroyCore_inline__P201288.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14778
14778
 
14779
14779
  function Sprite__destroyCore_inline__P201288_mk(s) {
14780
14780
  checkStack(s.depth);
@@ -31347,7 +31347,7 @@ switch (step) {
31347
31347
  return leave(s, r0)
31348
31348
  default: oops()
31349
31349
  } } }
31350
- Sprite_registerObstacle__P196120.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31350
+ Sprite_registerObstacle__P196120.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31351
31351
 
31352
31352
  function Sprite_registerObstacle__P196120_mk(s) {
31353
31353
  checkStack(s.depth);
@@ -31398,7 +31398,7 @@ switch (step) {
31398
31398
  return leave(s, r0)
31399
31399
  default: oops()
31400
31400
  } } }
31401
- forEach_inline__P205855.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31401
+ forEach_inline__P205855.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31402
31402
 
31403
31403
  function forEach_inline__P205855_mk(s) {
31404
31404
  checkStack(s.depth);
@@ -31446,7 +31446,7 @@ switch (step) {
31446
31446
  return leave(s, r0)
31447
31447
  default: oops()
31448
31448
  } } }
31449
- Sprite_registerObstacle_inline__P205861.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31449
+ Sprite_registerObstacle_inline__P205861.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31450
31450
 
31451
31451
  function Sprite_registerObstacle_inline__P205861_mk(s) {
31452
31452
  checkStack(s.depth);
@@ -31483,7 +31483,7 @@ switch (step) {
31483
31483
  return leave(s, r0)
31484
31484
  default: oops()
31485
31485
  } } }
31486
- wallHandlersToRun_inline__P205874.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31486
+ wallHandlersToRun_inline__P205874.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31487
31487
 
31488
31488
  function wallHandlersToRun_inline__P205874_mk(s) {
31489
31489
  checkStack(s.depth);
@@ -31532,7 +31532,7 @@ switch (step) {
31532
31532
  return leave(s, r0)
31533
31533
  default: oops()
31534
31534
  } } }
31535
- Sprite_registerObstacle_inline__P205903.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31535
+ Sprite_registerObstacle_inline__P205903.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31536
31536
 
31537
31537
  function Sprite_registerObstacle_inline__P205903_mk(s) {
31538
31538
  checkStack(s.depth);
@@ -35536,7 +35536,7 @@ switch (step) {
35536
35536
  return leave(s, r0)
35537
35537
  default: oops()
35538
35538
  } } }
35539
- Sprite_clearObstacles__P196119.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35539
+ Sprite_clearObstacles__P196119.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35540
35540
 
35541
35541
  function Sprite_clearObstacles__P196119_mk(s) {
35542
35542
  checkStack(s.depth);
@@ -36589,7 +36589,7 @@ switch (step) {
36589
36589
  return leave(s, r0)
36590
36590
  default: oops()
36591
36591
  } } }
36592
- Sprite_toString__P196128.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36592
+ Sprite_toString__P196128.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36593
36593
 
36594
36594
  function Sprite_toString__P196128_mk(s) {
36595
36595
  checkStack(s.depth);
@@ -39381,7 +39381,7 @@ switch (step) {
39381
39381
  return leave(s, r0)
39382
39382
  default: oops()
39383
39383
  } } }
39384
- Sprite_drawDebug__P196130.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39384
+ Sprite_drawDebug__P196130.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39385
39385
 
39386
39386
  function Sprite_drawDebug__P196130_mk(s) {
39387
39387
  checkStack(s.depth);
@@ -39488,7 +39488,7 @@ switch (step) {
39488
39488
  return leave(s, r0)
39489
39489
  default: oops()
39490
39490
  } } }
39491
- Sprite_drawSprite__P196131.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39491
+ Sprite_drawSprite__P196131.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39492
39492
 
39493
39493
  function Sprite_drawSprite__P196131_mk(s) {
39494
39494
  checkStack(s.depth);
@@ -39588,7 +39588,7 @@ switch (step) {
39588
39588
  return leave(s, r0)
39589
39589
  default: oops()
39590
39590
  } } }
39591
- Sprite_drawSay__P196129.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39591
+ Sprite_drawSay__P196129.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39592
39592
 
39593
39593
  function Sprite_drawSay__P196129_mk(s) {
39594
39594
  checkStack(s.depth);
@@ -14546,7 +14546,7 @@ switch (step) {
14546
14546
  return leave(s, r0)
14547
14547
  default: oops()
14548
14548
  } } }
14549
- Sprite_destroy__P157346.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14549
+ Sprite_destroy__P157346.info = {"start":26435,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
14550
14550
 
14551
14551
  function Sprite_destroy__P157346_mk(s) {
14552
14552
  checkStack(s.depth);
@@ -14681,7 +14681,7 @@ switch (step) {
14681
14681
  return leave(s, r0)
14682
14682
  default: oops()
14683
14683
  } } }
14684
- Sprite__destroyCore__P157347.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14684
+ Sprite__destroyCore__P157347.info = {"start":26734,"length":522,"line":869,"column":4,"endLine":881,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
14685
14685
 
14686
14686
  function Sprite__destroyCore__P157347_mk(s) {
14687
14687
  checkStack(s.depth);
@@ -14726,7 +14726,7 @@ switch (step) {
14726
14726
  return leave(s, r0)
14727
14727
  default: oops()
14728
14728
  } } }
14729
- forEach_inline__P162531.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14729
+ forEach_inline__P162531.info = {"start":27179,"length":26,"line":879,"column":20,"endLine":879,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14730
14730
 
14731
14731
  function forEach_inline__P162531_mk(s) {
14732
14732
  checkStack(s.depth);
@@ -14774,7 +14774,7 @@ switch (step) {
14774
14774
  return leave(s, r0)
14775
14775
  default: oops()
14776
14776
  } } }
14777
- Sprite__destroyCore_inline__P162538.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14777
+ Sprite__destroyCore_inline__P162538.info = {"start":27228,"length":20,"line":880,"column":21,"endLine":880,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
14778
14778
 
14779
14779
  function Sprite__destroyCore_inline__P162538_mk(s) {
14780
14780
  checkStack(s.depth);
@@ -31347,7 +31347,7 @@ switch (step) {
31347
31347
  return leave(s, r0)
31348
31348
  default: oops()
31349
31349
  } } }
31350
- Sprite_registerObstacle__P157344.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31350
+ Sprite_registerObstacle__P157344.info = {"start":24934,"length":965,"line":816,"column":4,"endLine":836,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
31351
31351
 
31352
31352
  function Sprite_registerObstacle__P157344_mk(s) {
31353
31353
  checkStack(s.depth);
@@ -31398,7 +31398,7 @@ switch (step) {
31398
31398
  return leave(s, r0)
31399
31399
  default: oops()
31400
31400
  } } }
31401
- forEach_inline__P167105.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31401
+ forEach_inline__P167105.info = {"start":25332,"length":26,"line":823,"column":24,"endLine":823,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31402
31402
 
31403
31403
  function forEach_inline__P167105_mk(s) {
31404
31404
  checkStack(s.depth);
@@ -31446,7 +31446,7 @@ switch (step) {
31446
31446
  return leave(s, r0)
31447
31447
  default: oops()
31448
31448
  } } }
31449
- Sprite_registerObstacle_inline__P167111.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31449
+ Sprite_registerObstacle_inline__P167111.info = {"start":25385,"length":20,"line":824,"column":25,"endLine":824,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31450
31450
 
31451
31451
  function Sprite_registerObstacle_inline__P167111_mk(s) {
31452
31452
  checkStack(s.depth);
@@ -31483,7 +31483,7 @@ switch (step) {
31483
31483
  return leave(s, r0)
31484
31484
  default: oops()
31485
31485
  } } }
31486
- wallHandlersToRun_inline__P167124.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31486
+ wallHandlersToRun_inline__P167124.info = {"start":25591,"length":32,"line":829,"column":24,"endLine":829,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31487
31487
 
31488
31488
  function wallHandlersToRun_inline__P167124_mk(s) {
31489
31489
  checkStack(s.depth);
@@ -31532,7 +31532,7 @@ switch (step) {
31532
31532
  return leave(s, r0)
31533
31533
  default: oops()
31534
31534
  } } }
31535
- Sprite_registerObstacle_inline__P167153.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31535
+ Sprite_registerObstacle_inline__P167153.info = {"start":25831,"length":36,"line":833,"column":29,"endLine":833,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
31536
31536
 
31537
31537
  function Sprite_registerObstacle_inline__P167153_mk(s) {
31538
31538
  checkStack(s.depth);
@@ -35536,7 +35536,7 @@ switch (step) {
35536
35536
  return leave(s, r0)
35537
35537
  default: oops()
35538
35538
  } } }
35539
- Sprite_clearObstacles__P157343.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35539
+ Sprite_clearObstacles__P157343.info = {"start":24874,"length":54,"line":812,"column":4,"endLine":814,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
35540
35540
 
35541
35541
  function Sprite_clearObstacles__P157343_mk(s) {
35542
35542
  checkStack(s.depth);
@@ -36589,7 +36589,7 @@ switch (step) {
36589
36589
  return leave(s, r0)
36590
36590
  default: oops()
36591
36591
  } } }
36592
- Sprite_toString__P157352.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36592
+ Sprite_toString__P157352.info = {"start":34053,"length":93,"line":1065,"column":4,"endLine":1067,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
36593
36593
 
36594
36594
  function Sprite_toString__P157352_mk(s) {
36595
36595
  checkStack(s.depth);
@@ -39381,7 +39381,7 @@ switch (step) {
39381
39381
  return leave(s, r0)
39382
39382
  default: oops()
39383
39383
  } } }
39384
- Sprite_drawDebug__P157354.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39384
+ Sprite_drawDebug__P157354.info = {"start":34732,"length":1092,"line":1087,"column":4,"endLine":1115,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
39385
39385
 
39386
39386
  function Sprite_drawDebug__P157354_mk(s) {
39387
39387
  checkStack(s.depth);
@@ -39488,7 +39488,7 @@ switch (step) {
39488
39488
  return leave(s, r0)
39489
39489
  default: oops()
39490
39490
  } } }
39491
- Sprite_drawSprite__P157355.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39491
+ Sprite_drawSprite__P157355.info = {"start":35830,"length":514,"line":1117,"column":4,"endLine":1131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
39492
39492
 
39493
39493
  function Sprite_drawSprite__P157355_mk(s) {
39494
39494
  checkStack(s.depth);
@@ -39588,7 +39588,7 @@ switch (step) {
39588
39588
  return leave(s, r0)
39589
39589
  default: oops()
39590
39590
  } } }
39591
- Sprite_drawSay__P157353.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39591
+ Sprite_drawSay__P157353.info = {"start":34152,"length":574,"line":1069,"column":4,"endLine":1085,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
39592
39592
 
39593
39593
  function Sprite_drawSay__P157353_mk(s) {
39594
39594
  checkStack(s.depth);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "12.2.1",
3
+ "version": "12.2.3",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",