pxt-arcade 1.12.2 → 1.12.4

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 (103) hide show
  1. package/built/common-sim.d.ts +2 -2
  2. package/built/target.js +158 -146
  3. package/built/target.json +158 -146
  4. package/built/targetlight.json +5 -5
  5. package/built/theme.json +5 -0
  6. package/docs/SUMMARY.md +1 -0
  7. package/docs/hardware/adding.md +46 -52
  8. package/docs/hero-banner.md +8 -8
  9. package/docs/hour-of-code-2022-es.html +0 -1
  10. package/docs/hour-of-code-2022-pt.html +0 -1
  11. package/docs/hour-of-code-2022.html +12 -13
  12. package/docs/index-ref.json +1 -1
  13. package/docs/kiosk.html +1 -1
  14. package/docs/multiplayer.md +135 -0
  15. package/docs/projects/SUMMARY.md +3 -1
  16. package/docs/skillmap/balloon/balloon1.md +26 -312
  17. package/docs/skillmap/balloon/balloon2.md +18 -315
  18. package/docs/skillmap/balloon/balloon3.md +18 -317
  19. package/docs/skillmap/balloon/balloon4.md +105 -583
  20. package/docs/skillmap/balloon.md +14 -13
  21. package/docs/skillmap/mole/mole1.md +51 -326
  22. package/docs/skillmap/mole/mole2.md +43 -332
  23. package/docs/skillmap/mole/mole3.md +47 -316
  24. package/docs/{test/skillmap → skillmap}/mole/mole4.md +0 -0
  25. package/docs/skillmap/mole.md +14 -4
  26. package/docs/skillmap/turkey/turkey1.md +194 -127
  27. package/docs/skillmap/turkey/turkey2.md +144 -96
  28. package/docs/skillmap/turkey/turkey3.md +135 -84
  29. package/docs/skillmap/turkey.md +12 -10
  30. package/docs/skillmaps.md +24 -8
  31. package/docs/static/hero-gallery/holiday.png +0 -0
  32. package/docs/static/kiosk/asset-manifest.json +6 -6
  33. package/docs/static/kiosk/static/css/main.b60591be.css +2 -0
  34. package/docs/static/kiosk/static/css/main.b60591be.css.map +1 -0
  35. package/docs/static/kiosk/static/js/main.7c9f0b91.js +3 -0
  36. package/docs/static/kiosk/static/js/{main.01c7792a.js.LICENSE.txt → main.7c9f0b91.js.LICENSE.txt} +12 -32
  37. package/docs/static/kiosk/static/js/main.7c9f0b91.js.map +1 -0
  38. package/docs/static/multiplayer/help/emojis.png +0 -0
  39. package/docs/static/multiplayer/help/host-multiplayer.png +0 -0
  40. package/docs/static/multiplayer/help/hosted-game.png +0 -0
  41. package/docs/static/multiplayer/help/join-game.png +0 -0
  42. package/docs/static/multiplayer/help/joined-game.png +0 -0
  43. package/docs/static/multiplayer/help/share-button.png +0 -0
  44. package/docs/static/multiplayer/help/start-game.png +0 -0
  45. package/docs/static/skillmap/assets/dkc-logo-small.png +0 -0
  46. package/docs/static/tutorials/aliens/reload.png +0 -0
  47. package/docs/static/tutorials/arrows/2pbg.png +0 -0
  48. package/docs/static/tutorials/arrows/key.png +0 -0
  49. package/docs/static/tutorials/arrows/p1.png +0 -0
  50. package/docs/static/tutorials/arrows/p2.png +0 -0
  51. package/docs/static/tutorials/holiday/bgd.png +0 -0
  52. package/docs/static/tutorials/holiday/p1.png +0 -0
  53. package/docs/static/tutorials/holiday/p2.png +0 -0
  54. package/docs/static/tutorials/horse/finish.png +0 -0
  55. package/docs/static/tutorials/horse/frame.png +0 -0
  56. package/docs/static/tutorials/horse/p1.png +0 -0
  57. package/docs/static/tutorials/horse/p2.png +0 -0
  58. package/docs/test/courses/carnival.md +57 -0
  59. package/docs/test/courses/class-arcade.md +57 -0
  60. package/docs/test/skillmap/balloon.md +1 -1
  61. package/docs/test/skillmap/dino/{collectort1.md → dino1.md} +135 -79
  62. package/docs/test/skillmap/dino/{collectort2.md → dino2.md} +0 -0
  63. package/docs/test/skillmap/dino/{collectort3.md → dino3.md} +0 -0
  64. package/docs/test/skillmap/dino/{collectort4.md → dino4.md} +0 -0
  65. package/docs/test/skillmap/dino/{collectort5.md → dino5.md} +0 -0
  66. package/docs/test/skillmap/dino.md +82 -0
  67. package/docs/test/skillmap/mole.md +1 -1
  68. package/docs/test/skillmap/story/story1.md +8 -21
  69. package/docs/test/skillmap/story/story2.md +17 -28
  70. package/docs/test/skillmap/story/story3.md +51 -469
  71. package/docs/test/skillmap/story/story4.md +1 -2
  72. package/docs/test/skillmap/turkey.md +1 -0
  73. package/docs/test/tutorials/arrow.md +677 -0
  74. package/docs/test/tutorials/debug.md +180 -0
  75. package/docs/test/tutorials/holiday.md +609 -0
  76. package/docs/test/tutorials/horse.md +456 -0
  77. package/docs/test/tutorials/hundred.md +400 -0
  78. package/docs/test/tutorials/target.md +6 -2
  79. package/docs/test/tutorials/wakanda-forever.md +206 -147
  80. package/docs/tutorials/arrow.md +677 -0
  81. package/docs/tutorials/holiday.md +609 -0
  82. package/docs/tutorials/horse.md +456 -0
  83. package/docs/{test/tutorials/target/target_copy.md → tutorials/target.md} +11 -1085
  84. package/docs/tutorials/wakanda-forever.md +206 -147
  85. package/package.json +3 -3
  86. package/docs/skillmap/turkey/turkey0.md +0 -197
  87. package/docs/skillmap/turkey/turkey1a.md +0 -308
  88. package/docs/skillmap/turkey/turkey2a.md +0 -277
  89. package/docs/skillmap/turkey/turkey3a.md +0 -219
  90. package/docs/static/kiosk/static/css/main.927f4dad.css +0 -2
  91. package/docs/static/kiosk/static/css/main.927f4dad.css.map +0 -1
  92. package/docs/static/kiosk/static/js/main.01c7792a.js +0 -3
  93. package/docs/static/kiosk/static/js/main.01c7792a.js.map +0 -1
  94. package/docs/test/skillmap/balloon/balloon1.md +0 -247
  95. package/docs/test/skillmap/balloon/balloon2.md +0 -377
  96. package/docs/test/skillmap/balloon/balloon3.md +0 -389
  97. package/docs/test/skillmap/balloon/balloon4.md +0 -385
  98. package/docs/test/skillmap/mole/mole1.md +0 -382
  99. package/docs/test/skillmap/mole/mole2.md +0 -422
  100. package/docs/test/skillmap/mole/mole3.md +0 -384
  101. package/docs/test/skillmap/turkey/turkey1.md +0 -338
  102. package/docs/test/skillmap/turkey/turkey2.md +0 -318
  103. package/docs/test/skillmap/turkey/turkey3.md +0 -265
