pxt-arcade 1.12.7 → 1.12.10

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 (57) hide show
  1. package/built/target-strings.json +1 -0
  2. package/built/target.js +1143 -1037
  3. package/built/target.json +1143 -1037
  4. package/built/targetlight.json +5 -5
  5. package/built/theme.json +1 -0
  6. package/docs/developer/kiosk.md +116 -0
  7. package/docs/firefox-picture-in-picture.md +29 -0
  8. package/docs/kiosk.html +1 -1
  9. package/docs/multiplayer-games.md +56 -0
  10. package/docs/projects/SUMMARY.md +7 -0
  11. package/docs/projects.md +6 -0
  12. package/docs/static/browser-pip/firefox/firefox-settings.png +0 -0
  13. package/docs/static/browser-pip/firefox/hide-pip-toggle.png +0 -0
  14. package/docs/static/browser-pip/firefox/pip-icon.png +0 -0
  15. package/docs/static/developer/kiosk/add-to-kiosk.png +0 -0
  16. package/docs/static/developer/kiosk/add-your-game.png +0 -0
  17. package/docs/static/developer/kiosk/keyboard-controls.png +0 -0
  18. package/docs/static/developer/kiosk/locked-state.png +0 -0
  19. package/docs/static/developer/kiosk/menu-bar.png +0 -0
  20. package/docs/static/developer/kiosk/multiple-uploaded-games.png +0 -0
  21. package/docs/static/developer/kiosk/no-uploaded-games.png +0 -0
  22. package/docs/static/developer/kiosk/qr-code-enlarged.png +0 -0
  23. package/docs/static/developer/kiosk/select-a-game.png +0 -0
  24. package/docs/static/developer/kiosk/share-project.png +0 -0
  25. package/docs/static/developer/kiosk/shared-project-link.png +0 -0
  26. package/docs/static/developer/kiosk/shared-project-name.png +0 -0
  27. package/docs/static/developer/kiosk/single-uploaded-game.png +0 -0
  28. package/docs/static/hardware/arcade-kiosks/cabinet.png +0 -0
  29. package/docs/static/kiosk/asset-manifest.json +3 -3
  30. package/docs/static/kiosk/static/js/{main.0fe8d35c.js → main.3ab95ea3.js} +3 -3
  31. package/docs/static/kiosk/static/js/{main.0fe8d35c.js.LICENSE.txt → main.3ab95ea3.js.LICENSE.txt} +0 -0
  32. package/docs/static/kiosk/static/js/main.3ab95ea3.js.map +1 -0
  33. package/docs/static/multiplayer/tag.png +0 -0
  34. package/docs/static/skillmap/racer/assets-tab.png +0 -0
  35. package/docs/static/skillmap/racer/image-editor.png +0 -0
  36. package/docs/static/skillmap/racer/truck2.png +0 -0
  37. package/docs/test/hardware/cardboard-arcade.md +139 -0
  38. package/docs/test/hardware/full-size-kiosk.md +101 -0
  39. package/docs/test/skillmap/dino/dino1.md +76 -133
  40. package/docs/test/skillmap/dino/dino2.md +111 -86
  41. package/docs/test/skillmap/dino/dino3.md +103 -137
  42. package/docs/test/skillmap/dino/dino4.md +112 -85
  43. package/docs/test/skillmap/dino/dino5.md +1 -2
  44. package/docs/test/skillmap/racer/racer-pre.md +147 -0
  45. package/docs/test/skillmap/racer/racer1.md +245 -0
  46. package/docs/test/skillmap/racer/racer2.md +220 -0
  47. package/docs/test/skillmap/racer/racer3.md +174 -0
  48. package/docs/test/skillmap/star/star1.md +124 -70
  49. package/docs/test/skillmap/star/star2.md +62 -64
  50. package/docs/test/skillmap/star/star3.md +48 -53
  51. package/docs/test/skillmap/star/star4.md +28 -10
  52. package/docs/test/tutorials/hawk.md +819 -0
  53. package/docs/test/tutorials/holiday.md +14 -2
  54. package/package.json +3 -3
  55. package/pxtarget.json +2 -1
  56. package/targetconfig.json +12 -5
  57. package/docs/static/kiosk/static/js/main.0fe8d35c.js.map +0 -1
