pxt-arcade 1.13.8 → 1.13.9

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.
@@ -34,42 +34,37 @@ music.startSong(assets.song`birthday`, false)
34
34
 
35
35
  ## {Step 3}
36
36
 
37
- Try adding text that
38
- shows up when the **A button** is pressed.
37
+ Add some music that plays when the **A button** is pressed.
39
38
 
40
39
  ---
41
40
 
42
41
  - :game: From the ``||controller: Controller||`` category, drag
43
-
44
42
  ```blocks
45
43
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
46
- game.showLongText("Happy Earth Day", DialogLayout.Bottom)
44
+ music.play(music.createSong(hex`00780004080200`), music.PlaybackMode.InBackground)
47
45
  })
48
46
  ```
49
-
50
47
  into **an empty area** of the workspace.
51
48
 
52
- - :mouse pointer: Change the message to make sense for your card.
49
+
50
+ - :mouse pointer: Click the grey box to open the music editor and create your own song!
51
+
53
52
 
54
53
  ~hint Click here to see how 🕵🏽
55
54
 
56
55
  ---
57
56
 
58
- ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
57
+ ![Add blocks to make music](/static/skillmap/story/step2-3.gif " " )
59
58
 
60
59
  hint~
61
60
 
62
61
 
63
- ```blockconfig.local
64
- controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
65
- game.showLongText("Happy Earth Day", DialogLayout.Bottom)
66
- })
67
- ```
68
-
69
62
  #### ~ tutorialhint
70
63
  ``` blocks
64
+ //@highlight
71
65
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
72
- game.showLongText("Happy Earth Day", DialogLayout.Bottom)
66
+ //@highlight
67
+ music.play(music.createSong(hex`0078000408020108001c000e050046006603320000040a002d000000640014000132000201000244000000040002222c04000800012508000c000220250c00100002222a10001400031d242a14001800012518001c00021b221c002000012720002400012a24002800031d2427`), music.PlaybackMode.InBackground)
73
68
  })
74
69
  ```
75
70
 
@@ -80,9 +75,13 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
80
75
 
81
76
  **Give it a try.**
82
77
 
83
- - :binoculars: Take a look at the game window and press the **A button** (or space bar) to see your text.
78
+ - :binoculars: Take a look at the game window and press the **A button** (or space bar) to hear your music.
79
+
80
+ 💡 _You may need to turn the sound on beside the game window to hear the music you added._
84
81
 
85
82
 
83
+ ![Don't forget to turn on the sound]( /static/skillmap/assets/sound-on.gif "Image of the sound button to the right of the game window" )
84
+
86
85
 
87
86
 
88
87
 
@@ -90,27 +89,26 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
90
89
 
91
90
  **What a nice surprise**
92
91
 
93
- Add a second message to show you care.
92
+ Add another message to your card to show you care.
94
93
 
95
94
  ---
96
95
 
97
- - :mouse pointer: From ``||game:Game||`` grab
98
-
96
+ - :circle: From ``||game:Game||`` grab
99
97
  ```block
100
98
  game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
101
99
  ```
102
-
103
- and snap it into **the bottom** of the<br/>
100
+ and snap it in at **the top** of the<br/>
104
101
  ``||controller(noclick):on [A] button [pressed]||``<br/>
105
102
  container.
106
103
 
104
+
107
105
  - :mouse pointer: Change this message to make sense with the rest of your project.
108
106
 
109
107
  ~hint Click here to see how 🕵🏽
110
108
 
111
109
  ---
112
110
 
113
- ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
111
+ ![Add a message from the game category](/static/skillmap/story/step2-5.gif " " )
114
112
  hint~
115
113
 
116
114
  ```blockconfig.local
@@ -121,8 +119,9 @@ game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
121
119
  ``` blocks
122
120
 
123
121
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
122
+ //@highlight
124
123
  game.showLongText("Happy Earth Day", DialogLayout.Bottom)
125
- game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
124
+ music.play(music.createSong(hex`0078000408020108001c000e050046006603320000040a002d000000640014000132000201000244000000040002222c04000800012508000c000220250c00100002222a10001400031d242a14001800012518001c00021b221c002000012720002400012a24002800031d2427`), music.PlaybackMode.InBackground)
126
125
  })