@@ -14,7 +14,7 @@ Follow these quick steps and you'll have one in no time!
14
14
 
15
15
  ## {Step 2}
16
16
 
17
- **Let's make a card to share!**
17
+ **Let's make a card to share!**<br/>
18
18
  🎨 🎨 🎨
19
19
 
20
20
  ---
@@ -87,7 +87,7 @@ scene.setBackgroundImage(storySprites.halloween)
87
87
 
88
88
  ## {Step 5}
89
89
 
90
- **Add a heartfelt greeting**
90
+ **Add a heartfelt greeting**<br/>
91
91
  💛 💛 💛
92
92
 
93
93
  ---
@@ -126,7 +126,7 @@ carnival.addLabelTo("You Are Awesome", carnival.Areas.Top)
126
126
 
127
127
  ## {Step 6}
128
128
 
129
- **Time for a celebration**
129
+ **Time for a celebration**<br/>
130
130
  🎉🎉🎉
131
131
 
132
132
  ---
@@ -174,7 +174,7 @@ Feel free to make edits until you are happy with it.
174
174
 
175
175
  ## {Step 8}
176
176
 
177
- **Let's add a personal note**
177
+ **Let's add a personal note**<br/>
178
178
  🎵 🎵 🎵
179
179
 
180
180
  ---
@@ -203,6 +203,7 @@ hint~
203
203
 
204
204
  ```blocks
205
205
  scene.setBackgroundImage(storySprites.halloween)
206
+ carnival.addLabelTo("You Are Awesome", carnival.Areas.Top)
206
207
  effects.confetti.startScreenEffect()
207
208
  music.startSong(assets.song`birthday`, false)
208
209
  ```
@@ -221,7 +222,7 @@ Feel free to go back and make changes until you are happy with it.
221
222
 
222
223
  ## {Finish}
223
224
 
