pxt-arcade 1.10.21 → 1.10.23
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/sim.js +87 -33
- package/built/target.js +143 -143
- package/built/target.json +143 -143
- package/built/targetlight.json +5 -5
- package/docs/graveyard/.checkdocs-ignore +1 -0
- package/docs/graveyard/.crowdinignore +1 -0
- package/docs/{skillmap → graveyard/skillmap}/beginner-skillmap-2.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker1.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker2.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker3.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker4.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker4a.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/clicker/clicker5.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector1.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector1a.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector2.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector3.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector3a.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector4.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/collector5.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/collector/scroller.ts +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest1.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest2.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest3.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest4.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest5.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest/forest6.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/forest-old.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/long-shark.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/star-sing2/star1.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/star-sing2/star2.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/star-sing2/star3.md +0 -0
- package/docs/{skillmap → graveyard/skillmap}/star-sing2/star4.md +0 -0
- package/docs/hour-of-code-2022.html +450 -0
- package/docs/static/hour-of-code/2022/HoC_logo.png +0 -0
- package/docs/static/hour-of-code/2022/Inter/static/Inter-Bold.ttf +0 -0
- package/docs/static/hour-of-code/2022/Inter/static/Inter-ExtraBold.ttf +0 -0
- package/docs/static/hour-of-code/2022/New_ Start here!.png +0 -0
- package/docs/static/hour-of-code/2022/Nunito/static/Nunito-Bold.ttf +0 -0
- package/docs/static/hour-of-code/2022/Nunito/static/Nunito-ExtraBold.ttf +0 -0
- package/docs/static/hour-of-code/2022/Nunito/static/Nunito-Regular.ttf +0 -0
- package/docs/static/hour-of-code/2022/Nunito/static/Nunito-SemiBold.ttf +0 -0
- package/docs/static/hour-of-code/2022/arcadeImage.png +0 -0
- package/docs/static/hour-of-code/2022/arrow.png +0 -0
- package/docs/static/hour-of-code/2022/gameImg_ballon.png +0 -0
- package/docs/static/hour-of-code/2022/gameImg_target.png +0 -0
- package/docs/static/hour-of-code/2022/gameImg_whack_em_all.png +0 -0
- package/docs/static/hour-of-code/2022/microbitImage.png +0 -0
- package/docs/static/hour-of-code/2022/microsoftMakeCodeLogo.svg +9 -0
- package/docs/static/hour-of-code/2022/red-pixel-heart-vmx.png +0 -0
- package/docs/static/hour-of-code/2022/skyTile.png +0 -0
- package/docs/static/hour-of-code/2022/social/instagram.png +0 -0
- package/docs/static/hour-of-code/2022/social/tik_tok.png +0 -0
- package/docs/static/hour-of-code/2022/social/twitch.png +0 -0
- package/docs/static/hour-of-code/2022/social/twitter.png +0 -0
- package/docs/static/hour-of-code/2022/social/youtube.png +0 -0
- package/docs/static/hour-of-code/2022/startHere.png +0 -0
- package/docs/static/hour-of-code/2022/styles-old.css +1510 -0
- package/docs/static/hour-of-code/2022/styles.css +386 -0
- package/docs/test/skillmap/forest/forest1.md +191 -0
- package/docs/test/skillmap/forest/forest2.md +217 -0
- package/docs/test/skillmap/forest/forest3.md +333 -0
- package/docs/test/skillmap/forest/forest4.md +196 -0
- package/docs/test/skillmap/forest/forest5.md +292 -0
- package/docs/test/skillmap/forest/forest6.md +273 -0
- package/docs/test/skillmap/forest-2022.md +99 -0
- package/docs/{skillmap/puzzle/puzzle1.md → test/skillmap/guess/guess1.md} +0 -0
- package/docs/{skillmap/puzzle/puzzle2.md → test/skillmap/guess/guess2.md} +0 -0
- package/docs/{skillmap/puzzle/puzzle3.md → test/skillmap/guess/guess3.md} +0 -0
- package/docs/{skillmap/puzzle/puzzle4.md → test/skillmap/guess/guess4.md} +0 -0
- package/docs/{skillmap/puzzle/puzzle5.md → test/skillmap/guess/guess5.md} +0 -0
- package/docs/test/skillmap/guess.md +88 -0
- package/docs/test/skillmap/mole/mole1.md +1 -1
- package/docs/test/skillmap/mole/mole1a.md +27 -31
- package/docs/test/skillmap/mole/mole2a.md +38 -49
- package/docs/test/skillmap/mole/mole3a.md +22 -27
- package/docs/{skillmap → test/skillmap}/pongo/pongo1.md +0 -0
- package/docs/{skillmap → test/skillmap}/pongo/pongo2.md +0 -0
- package/docs/{skillmap → test/skillmap}/pongo/pongo3.md +0 -0
- package/docs/{skillmap → test/skillmap}/pongo.md +0 -0
- package/docs/{skillmap → test/skillmap}/turkey-0.md +0 -0
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ on what to do.
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
Be on the lookout for secret
|
|
20
|
+
Be on the lookout for secret messages!
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
~hint Click here to reveal hidden info 🕵🏽
|
|
@@ -31,8 +31,8 @@ hint~
|
|
|
31
31
|
|
|
32
32
|
When you're done reading, click **Next** to move to the next instruction.
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,8 +41,7 @@ When you're done reading, click **Next** to move to the next instruction.
|
|
|
41
41
|
|
|
42
42
|
**Ready to start coding?**
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
We need a place for the mole to hide.
|
|
46
45
|
|
|
47
46
|
- :tree: Go to the ``||scene: Scene||`` category **in the toolbox** and grab <br/>
|
|
48
47
|
|
|
@@ -50,7 +49,7 @@ Let's place an image of a grassy grid of holes in the background!
|
|
|
50
49
|
scene.setBackgroundImage(img`.`)
|
|
51
50
|
```
|
|
52
51
|
|
|
53
|
-
and snap it inside the empty ``||loops: on start||`` block already in the workspace.
|
|
52
|
+
and snap it inside the empty ``||loops(noclick): on start||`` block already in the workspace.
|
|
54
53
|
|
|
55
54
|
|
|
56
55
|
~hint Click here to see how 🕵🏽
|
|
@@ -66,8 +65,8 @@ and snap it inside the empty ``||loops: on start||`` block already in the worksp
|
|
|
66
65
|
hint~
|
|
67
66
|
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
|
|
69
|
+
|
|
71
70
|
|
|
72
71
|
#### ~ tutorialhint
|
|
73
72
|
|
|
@@ -79,11 +78,11 @@ scene.setBackgroundImage(img`.`)
|
|
|
79
78
|
|
|
80
79
|
## {4. Choose the grid}
|
|
81
80
|
|
|
82
|
-
Choose the grassy grid
|
|
81
|
+
**Choose the grassy grid.**
|
|
83
82
|
|
|
84
83
|
- :mouse pointer: Click the empty square inside the new block and switch to the **My Assets** library.<br/>
|
|
85
84
|

|
|
86
|
-
<br/>Choose the **grid** background.<br
|
|
85
|
+
<br/>Choose the **grid** background.<br/>
|
|
87
86
|

|
|
88
87
|
<br/>Then click **Done**.
|
|
89
88
|
|
|
@@ -97,8 +96,8 @@ Choose the grassy grid.
|
|
|
97
96
|
hint~
|
|
98
97
|
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
|
|
100
|
+
|
|
102
101
|
|
|
103
102
|
#### ~ tutorialhint
|
|
104
103
|
|
|
@@ -109,11 +108,10 @@ scene.setBackgroundImage(assets.image`grid`)
|
|
|
109
108
|
|
|
110
109
|
## {5. Check Your Game!}
|
|
111
110
|
|
|
112
|
-
Now it's time to take a look!
|
|
113
111
|
|
|
114
|
-
- :binoculars:
|
|
112
|
+
- :binoculars: Look at your project in the game window to see how it has changed!
|
|
115
113
|
|
|
116
|
-
You should see a green background with 9
|
|
114
|
+
You should see a green background with 9 holes where the moles can hide.
|
|
117
115
|
|
|
118
116
|
|
|
119
117
|
~hint Click here to see how 🕵🏽
|
|
@@ -122,8 +120,8 @@ You should see a green background with 9 purple holes where the moles can hide.
|
|
|
122
120
|
|
|
123
121
|
hint~
|
|
124
122
|
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
|
|
124
|
+
|
|
127
125
|
|
|
128
126
|
|
|
129
127
|
|
|
@@ -151,7 +149,7 @@ hint~
|
|
|
151
149
|
let myMole = sprites.create(img`.`, SpriteKind.Enemy)
|
|
152
150
|
```
|
|
153
151
|
|
|
154
|
-
and snap it inside at **the bottom** of the ``||loops: on start||`` block already in the workspace.
|
|
152
|
+
and snap it inside at **the bottom** of the ``||loops(noclick): on start||`` block already in the workspace.
|
|
155
153
|
|
|
156
154
|
|
|
157
155
|
~hint Show me how! 🕵🏽
|
|
@@ -161,8 +159,8 @@ and snap it inside at **the bottom** of the ``||loops: on start||`` block alread
|
|
|
161
159
|
|
|
162
160
|
hint~
|
|
163
161
|
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
|
|
163
|
+
|
|
166
164
|
|
|
167
165
|
#### ~ tutorialhint
|
|
168
166
|
|
|
@@ -191,8 +189,8 @@ and click **Done**.
|
|
|
191
189
|
|
|
192
190
|
hint~
|
|
193
191
|
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
|
|
193
|
+
|
|
196
194
|
|
|
197
195
|
#### ~ tutorialhint
|
|
198
196
|
|
|
@@ -234,8 +232,8 @@ hint~
|
|
|
234
232
|
|
|
235
233
|
hint~
|
|
236
234
|
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
|
|
236
|
+
|
|
239
237
|
|
|
240
238
|
#### ~ tutorialhint
|
|
241
239
|
|
|
@@ -249,15 +247,14 @@ game.onUpdateInterval(1000, function () {
|
|
|
249
247
|
|
|
250
248
|
## {10. Check Your Game!}
|
|
251
249
|
|
|
252
|
-
Look at your project again!
|
|
253
250
|
|
|
254
|
-
- :binoculars:
|
|
251
|
+
- :binoculars: Look at your project in the game window again to see what happened!
|
|
255
252
|
|
|
256
253
|
You should see the mole changing spots every second.
|
|
257
254
|
|
|
258
255
|
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
|
|
257
|
+
|
|
261
258
|
|
|
262
259
|
|
|
263
260
|
|
|
@@ -268,10 +265,9 @@ You should see the mole changing spots every second.
|
|
|
268
265
|
|
|
269
266
|
You have started your very own Whack-the-Mole game.
|
|
270
267
|
|
|
271
|
-
When you're ready, click **Done** to return to the skillmap so you can add
|
|
268
|
+
When you're ready, click **Done** to return to the skillmap so you can add a rubber hammer!
|
|
269
|
+
|
|
272
270
|
|
|
273
|
-
---
|
|
274
|
-
---
|
|
275
271
|
|
|
276
272
|
|
|
277
273
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Your code from the last activity is already in the workspace.
|
|
8
8
|
|
|
9
|
-
Let's use **SPRITES** and **EVENTS** to add a rubber hammer
|
|
9
|
+
Let's use **SPRITES** and **EVENTS** to add a rubber hammer.
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|

|
|
@@ -19,19 +19,21 @@ Let's use **SPRITES** and **EVENTS** to add a rubber hammer that can catch our m
|
|
|
19
19
|
|
|
20
20
|
**Look at the game window.**
|
|
21
21
|
|
|
22
|
-
- :binoculars:
|
|
22
|
+
- :binoculars: Look at your project in the game window to see what we're starting with.
|
|
23
|
+
|
|
24
|
+
You should see a mole changing spots every second.
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
💡 **Tip:** _If your code isn't working and you can't figure out why, click "Replace my code" to replace the blocks in your workspace with new starter code._
|
|
26
28
|
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
## {3. Add the Hammer}
|
|
33
35
|
|
|
34
|
-
Let's add another **SPRITE**
|
|
36
|
+
Let's add another **SPRITE** for our rubber hammer.
|
|
35
37
|
|
|
36
38
|
- :paper plane: From the ``||sprites: Sprites||`` category in the toolbox, grab
|
|
37
39
|
|
|
@@ -58,8 +60,8 @@ block container that's already in your workspace.
|
|
|
58
60
|
|
|
59
61
|
hint~
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
|
|
64
|
+
|
|
63
65
|
|
|
64
66
|
#### ~ tutorialhint
|
|
65
67
|
|
|
@@ -91,8 +93,8 @@ and snap it in at **the end** of the ``||loops: on start||`` block already in th
|
|
|
91
93
|
|
|
92
94
|
hint~
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
|
|
97
|
+
|
|
96
98
|
|
|
97
99
|
|
|
98
100
|
#### ~ tutorialhint
|
|
@@ -112,12 +114,12 @@ controller.move_only_onscreen_with_arrows(myHammer, speeds.Fast)
|
|
|
112
114
|
|
|
113
115
|
Let's test the action in the bigger game window!
|
|
114
116
|
|
|
115
|
-
- :binoculars:
|
|
117
|
+
- :binoculars: Test your project in the game window to see how it works!
|
|
116
118
|
|
|
117
119
|
Try using the on-screen joypad or the arrow keys on your keyboard to move the hammer around the screen.
|
|
118
120
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
|
|
122
|
+
|
|
121
123
|
|
|
122
124
|
|
|
123
125
|
|
|
@@ -146,8 +148,8 @@ and drag it to an **empty** area of the workspace.
|
|
|
146
148
|
|
|
147
149
|
hint~
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
|
|
152
|
+
|
|
151
153
|
|
|
152
154
|
#### ~ tutorialhint
|
|
153
155
|
|
|
@@ -158,19 +160,19 @@ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSp
|
|
|
158
160
|
|
|
159
161
|
|
|
160
162
|
|
|
161
|
-
## {
|
|
163
|
+
## {7. Check Your Game Again!}
|
|
164
|
+
|
|
162
165
|
|
|
163
|
-
|
|
166
|
+
- :binoculars: Play with your project in the game window!
|
|
164
167
|
|
|
165
|
-
- :binoculars: Click the mini **game window** in the bottom corner to open the **bigger game window**!
|
|
166
168
|
|
|
167
169
|
When your rubber hammer overlaps the mole, you should see points start to show up in the top-right corner.
|
|
168
170
|
|
|
169
|
-
---
|
|
170
|
-
---
|
|
171
171
|
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## {8. Too Many Points}
|
|
174
176
|
|
|
175
177
|
Did you notice that the points added up really quickly when the rubber hammer stayed above the mole? Let's fix that.
|
|
176
178
|
|
|
@@ -192,8 +194,8 @@ Now, when the rubber hammer overlaps the mole, the mole will quickly dash away!
|
|
|
192
194
|
|
|
193
195
|
hint~
|
|
194
196
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
|
|
198
|
+
|
|
197
199
|
|
|
198
200
|
#### ~ tutorialhint
|
|
199
201
|
|
|
@@ -207,21 +209,7 @@ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSp
|
|
|
207
209
|
|
|
208
210
|
|
|
209
211
|
|
|
210
|
-
## {
|
|
211
|
-
|
|
212
|
-
Try your game again!
|
|
213
|
-
|
|
214
|
-
- :binoculars: Click the mini **game window** in the bottom corner to open the **bigger game window**!
|
|
215
|
-
|
|
216
|
-
You should get one point each time you overlap the mole with the rubber hammer, then the mole should hop to another spot.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
## {11. Timer}
|
|
212
|
+
## {9. Timer}
|
|
225
213
|
|
|
226
214
|
Finally, let's add a timer to keep the game exciting.
|
|
227
215
|
|
|
@@ -232,7 +220,9 @@ Finally, let's add a timer to keep the game exciting.
|
|
|
232
220
|
info.startCountdownGame(15, winTypes.Score)
|
|
233
221
|
```
|
|
234
222
|
|
|
235
|
-
and snap it into **the end** of the
|
|
223
|
+
and snap it into **the end** of the <br/>
|
|
224
|
+
``||loops: on start||`` <br/>
|
|
225
|
+
block container already in the workspace.
|
|
236
226
|
|
|
237
227
|
|
|
238
228
|
~hint Show me how! 🕵🏽
|
|
@@ -241,8 +231,8 @@ and snap it into **the end** of the ``||loops: on start||`` block container alre
|
|
|
241
231
|
|
|
242
232
|
hint~
|
|
243
233
|
|
|
244
|
-
|
|
245
|
-
|
|
234
|
+
|
|
235
|
+
|
|
246
236
|
|
|
247
237
|
#### ~ tutorialhint
|
|
248
238
|
|
|
@@ -259,34 +249,33 @@ info.startCountdownGame(15, winTypes.Score)
|
|
|
259
249
|
|
|
260
250
|
|
|
261
251
|
|
|
262
|
-
## {
|
|
252
|
+
## {10. Play your game!}
|
|
263
253
|
|
|
264
|
-
Play your game!
|
|
265
254
|
|
|
266
|
-
- :binoculars:
|
|
255
|
+
- :binoculars: Play your game!
|
|
267
256
|
|
|
268
257
|
You should get one point each time you overlap the mole with the rubber hammer, then the mole should hop to another spot. Time should run out after 15 seconds and your high score should display!
|
|
269
258
|
|
|
270
259
|
**Can you get 15 points before the timer runs out?**
|
|
271
260
|
|
|
272
261
|
|
|
273
|
-
---
|
|
274
|
-
---
|
|
275
262
|
|
|
276
263
|
|
|
277
264
|
|
|
278
265
|
|
|
279
266
|
|
|
280
|
-
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## {11. Finale}
|
|
281
270
|
|
|
282
271
|
**🥳 You got it! 🥳**
|
|
283
272
|
|
|
284
|
-
You have a
|
|
273
|
+
You have made a Whack-the-Mole game.
|
|
285
274
|
|
|
286
275
|
When you're ready, click **Done** to return to the skillmap so you can add sound and animation to your game!
|
|
287
276
|
|
|
288
|
-
|
|
289
|
-
|
|
277
|
+
|
|
278
|
+
|
|
290
279
|
|
|
291
280
|
|
|
292
281
|
```blockconfig.global
|
|
@@ -17,9 +17,7 @@ Let's make our game more professional by adding sound and animation.
|
|
|
17
17
|
## {2. Play Your Game}
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- :binoculars: Click the mini **game window** in the bottom corner to open the **bigger game window**!
|
|
20
|
+
- :binoculars: Play the game you have so far.
|
|
23
21
|
|
|
24
22
|
Using the joypad (or the arrow keys on your keyboard) move the hammer around the screen and earn 1 point each time it overlaps the mole!
|
|
25
23
|
|
|
@@ -34,13 +32,13 @@ hint~
|
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
|
|
36
|
+
|
|
39
37
|
|
|
40
38
|
|
|
41
39
|
## {3. Add the Label}
|
|
42
40
|
|
|
43
|
-
Let’s add a label to the bottom our Whack-the-Mole game booth
|
|
41
|
+
**Let’s add a label to the bottom our Whack-the-Mole game booth.**
|
|
44
42
|
|
|
45
43
|
- :tree: From the ``||scene: Scene||`` category in the toolbox, grab <br/>
|
|
46
44
|
|
|
@@ -59,10 +57,10 @@ block container that's already in your workspace.
|
|
|
59
57
|
|
|
60
58
|
hint~
|
|
61
59
|
|
|
62
|
-
💡 **Tip:** _Don't forget to look at
|
|
60
|
+
💡 **Tip:** _Don't forget to look at your game to see what your new addition did!_
|
|
61
|
+
|
|
62
|
+
|
|
63
63
|
|
|
64
|
-
---
|
|
65
|
-
---
|
|
66
64
|
|
|
67
65
|
#### ~ tutorialhint
|
|
68
66
|
|
|
@@ -80,7 +78,7 @@ scene.add_label_to("Whack-the-Mole", areas.Bottom)
|
|
|
80
78
|
|
|
81
79
|
## {4. Drop the Beat}
|
|
82
80
|
|
|
83
|
-
Add a sound when the rubber hammer overlaps the mole
|
|
81
|
+
**Add a sound when the rubber hammer overlaps the mole.**
|
|
84
82
|
|
|
85
83
|
|
|
86
84
|
- :headphones: From the ``||music: Music||`` category, grab <br/>
|
|
@@ -101,8 +99,8 @@ and snap it in at **the end** of the ``||sprites: on sprite overlaps otherSprite
|
|
|
101
99
|
|
|
102
100
|
hint~
|
|
103
101
|
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
|
|
103
|
+
|
|
106
104
|
|
|
107
105
|
|
|
108
106
|
#### ~ tutorialhint
|
|
@@ -122,17 +120,15 @@ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSp
|
|
|
122
120
|
|
|
123
121
|
## {5. Check Your Game!}
|
|
124
122
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
- :binoculars: Click the mini **game window** in the bottom corner to open the **bigger game window**!
|
|
123
|
+
- :binoculars: Test your game!
|
|
128
124
|
|
|
129
125
|
The mole should hop between holes and you should be able to move the hammer with your arrow keys or the joypad.
|
|
130
126
|
|
|
131
127
|
You should also see the Whack-the-Mole label, and be able to hear a sound each time the rubber hammer overlaps the mole.
|
|
132
128
|
|
|
133
129
|
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
|
|
131
|
+
|
|
136
132
|
|
|
137
133
|
|
|
138
134
|
|
|
@@ -140,7 +136,7 @@ You should also see the Whack-the-Mole label, and be able to hear a sound each t
|
|
|
140
136
|
## {6. Add Animation}
|
|
141
137
|
|
|
142
138
|
|
|
143
|
-
Finally, let's animate the rubber hammer each time it overlaps the mole
|
|
139
|
+
**Finally, let's animate the rubber hammer each time it overlaps the mole.**
|
|
144
140
|
|
|
145
141
|
- :mouse pointer: At the bottom of the toolbox, click **Advanced** to show more categories.
|
|
146
142
|
|
|
@@ -169,8 +165,8 @@ and snap it in at **the end** of the ``||sprites: on sprite overlaps otherSprite
|
|
|
169
165
|
|
|
170
166
|
hint~
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
|
|
169
|
+
|
|
174
170
|
|
|
175
171
|
#### ~ tutorialhint
|
|
176
172
|
|
|
@@ -193,18 +189,17 @@ sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSp
|
|
|
193
189
|
|
|
194
190
|
## {7. Check Your Game Again!}
|
|
195
191
|
|
|
196
|
-
Take a look at what you've created!
|
|
197
192
|
|
|
198
|
-
|
|
193
|
+
|
|
194
|
+
- :binoculars: Take a look at what you've created!
|
|
199
195
|
|
|
200
196
|
When your rubber hammer overlaps the mole, points should show up in the top-right corner, a sound should play, and you should see the rubber hammer move back and forth.
|
|
201
197
|
|
|
202
198
|
**How many times can you tag the mole in 15 seconds?**
|
|
203
199
|
|
|
204
|
-
- :mouse pointer: Don't forget to click **Next** to get back to the instructions when you're done playing.
|
|
205
200
|
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
|
|
202
|
+
|
|
208
203
|
|
|
209
204
|
|
|
210
205
|
|
|
@@ -216,8 +211,8 @@ You've finished your Whack-the-Mole game!
|
|
|
216
211
|
|
|
217
212
|
When you're ready, click **Done** to return to the skillmap to claim your badge and share your game with friends and family.
|
|
218
213
|
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
|
|
215
|
+
|
|
221
216
|
|
|
222
217
|
|
|
223
218
|
```blockconfig.global
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pxt-arcade",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.23",
|
|
4
4
|
"description": "Small arcade editor for MakeCode",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JavaScript",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"pxt-common-packages": "10.1.11",
|
|
37
|
-
"pxt-core": "8.2.
|
|
37
|
+
"pxt-core": "8.2.16"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"pxt-arcade-sim": "microsoft/pxt-arcade-sim.git#v0.9.
|
|
40
|
+
"pxt-arcade-sim": "microsoft/pxt-arcade-sim.git#v0.9.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"serve": "node node_modules/pxt-core/built/pxt.js serve",
|