pxt-arcade 1.12.18 → 1.13.2
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/built/common-sim.js +2 -4
- package/built/sim.js +10 -4
- package/built/target.js +288 -501
- package/built/target.json +288 -501
- package/built/targetlight.json +5 -5
- package/docs/beta-ref.json +1 -1
- package/docs/hardware/kiosk.md +44 -77
- package/docs/hero-banner.md +9 -8
- package/docs/index-ref.json +1 -1
- package/docs/multiplayer-games.md +6 -0
- package/docs/projects.md +2 -1
- package/docs/skillmap/balloon/balloon1.md +3 -16
- package/docs/skillmap/balloon/balloon2.md +3 -15
- package/docs/skillmap/balloon/balloon3.md +3 -16
- package/docs/skillmap/balloon/balloon4.md +18 -17
- package/docs/skillmap/mole/mole1.md +15 -114
- package/docs/skillmap/mole/mole2.md +28 -105
- package/docs/skillmap/mole/mole3.md +9 -105
- package/docs/skillmap/mole/mole4.md +37 -125
- package/docs/stable-ref.json +1 -1
- package/docs/static/hardware/kiosk/hot-air-balloon.png +0 -0
- package/docs/static/hardware/kiosk/makecode-arcade-machines.jpg +0 -0
- package/docs/static/hardware/kiosk/no-uploaded-games.png +0 -0
- package/docs/static/hardware/kiosk/select-a-game.png +0 -0
- package/docs/static/hardware/kiosk/share-button.png +0 -0
- package/docs/static/hardware/kiosk/share-kiosk-button.png +0 -0
- package/docs/static/hardware/kiosk/share-kiosk-code.png +0 -0
- package/docs/static/hardware/kiosk/share-project.png +0 -0
- package/docs/static/hardware/kiosk/single-uploaded-game.png +0 -0
- package/docs/test/skillmap/balloon/balloon1.md +245 -0
- package/docs/test/skillmap/balloon/balloon2.md +365 -0
- package/docs/test/skillmap/balloon/balloon3.md +374 -0
- package/docs/test/skillmap/balloon/balloon4.md +389 -0
- package/docs/test/skillmap/dino/dino1.md +3 -3
- package/docs/test/skillmap/dino/dino2.md +9 -9
- package/docs/test/skillmap/mole/mole1.md +296 -0
- package/docs/test/skillmap/mole/mole2.md +345 -0
- package/docs/test/skillmap/mole/mole3.md +288 -0
- package/docs/test/skillmap/mole/mole4.md +431 -0
- package/docs/test/tutorials/arrow.md +71 -66
- package/docs/test/tutorials/collect-clovers.md +662 -891
- package/docs/test/tutorials/holiday.md +133 -192
- package/docs/test/tutorials/horse.md +227 -225
- package/docs/test/tutorials/time-flies.md +198 -117
- package/docs/tutorials/collect-the-clovers.md +662 -891
- package/docs/tutorials/froggy.md +198 -117
- package/package.json +4 -4
- package/docs/static/hardware/kiosk/add-to-kiosk.png +0 -0
- package/docs/static/hardware/kiosk/add-your-game.png +0 -0
- package/docs/static/hardware/kiosk/keyboard-controls.png +0 -0
- package/docs/static/hardware/kiosk/locked-state.png +0 -0
- package/docs/static/hardware/kiosk/menu-bar.png +0 -0
- package/docs/static/hardware/kiosk/multiple-uploaded-games.png +0 -0
- package/docs/static/hardware/kiosk/qr-code-enlarged.png +0 -0
- package/docs/static/hardware/kiosk/shared-project-link.png +0 -0
- package/docs/static/hardware/kiosk/shared-project-name.png +0 -0
package/built/common-sim.js
CHANGED
|
@@ -2554,13 +2554,11 @@ var pxsim;
|
|
|
2554
2554
|
}
|
|
2555
2555
|
multiplayer.postImage = postImage;
|
|
2556
2556
|
function postIcon(iconType, slot, im) {
|
|
2557
|
-
if (im
|
|
2557
|
+
if (im._width * im._height > 64 * 64) {
|
|
2558
2558
|
// setting 64x64 as max size for icon for now
|
|
2559
2559
|
return;
|
|
2560
2560
|
}
|
|
2561
|
-
|
|
2562
|
-
const asBuf = (im && im.data.some(pixel => pixel != 0))
|
|
2563
|
-
? pxsim.image.toBuffer(im) : undefined;
|
|
2561
|
+
const asBuf = pxsim.image.toBuffer(im);
|
|
2564
2562
|
const sb = pxsim.board();
|
|
2565
2563
|
const screenState = sb && sb.screenState;
|
|
2566
2564
|
pxsim.getMultiplayerState().send({
|
package/built/sim.js
CHANGED
|
@@ -171,6 +171,8 @@ var pxsim;
|
|
|
171
171
|
registerPointerEvents();
|
|
172
172
|
if (!!searchParams.get("hideSimButtons"))
|
|
173
173
|
hideSimButtons();
|
|
174
|
+
if (!!searchParams.get("noExtraPadding"))
|
|
175
|
+
noExtraPadding();
|
|
174
176
|
});
|
|
175
177
|
function hideSimButtons() {
|
|
176
178
|
const gamePlayer = document.getElementsByClassName("game-player");
|
|
@@ -178,6 +180,12 @@ var pxsim;
|
|
|
178
180
|
gamePlayer[0].classList.add("just-screen");
|
|
179
181
|
}
|
|
180
182
|
}
|
|
183
|
+
function noExtraPadding() {
|
|
184
|
+
const gamePlayer = document.getElementsByClassName("game-player");
|
|
185
|
+
if (gamePlayer && gamePlayer.length) {
|
|
186
|
+
gamePlayer[0].classList.add("no-padding");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
181
189
|
function registerPointerEvents() {
|
|
182
190
|
const canvas = document.getElementById("game-screen");
|
|
183
191
|
const encoder = new TextEncoder();
|
|
@@ -2868,13 +2876,11 @@ var pxsim;
|
|
|
2868
2876
|
}
|
|
2869
2877
|
multiplayer.postImage = postImage;
|
|
2870
2878
|
function postIcon(iconType, slot, im) {
|
|
2871
|
-
if (im
|
|
2879
|
+
if (im._width * im._height > 64 * 64) {
|
|
2872
2880
|
// setting 64x64 as max size for icon for now
|
|
2873
2881
|
return;
|
|
2874
2882
|
}
|
|
2875
|
-
|
|
2876
|
-
const asBuf = (im && im.data.some(pixel => pixel != 0))
|
|
2877
|
-
? pxsim.image.toBuffer(im) : undefined;
|
|
2883
|
+
const asBuf = pxsim.image.toBuffer(im);
|
|
2878
2884
|
const sb = pxsim.board();
|
|
2879
2885
|
const screenState = sb && sb.screenState;
|
|
2880
2886
|
pxsim.getMultiplayerState().send({
|