127
126
 
128
127
  ```
@@ -130,40 +129,38 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
130
129
 
131
130
  ## {Step 6}
132
131
 
133
- **🎨 Make it POP 🎨**
132
+ **🎨 Make it POP 🎨**<br/>
134
133
  Customize the text frame to bring it all together.
135
134
 
136
135
  ---
137
136
 
138
- - :mouse pointer: From ``||game:Game||``, grab
139
-
137
+ - :circle: From ``||game:Game||``, grab
140
138
  ```block
141
139
  game.setDialogFrame(sprites.dialog.mediumLeaf1)
142
140
  ```
143
-
144
141
  and snap it in at **the top** of the<br/>
145
142
  ``||controller(noclick):on [A] button [pressed]||``<br/>
146
143
  container that is already in your workspace.
147
144
 
148
- - :mouse pointer: Choose a design by clicking on the box in the<br/>
149
- ``||game(onclick):set dialog frame to [ ]||``<br/>
150
- block and switching to the **Gallery**.
145
+
146
+ - :mouse pointer: Choose a design by clicking on the leafy box and switching to something different.
151
147
 
152
148
  ~hint Click here to see how 🕵🏽
153
149
 
154
150
  ---
155
151
 
156
- ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
152
+ ![Change the frame](/static/skillmap/story/step2-6.gif " " )
157
153
  hint~
158
154
 
159
155
 
160
156
  #### ~ tutorialhint
161
157
  ``` blocks
162
158
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
159
+ //@highlight
163
160
  game.setDialogFrame(sprites.dialog.mediumLeaf1)
164
161
  game.showLongText("Happy Earth Day", DialogLayout.Bottom)
165
- game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
166
- })
162
+ music.play(music.createSong(hex`0078000408020108001c000e050046006603320000040a002d000000640014000132000201000244000000040002222c04000800012508000c000220250c00100002222a10001400031d242a14001800012518001c00021b221c002000012720002400012a24002800031d2427`), music.PlaybackMode.InBackground)
163
+ })
167
164
 
168
165
  ```
169
166
 
@@ -174,7 +171,7 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
174
171
  **Try it again.**
175
172
 
176
173
  - :binoculars: Take a look at the game window and press the
177
- **A button** (or space bar) to see your text. Press the button again to see the next message.
174
+ **A button** (or space bar) to see your text and hear your music.
178
175
 
179
176
 
180
177
 
@@ -184,41 +181,40 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
184
181
 
185
182
  **The final touch 🎀**
186
183
 
187
- Change the color of the text so it works with your background.
184
+ Change the color of the text so it works well with your background.
188
185
 
189
186
  ---
190
187
 
191
188
  - :circle: From ``||game:Game||``, grab
192
-
193
189
  ```block
194
190
  game.setDialogTextColor(1)
195
191
  ```
196
-
197
- and snap it into the top of the<br/>
198
- ``||on [A] button [pressed]||``<br/>
192
+ and snap it into **the top** of the<br/>
193
+ ``||controller(noclick):on [A] button [pressed]||``<br/>
199
194
  block in your workspace.
200
195
 
196
+
201
197
  - :mouse pointer: **Click the box** and choose a color that looks good with your message. <br/><br/>
202
- It's okay if you need to change it a few times before your text
203
- is just right.
198
+ It's okay if you need to change it a few times before it looks right.
204
199
 
205
200
 
206
201
  ~hint Click here to see how 🕵🏽
207
202
 
208
203
  ---
209
204
 
210
- ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
205
+ ![The background gallery](/static/skillmap/story/step2-8.gif "Toggle between editor and gallery" )
211
206
  hint~
212
207
 
213
208
 
214
209
  #### ~ tutorialhint
215
210
  ``` blocks
216
211
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
212
+ //@highlight
217
213
  game.setDialogTextColor(1)