224
- **Congratulations, you've finished your greeting card! **
225
+ **Congratulations, you've finished your greeting card!**<br/>
225
226
  🥳 🥳 🥳
226
227
 
227
228
  Click **Done** to return to the main skillmap page where you can keep going to make an even more detailed card.
@@ -239,24 +240,10 @@ carnival=github:microsoft/arcade-tutorial-extensions/carnival/
239
240
 
240
241
 
241
242
  ```ghost
242
- scene.setBackgroundColor(0)
243
- scene.setBackgroundImage(img`
244
- .
245
- `)
243
+ scene.setBackgroundImage(img`.`)
246
244
  effects.confetti.startScreenEffect()
247
- music.setVolume(20)
248
- music.playMelody("- - - - - - - - ", 120)
249
- let mySprite = sprites.create(img`
250
- .
251
- `, SpriteKind.Player)
252
- mySprite.setPosition(0, 0)
253
- forever(function () {
254
- for (let index = 0; index < 4; index++) {
255
-
256
- }
257
- })
258
245
  carnival.addLabelTo("You Are Awesome", carnival.Areas.Bottom)
259
-
246
+ music.startSong(assets.song`birthday`, false)
260
247
  ```
261
248
 
262
249
 
@@ -11,7 +11,7 @@ You've created a card, now let's make it extra special!
11
11
 
12
12
  ## {Step 2}
13
13
 
14
- The code for a simple card is already in the workspace.
14
+ The code for a simple card is already in the workspace.<br/>
15
15
  ⭐⭐⭐
16
16
 
17
17
  ---
@@ -58,6 +58,13 @@ into **an empty area** of the workspace.
58
58
  ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
59
59
  hint~
60
60
 
61
+
62
+ ``` blockconfig.local
63
+ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
64
+ game.showLongText("Happy Earth Day", DialogLayout.Bottom)
65
+ })
66
+ ```
67
+
61
68
  #### ~ tutorialhint
62
69
  ``` blocks
63
70
  controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
@@ -105,6 +112,10 @@ container.
105
112
  ![The background gallery](/static/skillmap/story/story-bg-select.gif "Toggle between editor and gallery" )
106
113
  hint~
107
114
 
115
+ ```blockconfig.local
116
+ game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
117
+ ```
118
+
108
119
  #### ~ tutorialhint
109
120
  ``` blocks
110
121
 
@@ -126,7 +137,7 @@ Customize the text frame to bring it all together.
126
137
  - :mouse pointer: From ``||game:Game||``, grab
127
138
 
128
139
  ```block
129
- game.setDialogFrame(sprites.dialog.mediumLeaf1)
140
+ game.setDialogFrame(sprites.dialog.mediumLeaf1)
130
141
  ```
131
142
 
132
143
  and snap it in at **the top** of the<br/>
@@ -179,7 +190,7 @@ Change the color of the text so it works with your background.
179
190
  - :circle: From ``||game:Game||``, grab
180
191
 
181
192
  ```block
182
- game.setDialogTextColor(1)
193
+ game.setDialogTextColor(1)
183
194
  ```
184
195
 
185
196
  and snap it into the top of the<br/>
@@ -234,14 +245,9 @@ Click **Done** to return to the main skillmap to move on to the next level where
234
245
 
235
246
  ```blockconfig.global
236
247
  carnival.addLabelTo("You Are Awesome", carnival.Areas.Top)
237
-
238
- controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
239
- game.showLongText("Happy Earth Day", DialogLayout.Bottom)
240
- })
241
- game.showLongText("To the greatest Earth I know", DialogLayout.Bottom)
242
- game.setDialogFrame(sprites.dialog.mediumLeaf1)
243
- game.setDialogTextColor(1)
244
-
248
+ game.showLongText("Happy Earth Day", DialogLayout.Bottom)
249
+ game.setDialogFrame(sprites.dialog.mediumLeaf1)
250
+ game.setDialogTextColor(1)
245
251
  ```
246
252
 
247
253
 
@@ -251,26 +257,9 @@ carnival=github:microsoft/arcade-tutorial-extensions/carnival/
251
257
 
252
258
 
253
259
  ```template
254
- {
255
260
  scene.setBackgroundImage(storySprites.world)
256
261
  effects.confetti.startScreenEffect()
257
262
  music.startSong(assets.song`birthday`, false)
258
- }
259
- ```
260
-
261
-
262
- ```ghost
263
- scene.setBackgroundColor(0)
264
- scene.setBackgroundImage(img`
265
- .
266
- `, SpriteKind.Player)
267
- mySprite.setPosition(0, 0)
268
- forever(function () {
269
- for (let index = 0; index < 4; index++) {
270
-
271
- }
272
- })
273
-
274
263
  ```
275
264
 
276
265