pxt-arcade 1.12.3 → 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.
- package/built/common-sim.d.ts +2 -2
- package/built/target.js +153 -146
- package/built/target.json +153 -146
- package/built/targetlight.json +5 -5
- package/docs/hardware/adding.md +46 -52
- package/docs/hero-banner.md +5 -5
- package/docs/hour-of-code-2022-es.html +0 -1
- package/docs/hour-of-code-2022.html +0 -4
- package/docs/kiosk.html +1 -1
- package/docs/static/hero-gallery/holiday.png +0 -0
- package/docs/static/kiosk/asset-manifest.json +6 -6
- package/docs/static/kiosk/static/css/main.b60591be.css +2 -0
- package/docs/static/kiosk/static/css/main.b60591be.css.map +1 -0
- package/docs/static/kiosk/static/js/{main.f11fd683.js → main.7c9f0b91.js} +3 -3
- package/docs/static/kiosk/static/js/{main.f11fd683.js.LICENSE.txt → main.7c9f0b91.js.LICENSE.txt} +0 -0
- package/docs/static/kiosk/static/js/main.7c9f0b91.js.map +1 -0
- package/docs/static/tutorials/aliens/reload.png +0 -0
- package/docs/static/tutorials/arrows/key.png +0 -0
- package/docs/static/tutorials/holiday/bgd.png +0 -0
- package/docs/static/tutorials/holiday/p1.png +0 -0
- package/docs/static/tutorials/holiday/p2.png +0 -0
- package/docs/test/courses/carnival.md +57 -0
- package/docs/test/courses/class-arcade.md +57 -0
- package/docs/test/skillmap/story/story1.md +8 -21
- package/docs/test/skillmap/story/story2.md +17 -28
- package/docs/test/skillmap/story/story3.md +51 -469
- package/docs/test/skillmap/story/story4.md +1 -2
- package/docs/test/tutorials/arrow.md +4 -4
- package/docs/test/tutorials/holiday.md +609 -0
- package/docs/test/tutorials/hundred.md +140 -157
- package/docs/test/tutorials/wakanda-forever.md +41 -1
- package/docs/tutorials/holiday.md +609 -0
- package/docs/tutorials/wakanda-forever.md +203 -146
- package/package.json +3 -3
- package/docs/static/kiosk/static/css/main.8897f977.css +0 -2
- package/docs/static/kiosk/static/css/main.8897f977.css.map +0 -1
- package/docs/static/kiosk/static/js/main.f11fd683.js.map +0 -1
|
@@ -538,6 +538,44 @@ info.onScore(20, function () {
|
|
|
538
538
|
```
|
|
539
539
|
|
|
540
540
|
|
|
541
|
+
|
|
542
|
+
## {Step 21}
|
|
543
|
+
|
|
544
|
+
**Be a leader!**
|
|
545
|
+
|
|
546
|
+
Teach users how to play with well-placed instructions.
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
- :circle: From the ``||game:Game||`` category, grab <br/>
|
|
551
|
+
``||game(noclick):show long text "..." [full screen]||``<br/>
|
|
552
|
+
and snap it in at **the top** of the ``||loops(noclick):on start||`` container already in the workspace.
|
|
553
|
+
|
|
554
|
+
Now, when your game starts, users will see a message suggesting that they use the arrow keys to play.
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
```blocks
|
|
558
|
+
namespace SpriteKind {
|
|
559
|
+
export const Guard = SpriteKind.create()
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
//@highlight
|
|
563
|
+
game.showLongText("When game begins, press the ARROW KEYS to move Shuri, Okoye and Riri. If Namor catches you, you will lose points! ", DialogLayout.Full)
|
|
564
|
+
scene.setBackgroundImage(assets.image`wakanda`)
|
|
565
|
+
let Shuri = sprites.create(assets.image`shuri`, SpriteKind.Player)
|
|
566
|
+
controller.moveSprite(Shuri)
|
|
567
|
+
Shuri.setStayInScreen(true)
|
|
568
|
+
let Namor = sprites.create(assets.image`namor`, SpriteKind.Enemy)
|
|
569
|
+
Namor.follow(Shuri, 30)
|
|
570
|
+
Namor.setPosition(148, 2)
|
|
571
|
+
let Riri = sprites.create(assets.image`riri`, SpriteKind.Guard)
|
|
572
|
+
controller.moveSprite(Riri, 34, -53)
|
|
573
|
+
let Okoye = sprites.create(assets.image`okoye`, SpriteKind.Guard)
|
|
574
|
+
controller.moveSprite(Okoye, -68, -58)
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
541
579
|
## {Step 21}
|
|
542
580
|
|
|
543
581
|
**🎉 Congratulations**
|
|
@@ -549,7 +587,9 @@ Now you have a game that helps Shuri, Riri, and Oyoke defeat Namor! Go ahead and
|
|
|
549
587
|
Click **Done** when you're ready to publish your game and share with friends.
|
|
550
588
|
|
|
551
589
|
|
|
552
|
-
|
|
590
|
+
```blockconfig.global
|
|
591
|
+
game.showLongText("When game begins, press the ARROW KEYS to move Shuri, Okoye and Riri. If Namor catches you, you will lose points! ", DialogLayout.Full)
|
|
592
|
+
```
|
|
553
593
|
|
|
554
594
|
```package
|
|
555
595
|
wakanda-palette=github:riknoll/wakanda-palette
|