218
214
  game.setDialogFrame(sprites.dialog.mediumLeaf1)
219
215
  game.showLongText("Happy Earth Day", DialogLayout.Bottom)
220
- game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
221
- })
216
+ music.play(music.createSong(hex`0078000408020108001c000e050046006603320000040a002d000000640014000132000201000244000000040002222c04000800012508000c000220250c00100002222a10001400031d242a14001800012518001c00021b221c002000012720002400012a24002800031d2427`), music.PlaybackMode.InBackground)
217
+ })
222
218
  ```
223
219
 
224
220
 
@@ -229,7 +225,6 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
229
225
 
230
226
  - :binoculars: Take a look at the game window and press the
231
227
  **A button** (or space bar) to see how your text looks now.
232
- <br/><br/>Press the button another time to see the next message.
233
228
 
234
229
 
235
230
 
@@ -249,6 +244,9 @@ carnival.addLabelTo("You Are Awesome", carnival.Areas.Top)
249
244
  game.showLongText("Happy Earth Day", DialogLayout.Bottom)
250
245
  game.setDialogFrame(sprites.dialog.mediumLeaf1)
251
246
  game.setDialogTextColor(1)
247
+ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
248
+ music.play(music.createSong(hex`00780004080200`), music.PlaybackMode.InBackground)
249
+ })
252
250
  ```
253
251
 
254
252
 
@@ -259,8 +257,48 @@ carnival=github:microsoft/arcade-tutorial-extensions/carnival/
259
257
 
260
258
  ```template
261
259
  scene.setBackgroundImage(storySprites.world)
260
+ carnival.addLabelTo("You Are Awesome", carnival.Areas.Bottom)
262
261
  effects.confetti.startScreenEffect()
263
- music.startSong(assets.song`birthday`, false)
262
+ ```
263
+
264
+ ```ghost
265
+ game.setDialogTextColor(1)
266
+ game.setDialogFrame(img`
267
+ 88888..8888888888888888....88888.
268
+ 87768888777877787778777888867778.
269
+ 87777686767876767678767688777778.
270
+ 87767767667676676676766786776768.
271
+ 8677676767767767677677678676778..
272
+ .877768777686767776867678667768..
273
+ .886668888888888888888888886688..
274
+ .888888866666666666666668877768..
275
+ 88677786666666666666666668766778.
276
+ 87766686666666666666666668776678.
277
+ 87667786666666666666666668677778.
278
+ 87777686666666666666666668866888.
279
+ 88866886666666666666666668677778.
280
+ 87777686666666666666666668776678.
281
+ 87667786666666666666666668666778.
282
+ 87766786666666666666666668777688.
283
+ 88677786666666666666666668766778.
284
+ 87766686666666666666666668776678.
285
+ 87667786666666666666666668677778.
286
+ 87777686666666666666666668866888.
287
+ 88866886666666666666666668677778.
288
+ 87777686666666666666666668776678.
289
+ 87667786666666666666666668666778.
290
+ 87766786666666666666666668777688.
291
+ .867778866666666666666668888888..
292
+ .886688888888888888888888866688..
293
+ .867766876768677767686777867778..
294
+ .8776768767767767677677676767768.
295
+ 86767768766767667667676676776778.
296
+ 87777788676787676767876768677778.
297
+ 87776888877787778777877788886778.
298
+ 88888..88888888888888888....8888.
299
+ .................................
300
+ `)
301
+ game.showLongText("You are so special", DialogLayout.Bottom)
264
302
  ```
265
303
 
266
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-arcade",
3
- "version": "1.13.8",
3
+ "version": "1.13.9",
4
4
  "description": "Small arcade editor for MakeCode",
5
5
  "keywords": [
6
6
  "JavaScript",
package/pxtarget.json CHANGED
@@ -553,6 +553,7 @@
553
553
  "selectLanguage": true,
554
554
  "availableLocales": [
555
555
  "en",
556
+ "ar",
556
557
  "zh-CN",
557
558
  "zh-TW",
558
559
  "de",