pxt-common-packages 13.1.6 → 13.1.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.
- package/libs/animation/legacy.ts +2 -0
- package/libs/controller/built/debug/binary.js +27 -27
- package/libs/controller---none/built/debug/binary.js +27 -27
- package/libs/game/animation.ts +3 -0
- package/libs/game/built/debug/binary.js +27 -27
- package/libs/game/controller.ts +2 -0
- package/libs/game/particleeffects.ts +1 -0
- package/libs/game/scenes.ts +1 -0
- package/libs/game/sprite.ts +2 -0
- package/libs/game/sprites.ts +1 -0
- package/libs/game/tilemap.ts +2 -0
- package/libs/net-game/built/debug/binary.js +27 -27
- package/libs/palette/built/debug/binary.js +27 -27
- package/libs/sprite-scaling/built/debug/binary.js +27 -27
- package/libs/sprite-scaling/scaling.ts +4 -0
- package/libs/storyboard/built/debug/binary.js +27 -27
- package/package.json +1 -1
|
@@ -6705,7 +6705,7 @@ switch (step) {
|
|
|
6705
6705
|
return leave(s, r0)
|
|
6706
6706
|
default: oops()
|
|
6707
6707
|
} } }
|
|
6708
|
-
controller_Controller_connected__P143977.info = {"start":
|
|
6708
|
+
controller_Controller_connected__P143977.info = {"start":7829,"length":261,"line":255,"column":8,"endLine":260,"endColumn":9,"fileName":"controller.ts","functionName":"connected","argumentNames":["this","value"]}
|
|
6709
6709
|
|
|
6710
6710
|
function controller_Controller_connected__P143977_mk(s) {
|
|
6711
6711
|
checkStack(s.depth);
|
|
@@ -9929,7 +9929,7 @@ switch (step) {
|
|
|
9929
9929
|
return leave(s, r0)
|
|
9930
9930
|
default: oops()
|
|
9931
9931
|
} } }
|
|
9932
|
-
controller_Controller___preUpdate__P143983.info = {"start":
|
|
9932
|
+
controller_Controller___preUpdate__P143983.info = {"start":10705,"length":2535,"line":331,"column":8,"endLine":395,"endColumn":9,"fileName":"controller.ts","functionName":"__preUpdate","argumentNames":["this"]}
|
|
9933
9933
|
|
|
9934
9934
|
function controller_Controller___preUpdate__P143983_mk(s) {
|
|
9935
9935
|
checkStack(s.depth);
|
|
@@ -10113,7 +10113,7 @@ switch (step) {
|
|
|
10113
10113
|
return leave(s, r0)
|
|
10114
10114
|
default: oops()
|
|
10115
10115
|
} } }
|
|
10116
|
-
controller_Controller___preUpdate_inline__P147982.info = {"start":
|
|
10116
|
+
controller_Controller___preUpdate_inline__P147982.info = {"start":11888,"length":1171,"line":362,"column":44,"endLine":390,"endColumn":13,"fileName":"controller.ts","functionName":"inline","argumentNames":["controlledSprite"]}
|
|
10117
10117
|
|
|
10118
10118
|
function controller_Controller___preUpdate_inline__P147982_mk(s) {
|
|
10119
10119
|
checkStack(s.depth);
|
|
@@ -10161,7 +10161,7 @@ switch (step) {
|
|
|
10161
10161
|
return leave(s, r0)
|
|
10162
10162
|
default: oops()
|
|
10163
10163
|
} } }
|
|
10164
|
-
controller_Controller___preUpdate_inline__P148043.info = {"start":
|
|
10164
|
+
controller_Controller___preUpdate_inline__P148043.info = {"start":13186,"length":42,"line":394,"column":28,"endLine":394,"endColumn":70,"fileName":"controller.ts","functionName":"inline","argumentNames":["s"]}
|
|
10165
10165
|
|
|
10166
10166
|
function controller_Controller___preUpdate_inline__P148043_mk(s) {
|
|
10167
10167
|
checkStack(s.depth);
|
|
@@ -10355,7 +10355,7 @@ switch (step) {
|
|
|
10355
10355
|
return leave(s, r0)
|
|
10356
10356
|
default: oops()
|
|
10357
10357
|
} } }
|
|
10358
|
-
controller_Controller_button__P143974.info = {"start":
|
|
10358
|
+
controller_Controller_button__P143974.info = {"start":6699,"length":105,"line":221,"column":8,"endLine":223,"endColumn":9,"fileName":"controller.ts","functionName":"button","argumentNames":["this","button"]}
|
|
10359
10359
|
|
|
10360
10360
|
function controller_Controller_button__P143974_mk(s) {
|
|
10361
10361
|
checkStack(s.depth);
|
|
@@ -10720,7 +10720,7 @@ switch (step) {
|
|
|
10720
10720
|
return leave(s, r0)
|
|
10721
10721
|
default: oops()
|
|
10722
10722
|
} } }
|
|
10723
|
-
controller___update__P143987.info = {"start":
|
|
10723
|
+
controller___update__P143987.info = {"start":13772,"length":137,"line":415,"column":4,"endLine":418,"endColumn":5,"fileName":"controller.ts","functionName":"__update","argumentNames":["dt"]}
|
|
10724
10724
|
|
|
10725
10725
|
function controller___update__P143987_mk(s) {
|
|
10726
10726
|
checkStack(s.depth);
|
|
@@ -10761,7 +10761,7 @@ switch (step) {
|
|
|
10761
10761
|
return leave(s, r0)
|
|
10762
10762
|
default: oops()
|
|
10763
10763
|
} } }
|
|
10764
|
-
controller___update_inline__P148129.info = {"start":
|
|
10764
|
+
controller___update_inline__P148129.info = {"start":13874,"length":27,"line":417,"column":26,"endLine":417,"endColumn":53,"fileName":"controller.ts","functionName":"inline","argumentNames":["ctrl"]}
|
|
10765
10765
|
|
|
10766
10766
|
function controller___update_inline__P148129_mk(s) {
|
|
10767
10767
|
checkStack(s.depth);
|
|
@@ -10816,7 +10816,7 @@ switch (step) {
|
|
|
10816
10816
|
return leave(s, r0)
|
|
10817
10817
|
default: oops()
|
|
10818
10818
|
} } }
|
|
10819
|
-
controller_Controller___update__P143984.info = {"start":
|
|
10819
|
+
controller_Controller___update__P143984.info = {"start":13250,"length":124,"line":397,"column":8,"endLine":400,"endColumn":9,"fileName":"controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
|
|
10820
10820
|
|
|
10821
10821
|
function controller_Controller___update__P143984_mk(s) {
|
|
10822
10822
|
checkStack(s.depth);
|
|
@@ -10859,7 +10859,7 @@ switch (step) {
|
|
|
10859
10859
|
return leave(s, r0)
|
|
10860
10860
|
default: oops()
|
|
10861
10861
|
} } }
|
|
10862
|
-
controller_Controller___update_inline__P148142.info = {"start":
|
|
10862
|
+
controller_Controller___update_inline__P148142.info = {"start":13337,"length":25,"line":399,"column":33,"endLine":399,"endColumn":58,"fileName":"controller.ts","functionName":"inline","argumentNames":["btn"]}
|
|
10863
10863
|
|
|
10864
10864
|
function controller_Controller___update_inline__P148142_mk(s) {
|
|
10865
10865
|
checkStack(s.depth);
|
|
@@ -14364,7 +14364,7 @@ switch (step) {
|
|
|
14364
14364
|
return leave(s, r0)
|
|
14365
14365
|
default: oops()
|
|
14366
14366
|
} } }
|
|
14367
|
-
Sprite_destroy__P144191.info = {"start":
|
|
14367
|
+
Sprite_destroy__P144191.info = {"start":31188,"length":293,"line":981,"column":4,"endLine":990,"endColumn":5,"fileName":"sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
|
|
14368
14368
|
|
|
14369
14369
|
function Sprite_destroy__P144191_mk(s) {
|
|
14370
14370
|
checkStack(s.depth);
|
|
@@ -14498,7 +14498,7 @@ switch (step) {
|
|
|
14498
14498
|
return leave(s, r0)
|
|
14499
14499
|
default: oops()
|
|
14500
14500
|
} } }
|
|
14501
|
-
Sprite__destroyCore__P144192.info = {"start":
|
|
14501
|
+
Sprite__destroyCore__P144192.info = {"start":31487,"length":522,"line":992,"column":4,"endLine":1004,"endColumn":5,"fileName":"sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
|
|
14502
14502
|
|
|
14503
14503
|
function Sprite__destroyCore__P144192_mk(s) {
|
|
14504
14504
|
checkStack(s.depth);
|
|
@@ -14542,7 +14542,7 @@ switch (step) {
|
|
|
14542
14542
|
return leave(s, r0)
|
|
14543
14543
|
default: oops()
|
|
14544
14544
|
} } }
|
|
14545
|
-
forEach_inline__P149230.info = {"start":
|
|
14545
|
+
forEach_inline__P149230.info = {"start":31932,"length":26,"line":1002,"column":20,"endLine":1002,"endColumn":46,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
14546
14546
|
|
|
14547
14547
|
function forEach_inline__P149230_mk(s) {
|
|
14548
14548
|
checkStack(s.depth);
|
|
@@ -14589,7 +14589,7 @@ switch (step) {
|
|
|
14589
14589
|
return leave(s, r0)
|
|
14590
14590
|
default: oops()
|
|
14591
14591
|
} } }
|
|
14592
|
-
Sprite__destroyCore_inline__P149237.info = {"start":
|
|
14592
|
+
Sprite__destroyCore_inline__P149237.info = {"start":31981,"length":20,"line":1003,"column":21,"endLine":1003,"endColumn":41,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
14593
14593
|
|
|
14594
14594
|
function Sprite__destroyCore_inline__P149237_mk(s) {
|
|
14595
14595
|
checkStack(s.depth);
|
|
@@ -24328,7 +24328,7 @@ switch (step) {
|
|
|
24328
24328
|
return leave(s, r0)
|
|
24329
24329
|
default: oops()
|
|
24330
24330
|
} } }
|
|
24331
|
-
confetti_inline__P151889.info = {"start":
|
|
24331
|
+
confetti_inline__P151889.info = {"start":7563,"length":284,"line":192,"column":59,"endLine":196,"endColumn":5,"fileName":"particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]}
|
|
24332
24332
|
|
|
24333
24333
|
function confetti_inline__P151889_mk(s) {
|
|
24334
24334
|
checkStack(s.depth);
|
|
@@ -27142,7 +27142,7 @@ switch (step) {
|
|
|
27142
27142
|
return leaveAccessor(s, r0)
|
|
27143
27143
|
default: oops()
|
|
27144
27144
|
} } }
|
|
27145
|
-
controller_Controller_connected__P143915.info = {"start":
|
|
27145
|
+
controller_Controller_connected__P143915.info = {"start":7756,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"controller.ts","functionName":"connected","argumentNames":["this"]}
|
|
27146
27146
|
controller_Controller_connected__P143915.isGetter = true;
|
|
27147
27147
|
|
|
27148
27148
|
function controller_Controller_connected__P143915_mk(s) {
|
|
@@ -31835,7 +31835,7 @@ switch (step) {
|
|
|
31835
31835
|
return leave(s, r0)
|
|
31836
31836
|
default: oops()
|
|
31837
31837
|
} } }
|
|
31838
|
-
Sprite_registerObstacle__P144189.info = {"start":
|
|
31838
|
+
Sprite_registerObstacle__P144189.info = {"start":29687,"length":965,"line":939,"column":4,"endLine":959,"endColumn":5,"fileName":"sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
|
|
31839
31839
|
|
|
31840
31840
|
function Sprite_registerObstacle__P144189_mk(s) {
|
|
31841
31841
|
checkStack(s.depth);
|
|
@@ -31885,7 +31885,7 @@ switch (step) {
|
|
|
31885
31885
|
return leave(s, r0)
|
|
31886
31886
|
default: oops()
|
|
31887
31887
|
} } }
|
|
31888
|
-
forEach_inline__P154124.info = {"start":
|
|
31888
|
+
forEach_inline__P154124.info = {"start":30085,"length":26,"line":946,"column":24,"endLine":946,"endColumn":50,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
31889
31889
|
|
|
31890
31890
|
function forEach_inline__P154124_mk(s) {
|
|
31891
31891
|
checkStack(s.depth);
|
|
@@ -31932,7 +31932,7 @@ switch (step) {
|
|
|
31932
31932
|
return leave(s, r0)
|
|
31933
31933
|
default: oops()
|
|
31934
31934
|
} } }
|
|
31935
|
-
Sprite_registerObstacle_inline__P154130.info = {"start":
|
|
31935
|
+
Sprite_registerObstacle_inline__P154130.info = {"start":30138,"length":20,"line":947,"column":25,"endLine":947,"endColumn":45,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
31936
31936
|
|
|
31937
31937
|
function Sprite_registerObstacle_inline__P154130_mk(s) {
|
|
31938
31938
|
checkStack(s.depth);
|
|
@@ -31968,7 +31968,7 @@ switch (step) {
|
|
|
31968
31968
|
return leave(s, r0)
|
|
31969
31969
|
default: oops()
|
|
31970
31970
|
} } }
|
|
31971
|
-
wallHandlersToRun_inline__P154143.info = {"start":
|
|
31971
|
+
wallHandlersToRun_inline__P154143.info = {"start":30344,"length":32,"line":952,"column":24,"endLine":952,"endColumn":56,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
31972
31972
|
|
|
31973
31973
|
function wallHandlersToRun_inline__P154143_mk(s) {
|
|
31974
31974
|
checkStack(s.depth);
|
|
@@ -32016,7 +32016,7 @@ switch (step) {
|
|
|
32016
32016
|
return leave(s, r0)
|
|
32017
32017
|
default: oops()
|
|
32018
32018
|
} } }
|
|
32019
|
-
Sprite_registerObstacle_inline__P154172.info = {"start":
|
|
32019
|
+
Sprite_registerObstacle_inline__P154172.info = {"start":30584,"length":36,"line":956,"column":29,"endLine":956,"endColumn":65,"fileName":"sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
32020
32020
|
|
|
32021
32021
|
function Sprite_registerObstacle_inline__P154172_mk(s) {
|
|
32022
32022
|
checkStack(s.depth);
|
|
@@ -34075,7 +34075,7 @@ switch (step) {
|
|
|
34075
34075
|
return leave(s, r0)
|
|
34076
34076
|
default: oops()
|
|
34077
34077
|
} } }
|
|
34078
|
-
Sprite_overlapsWith__P144183.info = {"start":
|
|
34078
|
+
Sprite_overlapsWith__P144183.info = {"start":23939,"length":3172,"line":772,"column":4,"endLine":861,"endColumn":5,"fileName":"sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]}
|
|
34079
34079
|
|
|
34080
34080
|
function Sprite_overlapsWith__P144183_mk(s) {
|
|
34081
34081
|
checkStack(s.depth);
|
|
@@ -36343,7 +36343,7 @@ switch (step) {
|
|
|
36343
36343
|
return leave(s, r0)
|
|
36344
36344
|
default: oops()
|
|
36345
36345
|
} } }
|
|
36346
|
-
Sprite_clearObstacles__P144188.info = {"start":
|
|
36346
|
+
Sprite_clearObstacles__P144188.info = {"start":29627,"length":54,"line":935,"column":4,"endLine":937,"endColumn":5,"fileName":"sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
|
|
36347
36347
|
|
|
36348
36348
|
function Sprite_clearObstacles__P144188_mk(s) {
|
|
36349
36349
|
checkStack(s.depth);
|
|
@@ -37385,7 +37385,7 @@ switch (step) {
|
|
|
37385
37385
|
return leave(s, r0)
|
|
37386
37386
|
default: oops()
|
|
37387
37387
|
} } }
|
|
37388
|
-
Sprite_toString__P144197.info = {"start":
|
|
37388
|
+
Sprite_toString__P144197.info = {"start":38835,"length":93,"line":1189,"column":4,"endLine":1191,"endColumn":5,"fileName":"sprite.ts","functionName":"toString","argumentNames":["this"]}
|
|
37389
37389
|
|
|
37390
37390
|
function Sprite_toString__P144197_mk(s) {
|
|
37391
37391
|
checkStack(s.depth);
|
|
@@ -38751,7 +38751,7 @@ switch (step) {
|
|
|
38751
38751
|
return leave(s, r0)
|
|
38752
38752
|
default: oops()
|
|
38753
38753
|
} } }
|
|
38754
|
-
controller_AnyButton_isPressed__P144010.info = {"start":
|
|
38754
|
+
controller_AnyButton_isPressed__P144010.info = {"start":15798,"length":202,"line":471,"column":8,"endLine":478,"endColumn":9,"fileName":"controller.ts","functionName":"isPressed","argumentNames":["this"]}
|
|
38755
38755
|
|
|
38756
38756
|
function controller_AnyButton_isPressed__P144010_mk(s) {
|
|
38757
38757
|
checkStack(s.depth);
|
|
@@ -40140,7 +40140,7 @@ switch (step) {
|
|
|
40140
40140
|
return leave(s, r0)
|
|
40141
40141
|
default: oops()
|
|
40142
40142
|
} } }
|
|
40143
|
-
Sprite_drawDebug__P144199.info = {"start":
|
|
40143
|
+
Sprite_drawDebug__P144199.info = {"start":39514,"length":1092,"line":1211,"column":4,"endLine":1239,"endColumn":5,"fileName":"sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
|
|
40144
40144
|
|
|
40145
40145
|
function Sprite_drawDebug__P144199_mk(s) {
|
|
40146
40146
|
checkStack(s.depth);
|
|
@@ -40280,7 +40280,7 @@ switch (step) {
|
|
|
40280
40280
|
return leave(s, r0)
|
|
40281
40281
|
default: oops()
|
|
40282
40282
|
} } }
|
|
40283
|
-
Sprite_drawSprite__P144200.info = {"start":
|
|
40283
|
+
Sprite_drawSprite__P144200.info = {"start":40612,"length":805,"line":1241,"column":4,"endLine":1266,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
|
|
40284
40284
|
|
|
40285
40285
|
function Sprite_drawSprite__P144200_mk(s) {
|
|
40286
40286
|
checkStack(s.depth);
|
|
@@ -40447,7 +40447,7 @@ switch (step) {
|
|
|
40447
40447
|
return leave(s, r0)
|
|
40448
40448
|
default: oops()
|
|
40449
40449
|
} } }
|
|
40450
|
-
Sprite_drawSay__P144198.info = {"start":
|
|
40450
|
+
Sprite_drawSay__P144198.info = {"start":38934,"length":574,"line":1193,"column":4,"endLine":1209,"endColumn":5,"fileName":"sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
|
|
40451
40451
|
|
|
40452
40452
|
function Sprite_drawSay__P144198_mk(s) {
|
|
40453
40453
|
checkStack(s.depth);
|
package/libs/game/controller.ts
CHANGED
|
@@ -183,6 +183,7 @@ namespace controller {
|
|
|
183
183
|
//% blockId="ctrlgame_control_sprite" block="%controller move $sprite=variables_get(mySprite) with buttons||vx $vx vy $vy"
|
|
184
184
|
//% weight=100
|
|
185
185
|
//% expandableArgumentMode="toggle"
|
|
186
|
+
//% sprite.defl=mySprite
|
|
186
187
|
//% vx.defl=100 vy.defl=100
|
|
187
188
|
//% help=controller/move-sprite
|
|
188
189
|
//% group="Multiplayer"
|
|
@@ -433,6 +434,7 @@ namespace controller {
|
|
|
433
434
|
//% blockId="game_control_sprite" block="move $sprite=variables_get(mySprite) with buttons||vx $vx vy $vy"
|
|
434
435
|
//% weight=100
|
|
435
436
|
//% expandableArgumentMode="toggle"
|
|
437
|
+
//% sprite.defl=mySprite
|
|
436
438
|
//% vx.defl=100 vy.defl=100
|
|
437
439
|
//% help=controller/move-sprite
|
|
438
440
|
//% group="Single Player"
|
|
@@ -134,6 +134,7 @@ namespace effects {
|
|
|
134
134
|
*/
|
|
135
135
|
//% blockId=particlesclearparticles block="clear effects on %anchor=variables_get(mySprite)"
|
|
136
136
|
//% blockNamespace=sprites
|
|
137
|
+
//% anchor.defl=mySprite
|
|
137
138
|
//% group="Effects" weight=89
|
|
138
139
|
//% help=effects/clear-particles
|
|
139
140
|
export function clearParticles(anchor: Sprite | particles.ParticleAnchor) {
|
package/libs/game/scenes.ts
CHANGED
|
@@ -139,6 +139,7 @@ namespace scene {
|
|
|
139
139
|
*/
|
|
140
140
|
//% blockId=camerafollow block="camera follow sprite %sprite=variables_get(mySprite)"
|
|
141
141
|
//% group="Camera"
|
|
142
|
+
//% sprite.defl=mySprite
|
|
142
143
|
//% help=scene/camera-follow-sprite
|
|
143
144
|
//% weight=100
|
|
144
145
|
export function cameraFollowSprite(sprite: Sprite) {
|
package/libs/game/sprite.ts
CHANGED
|
@@ -767,6 +767,7 @@ class Sprite extends sprites.BaseSprite {
|
|
|
767
767
|
*/
|
|
768
768
|
//% group="Overlaps"
|
|
769
769
|
//% blockId=spriteoverlapswith block="%sprite(mySprite) overlaps with %other=variables_get(otherSprite)"
|
|
770
|
+
//% other.defl=otherSprite
|
|
770
771
|
//% help=sprites/sprite/overlaps-with
|
|
771
772
|
//% weight=90
|
|
772
773
|
overlapsWith(other: Sprite): boolean {
|
|
@@ -1015,6 +1016,7 @@ class Sprite extends sprites.BaseSprite {
|
|
|
1015
1016
|
//% group="Physics" weight=10
|
|
1016
1017
|
//% blockId=spriteFollowOtherSprite
|
|
1017
1018
|
//% block="set %sprite(myEnemy) follow %target=variables_get(mySprite) || with speed %speed"
|
|
1019
|
+
//% target.defl=mySprite
|
|
1018
1020
|
//% help=sprites/sprite/follow
|
|
1019
1021
|
follow(target: Sprite, speed = 100, turnRate = 400) {
|
|
1020
1022
|
if (target === this) return;
|
package/libs/game/sprites.ts
CHANGED
|
@@ -125,6 +125,7 @@ namespace sprites {
|
|
|
125
125
|
//% blockId=spritescreateprojectilefromsprite block="projectile %img=screen_image_picker from %sprite=variables_get(mySprite) with vx %vx vy %vy"
|
|
126
126
|
//% vx.shadow=spriteSpeedPicker
|
|
127
127
|
//% vy.shadow=spriteSpeedPicker
|
|
128
|
+
//% sprite.defl=mySprite
|
|
128
129
|
//% weight=99 help=sprites/create-projectile-from-sprite
|
|
129
130
|
//% blockSetVariable=projectile
|
|
130
131
|
//% inlineInputMode=inline
|
package/libs/game/tilemap.ts
CHANGED
|
@@ -744,6 +744,7 @@ namespace tiles {
|
|
|
744
744
|
* @param loc
|
|
745
745
|
*/
|
|
746
746
|
//% blockId=mapplaceontile block="place $sprite=variables_get(mySprite) on top of $loc"
|
|
747
|
+
//% sprite.defl=mySprite
|
|
747
748
|
//% loc.shadow=mapgettile
|
|
748
749
|
//% blockNamespace="scene" group="Tilemap Operations" blockGap=8
|
|
749
750
|
//% help=tiles/place-on-tile
|
|
@@ -759,6 +760,7 @@ namespace tiles {
|
|
|
759
760
|
* @param tile
|
|
760
761
|
*/
|
|
761
762
|
//% blockId=mapplaceonrandomtile block="place $sprite=variables_get(mySprite) on top of random $tile"
|
|
763
|
+
//% sprite.defl=mySprite
|
|
762
764
|
//% tile.shadow=tileset_tile_picker
|
|
763
765
|
//% tile.decompileIndirectFixedInstances=true
|
|
764
766
|
//% blockNamespace="scene" group="Tilemap Operations"
|
|
@@ -17587,7 +17587,7 @@ switch (step) {
|
|
|
17587
17587
|
return leave(s, r0)
|
|
17588
17588
|
default: oops()
|
|
17589
17589
|
} } }
|
|
17590
|
-
controller_Controller_connected__P115648.info = {"start":
|
|
17590
|
+
controller_Controller_connected__P115648.info = {"start":7829,"length":261,"line":255,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]}
|
|
17591
17591
|
|
|
17592
17592
|
function controller_Controller_connected__P115648_mk(s) {
|
|
17593
17593
|
checkStack(s.depth);
|
|
@@ -20898,7 +20898,7 @@ switch (step) {
|
|
|
20898
20898
|
return leave(s, r0)
|
|
20899
20899
|
default: oops()
|
|
20900
20900
|
} } }
|
|
20901
|
-
controller_Controller___preUpdate__P115654.info = {"start":
|
|
20901
|
+
controller_Controller___preUpdate__P115654.info = {"start":10705,"length":2535,"line":331,"column":8,"endLine":395,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]}
|
|
20902
20902
|
|
|
20903
20903
|
function controller_Controller___preUpdate__P115654_mk(s) {
|
|
20904
20904
|
checkStack(s.depth);
|
|
@@ -21082,7 +21082,7 @@ switch (step) {
|
|
|
21082
21082
|
return leave(s, r0)
|
|
21083
21083
|
default: oops()
|
|
21084
21084
|
} } }
|
|
21085
|
-
controller_Controller___preUpdate_inline__P122985.info = {"start":
|
|
21085
|
+
controller_Controller___preUpdate_inline__P122985.info = {"start":11888,"length":1171,"line":362,"column":44,"endLine":390,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]}
|
|
21086
21086
|
|
|
21087
21087
|
function controller_Controller___preUpdate_inline__P122985_mk(s) {
|
|
21088
21088
|
checkStack(s.depth);
|
|
@@ -21130,7 +21130,7 @@ switch (step) {
|
|
|
21130
21130
|
return leave(s, r0)
|
|
21131
21131
|
default: oops()
|
|
21132
21132
|
} } }
|
|
21133
|
-
controller_Controller___preUpdate_inline__P123046.info = {"start":
|
|
21133
|
+
controller_Controller___preUpdate_inline__P123046.info = {"start":13186,"length":42,"line":394,"column":28,"endLine":394,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]}
|
|
21134
21134
|
|
|
21135
21135
|
function controller_Controller___preUpdate_inline__P123046_mk(s) {
|
|
21136
21136
|
checkStack(s.depth);
|
|
@@ -21324,7 +21324,7 @@ switch (step) {
|
|
|
21324
21324
|
return leave(s, r0)
|
|
21325
21325
|
default: oops()
|
|
21326
21326
|
} } }
|
|
21327
|
-
controller_Controller_button__P115645.info = {"start":
|
|
21327
|
+
controller_Controller_button__P115645.info = {"start":6699,"length":105,"line":221,"column":8,"endLine":223,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]}
|
|
21328
21328
|
|
|
21329
21329
|
function controller_Controller_button__P115645_mk(s) {
|
|
21330
21330
|
checkStack(s.depth);
|
|
@@ -21726,7 +21726,7 @@ switch (step) {
|
|
|
21726
21726
|
return leave(s, r0)
|
|
21727
21727
|
default: oops()
|
|
21728
21728
|
} } }
|
|
21729
|
-
controller___update__P115658.info = {"start":
|
|
21729
|
+
controller___update__P115658.info = {"start":13772,"length":137,"line":415,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]}
|
|
21730
21730
|
|
|
21731
21731
|
function controller___update__P115658_mk(s) {
|
|
21732
21732
|
checkStack(s.depth);
|
|
@@ -21767,7 +21767,7 @@ switch (step) {
|
|
|
21767
21767
|
return leave(s, r0)
|
|
21768
21768
|
default: oops()
|
|
21769
21769
|
} } }
|
|
21770
|
-
controller___update_inline__P123131.info = {"start":
|
|
21770
|
+
controller___update_inline__P123131.info = {"start":13874,"length":27,"line":417,"column":26,"endLine":417,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]}
|
|
21771
21771
|
|
|
21772
21772
|
function controller___update_inline__P123131_mk(s) {
|
|
21773
21773
|
checkStack(s.depth);
|
|
@@ -21822,7 +21822,7 @@ switch (step) {
|
|
|
21822
21822
|
return leave(s, r0)
|
|
21823
21823
|
default: oops()
|
|
21824
21824
|
} } }
|
|
21825
|
-
controller_Controller___update__P115655.info = {"start":
|
|
21825
|
+
controller_Controller___update__P115655.info = {"start":13250,"length":124,"line":397,"column":8,"endLine":400,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]}
|
|
21826
21826
|
|
|
21827
21827
|
function controller_Controller___update__P115655_mk(s) {
|
|
21828
21828
|
checkStack(s.depth);
|
|
@@ -21865,7 +21865,7 @@ switch (step) {
|
|
|
21865
21865
|
return leave(s, r0)
|
|
21866
21866
|
default: oops()
|
|
21867
21867
|
} } }
|
|
21868
|
-
controller_Controller___update_inline__P123144.info = {"start":
|
|
21868
|
+
controller_Controller___update_inline__P123144.info = {"start":13337,"length":25,"line":399,"column":33,"endLine":399,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]}
|
|
21869
21869
|
|
|
21870
21870
|
function controller_Controller___update_inline__P123144_mk(s) {
|
|
21871
21871
|
checkStack(s.depth);
|
|
@@ -23648,7 +23648,7 @@ switch (step) {
|
|
|
23648
23648
|
return leave(s, r0)
|
|
23649
23649
|
default: oops()
|
|
23650
23650
|
} } }
|
|
23651
|
-
Sprite_destroy__P115862.info = {"start":
|
|
23651
|
+
Sprite_destroy__P115862.info = {"start":31188,"length":293,"line":981,"column":4,"endLine":990,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]}
|
|
23652
23652
|
|
|
23653
23653
|
function Sprite_destroy__P115862_mk(s) {
|
|
23654
23654
|
checkStack(s.depth);
|
|
@@ -23782,7 +23782,7 @@ switch (step) {
|
|
|
23782
23782
|
return leave(s, r0)
|
|
23783
23783
|
default: oops()
|
|
23784
23784
|
} } }
|
|
23785
|
-
Sprite__destroyCore__P115863.info = {"start":
|
|
23785
|
+
Sprite__destroyCore__P115863.info = {"start":31487,"length":522,"line":992,"column":4,"endLine":1004,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]}
|
|
23786
23786
|
|
|
23787
23787
|
function Sprite__destroyCore__P115863_mk(s) {
|
|
23788
23788
|
checkStack(s.depth);
|
|
@@ -23826,7 +23826,7 @@ switch (step) {
|
|
|
23826
23826
|
return leave(s, r0)
|
|
23827
23827
|
default: oops()
|
|
23828
23828
|
} } }
|
|
23829
|
-
forEach_inline__P123624.info = {"start":
|
|
23829
|
+
forEach_inline__P123624.info = {"start":31932,"length":26,"line":1002,"column":20,"endLine":1002,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
23830
23830
|
|
|
23831
23831
|
function forEach_inline__P123624_mk(s) {
|
|
23832
23832
|
checkStack(s.depth);
|
|
@@ -23873,7 +23873,7 @@ switch (step) {
|
|
|
23873
23873
|
return leave(s, r0)
|
|
23874
23874
|
default: oops()
|
|
23875
23875
|
} } }
|
|
23876
|
-
Sprite__destroyCore_inline__P123631.info = {"start":
|
|
23876
|
+
Sprite__destroyCore_inline__P123631.info = {"start":31981,"length":20,"line":1003,"column":21,"endLine":1003,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
23877
23877
|
|
|
23878
23878
|
function Sprite__destroyCore_inline__P123631_mk(s) {
|
|
23879
23879
|
checkStack(s.depth);
|
|
@@ -34192,7 +34192,7 @@ switch (step) {
|
|
|
34192
34192
|
return leave(s, r0)
|
|
34193
34193
|
default: oops()
|
|
34194
34194
|
} } }
|
|
34195
|
-
confetti_inline__P126481.info = {"start":
|
|
34195
|
+
confetti_inline__P126481.info = {"start":7563,"length":284,"line":192,"column":59,"endLine":196,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]}
|
|
34196
34196
|
|
|
34197
34197
|
function confetti_inline__P126481_mk(s) {
|
|
34198
34198
|
checkStack(s.depth);
|
|
@@ -36973,7 +36973,7 @@ switch (step) {
|
|
|
36973
36973
|
return leaveAccessor(s, r0)
|
|
36974
36974
|
default: oops()
|
|
36975
36975
|
} } }
|
|
36976
|
-
controller_Controller_connected__P115586.info = {"start":
|
|
36976
|
+
controller_Controller_connected__P115586.info = {"start":7756,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]}
|
|
36977
36977
|
controller_Controller_connected__P115586.isGetter = true;
|
|
36978
36978
|
|
|
36979
36979
|
function controller_Controller_connected__P115586_mk(s) {
|
|
@@ -41354,7 +41354,7 @@ switch (step) {
|
|
|
41354
41354
|
return leave(s, r0)
|
|
41355
41355
|
default: oops()
|
|
41356
41356
|
} } }
|
|
41357
|
-
Sprite_registerObstacle__P115860.info = {"start":
|
|
41357
|
+
Sprite_registerObstacle__P115860.info = {"start":29687,"length":965,"line":939,"column":4,"endLine":959,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]}
|
|
41358
41358
|
|
|
41359
41359
|
function Sprite_registerObstacle__P115860_mk(s) {
|
|
41360
41360
|
checkStack(s.depth);
|
|
@@ -41404,7 +41404,7 @@ switch (step) {
|
|
|
41404
41404
|
return leave(s, r0)
|
|
41405
41405
|
default: oops()
|
|
41406
41406
|
} } }
|
|
41407
|
-
forEach_inline__P128630.info = {"start":
|
|
41407
|
+
forEach_inline__P128630.info = {"start":30085,"length":26,"line":946,"column":24,"endLine":946,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
41408
41408
|
|
|
41409
41409
|
function forEach_inline__P128630_mk(s) {
|
|
41410
41410
|
checkStack(s.depth);
|
|
@@ -41451,7 +41451,7 @@ switch (step) {
|
|
|
41451
41451
|
return leave(s, r0)
|
|
41452
41452
|
default: oops()
|
|
41453
41453
|
} } }
|
|
41454
|
-
Sprite_registerObstacle_inline__P128636.info = {"start":
|
|
41454
|
+
Sprite_registerObstacle_inline__P128636.info = {"start":30138,"length":20,"line":947,"column":25,"endLine":947,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
41455
41455
|
|
|
41456
41456
|
function Sprite_registerObstacle_inline__P128636_mk(s) {
|
|
41457
41457
|
checkStack(s.depth);
|
|
@@ -41487,7 +41487,7 @@ switch (step) {
|
|
|
41487
41487
|
return leave(s, r0)
|
|
41488
41488
|
default: oops()
|
|
41489
41489
|
} } }
|
|
41490
|
-
wallHandlersToRun_inline__P128649.info = {"start":
|
|
41490
|
+
wallHandlersToRun_inline__P128649.info = {"start":30344,"length":32,"line":952,"column":24,"endLine":952,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
41491
41491
|
|
|
41492
41492
|
function wallHandlersToRun_inline__P128649_mk(s) {
|
|
41493
41493
|
checkStack(s.depth);
|
|
@@ -41535,7 +41535,7 @@ switch (step) {
|
|
|
41535
41535
|
return leave(s, r0)
|
|
41536
41536
|
default: oops()
|
|
41537
41537
|
} } }
|
|
41538
|
-
Sprite_registerObstacle_inline__P128678.info = {"start":
|
|
41538
|
+
Sprite_registerObstacle_inline__P128678.info = {"start":30584,"length":36,"line":956,"column":29,"endLine":956,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]}
|
|
41539
41539
|
|
|
41540
41540
|
function Sprite_registerObstacle_inline__P128678_mk(s) {
|
|
41541
41541
|
checkStack(s.depth);
|
|
@@ -43594,7 +43594,7 @@ switch (step) {
|
|
|
43594
43594
|
return leave(s, r0)
|
|
43595
43595
|
default: oops()
|
|
43596
43596
|
} } }
|
|
43597
|
-
Sprite_overlapsWith__P115854.info = {"start":
|
|
43597
|
+
Sprite_overlapsWith__P115854.info = {"start":23939,"length":3172,"line":772,"column":4,"endLine":861,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]}
|
|
43598
43598
|
|
|
43599
43599
|
function Sprite_overlapsWith__P115854_mk(s) {
|
|
43600
43600
|
checkStack(s.depth);
|
|
@@ -45862,7 +45862,7 @@ switch (step) {
|
|
|
45862
45862
|
return leave(s, r0)
|
|
45863
45863
|
default: oops()
|
|
45864
45864
|
} } }
|
|
45865
|
-
Sprite_clearObstacles__P115859.info = {"start":
|
|
45865
|
+
Sprite_clearObstacles__P115859.info = {"start":29627,"length":54,"line":935,"column":4,"endLine":937,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]}
|
|
45866
45866
|
|
|
45867
45867
|
function Sprite_clearObstacles__P115859_mk(s) {
|
|
45868
45868
|
checkStack(s.depth);
|
|
@@ -47407,7 +47407,7 @@ switch (step) {
|
|
|
47407
47407
|
return leave(s, r0)
|
|
47408
47408
|
default: oops()
|
|
47409
47409
|
} } }
|
|
47410
|
-
Sprite_toString__P115868.info = {"start":
|
|
47410
|
+
Sprite_toString__P115868.info = {"start":38835,"length":93,"line":1189,"column":4,"endLine":1191,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]}
|
|
47411
47411
|
|
|
47412
47412
|
function Sprite_toString__P115868_mk(s) {
|
|
47413
47413
|
checkStack(s.depth);
|
|
@@ -48636,7 +48636,7 @@ switch (step) {
|
|
|
48636
48636
|
return leave(s, r0)
|
|
48637
48637
|
default: oops()
|
|
48638
48638
|
} } }
|
|
48639
|
-
controller_AnyButton_isPressed__P115681.info = {"start":
|
|
48639
|
+
controller_AnyButton_isPressed__P115681.info = {"start":15798,"length":202,"line":471,"column":8,"endLine":478,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]}
|
|
48640
48640
|
|
|
48641
48641
|
function controller_AnyButton_isPressed__P115681_mk(s) {
|
|
48642
48642
|
checkStack(s.depth);
|
|
@@ -49928,7 +49928,7 @@ switch (step) {
|
|
|
49928
49928
|
return leave(s, r0)
|
|
49929
49929
|
default: oops()
|
|
49930
49930
|
} } }
|
|
49931
|
-
Sprite_drawDebug__P115870.info = {"start":
|
|
49931
|
+
Sprite_drawDebug__P115870.info = {"start":39514,"length":1092,"line":1211,"column":4,"endLine":1239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]}
|
|
49932
49932
|
|
|
49933
49933
|
function Sprite_drawDebug__P115870_mk(s) {
|
|
49934
49934
|
checkStack(s.depth);
|
|
@@ -50068,7 +50068,7 @@ switch (step) {
|
|
|
50068
50068
|
return leave(s, r0)
|
|
50069
50069
|
default: oops()
|
|
50070
50070
|
} } }
|
|
50071
|
-
Sprite_drawSprite__P115871.info = {"start":
|
|
50071
|
+
Sprite_drawSprite__P115871.info = {"start":40612,"length":805,"line":1241,"column":4,"endLine":1266,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]}
|
|
50072
50072
|
|
|
50073
50073
|
function Sprite_drawSprite__P115871_mk(s) {
|
|
50074
50074
|
checkStack(s.depth);
|
|
@@ -50235,7 +50235,7 @@ switch (step) {
|
|
|
50235
50235
|
return leave(s, r0)
|
|
50236
50236
|
default: oops()
|
|
50237
50237
|
} } }
|
|
50238
|
-
Sprite_drawSay__P115869.info = {"start":
|
|
50238
|
+
Sprite_drawSay__P115869.info = {"start":38934,"length":574,"line":1193,"column":4,"endLine":1209,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]}
|
|
50239
50239
|
|
|
50240
50240
|
function Sprite_drawSay__P115869_mk(s) {
|
|
50241
50241
|
checkStack(s.depth);
|