pxt-common-packages 9.5.4 → 9.5.7

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.
Files changed (62) hide show
  1. package/built/common-sim.d.ts +40 -0
  2. package/built/common-sim.js +93 -1
  3. package/libs/azureiot/built/debug/binary.js +461 -461
  4. package/libs/base/sim/core.ts +1 -1
  5. package/libs/color/built/debug/binary.js +8 -8
  6. package/libs/color-sensor/built/debug/binary.js +8 -8
  7. package/libs/controller/built/debug/binary.js +6864 -6864
  8. package/libs/controller---none/built/debug/binary.js +6844 -6844
  9. package/libs/datalogger/built/debug/binary.js +63 -63
  10. package/libs/edge-connector/built/debug/binary.js +8 -8
  11. package/libs/esp32/built/debug/binary.js +462 -462
  12. package/libs/game/_locales/game-strings.json +1 -0
  13. package/libs/game/built/debug/binary.js +6784 -6784
  14. package/libs/game/docs/reference/sprites/sprite/follow.md +66 -0
  15. package/libs/game/docs/reference/sprites/sprite/set-bounce-on-wall.md +2 -2
  16. package/libs/game/docs/reference/sprites/sprite-kind.md +70 -0
  17. package/libs/game/docs/reference/tiles/get-neighboring-location.md +123 -0
  18. package/libs/game/docs/reference/tiles/get-tile-location.md +71 -30
  19. package/libs/game/docs/reference/tiles/get-tiles-by-type.md +66 -32
  20. package/libs/game/docs/reference/tiles/location.md +246 -0
  21. package/libs/game/docs/reference/tiles/place-on-random-tile.md +54 -21
  22. package/libs/game/docs/reference/tiles/place-on-tile.md +88 -0
  23. package/libs/game/docs/reference/tiles/set-current-tilemap.md +90 -0
  24. package/libs/game/docs/reference/tiles/set-tile-at.md +47 -30
  25. package/libs/game/docs/reference/tiles/set-tilemap.md +90 -0
  26. package/libs/game/docs/reference/tiles/set-wall-at.md +67 -68
  27. package/libs/game/docs/reference/tiles/tile-at-location-equals.md +97 -0
  28. package/libs/game/docs/reference/tiles/tile-at-location-is-wall.md +98 -0
  29. package/libs/game/docs/reference/tiles/tilemap.md +145 -0
  30. package/libs/game/multiplayer.cpp +25 -0
  31. package/libs/game/multiplayer.ts +24 -0
  32. package/libs/game/pxt.json +3 -1
  33. package/libs/game/scene.ts +1 -0
  34. package/libs/game/sim/multiplayer.ts +132 -0
  35. package/libs/game/sprite.ts +2 -1
  36. package/libs/game/spritekind.ts +1 -0
  37. package/libs/game/tilemap.ts +12 -11
  38. package/libs/lcd/built/debug/binary.js +8 -8
  39. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  40. package/libs/lora/built/debug/binary.js +8 -8
  41. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  42. package/libs/mqtt/built/debug/binary.js +176 -176
  43. package/libs/net/built/debug/binary.js +176 -176
  44. package/libs/net-game/built/debug/binary.js +8372 -8372
  45. package/libs/palette/built/debug/binary.js +6782 -6782
  46. package/libs/pixel/built/debug/binary.js +8 -8
  47. package/libs/power/built/debug/binary.js +8 -8
  48. package/libs/proximity/built/debug/binary.js +8 -8
  49. package/libs/radio/_locales/radio-strings.json +4 -1
  50. package/libs/radio/built/debug/binary.js +8 -8
  51. package/libs/radio/radio.cpp +1 -0
  52. package/libs/radio/radio.ts +13 -2
  53. package/libs/radio/shims.d.ts +2 -1
  54. package/libs/radio-broadcast/_locales/radio-broadcast-strings.json +2 -1
  55. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  56. package/libs/radio-broadcast/radio-broadcast.ts +2 -0
  57. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  58. package/libs/screen/built/debug/binary.js +50 -50
  59. package/libs/servo/built/debug/binary.js +8 -8
  60. package/libs/sprite-scaling/built/debug/binary.js +6782 -6782
  61. package/libs/storyboard/built/debug/binary.js +6782 -6782
  62. package/package.json +2 -2
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P56355(s) {
59
+ function _main___P55525(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___56598 = (undefined);
70
- globals._pollEventQueue___56611 = (undefined);
69
+ globals._intervals___55768 = (undefined);
70
+ globals._pollEventQueue___55781 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P56355.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/light/neopixel.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P56355.continuations = [ ]
75
+ _main___P55525.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/light/neopixel.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P55525.continuations = [ ]
77
77
 
78
- function _main___P56355_mk(s) {
78
+ function _main___P55525_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P56355, depth: s.depth + 1,
81
+ parent: s, fn: _main___P55525, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P56355_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P56355
91
+ return _main___P55525
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P63203(s) {
59
+ function _main___P62373(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___63446 = (undefined);
70
- globals._pollEventQueue___63459 = (undefined);
69
+ globals._intervals___62616 = (undefined);
70
+ globals._pollEventQueue___62629 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P63203.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"power.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P63203.continuations = [ ]
75
+ _main___P62373.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"power.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P62373.continuations = [ ]
77
77
 
78
- function _main___P63203_mk(s) {
78
+ function _main___P62373_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P63203, depth: s.depth + 1,
81
+ parent: s, fn: _main___P62373, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P63203_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P63203
91
+ return _main___P62373
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P101361(s) {
59
+ function _main___P100545(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___101604 = (undefined);
70
- globals._pollEventQueue___101617 = (undefined);
69
+ globals._intervals___100788 = (undefined);
70
+ globals._pollEventQueue___100801 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P101361.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"vl53l0x.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P101361.continuations = [ ]
75
+ _main___P100545.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"vl53l0x.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P100545.continuations = [ ]
77
77
 
78
- function _main___P101361_mk(s) {
78
+ function _main___P100545_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P101361, depth: s.depth + 1,
81
+ parent: s, fn: _main___P100545, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P101361_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P101361
91
+ return _main___P100545
92
92
  })
@@ -18,5 +18,8 @@
18
18
  "radio.setTransmitPower|block": "radio set transmit power %power",
19
19
  "radio.setTransmitSerialNumber|block": "radio set transmit serial number %transmit",
20
20
  "radio|block": "radio",
21
- "{id:category}Radio": "Radio"
21
+ "{id:category}Radio": "Radio",
22
+ "{id:group}Group": "Group",
23
+ "{id:group}Receive": "Receive",
24
+ "{id:group}Send": "Send"
22
25
  }
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P185061(s) {
59
+ function _main___P183436(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___185304 = (undefined);
70
- globals._pollEventQueue___185317 = (undefined);
69
+ globals._intervals___183679 = (undefined);
70
+ globals._pollEventQueue___183692 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P185061.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P185061.continuations = [ ]
75
+ _main___P183436.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P183436.continuations = [ ]
77
77
 
78
- function _main___P185061_mk(s) {
78
+ function _main___P183436_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P185061, depth: s.depth + 1,
81
+ parent: s, fn: _main___P183436, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P185061_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P185061
91
+ return _main___P183436
92
92
  })
@@ -237,6 +237,7 @@ CODAL_RADIO* getRadio() {
237
237
  //% weight=100
238
238
  //% blockId=radio_set_group block="radio set group %ID"
239
239
  //% id.min=0 id.max=255
240
+ //% group="Group"
240
241
  void setGroup(int id) {
241
242
  #ifdef CODAL_RADIO
242
243
  if (radioEnable() != DEVICE_OK) return;
@@ -14,7 +14,7 @@ enum RadioPacketProperty {
14
14
  /**
15
15
  * Communicate data using radio packets
16
16
  */
17
- //% color=#E3008C weight=96 icon="\uf012"
17
+ //% color=#E3008C weight=96 icon="\uf012" groups='["Group", "Broadcast", "Send", "Receive"]'
18
18
  namespace radio {
19
19
 
20
20
  // keep in sync with CODAL
@@ -95,6 +95,8 @@ namespace radio {
95
95
  //% help=radio/on-received-number
96
96
  //% blockId=radio_on_number_drag block="on radio received" blockGap=16
97
97
  //% useLoc="radio.onDataPacketReceived" draggableParameters=reporter
98
+ //% group="Receive"
99
+ //% weight=20
98
100
  export function onReceivedNumber(cb: (receivedNumber: number) => void) {
99
101
  init();
100
102
  onReceivedNumberHandler = cb;
@@ -106,6 +108,8 @@ namespace radio {
106
108
  //% help=radio/on-received-value
107
109
  //% blockId=radio_on_value_drag block="on radio received" blockGap=16
108
110
  //% useLoc="radio.onDataPacketReceived" draggableParameters=reporter
111
+ //% group="Receive"
112
+ //% weight=19
109
113
  export function onReceivedValue(cb: (name: string, value: number) => void) {
110
114
  init();
111
115
  onReceivedValueHandler = cb;
@@ -117,6 +121,8 @@ namespace radio {
117
121
  //% help=radio/on-received-string
118
122
  //% blockId=radio_on_string_drag block="on radio received" blockGap=16
119
123
  //% useLoc="radio.onDataPacketReceived" draggableParameters=reporter
124
+ //% group="Receive"
125
+ //% weight=18
120
126
  export function onReceivedString(cb: (receivedString: string) => void) {
121
127
  init();
122
128
  onReceivedStringHandler = cb;
@@ -138,8 +144,10 @@ namespace radio {
138
144
  * @param type the type of property to retrieve from the last packet
139
145
  */
140
146
  //% help=radio/received-packet
141
- //% weight=11 blockGap=8
147
+ //% blockGap=8
142
148
  //% blockId=radio_received_packet block="received packet %type=radio_packet_property" blockGap=16
149
+ //% group="Receive"
150
+ //% weight=16
143
151
  export function receivedPacket(type: number) {
144
152
  if (lastPacket) {
145
153
  switch (type) {
@@ -272,6 +280,7 @@ namespace radio {
272
280
  //% help=radio/send-number
273
281
  //% weight=60
274
282
  //% blockId=radio_datagram_send block="radio send number %value" blockGap=8
283
+ //% group="Send"
275
284
  export function sendNumber(value: number) {
276
285
  let packet: RadioPacket;
277
286
 
@@ -296,6 +305,7 @@ namespace radio {
296
305
  //% help=radio/send-value
297
306
  //% weight=59
298
307
  //% blockId=radio_datagram_send_value block="radio send|value %name|= %value" blockGap=8
308
+ //% group="Send"
299
309
  export function sendValue(name: string, value: number) {
300
310
  let packet: RadioPacket;
301
311
 
@@ -319,6 +329,7 @@ namespace radio {
319
329
  //% weight=58
320
330
  //% blockId=radio_datagram_send_string block="radio send string %msg"
321
331
  //% msg.shadowOptions.toString=true
332
+ //% group="Send"
322
333
  export function sendString(value: string) {
323
334
  const packet = RadioPacket.mkPacket(PACKET_TYPE_STRING);
324
335
  packet.stringPayload = value;
@@ -58,7 +58,8 @@ declare namespace radio {
58
58
  //% help=radio/set-group
59
59
  //% weight=100
60
60
  //% blockId=radio_set_group block="radio set group %ID"
61
- //% id.min=0 id.max=255 shim=radio::setGroup
61
+ //% id.min=0 id.max=255
62
+ //% group="Group" shim=radio::setGroup
62
63
  function setGroup(id: int32): void;
63
64
 
64
65
  /**
@@ -2,5 +2,6 @@
2
2
  "radio.onReceivedMessage|block": "on radio $msg received",
3
3
  "radio.sendMessage|block": "radio send $msg",
4
4
  "radio|block": "radio",
5
- "{id:category}Radio": "Radio"
5
+ "{id:category}Radio": "Radio",
6
+ "{id:group}Broadcast": "Broadcast"
6
7
  }
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P186885(s) {
59
+ function _main___P185260(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___187128 = (undefined);
70
- globals._pollEventQueue___187141 = (undefined);
69
+ globals._intervals___185503 = (undefined);
70
+ globals._pollEventQueue___185516 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P186885.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"radio-broadcast.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P186885.continuations = [ ]
75
+ _main___P185260.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"radio-broadcast.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P185260.continuations = [ ]
77
77
 
78
- function _main___P186885_mk(s) {
78
+ function _main___P185260_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P186885, depth: s.depth + 1,
81
+ parent: s, fn: _main___P185260, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P186885_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P186885
91
+ return _main___P185260
92
92
  })
@@ -21,6 +21,7 @@ namespace radio {
21
21
  //% weight=200
22
22
  //% blockGap=8
23
23
  //% help=radio/send-message
24
+ //% group="Broadcast"
24
25
  export function sendMessage(msg: number): void {
25
26
  // 0 is MICROBIT_EVT_ANY, shifting by 1
26
27
  radio.raiseEvent(BROADCAST_GENERAL_ID, msg + 1);
@@ -35,6 +36,7 @@ namespace radio {
35
36
  //% msg.shadow=radioMessageCode draggableParameters
36
37
  //% weight=199
37
38
  //% help=radio/on-received-message
39
+ //% group="Broadcast"
38
40
  export function onReceivedMessage(msg: number, handler: () => void) {
39
41
  control.onEvent(BROADCAST_GENERAL_ID, msg + 1, handler);
40
42
  }
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P168467(s) {
59
+ function _main___P166835(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___168710 = (undefined);
70
- globals._pollEventQueue___168723 = (undefined);
69
+ globals._intervals___167078 = (undefined);
70
+ globals._pollEventQueue___167091 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P168467.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P168467.continuations = [ ]
75
+ _main___P166835.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P166835.continuations = [ ]
77
77
 
78
- function _main___P168467_mk(s) {
78
+ function _main___P166835_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P168467, depth: s.depth + 1,
81
+ parent: s, fn: _main___P166835, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P168467_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P168467
91
+ return _main___P166835
92
92
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P50974(s) {
59
+ function _main___P50144(s) {
60
60
  let r0 = s.r0, step = s.pc;
61
61
  s.pc = -1;
62
62
 
@@ -66,29 +66,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
66
66
  switch (step) {
67
67
  case 0:
68
68
 
69
- globals._intervals___51217 = (undefined);
70
- globals._pollEventQueue___51230 = (undefined);
71
- globals.__updated___51459 = (false);
72
- r0 = pxsim.control.runInParallel(control___screen_inline__P51464);
69
+ globals._intervals___50387 = (undefined);
70
+ globals._pollEventQueue___50400 = (undefined);
71
+ globals.__updated___50629 = (false);
72
+ r0 = pxsim.control.runInParallel(control___screen_inline__P50634);
73
73
  r0 = pxsim.image.create(178, 128);
74
- globals.screen___51487 = (r0);
75
- s.tmp_0 = control___screen_setupUpdate__P51461_mk(s);
76
- s.tmp_0.arg0 = _screen_internal_inline__P51492;
74
+ globals.screen___50657 = (r0);
75
+ s.tmp_0 = control___screen_setupUpdate__P50631_mk(s);
76
+ s.tmp_0.arg0 = _screen_internal_inline__P50662;
77
77
  s.callLocIdx = 4; s.pc = 1; return s.tmp_0;
78
78
  case 1:
79
79
  r0 = s.retval;
80
- globals.control_EventContext_onStats___51285 = (_screen_internal_inline__P51497);
80
+ globals.control_EventContext_onStats___50455 = (_screen_internal_inline__P50667);
81
81
  r0 = undefined;
82
82
  return leave(s, r0)
83
83
  default: oops()
84
84
  } } }
85
- _main___P50974.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"imagesoverrides.ts","functionName":"<main>","argumentNames":[]}
86
- _main___P50974.continuations = [ ]
85
+ _main___P50144.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"imagesoverrides.ts","functionName":"<main>","argumentNames":[]}
86
+ _main___P50144.continuations = [ ]
87
87
 
88
- function _main___P50974_mk(s) {
88
+ function _main___P50144_mk(s) {
89
89
  checkStack(s.depth);
90
90
  return {
91
- parent: s, fn: _main___P50974, depth: s.depth + 1,
91
+ parent: s, fn: _main___P50144, depth: s.depth + 1,
92
92
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
93
93
  tmp_0: undefined,
94
94
  } }
@@ -97,7 +97,7 @@ function _main___P50974_mk(s) {
97
97
 
98
98
 
99
99
 
100
- function control___screen_inline__P51464(s) {
100
+ function control___screen_inline__P50634(s) {
101
101
  let r0 = s.r0, step = s.pc;
102
102
  s.pc = -1;
103
103
 
@@ -110,23 +110,23 @@ switch (step) {
110
110
  case 1:
111
111
  r0 = pxsim_numops_toBoolDecr(true);
112
112
  if (!r0) { step = 4; continue; }
113
- globals.__updated___51459 = (false);
114
- s.tmp_0 = pause__P51294_mk(s);
113
+ globals.__updated___50629 = (false);
114
+ s.tmp_0 = pause__P50464_mk(s);
115
115
  s.tmp_0.arg0 = 200;
116
116
  s.callLocIdx = 2; s.pc = 5; return s.tmp_0;
117
117
  case 5:
118
118
  r0 = s.retval;
119
- r0 = pxsim_numops_toBoolDecr(globals.__updated___51459);
119
+ r0 = pxsim_numops_toBoolDecr(globals.__updated___50629);
120
120
  s.tmp_1 = r0;
121
121
  r0 = pxsim_Boolean__bang(s.tmp_1);
122
122
  s.tmp_0 = r0;
123
123
  r0 = pxsim_numops_toBoolDecr(s.tmp_0);
124
124
  if (!r0) { step = 2; continue; }
125
- s.tmp_2 = control___screen_update__P51460_mk(s);
125
+ s.tmp_2 = control___screen_update__P50630_mk(s);
126
126
  s.callLocIdx = 3; s.pc = 6; return s.tmp_2;
127
127
  case 6:
128
128
  r0 = s.retval;
129
- globals.__updated___51459 = (true);
129
+ globals.__updated___50629 = (true);
130
130
  case 2:
131
131
  case 3:
132
132
  { step = 1; continue; }
@@ -135,12 +135,12 @@ switch (step) {
135
135
  return leave(s, r0)
136
136
  default: oops()
137
137
  } } }
138
- control___screen_inline__P51464.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"frame.ts","functionName":"inline","argumentNames":[]}
138
+ control___screen_inline__P50634.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"frame.ts","functionName":"inline","argumentNames":[]}
139
139
 
140
- function control___screen_inline__P51464_mk(s) {
140
+ function control___screen_inline__P50634_mk(s) {
141
141
  checkStack(s.depth);
142
142
  return {
143
- parent: s, fn: control___screen_inline__P51464, depth: s.depth + 1,
143
+ parent: s, fn: control___screen_inline__P50634, depth: s.depth + 1,
144
144
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
145
145
  tmp_0: undefined,
146
146
  tmp_1: undefined,
@@ -151,7 +151,7 @@ function control___screen_inline__P51464_mk(s) {
151
151
 
152
152
 
153
153
 
154
- function _screen_internal_inline__P51492(s) {
154
+ function _screen_internal_inline__P50662(s) {
155
155
  let r0 = s.r0, step = s.pc;
156
156
  s.pc = -1;
157
157
 
@@ -161,17 +161,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
161
161
  switch (step) {
162
162
  case 0:
163
163
 
164
- r0 = pxsim_pxtcore.updateScreen(globals.screen___51487);
164
+ r0 = pxsim_pxtcore.updateScreen(globals.screen___50657);
165
165
  r0 = undefined;
166
166
  return leave(s, r0)
167
167
  default: oops()
168
168
  } } }
169
- _screen_internal_inline__P51492.info = {"start":327,"length":26,"line":8,"column":33,"endLine":8,"endColumn":59,"fileName":"targetoverrides.ts","functionName":"inline","argumentNames":[]}
169
+ _screen_internal_inline__P50662.info = {"start":327,"length":26,"line":8,"column":33,"endLine":8,"endColumn":59,"fileName":"targetoverrides.ts","functionName":"inline","argumentNames":[]}
170
170
 
171
- function _screen_internal_inline__P51492_mk(s) {
171
+ function _screen_internal_inline__P50662_mk(s) {
172
172
  checkStack(s.depth);
173
173
  return {
174
- parent: s, fn: _screen_internal_inline__P51492, depth: s.depth + 1,
174
+ parent: s, fn: _screen_internal_inline__P50662, depth: s.depth + 1,
175
175
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
176
176
  } }
177
177
 
@@ -179,7 +179,7 @@ function _screen_internal_inline__P51492_mk(s) {
179
179
 
180
180
 
181
181
 
182
- function _screen_internal_inline__P51497(s) {
182
+ function _screen_internal_inline__P50667(s) {
183
183
  let r0 = s.r0, step = s.pc;
184
184
  s.pc = -1;
185
185
 
@@ -198,12 +198,12 @@ switch (step) {
198
198
  return leave(s, r0)
199
199
  default: oops()
200
200
  } } }
201
- _screen_internal_inline__P51497.info = {"start":390,"length":56,"line":9,"column":35,"endLine":11,"endColumn":5,"fileName":"targetoverrides.ts","functionName":"inline","argumentNames":["msg"]}
201
+ _screen_internal_inline__P50667.info = {"start":390,"length":56,"line":9,"column":35,"endLine":11,"endColumn":5,"fileName":"targetoverrides.ts","functionName":"inline","argumentNames":["msg"]}
202
202
 
203
- function _screen_internal_inline__P51497_mk(s) {
203
+ function _screen_internal_inline__P50667_mk(s) {
204
204
  checkStack(s.depth);
205
205
  return {
206
- parent: s, fn: _screen_internal_inline__P51497, depth: s.depth + 1,
206
+ parent: s, fn: _screen_internal_inline__P50667, depth: s.depth + 1,
207
207
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
208
208
  arg0: undefined,
209
209
  } }
@@ -212,7 +212,7 @@ function _screen_internal_inline__P51497_mk(s) {
212
212
 
213
213
 
214
214
 
215
- function control___screen_setupUpdate__P51461(s) {
215
+ function control___screen_setupUpdate__P50631(s) {
216
216
  let r0 = s.r0, step = s.pc;
217
217
  s.pc = -1;
218
218
 
@@ -226,8 +226,8 @@ switch (step) {
226
226
  s.arg0 = (s.lambdaArgs[0]);
227
227
  s.lambdaArgs = null;
228
228
  }
229
- globals.__updated___51459 = (true);
230
- globals.__update___51457 = (s.arg0);
229
+ globals.__updated___50629 = (true);
230
+ globals.__update___50627 = (s.arg0);
231
231
  s.tmp_0 = lambda_1_mk(s);
232
232
  s.tmp_0.argL = s.arg0;
233
233
  setupLambda(s.tmp_0, s.tmp_0.argL);
@@ -238,12 +238,12 @@ switch (step) {
238
238
  return leave(s, r0)
239
239
  default: oops()
240
240
  } } }
241
- control___screen_setupUpdate__P51461.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"frame.ts","functionName":"setupUpdate","argumentNames":["update"]}
241
+ control___screen_setupUpdate__P50631.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"frame.ts","functionName":"setupUpdate","argumentNames":["update"]}
242
242
 
243
- function control___screen_setupUpdate__P51461_mk(s) {
243
+ function control___screen_setupUpdate__P50631_mk(s) {
244
244
  checkStack(s.depth);
245
245
  return {
246
- parent: s, fn: control___screen_setupUpdate__P51461, depth: s.depth + 1,
246
+ parent: s, fn: control___screen_setupUpdate__P50631, depth: s.depth + 1,
247
247
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
248
248
  tmp_0: undefined,
249
249
  arg0: undefined,
@@ -253,7 +253,7 @@ function control___screen_setupUpdate__P51461_mk(s) {
253
253
 
254
254
 
255
255
 
256
- function control___screen_update__P51460(s) {
256
+ function control___screen_update__P50630(s) {
257
257
  let r0 = s.r0, step = s.pc;
258
258
  s.pc = -1;
259
259
 
@@ -263,27 +263,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
263
263
  switch (step) {
264
264
  case 0:
265
265
 
266
- r0 = pxsim_numops_toBoolDecr(globals.__update___51457);
266
+ r0 = pxsim_numops_toBoolDecr(globals.__update___50627);
267
267
  if (!r0) { step = 1; continue; }
268
268
  s.tmp_0 = lambda_1_mk(s);
269
- s.tmp_0.argL = globals.__update___51457;
269
+ s.tmp_0.argL = globals.__update___50627;
270
270
  setupLambda(s.tmp_0, s.tmp_0.argL);
271
271
  s.callLocIdx = 0; s.pc = 3; return s.tmp_0;
272
272
  case 3:
273
273
  r0 = s.retval;
274
274
  case 1:
275
275
  case 2:
276
- globals.__updated___51459 = (true);
276
+ globals.__updated___50629 = (true);
277
277
  r0 = undefined;
278
278
  return leave(s, r0)
279
279
  default: oops()
280
280
  } } }
281
- control___screen_update__P51460.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"frame.ts","functionName":"update","argumentNames":[]}
281
+ control___screen_update__P50630.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"frame.ts","functionName":"update","argumentNames":[]}
282
282
 
283
- function control___screen_update__P51460_mk(s) {
283
+ function control___screen_update__P50630_mk(s) {
284
284
  checkStack(s.depth);
285
285
  return {
286
- parent: s, fn: control___screen_update__P51460, depth: s.depth + 1,
286
+ parent: s, fn: control___screen_update__P50630, depth: s.depth + 1,
287
287
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
288
288
  tmp_0: undefined,
289
289
  } }
@@ -292,7 +292,7 @@ function control___screen_update__P51460_mk(s) {
292
292
 
293
293
 
294
294
 
295
- function pause__P51294(s) {
295
+ function pause__P50464(s) {
296
296
  let r0 = s.r0, step = s.pc;
297
297
  s.pc = -1;
298
298
 
@@ -316,12 +316,12 @@ switch (step) {
316
316
  return leave(s, r0)
317
317
  default: oops()
318
318
  } } }
319
- pause__P51294.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]}
319
+ pause__P50464.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]}
320
320
 
321
- function pause__P51294_mk(s) {
321
+ function pause__P50464_mk(s) {
322
322
  checkStack(s.depth);
323
323
  return {
324
- parent: s, fn: pause__P51294, depth: s.depth + 1,
324
+ parent: s, fn: pause__P50464, depth: s.depth + 1,
325
325
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
326
326
  arg0: undefined,
327
327
  } }
@@ -343,7 +343,7 @@ function lambda_1_mk(s) {
343
343
  } }
344
344
 
345
345
 
346
- const breakpoints = setupDebugger(1, ["__updated___51459","screen___51487","__update___51457"])
346
+ const breakpoints = setupDebugger(1, ["__updated___50629","screen___50657","__update___50627"])
347
347
 
348
- return _main___P50974
348
+ return _main___P50144
349
349
  })