pxt-common-packages 10.3.6 → 10.3.8
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/azureiot/built/debug/binary.js +461 -461
- package/libs/color/built/debug/binary.js +8 -8
- package/libs/color-sensor/built/debug/binary.js +8 -8
- package/libs/controller/built/debug/binary.js +6978 -6978
- package/libs/controller---none/built/debug/binary.js +6962 -6962
- package/libs/datalogger/built/debug/binary.js +63 -63
- package/libs/edge-connector/built/debug/binary.js +8 -8
- package/libs/esp32/built/debug/binary.js +462 -462
- package/libs/game/_locales/game-strings.json +1 -0
- package/libs/game/built/debug/binary.js +6901 -6901
- package/libs/game/controller.ts +0 -6
- package/libs/game/info.ts +0 -9
- package/libs/game/multiplayer.ts +9 -8
- package/libs/lcd/built/debug/binary.js +8 -8
- package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
- package/libs/lora/built/debug/binary.js +8 -8
- package/libs/matrix-keypad/built/debug/binary.js +8 -8
- package/libs/mqtt/built/debug/binary.js +176 -176
- package/libs/multiplayer/player.ts +7 -7
- package/libs/multiplayer/stateKind.ts +2 -2
- package/libs/net/built/debug/binary.js +176 -176
- package/libs/net-game/built/debug/binary.js +8490 -8490
- package/libs/palette/built/debug/binary.js +6900 -6900
- package/libs/pixel/built/debug/binary.js +8 -8
- package/libs/power/built/debug/binary.js +8 -8
- package/libs/proximity/built/debug/binary.js +8 -8
- package/libs/radio/built/debug/binary.js +8 -8
- package/libs/radio-broadcast/built/debug/binary.js +8 -8
- package/libs/rotary-encoder/built/debug/binary.js +8 -8
- package/libs/screen/built/debug/binary.js +50 -50
- package/libs/servo/built/debug/binary.js +8 -8
- package/libs/sprite-scaling/built/debug/binary.js +6900 -6900
- package/libs/storyboard/built/debug/binary.js +6900 -6900
- package/package.json +1 -1
package/libs/game/controller.ts
CHANGED
|
@@ -165,7 +165,6 @@ namespace controller {
|
|
|
165
165
|
//% vx.shadow="spriteSpeedPicker"
|
|
166
166
|
//% vy.shadow="spriteSpeedPicker"
|
|
167
167
|
//% parts="multiplayer"
|
|
168
|
-
//% deprecated=true
|
|
169
168
|
moveSprite(sprite: Sprite, vx: number = 100, vy: number = 100) {
|
|
170
169
|
this._moveSpriteInternal(sprite, vx, vy);
|
|
171
170
|
}
|
|
@@ -202,7 +201,6 @@ namespace controller {
|
|
|
202
201
|
//% group="Multiplayer"
|
|
203
202
|
//% help=controller/on-button-event
|
|
204
203
|
//% parts="multiplayer"
|
|
205
|
-
//% deprecated=true
|
|
206
204
|
onButtonEvent(btn: ControllerButton, event: ControllerButtonEvent, handler: () => void) {
|
|
207
205
|
this.button(btn).onEvent(event, handler);
|
|
208
206
|
}
|
|
@@ -217,7 +215,6 @@ namespace controller {
|
|
|
217
215
|
//% group="Multiplayer"
|
|
218
216
|
//% help=controller/on-event
|
|
219
217
|
//% parts="multiplayer"
|
|
220
|
-
//% deprecated=true
|
|
221
218
|
onEvent(event: ControllerEvent, handler: () => void) {
|
|
222
219
|
control.onEvent(this.id, event, handler);
|
|
223
220
|
}
|
|
@@ -240,7 +237,6 @@ namespace controller {
|
|
|
240
237
|
//% blockId=ctrlispressed block="is %controller %button **button** pressed"
|
|
241
238
|
//% group="Multiplayer"
|
|
242
239
|
//% parts="multiplayer"
|
|
243
|
-
//% deprecated=true
|
|
244
240
|
isPressed(btn: ControllerButton): boolean {
|
|
245
241
|
return this.button(btn).isPressed();
|
|
246
242
|
}
|
|
@@ -254,7 +250,6 @@ namespace controller {
|
|
|
254
250
|
//% step.defl=100
|
|
255
251
|
//% group="Multiplayer"
|
|
256
252
|
//% parts="multiplayer"
|
|
257
|
-
//% deprecated=true
|
|
258
253
|
dx(step: number = 100) {
|
|
259
254
|
return this._dxInternal(step);
|
|
260
255
|
}
|
|
@@ -284,7 +279,6 @@ namespace controller {
|
|
|
284
279
|
//% step.defl=100
|
|
285
280
|
//% group="Multiplayer"
|
|
286
281
|
//% parts="multiplayer"
|
|
287
|
-
//% deprecated=true
|
|
288
282
|
dy(step: number = 100) {
|
|
289
283
|
return this._dyInternal(step);
|
|
290
284
|
}
|
package/libs/game/info.ts
CHANGED
|
@@ -858,7 +858,6 @@ namespace info {
|
|
|
858
858
|
//% blockId=piscore block="%player score"
|
|
859
859
|
//% help=info/score
|
|
860
860
|
//% parts="multiplayer"
|
|
861
|
-
//% deprecated=true
|
|
862
861
|
score(): number {
|
|
863
862
|
return this.impl.score();
|
|
864
863
|
}
|
|
@@ -871,7 +870,6 @@ namespace info {
|
|
|
871
870
|
//% value.defl=0
|
|
872
871
|
//% help=info/set-score
|
|
873
872
|
//% parts="multiplayer"
|
|
874
|
-
//% deprecated=true
|
|
875
873
|
setScore(value: number) {
|
|
876
874
|
this.impl.setScore(value);
|
|
877
875
|
}
|
|
@@ -885,7 +883,6 @@ namespace info {
|
|
|
885
883
|
//% value.defl=1
|
|
886
884
|
//% help=info/change-score-by
|
|
887
885
|
//% parts="multiplayer"
|
|
888
|
-
//% deprecated=true
|
|
889
886
|
changeScoreBy(value: number): void {
|
|
890
887
|
this.impl.changeScoreBy(value);
|
|
891
888
|
}
|
|
@@ -901,7 +898,6 @@ namespace info {
|
|
|
901
898
|
//% blockid=piflife block="%player life"
|
|
902
899
|
//% help=info/life
|
|
903
900
|
//% parts="multiplayer"
|
|
904
|
-
//% deprecated=true
|
|
905
901
|
life(): number {
|
|
906
902
|
return this.impl.life();
|
|
907
903
|
}
|
|
@@ -914,7 +910,6 @@ namespace info {
|
|
|
914
910
|
//% value.defl=3
|
|
915
911
|
//% help=info/set-life
|
|
916
912
|
//% parts="multiplayer"
|
|
917
|
-
//% deprecated=true
|
|
918
913
|
setLife(value: number): void {
|
|
919
914
|
this.impl.setLife(value);
|
|
920
915
|
}
|
|
@@ -928,7 +923,6 @@ namespace info {
|
|
|
928
923
|
//% value.defl=-1
|
|
929
924
|
//% help=info/change-life-by
|
|
930
925
|
//% parts="multiplayer"
|
|
931
|
-
//% deprecated=true
|
|
932
926
|
changeLifeBy(value: number): void {
|
|
933
927
|
this.impl.changeLifeBy(value);
|
|
934
928
|
}
|
|
@@ -942,7 +936,6 @@ namespace info {
|
|
|
942
936
|
//% blockId=pihaslife block="%player has life"
|
|
943
937
|
//% help=info/has-life
|
|
944
938
|
//% parts="multiplayer"
|
|
945
|
-
//% deprecated=true
|
|
946
939
|
hasLife(): boolean {
|
|
947
940
|
return this.impl.hasLife();
|
|
948
941
|
}
|
|
@@ -955,7 +948,6 @@ namespace info {
|
|
|
955
948
|
//% blockId=playerinfoonlifezero block="on %player life zero"
|
|
956
949
|
//% help=info/on-life-zero
|
|
957
950
|
//% parts="multiplayer"
|
|
958
|
-
//% deprecated=true
|
|
959
951
|
onLifeZero(handler: () => void) {
|
|
960
952
|
this.impl.onLifeZero(handler);
|
|
961
953
|
}
|
|
@@ -974,7 +966,6 @@ namespace info {
|
|
|
974
966
|
//% help=info/on-score
|
|
975
967
|
//% group="Multiplayer"
|
|
976
968
|
//% parts="multiplayer"
|
|
977
|
-
//% deprecated=true
|
|
978
969
|
onScore(score: number, handler: () => void) {
|
|
979
970
|
this.impl.onScore(score, handler);
|
|
980
971
|
}
|
package/libs/game/multiplayer.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
namespace multiplayer {
|
|
2
|
-
enum IconType {
|
|
3
|
-
Player = 0,
|
|
4
|
-
Reaction = 1,
|
|
5
|
-
}
|
|
6
|
-
|
|
7
2
|
//% shim=multiplayer::getCurrentImage
|
|
8
3
|
declare function getCurrentImage(): Image;
|
|
9
4
|
|
|
10
5
|
//% shim=multiplayer::postImage
|
|
11
6
|
declare function postImage(im: Image): void;
|
|
12
7
|
|
|
13
|
-
//% shim=multiplayer::postIcon
|
|
14
|
-
declare function postIcon(type: IconType, slot: number, im: Image): void;
|
|
15
|
-
|
|
16
8
|
//% shim=multiplayer::setOrigin
|
|
17
9
|
declare function setOrigin(origin: string): void;
|
|
18
10
|
|
|
@@ -42,6 +34,15 @@ namespace multiplayer {
|
|
|
42
34
|
})
|
|
43
35
|
}
|
|
44
36
|
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
namespace mp {
|
|
40
|
+
enum IconType {
|
|
41
|
+
Player = 0,
|
|
42
|
+
Reaction = 1,
|
|
43
|
+
}
|
|
44
|
+
//% shim=multiplayer::postIcon
|
|
45
|
+
declare function postIcon(type: IconType, slot: number, im: Image): void;
|
|
45
46
|
|
|
46
47
|
export function postPresenceIcon(slot: number, im: Image, implicit?: boolean) {
|
|
47
48
|
initIconState();
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P48572(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.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___48815 = (undefined);
|
|
70
|
+
globals._pollEventQueue___48828 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P48572.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P48572.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P48572_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P48572, 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___P48571_mk(s) {
|
|
|
88
88
|
|
|
89
89
|
const breakpoints = setupDebugger(1, [])
|
|
90
90
|
|
|
91
|
-
return
|
|
91
|
+
return _main___P48572
|
|
92
92
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P98048(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.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___98291 = (undefined);
|
|
70
|
+
globals._pollEventQueue___98304 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P98048.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P98048.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P98048_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P98048, 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___P98045_mk(s) {
|
|
|
88
88
|
|
|
89
89
|
const breakpoints = setupDebugger(1, [])
|
|
90
90
|
|
|
91
|
-
return
|
|
91
|
+
return _main___P98048
|
|
92
92
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P59874(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.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___60117 = (undefined);
|
|
70
|
+
globals._pollEventQueue___60130 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P59874.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P59874.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P59874_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P59874, 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___P59873_mk(s) {
|
|
|
88
88
|
|
|
89
89
|
const breakpoints = setupDebugger(1, [])
|
|
90
90
|
|
|
91
|
-
return
|
|
91
|
+
return _main___P59874
|
|
92
92
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P190524(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.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___190767 = (undefined);
|
|
70
|
+
globals._pollEventQueue___190780 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P190524.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P190524.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P190524_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P190524, 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___P190517_mk(s) {
|
|
|
88
88
|
|
|
89
89
|
const breakpoints = setupDebugger(1, [])
|
|
90
90
|
|
|
91
|
-
return
|
|
91
|
+
return _main___P190524
|
|
92
92
|
})
|