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/targetlight.json
CHANGED
|
@@ -508,11 +508,11 @@
|
|
|
508
508
|
}
|
|
509
509
|
],
|
|
510
510
|
"versions": {
|
|
511
|
-
"branch": "v1.
|
|
512
|
-
"tag": "v1.
|
|
513
|
-
"commits": "https://github.com/microsoft/pxt-arcade/commits/
|
|
514
|
-
"target": "1.
|
|
515
|
-
"pxt": "8.5.
|
|
511
|
+
"branch": "v1.13.2",
|
|
512
|
+
"tag": "v1.13.2",
|
|
513
|
+
"commits": "https://github.com/microsoft/pxt-arcade/commits/ea30c89ba2e2fce256192efb7837b9e605bcadc9",
|
|
514
|
+
"target": "1.13.2",
|
|
515
|
+
"pxt": "8.5.22"
|
|
516
516
|
},
|
|
517
517
|
"blocksprj": {
|
|
518
518
|
"id": "blocksprj",
|
package/docs/beta-ref.json
CHANGED
package/docs/hardware/kiosk.md
CHANGED
|
@@ -1,116 +1,83 @@
|
|
|
1
|
-
# Kiosk
|
|
1
|
+
# MakeCode Arcade Kiosk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Kiosk mode in MakeCode Arcade is meant to be used in conjunction with a MakeCode Arcade machine, a [DIY MakeCode Arcade cabinet]( https://arcade.makecode.com/hardware/raspberry-pi/wooden-cabinet), or a simple computer screen with a game controller interface – i.e. [Shoe Box Controller](https://arcade.makecode.com/hardware/shoebox-controller).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
In Kiosk mode, MakeCode Arcade games are displayed in a carousel list. Games may be browsed and played using the joystick and buttons on an Arcade machine.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Setting up the Kiosk
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-

|
|
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
|
-

|
|
24
|
-
|
|
25
|
-
When you upload more games, you will see them in the list as you scroll through.
|
|
11
|
+
To use the MakeCode Arcade Kiosk mode in an Arcade machine or cabinet, you will need a monitor and a computer with internet access.
|
|
26
12
|
|
|
27
|
-
|
|
13
|
+
If you are using a Windows computer for your Arcade machine, we recommend using [Windows Kiosk mode](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-configure-kiosk-mode#configure-using-windows-settings) and select Microsoft Edge displayed full-screen with MakeCode Arcade Kiosk https://arcade.makecode.com/kiosk as the default URL, and in step 10 select Never. If you want to escape from the Windows Kiosk mode, press ctrl+alt+delete to switch or reboot user. Watch this [video](https://youtu.be/Z8alME1nRmQ) to see the process.
|
|
28
14
|
|
|
29
|
-
##
|
|
15
|
+
## Operating the Kiosk
|
|
30
16
|
|
|
31
|
-
|
|
17
|
+
The default Kiosk mode, accessed at https://arcade.makecode.com/kiosk, contains a list of popular MakeCode Arcade single and multiplayer games including [Galga](https://arcade.makecode.com/_Y8VUmcHYsdsy), [Secure the River](https://arcade.makecode.com/32777-59846-95775-11055), [Tic Tac Two](https://arcade.makecode.com/13412-17300-80986-88577), [Pigeon: Deliverance](https://arcade.makecode.com/24832-19682-40817-54648) and more – see [GameList.json](https://github.com/microsoft/pxt-arcade/blob/master/kiosk/public/GameList.json) for the full list.
|
|
32
18
|
|
|
33
|
-
|
|
19
|
+
To navigate the Kiosk interface, use the **Player 1** joystick and the **A** button:
|
|
34
20
|
|
|
35
|
-
|
|
21
|
+
* **Joystick**: left and right will allow you to move game selection through the carousel list
|
|
22
|
+
* **Joystick**: up and down allows you to select the "Add your game" button, or scroll through the alphabet when setting High Score initials for a game
|
|
23
|
+
* **Button A**: enter or select to play a game, click on buttons, or set a name initial in the High Score interface
|
|
24
|
+
* **Menu button**: if your Arcade machine or controller includes a Menu button, this will take you back to the main Kiosk carousel menu screen
|
|
36
25
|
|
|
37
|
-
|
|
26
|
+
If you have a keyboard connected to your Arcade machine, you can also use the directional arrow keys or WASD keys to simulate joystick movement,
|
|
27
|
+
the **Space bar** for the **A** button, and the **Escape** key (Esc) for the Menu button.
|
|
38
28
|
|
|
39
|
-
|
|
29
|
+
Each game in the Kiosk has an image or gif, a title, a description, and some have a list of high scores if scoring is enabled in the game.
|
|
40
30
|
|
|
41
|
-
|
|
31
|
+

|
|
42
32
|
|
|
43
|
-
|
|
33
|
+
## Customizing the Kiosk
|
|
44
34
|
|
|
45
|
-
|
|
46
|
-
* [Making a shoe box controller](https://arcade.makecode.com/hardware/shoebox-controller)
|
|
35
|
+
The MakeCode Arcade Kiosk mode supports fully customizing the game list. Any customizations you make will be stored in the local browser’s memory. This means that if you clear your browser history on the Arcade machine’s computer, your customizations will be lost. A best practice is to store a list of the share URL’s or game files for your Kiosk games in case they accidentally get deleted from the kiosk.
|
|
47
36
|
|
|
48
|
-
|
|
37
|
+
## Adding a game to the Kiosk
|
|
49
38
|
|
|
50
|
-
|
|
39
|
+
Open the [MakeCode Arcade]( https://arcade.makecode.com) game you would like to add to your Kiosk, and click the **Share** button.
|
|
51
40
|
|
|
52
|
-
|
|
41
|
+

|
|
53
42
|
|
|
54
|
-
|
|
43
|
+
Give your game a title and select an image or gif of your game and click the **Share Project** button.
|
|
55
44
|
|
|
56
|
-
|
|
45
|
+

|
|
57
46
|
|
|
58
|
-
|
|
59
|
-
* **ESC**: Exit
|
|
47
|
+
In the next window, click the **Share to Kiosk** button which will allow you to enter a code for your Kiosk.
|
|
60
48
|
|
|
61
|
-
|
|
49
|
+

|
|
62
50
|
|
|
63
|
-
|
|
51
|
+
To obtain the code for your kiosk, on your Arcade machine’s computer, open [kiosk](https://arcade.makecode.com/kiosk) mode, then use the joystick to navigate to the **Add your game** button. Then press the **A** button to select.
|
|
64
52
|
|
|
65
|
-

|
|
66
54
|
|
|
67
|
-
|
|
55
|
+
In the "Add your Game" screen, you’ll see the 6-digit alphanumeric code of your kiosk.
|
|
68
56
|
|
|
69
|
-
|
|
57
|
+
Type this code into the Share Project window of your game and click Submit.
|
|
70
58
|
|
|
71
|
-
|
|
59
|
+

|
|
72
60
|
|
|
73
|
-
|
|
61
|
+
This will append your game to your Arcade machine’s kiosk game list.
|
|
74
62
|
|
|
75
|
-
|
|
63
|
+
Alternately, you can add a game to the kiosk through a shared game link. On the MakeCode Arcade machine, use your phone or other computer’s camera to scan the QR code in the Add your Game screen for your kiosk (or browse to http://arcade.makecode.com/kiosk#add-game:<KIOSK_ID> where the KIOSK ID is the 6-digit alphanumeric code of your kiosk) and enter in the **Share Link** for the game you would like to add to the kiosk.
|
|
76
64
|
|
|
77
|
-
|
|
65
|
+
Please note that for security purposes, the Kiosk ID is only valid for 10 minutes, after which time you will need to generate a new Kiosk ID. There is no limit to how many games can be added to a kiosk.
|
|
78
66
|
|
|
79
|
-
|
|
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:
|
|
67
|
+
## Clearing the Kiosk
|
|
101
68
|
|
|
102
|
-
|
|
69
|
+
Instead of starting with the default game list in the MakeCode Arcade Kiosk, you can open Kiosk mode with no games in the game list. Use the **"clean=1"** flag to do this:
|
|
103
70
|
|
|
104
|
-
|
|
71
|
+
https://arcade.makecode.com/kiosk?clean=1
|
|
105
72
|
|
|
106
|
-
|
|
73
|
+

|
|
107
74
|
|
|
108
|
-
|
|
75
|
+
Note that if you have only uploaded one game to the kiosk, you will see three copies of that game. This behavior just allows the carousel interface to scroll to the left or right. Once you upload 3 or more different games, you should not see any duplicate games in the list.
|
|
109
76
|
|
|
110
|
-
|
|
77
|
+

|
|
111
78
|
|
|
112
|
-
|
|
79
|
+
## Locking the Kiosk
|
|
113
80
|
|
|
114
|
-
|
|
81
|
+
Once you’ve set up your game list in the Kiosk, you have the option to lock the kiosk into a read-only mode – where no games can be added or deleted. This may be helpful if you have your MakeCode Arcade machine located in a public space and don’t want people to edit your game list. Use the **"lock=1"** flag to do this:
|
|
115
82
|
|
|
116
|
-
|
|
83
|
+
https://arcade.makecode.com/kiosk?lock=1
|
package/docs/hero-banner.md
CHANGED
|
@@ -5,8 +5,15 @@ Here are some cool activities to get you started with your @boardname@!
|
|
|
5
5
|
## Intro Content
|
|
6
6
|
|
|
7
7
|
### ~ codecard
|
|
8
|
+
* name: Start Skillmap
|
|
9
|
+
* buttonLabel: Start Skillmap
|
|
10
|
+
* description: New? Start here!
|
|
11
|
+
* imageUrl: /static/hero-gallery/skillmap.png
|
|
12
|
+
* url: https://aka.ms/ArcadeSkillmap
|
|
13
|
+
* cardType: link
|
|
14
|
+
---
|
|
8
15
|
* name: Stand with Wakanda
|
|
9
|
-
* buttonLabel: Make
|
|
16
|
+
* buttonLabel: Make It Now
|
|
10
17
|
* imageUrl: /static/hero-gallery/wakanda-banner.png
|
|
11
18
|
* url: /tutorials/wakanda-forever
|
|
12
19
|
* cardType: tutorial
|
|
@@ -17,13 +24,7 @@ Here are some cool activities to get you started with your @boardname@!
|
|
|
17
24
|
* url: https://arcade.makecode.com/hour-of-code-2022
|
|
18
25
|
* cardType: link
|
|
19
26
|
---
|
|
20
|
-
* name:
|
|
21
|
-
* buttonLabel: Try Now
|
|
22
|
-
* imageUrl: /static/hero-gallery/holiday.png
|
|
23
|
-
* url: /tutorials/holiday
|
|
24
|
-
* cardType: tutorial
|
|
25
|
-
---
|
|
26
|
-
* name: How-to code a video game
|
|
27
|
+
* name: How To Code a Video Game
|
|
27
28
|
* imageUrl: /static/hero-gallery/how-to-code.png
|
|
28
29
|
* youTubePlaylistId: PLMMBk9hE-SepfPK6z19t6aAfwbOQNY6K7
|
|
29
30
|
---
|
package/docs/index-ref.json
CHANGED
|
@@ -10,6 +10,7 @@ Try these multiplayer games with your friends!
|
|
|
10
10
|
* buttonLabel: Host Game
|
|
11
11
|
* actionIcon: xicon multiplayer
|
|
12
12
|
* imageUrl: /static/multiplayer/perfect-fit.png
|
|
13
|
+
* largeImageUrl: /static/multiplayer/perfect-fit.gif
|
|
13
14
|
* url: https://arcade.makecode.com/---multiplayer?host=_bz3CCuWFiepH
|
|
14
15
|
* cardType: link
|
|
15
16
|
* otherAction: https://arcade.makecode.com/_bz3CCuWFiepH, , sharedExample
|
|
@@ -19,6 +20,7 @@ Try these multiplayer games with your friends!
|
|
|
19
20
|
* buttonLabel: Host Game
|
|
20
21
|
* actionIcon: xicon multiplayer
|
|
21
22
|
* imageUrl: /static/multiplayer/galga.png
|
|
23
|
+
* largeImageUrl: /static/multiplayer/galga.gif
|
|
22
24
|
* url: https://arcade.makecode.com/---multiplayer?host=_C71PmfFaYDm2
|
|
23
25
|
* cardType: link
|
|
24
26
|
* otherAction: https://arcade.makecode.com/_C71PmfFaYDm2, , sharedExample
|
|
@@ -28,6 +30,7 @@ Try these multiplayer games with your friends!
|
|
|
28
30
|
* buttonLabel: Host Game
|
|
29
31
|
* actionIcon: xicon multiplayer
|
|
30
32
|
* imageUrl: /static/multiplayer/arrow-battle.gif
|
|
33
|
+
* largeImageUrl: /static/multiplayer/arrow-battle-large.gif
|
|
31
34
|
* url: https://arcade.makecode.com/---multiplayer?host=_dCP7f8c3q5PJ
|
|
32
35
|
* cardType: link
|
|
33
36
|
* otherAction: https://arcade.makecode.com/_dCP7f8c3q5PJ, , sharedExample
|
|
@@ -37,6 +40,7 @@ Try these multiplayer games with your friends!
|
|
|
37
40
|
* buttonLabel: Host Game
|
|
38
41
|
* actionIcon: xicon multiplayer
|
|
39
42
|
* imageUrl: /static/multiplayer/tag.png
|
|
43
|
+
* largeImageUrl: /static/multiplayer/tag.gif
|
|
40
44
|
* url: https://arcade.makecode.com/---multiplayer?host=_cvxPm1WesYyi
|
|
41
45
|
* cardType: link
|
|
42
46
|
* otherAction: https://arcade.makecode.com/_cvxPm1WesYyi, , sharedExample
|
|
@@ -46,6 +50,7 @@ Try these multiplayer games with your friends!
|
|
|
46
50
|
* buttonLabel: Host Game
|
|
47
51
|
* actionIcon: xicon multiplayer
|
|
48
52
|
* imageUrl: /static/multiplayer/horse-race.png
|
|
53
|
+
* largeImageUrl: /static/multiplayer/horse-race.gif
|
|
49
54
|
* url: https://arcade.makecode.com/---multiplayer?host=_1DogpPTpb8fK
|
|
50
55
|
* cardType: link
|
|
51
56
|
* otherAction: https://arcade.makecode.com/_1DogpPTpb8fK, , sharedExample
|
|
@@ -55,6 +60,7 @@ Try these multiplayer games with your friends!
|
|
|
55
60
|
* buttonLabel: Host Game
|
|
56
61
|
* actionIcon: xicon multiplayer
|
|
57
62
|
* imageUrl: /static/multiplayer/painting.png
|
|
63
|
+
* largeImageUrl: /static/multiplayer/painting.gif
|
|
58
64
|
* url: https://arcade.makecode.com/---multiplayer?host=_FdYfDwixRTAw
|
|
59
65
|
* cardType: link
|
|
60
66
|
* otherAction: https://arcade.makecode.com/_FdYfDwixRTAw, , sharedExample
|
package/docs/projects.md
CHANGED
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "Multiplayer Games",
|
|
19
19
|
"url": "/multiplayer-games",
|
|
20
|
-
"imageUrl": "/static/multiplayer/perfect-fit.png"
|
|
20
|
+
"imageUrl": "/static/multiplayer/perfect-fit.png",
|
|
21
|
+
"largeImageUrl": "/static/multiplayer/perfect-fit.gif"
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
"name": "Live Coding",
|
|
@@ -221,25 +221,12 @@ scene.setBackgroundColor(1)
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
```package
|
|
224
|
-
|
|
224
|
+
sprite-scaling
|
|
225
225
|
carnival=github:microsoft/arcade-carnival
|
|
226
|
-
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks
|
|
226
|
+
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks#v0.0.7
|
|
227
|
+
balloon-images=github:kiki-lee/balloon-images#v0.0.1
|
|
227
228
|
```
|
|
228
229
|
|
|
229
|
-
```customts
|
|
230
|
-
namespace simplified{
|
|
231
|
-
/**
|
|
232
|
-
* just run the code
|
|
233
|
-
*/
|
|
234
|
-
//% block="create player"
|
|
235
|
-
//% handlerStatement=1
|
|
236
|
-
export function wrap(handler: () => void) {
|
|
237
|
-
handler();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
|
|
243
230
|
|
|
244
231
|
```assetjson
|
|
245
232
|
{
|
|
@@ -329,9 +329,10 @@ carnival.onGameOverExpanded(carnival.WinTypes.Multi)
|
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
```package
|
|
332
|
-
|
|
332
|
+
sprite-scaling
|
|
333
333
|
carnival=github:microsoft/arcade-carnival
|
|
334
|
-
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks
|
|
334
|
+
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks#v0.0.7
|
|
335
|
+
balloon-images=github:kiki-lee/balloon-images#v0.0.1
|
|
335
336
|
```
|
|
336
337
|
|
|
337
338
|
|
|
@@ -346,19 +347,6 @@ scene.setBackgroundColor(1)
|
|
|
346
347
|
|
|
347
348
|
```
|
|
348
349
|
|
|
349
|
-
```customts
|
|
350
|
-
namespace simplified{
|
|
351
|
-
/**
|
|
352
|
-
* just run the code
|
|
353
|
-
*/
|
|
354
|
-
//% block="create player"
|
|
355
|
-
//% handlerStatement=1
|
|
356
|
-
export function wrap(handler: () => void) {
|
|
357
|
-
handler();
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
```
|
|
361
|
-
|
|
362
350
|
|
|
363
351
|
```assetjson
|
|
364
352
|
{
|
|
@@ -301,11 +301,11 @@ myMouse.setImage(img`.`)
|
|
|
301
301
|
|
|
302
302
|
```
|
|
303
303
|
|
|
304
|
-
|
|
305
304
|
```package
|
|
306
|
-
|
|
305
|
+
sprite-scaling
|
|
307
306
|
carnival=github:microsoft/arcade-carnival
|
|
308
|
-
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks
|
|
307
|
+
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks#v0.0.7
|
|
308
|
+
balloon-images=github:kiki-lee/balloon-images#v0.0.1
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
|
|
@@ -356,19 +356,6 @@ scaling.scaleByPixels_defl(myBalloon, 1, ScaleDirection.Uniformly, ScaleAnchor.B
|
|
|
356
356
|
```
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
```customts
|
|
360
|
-
namespace simplified{
|
|
361
|
-
/**
|
|
362
|
-
* just run the code
|
|
363
|
-
*/
|
|
364
|
-
//% block="create player"
|
|
365
|
-
//% handlerStatement=1
|
|
366
|
-
export function wrap(handler: () => void) {
|
|
367
|
-
handler();
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
```
|
|
371
|
-
|
|
372
359
|
|
|
373
360
|
```assetjson
|
|
374
361
|
{
|
|
@@ -92,6 +92,7 @@ hint~
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
#### ~ tutorialhint
|
|
95
|
+
|
|
95
96
|
```blocks
|
|
96
97
|
let myMouse: Sprite = null
|
|
97
98
|
let myBalloon: Sprite = null
|
|
@@ -207,6 +208,13 @@ Find a friend and have them press the (A) button or **space bar** while you pres
|
|
|
207
208
|
|
|
208
209
|
|
|
209
210
|
|
|
211
|
+
```blockconfig.local
|
|
212
|
+
let myMouse2: Sprite = null
|
|
213
|
+
controller.player2.onButtonEvent(ControllerButton.A, ControllerButtonEvent.Released, function () {
|
|
214
|
+
myMouse2.setImage(img`.`)
|
|
215
|
+
})
|
|
216
|
+
```
|
|
217
|
+
|
|
210
218
|
|
|
211
219
|
|
|
212
220
|
## {9. Add a Label}
|
|
@@ -217,7 +225,7 @@ Find a friend and have them press the (A) button or **space bar** while you pres
|
|
|
217
225
|
```block
|
|
218
226
|
carnival.addLabelTo("Burstin' Balloons", carnival.Areas.Mid)
|
|
219
227
|
```
|
|
220
|
-
to **the
|
|
228
|
+
to **the top** of the ``||loops(noclick):on start||`` container to put a label on the booth so everyone knows the name of the game!
|
|
221
229
|
|
|
222
230
|
**Play your finished game a few times! Who can get the best 2 out of 3?**
|
|
223
231
|
|
|
@@ -233,7 +241,13 @@ hint~
|
|
|
233
241
|
|
|
234
242
|
|
|
235
243
|
|
|
244
|
+
|
|
236
245
|
```blockconfig.local
|
|
246
|
+
let myMouse2: Sprite = null
|
|
247
|
+
controller.player2.onButtonEvent(ControllerButton.A, ControllerButtonEvent.Released, function () {
|
|
248
|
+
myMouse2.setImage(img`.`)
|
|
249
|
+
})
|
|
250
|
+
|
|
237
251
|
simplified.wrap(function () {
|
|
238
252
|
let myBalloon3 = sprites.create(img`.`, SpriteKind.Player)
|
|
239
253
|
myBalloon3.setPosition(110, 93)
|
|
@@ -314,15 +328,14 @@ controller.player2.onButtonEvent(ControllerButton.A, ControllerButtonEvent.Relea
|
|
|
314
328
|
myMouse2.setImage(img`.`)
|
|
315
329
|
})
|
|
316
330
|
|
|
317
|
-
|
|
318
|
-
|
|
319
331
|
```
|
|
320
332
|
|
|
321
333
|
|
|
322
334
|
```package
|
|
323
|
-
|
|
335
|
+
sprite-scaling
|
|
324
336
|
carnival=github:microsoft/arcade-carnival
|
|
325
|
-
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks
|
|
337
|
+
simple-blocks=github:microsoft/arcade-tutorial-extensions/simple-blocks#v0.0.7
|
|
338
|
+
balloon-images=github:kiki-lee/balloon-images#v0.0.1
|
|
326
339
|
```
|
|
327
340
|
|
|
328
341
|
|
|
@@ -355,18 +368,6 @@ myMouse.setPosition(80, 93)
|
|
|
355
368
|
```
|
|
356
369
|
|
|
357
370
|
|
|
358
|
-
```customts
|
|
359
|
-
namespace simplified{
|
|
360
|
-
/**
|
|
361
|
-
* just run the code
|
|
362
|
-
*/
|
|
363
|
-
//% block="create player"
|
|
364
|
-
//% handlerStatement=1
|
|
365
|
-
export function wrap(handler: () => void) {
|
|
366
|
-
handler();
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
```
|
|
370
371
|
|
|
371
372
|
|
|
372
373
|
|