@@ -505,11 +505,11 @@
505
505
  }
506
506
  ],
507
507
  "versions": {
508
- "branch": "v1.12.7",
509
- "tag": "v1.12.7",
510
- "commits": "https://github.com/microsoft/pxt-arcade/commits/715c7109ab9caf1c80732808d6026448e12d70c7",
511
- "target": "1.12.7",
512
- "pxt": "8.5.8"
508
+ "branch": "v1.12.10",
509
+ "tag": "v1.12.10",
510
+ "commits": "https://github.com/microsoft/pxt-arcade/commits/6576759a84872c320cf9ecf75ccc89f3212eb27c",
511
+ "target": "1.12.10",
512
+ "pxt": "8.5.13"
513
513
  },
514
514
  "blocksprj": {
515
515
  "id": "blocksprj",
package/built/theme.json CHANGED
@@ -136,6 +136,7 @@
136
136
  "tutorialCodeValidation": true,
137
137
  "multiplayer": true,
138
138
  "songEditor": true,
139
+ "shareToKiosk": true,
139
140
  "TOC": [
140
141
  {
141
142
  "name": "About",
@@ -0,0 +1,116 @@
1
+ # Kiosk
2
+
3
+ To allow users to showcase their games in a fun and unique way, the Kiosk is added to Makecode Arcade. The Kiosk is an interface where a list of games is displayed in a carousel, letting a user scroll through what's currently highlighted to play. Hopefully, this will excite users to want to upload their games.
4
+
5
+ ## Getting started
6
+
7
+ The default Kiosk contains an initial set some of our most popular games from Arcade. This page is located at https://arcade.makecode.com/kiosk.
8
+
9
+ ![Starting screen](/static/developer/kiosk/select-a-game.png)
10
+
11
+ ## Clearing the Kiosk
12
+
13
+ To have students start with an empty (clean) Kiosk, so that they won't be tempted to play random games, you can add the clean flag to the url:
14
+
15
+ https://arcade.makecode.com/kiosk?clean=1
16
+
17
+ If there are no games uploaded yet, your kiosk will look like the following:
18
+
19
+ ![No games uploaded yet](/static/developer/kiosk/no-uploaded-games.png)
20
+
21
+ If you have only uploaded one game, you will see three copies of that game. This gives the illusion that you can move to the next or previous game even though it's the same one.
22
+
23
+ ![Just one uploaded game](/static/developer/kiosk/single-uploaded-game.png)
24
+
25
+ When you upload more games, you will see them in the list as you scroll through.
26
+
27
+ ![Multiple uploaded games](/static/developer/kiosk/multiple-uploaded-games.png)
28
+
29
+ ## Locking the Kiosk
30
+
31
+ If you are just looking to put games on display and not to edit the game list already in the kiosk, there is a **lock** flag that can be added to the url. This makes the **Add your game** button disappear. https://arcade.makecode.com/kiosk?lock=1
32
+
33
+ ![Locked kiosk](/static/developer/kiosk/locked-state.png)
34
+
35
+ You can put your Kiosk in a locked and clean state by using both flags together like the this:
36
+
37
+ https://arcade.makecode.com/kiosk?clean=1&lock=1
38
+
39
+ The order of the flags does not matter.
40
+
41
+ ## Kiosk controls
42
+
43
+ The Kiosk is added to improve the "console style" experience and the intention is that users will have a keyboard, connect their computer to a shoebox controller, or build themselves an arcade cabinet. You can do any of those projects with our help here:
44
+
45
+ * [Making an arcade cabinet](https://arcade.makecode.com/hardware/raspberry-pi/wooden-cabinet)
46
+ * [Making a shoe box controller](https://arcade.makecode.com/hardware/shoebox-controller)
47
+
48
+ There's a full list of do it yourself projects at:
49
+
50
+ * [Do it yourself hardware](diy-hardware)
51
+
52
+ Because of this, the only way to interact with the kiosk is through keyboard controls.
53
+
54
+ ![Keyboard controls](/static/developer/kiosk/keyboard-controls.png)
55
+
56
+ Two additional keyboard controls are:
57
+
58
+ * **Spacebar**: Select
59
+ * **ESC**: Exit
60
+
61
+ ## Adding a game to the Kiosk
62
+
63
+ Use the up arrow or trigger your joystick in the upwards direction to select the **Add your game** button.
64
+
65
+ ![Starting screen](/static/developer/kiosk/select-a-game.png)
66
+
67
+ Use the space bar or the a button to select the button. Then, scan the QR code on the Kiosk.
68
+
69
+ ![Add your game screen](/static/developer/kiosk/add-your-game.png)
70
+
71
+ Get the share link or QR code of the game you created in MakeCode Arcade.
72
+
73
+ ![Share project window](/static/developer/kiosk/share-project.png)
74
+
75
+ The steps to get your game's share link or QR code are outlined [below](#share-link-qr-code).
76
+
77
+ Use the following page to add your game.
78
+
79
+ ![Add the game to a kiosk](/static/developer/kiosk/add-to-kiosk.png)
80
+
81
+ If you submit/scan your game successfully, your game will be launched on the Kiosk. If you don't see your game, wait 5 seconds as the Kiosk might be polling for it. If you do not see your game in a couple of seconds, there might be something wrong. Check the logs on the page using the Developer Tools window.
82
+
83
+ ## Removing all user uploaded games from the Kiosk
84
+
85
+ At some point you may decide that you no longer want your games in the Kiosk anymore. If you want to get rid of all the user-uploaded games from Kiosk, follow these steps:
86
+
87
+ 1. Inspect the page by right clicking on the Kiosk's landing page and selecting 'Inspect'.
88
+ This will bring up the Developer Tools window.
89
+ 2. In the 'Application' tab, find the 'Storage' section.
90
+ 3. Expand 'Local Storage'.
91
+ 4. Click https://arcade.makecode.com to see all the items.
92
+ 5. Filter the items with the word 'user'.
93
+ 6. Click on the entry 'UserAddedGames'.
94
+ 7. Press backspace or delete on your keyboard.
95
+ 8. Close the Developer tools.
96
+ 9. Refresh the kiosk. You will now have the default kiosk.
97
+
98
+ ## Getting a game's share link or QR code #share-link-qr-code
99
+
100
+ You can get a game's share link or QR code using these steps:
101
+
102
+ Click on the three connected dots in the upper right corner of the Arcade editor.
103
+
104
+ ![Arcade edtior menu bar](/static/developer/kiosk/menu-bar.png)
105
+
106
+ Make sure to change your project title to something fun and update the project thumbnail if desired. Click 'Share Project'.
107
+
108
+ ![Share project and name the project](/static/developer/kiosk/shared-project-name.png)
109
+
110
+ For the share link: Click 'Copy'. This will copy the game's share link to your clipboard.
111
+
112
+ ![Shared project link](/static/developer/kiosk/shared-project-link.png)
113
+
114
+ To scan the QR Code, click on the QR code to enlarge it.
115
+
116
+ ![Enlarged QR code for scanning](/static/developer/kiosk/qr-code-enlarged.png)
@@ -0,0 +1,29 @@
1
+ # Picture-in-Picture on Firefox
2
+
3
+ Tutorials, skillmaps, or other content in Makecode Arcade may have illustrative videos which overlap their page. The browser can set these into a web page as Picture-in-Picture videos. Many browsers display these videos directly in the current page without any control actions from the user. In the Firefox browser, the Picture-in-Picture feature has special controls that let you move the video off of the page, view full screen, etc. To view and keep the video on the Makecode Arcade page, you may need to make changes to the settings for Picture-in-Picture in Firefox.
4
+
5
+ ## Keep the video in place
6
+
7
+ While using Makecode Arcade and viewing the videos on it's pages, it is probably best to disable the Picture-in-Picture feature for the videos. This will let you have the full view of your activity while still seeing the video play. You should remember to re-enable Picture-in-Picture for the browser when you're finished using Makecode.
8
+
9
+ There are two ways to keep your video in place on the web page:
10
+
11
+ ### Hide the Picture-in-Picture toggle
12
+
13
+ You can hide the Picture-in-Picture toggle with a right click of the mouse on the Picture-in-Picture icon shown on top of the video.
14
+
15
+ ![Picture-in-Picture icon](/static/browser-pip/firefox/pip-icon.png)
16
+
17
+ In the menu, select **"Hide Picture-in-Picture Toggle"**.
18
+
19
+ ![Hide Picture-in-Picture toggle](/static/browser-pip/firefox/hide-pip-toggle.png)
20
+
21
+ ### Change Picture-in-Picture settings
22
+
23
+ In the browser menu, select **"Settings"** and uncheck the **"Enable picture-in-picture video controls"**.
24
+
25
+ ![Change Picture-in-Picture settings](/static/browser-pip/firefox/firefox-settings.png)
26
+
27
+ ## Reset Picture-in-Picture settings
28
+
29
+ After using Makecode, remember to re-enable the **"Enable picture-in-picture video controls"** setting in **"Settings"** under the browser menu if you want to have Picture-in-Picture controls for videos in other web pages.
package/docs/kiosk.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/kiosk/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/kiosk/logo192.png"/><link rel="manifest" href="/static/kiosk/manifest.json"/><title>MakeCode Arcade Kiosk</title><script defer="defer" src="/static/kiosk/static/js/main.0fe8d35c.js"></script><link href="/static/kiosk/static/css/main.269c590e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="content"><div id="root"></div></div><div class="footer"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/kiosk/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/static/kiosk/logo192.png"/><link rel="manifest" href="/static/kiosk/manifest.json"/><title>MakeCode Arcade Kiosk</title><script defer="defer" src="/static/kiosk/static/js/main.3ab95ea3.js"></script><link href="/static/kiosk/static/css/main.269c590e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div class="content"><div id="root"></div></div><div class="footer"></div></body></html>
@@ -0,0 +1,56 @@
1
+ # Multiplayer Games
2
+
3
+ Try these multiplayer games with your friends!
4
+
5
+ ## Fun stuff
6
+
7
+ ### ~ codecard
8
+ * name: Perfect Fit
9
+ * description: Move your character's limbs to match the cutout in the moving wall! Up to 4 people can compete for the highest score.
10
+ * buttonLabel: Host Game
11
+ * actionIcon: xicon multiplayer
12
+ * imageUrl: /static/multiplayer/perfect-fit.png
13
+ * url: https://arcade.makecode.com/---multiplayer?host=_bz3CCuWFiepH
14
+ * cardType: link
15
+ ---
16
+ * name: Galga
17
+ * description: Controlling a starship, up to 4 players can help destroy the Galga forces, while avoiding enemies. Each player has 3 lives, last player alive wins the game!
18
+ * buttonLabel: Host Game
19
+ * actionIcon: xicon multiplayer
20
+ * imageUrl: /static/multiplayer/galga.png
21
+ * url: https://arcade.makecode.com/---multiplayer?host=_C71PmfFaYDm2
22
+ * cardType: link
23
+ ---
24
+ * name: Arrow Battle
25
+ * description: 2-4 people can play to see who's the quickest at matching the arrow directions.
26
+ * buttonLabel: Host Game
27
+ * actionIcon: xicon multiplayer
28
+ * imageUrl: /static/multiplayer/arrow-battle.gif
29
+ * url: https://arcade.makecode.com/---multiplayer?host=_dCP7f8c3q5PJ
30
+ * cardType: link
31
+ ---
32
+ * name: Tag
33
+ * description: When you're it, tag a friend and they will lose a life. Be careful, if time runs out you'll lose a life instead! Up to 4 people can play.
34
+ * buttonLabel: Host Game
35
+ * actionIcon: xicon multiplayer
36
+ * imageUrl: /static/multiplayer/tag.png
37
+ * url: https://arcade.makecode.com/---multiplayer?host=_cvxPm1WesYyi
38
+ * cardType: link
39
+ ---
40
+ * name: Horse Race
41
+ * description: Up to 4 players race their horse to the finish line.
42
+ * buttonLabel: Host Game
43
+ * actionIcon: xicon multiplayer
44
+ * imageUrl: /static/multiplayer/horse-race.png
45
+ * url: https://arcade.makecode.com/---multiplayer?host=_1DogpPTpb8fK
46
+ * cardType: link
47
+ ---
48
+ * name: Painting Together
49
+ * description: Up to 4 people can paint together. Paint by holding down the A button and moving the arrow keys. Change the brush size by clicking the B button.
50
+ * buttonLabel: Host Game
51
+ * actionIcon: xicon multiplayer
52
+ * imageUrl: /static/multiplayer/painting.png
53
+ * url: https://arcade.makecode.com/---multiplayer?host=_FdYfDwixRTAw
54
+ * cardType: link
55
+
56
+ ### ~
@@ -31,6 +31,13 @@
31
31
  * [Simple Extensions](/tutorials/simple-extensions)
32
32
  * [Maze](/tutorials/maze)
33
33
  * [Side Scroller](/recipes/side-scroller/01-background)
34
+ * [Multiplayer Games](/multiplayer-games)
35
+ * [Perfect Fit](https://arcade.makecode.com/---multiplayer?host=_bz3CCuWFiepH)
36
+ * [Galga](https://arcade.makecode.com/---multiplayer?host=_C71PmfFaYDm2)
37
+ * [Arrow Battle](https://arcade.makecode.com/---multiplayer?host=_dCP7f8c3q5PJ)
38
+ * [Tag](https://arcade.makecode.com/---multiplayer?host=_cvxPm1WesYyi)
39
+ * [Horse Race](https://arcade.makecode.com/---multiplayer?host=_1DogpPTpb8fK)
40
+ * [Painting Together](https://arcade.makecode.com/---multiplayer?host=_FdYfDwixRTAw)
34
41
  * [Live Coding](/live-coding)
35
42
  * [Space Arcade Game](https://youtu.be/7pBGS_tKfmU)
36
43
  * [Chase the Pizza](https://youtu.be/sgeHKw437oE)
package/docs/projects.md CHANGED
@@ -14,6 +14,11 @@
14
14
  "largeImageUrl": "/static/tutorials/chase-the-pizza.gif",
15
15
  "videoUrl": "/static/tutorials/chase-the-pizza.mp4"
16
16
  },
17
+ {
18
+ "name": "Multiplayer Games",
19
+ "url": "/multiplayer-games",
20
+ "imageUrl": "/static/multiplayer/perfect-fit.png"
21
+ },
17
22
  {
18
23
  "name": "Live Coding",
19
24
  "url": "/live-coding",
@@ -106,6 +111,7 @@
106
111
 
107
112
  [Skillmaps](/skillmaps),
108
113
  [Tutorials](/tutorials),
114
+ [Multiplayer Games](/multiplayer-games),
109
115
  [Live Coding](/live-coding),
110
116
  [Blocks Games](/blocks-games),
111
117
  [JavaScript Games](/javascript-games),
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/kiosk/static/css/main.269c590e.css",
4
- "main.js": "/static/kiosk/static/js/main.0fe8d35c.js",
4
+ "main.js": "/static/kiosk/static/js/main.3ab95ea3.js",
5
5
  "static/js/787.709d397d.chunk.js": "/static/kiosk/static/js/787.709d397d.chunk.js",
6
6
  "index.html": "/static/kiosk/index.html",
7
7
  "main.269c590e.css.map": "/static/kiosk/static/css/main.269c590e.css.map",
8
- "main.0fe8d35c.js.map": "/static/kiosk/static/js/main.0fe8d35c.js.map",
8
+ "main.3ab95ea3.js.map": "/static/kiosk/static/js/main.3ab95ea3.js.map",
9
9
  "787.709d397d.chunk.js.map": "/static/kiosk/static/js/787.709d397d.chunk.js.map"
10
10
  },
11
11
  "entrypoints": [
12
12
  "static/css/main.269c590e.css",
13
- "static/js/main.0fe8d35c.js"
13
+ "static/js/main.3ab95ea3.js"
14
14
  ]
15
15
  }