pxt-arcade 1.7.3 → 1.7.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 (149) hide show
  1. package/built/target.js +69 -68
  2. package/built/target.json +69 -68
  3. package/built/targetlight.json +4 -4
  4. package/built/theme.json +2 -1
  5. package/docs/hour-of-code/educators-2021.html +366 -0
  6. package/docs/hour-of-code-2021.html +239 -140
  7. package/docs/hour-of-code.html +11 -11
  8. package/docs/index-ref.json +1 -1
  9. package/docs/multipart-tutorials.md +0 -8
  10. package/docs/projects/SUMMARY.md +3 -2
  11. package/docs/recipes.md +0 -7
  12. package/docs/skillmap/clicker/clicker1.md +7 -7
  13. package/docs/skillmap/clicker/clicker2.md +9 -9
  14. package/docs/skillmap/clicker/clicker3.md +8 -8
  15. package/docs/skillmap/clicker/clicker4.md +8 -8
  16. package/docs/skillmap/clicker/clicker4a.md +7 -7
  17. package/docs/skillmap/clicker/clicker5.md +3 -3
  18. package/docs/skillmap/clicker-themed/clickert1.md +8 -8
  19. package/docs/skillmap/clicker-themed/clickert2.md +10 -10
  20. package/docs/skillmap/clicker-themed/clickert3.md +8 -8
  21. package/docs/skillmap/clicker-themed/clickert4.md +8 -8
  22. package/docs/skillmap/collector/collector1.md +11 -11
  23. package/docs/skillmap/collector/collector1a.md +8 -8
  24. package/docs/skillmap/collector/collector2.md +8 -8
  25. package/docs/skillmap/collector/collector3.md +8 -8
  26. package/docs/skillmap/collector/collector3a.md +7 -7
  27. package/docs/skillmap/collector/collector4.md +8 -8
  28. package/docs/skillmap/collector/collector5.md +2 -2
  29. package/docs/skillmap/collector-themed/collectort1.md +14 -14
  30. package/docs/skillmap/collector-themed/collectort2.md +9 -9
  31. package/docs/skillmap/collector-themed/collectort3.md +11 -11
  32. package/docs/skillmap/collector-themed/collectort4.md +11 -11
  33. package/docs/skillmap/collector-themed/collectort4old.md +8 -8
  34. package/docs/skillmap/collector-themed/collectort5.md +2 -2
  35. package/docs/skillmap/educator-info/forest-map-info.md +8 -8
  36. package/docs/skillmap/educator-info/racer-map-info.md +105 -0
  37. package/docs/skillmap/educator-info/simple-shark-map-info.md +101 -0
  38. package/docs/skillmap/forest/forest1.md +1 -69
  39. package/docs/skillmap/forest/forest2.md +3 -67
  40. package/docs/skillmap/forest/forest3.md +1 -174
  41. package/docs/skillmap/forest/forest4.md +2 -336
  42. package/docs/skillmap/forest/forest5.md +1 -396
  43. package/docs/skillmap/forest/forest6.md +6 -372
  44. package/docs/skillmap/forest.md +2 -2
  45. package/docs/skillmap/interface/activity1.md +14 -14
  46. package/docs/skillmap/jungle/jungle1.md +48 -28
  47. package/docs/skillmap/jungle/jungle2.md +50 -26
  48. package/docs/skillmap/jungle/jungle3.md +48 -27
  49. package/docs/skillmap/jungle/jungle4.md +76 -58
  50. package/docs/skillmap/jungle/jungle5.md +31 -25
  51. package/docs/skillmap/jungle/jungle6.md +34 -28
  52. package/docs/skillmap/jungle/jungle7.md +36 -24
  53. package/docs/skillmap/jungle/jungle8.md +27 -25
  54. package/docs/skillmap/jungle.md +7 -3
  55. package/docs/skillmap/long-shark.md +119 -0
  56. package/docs/skillmap/racer.md +7 -7
  57. package/docs/skillmap/rockstar/rockstar1.md +32 -13
  58. package/docs/skillmap/rockstar/rockstar2.md +43 -25
  59. package/docs/skillmap/rockstar/rockstar3.md +43 -25
  60. package/docs/skillmap/rockstar.md +3 -1
  61. package/docs/skillmap/shark/shark1-simple.md +151 -0
  62. package/docs/skillmap/shark/shark2-simple.md +203 -0
  63. package/docs/skillmap/shark/shark3-simple.md +204 -0
  64. package/docs/skillmap/shark/shark4-simple.md +246 -0
  65. package/docs/skillmap/shark/shark4a-simple.md +244 -0
  66. package/docs/skillmap/shark.md +25 -58
  67. package/docs/skillmap/space/space1.md +62 -28
  68. package/docs/skillmap/space/space2.md +33 -24
  69. package/docs/skillmap/space/space3.md +85 -68
  70. package/docs/skillmap/space/space4.md +95 -64
  71. package/docs/skillmap/space/space4a.md +32 -24
  72. package/docs/skillmap/space/space5.md +77 -41
  73. package/docs/skillmap/space/space6.md +56 -78
  74. package/docs/skillmap/space.md +8 -5
  75. package/docs/skillmap/story/card.md +6 -6
  76. package/docs/skillmap/story/card2.md +6 -6
  77. package/docs/skillmap/story/story1.md +7 -7
  78. package/docs/skillmap/story/story2.md +11 -11
  79. package/docs/skillmap/story/story3.md +10 -10
  80. package/docs/skillmap/story/story4.md +10 -10
  81. package/docs/skillmap/zoo/zoo1.md +31 -16
  82. package/docs/skillmap/zoo/zoo2.md +45 -30
  83. package/docs/skillmap/zoo/zoo2a.md +51 -36
  84. package/docs/skillmap/zoo/zoo3.md +8 -7
  85. package/docs/skillmap/zoo/zoo4.md +61 -32
  86. package/docs/skillmap/zoo/zoo5.md +41 -31
  87. package/docs/skillmap/zoo.md +2 -2
  88. package/docs/skillmaps.md +20 -4
  89. package/docs/static/experiments/accessibleblocks.png +0 -0
  90. package/docs/static/experiments/blockserrorlist.png +0 -0
  91. package/docs/static/hour-of-code/2021/beginner-skillmap.png +0 -0
  92. package/docs/static/hour-of-code/2021/favicon.png +0 -0
  93. package/docs/static/hour-of-code/2021/forest-skillmap-game.gif +0 -0
  94. package/docs/static/hour-of-code/2021/global-game-jam.png +0 -0
  95. package/docs/static/hour-of-code/2021/header.gif +0 -0
  96. package/docs/static/hour-of-code/2021/hoc-2020.png +0 -0
  97. package/docs/static/hour-of-code/2021/hoc-card.png +0 -0
  98. package/docs/static/hour-of-code/2021/microbit.png +0 -0
  99. package/docs/static/hour-of-code/2021/styles.css +269 -21
  100. package/docs/static/skillmap/assets/my-assets-three.png +0 -0
  101. package/docs/static/skillmap/backgrounds/jungle-bg.png +0 -0
  102. package/docs/static/skillmap/backgrounds/jungle-map.png +0 -0
  103. package/docs/static/skillmap/backgrounds/rock-map.png +0 -0
  104. package/docs/static/skillmap/backgrounds/rockstar-card.gif +0 -0
  105. package/docs/static/skillmap/backgrounds/space-comp.png +0 -0
  106. package/docs/static/skillmap/backgrounds/space.png +0 -0
  107. package/docs/static/skillmap/certificates/forest-cert.pdf +0 -0
  108. package/docs/static/skillmap/certificates/forest-cert.png +0 -0
  109. package/docs/static/skillmap/certificates/jungle-cert.pdf +0 -0
  110. package/docs/static/skillmap/certificates/jungle-cert.png +0 -0
  111. package/docs/static/skillmap/certificates/rockstar-cert.pdf +0 -0
  112. package/docs/static/skillmap/certificates/rockstar-cert.png +0 -0
  113. package/docs/static/skillmap/certificates/shark-cert.pdf +0 -0
  114. package/docs/static/skillmap/certificates/shark-cert.png +0 -0
  115. package/docs/static/skillmap/certificates/space-cert.pdf +0 -0
  116. package/docs/static/skillmap/certificates/space-cert.png +0 -0
  117. package/docs/static/skillmap/racer/racer1.gif +0 -0
  118. package/docs/static/skillmap/racer/racer2.gif +0 -0
  119. package/docs/static/skillmap/racer/racer3.gif +0 -0
  120. package/docs/static/skillmap/rockstar/rockstar1.gif +0 -0
  121. package/docs/static/skillmap/rockstar/rockstar2.gif +0 -0
  122. package/docs/static/skillmap/rockstar/rockstar3.gif +0 -0
  123. package/docs/static/skillmap/shark/shark1-simple.gif +0 -0
  124. package/docs/static/skillmap/shark/shark4a-simple.gif +0 -0
  125. package/docs/static/skillmap/zoo/overlaps-food-sprite.gif +0 -0
  126. package/docs/tutorials/hundred.md +400 -0
  127. package/package.json +1 -1
  128. package/pxtarget.json +2 -1
  129. package/targetconfig.json +4 -1
  130. package/docs/recipes/wonder-woman-1984/01-maze.md +0 -291
  131. package/docs/recipes/wonder-woman-1984/02-artifact.md +0 -70
  132. package/docs/recipes/wonder-woman-1984/03-enemies.md +0 -65
  133. package/docs/skillmap/forest/forest9.md +0 -714
  134. package/docs/static/hour-of-code/ww-maze.png +0 -0
  135. package/docs/static/recipes/wonder-woman-1984/artifact-preview.png +0 -0
  136. package/docs/static/recipes/wonder-woman-1984/artifacts-location.gif +0 -0
  137. package/docs/static/recipes/wonder-woman-1984/draw-maze-backup.png +0 -0
  138. package/docs/static/recipes/wonder-woman-1984/draw-walls-backup.png +0 -0
  139. package/docs/static/recipes/wonder-woman-1984/end-position.png +0 -0
  140. package/docs/static/recipes/wonder-woman-1984/enemies-location.gif +0 -0
  141. package/docs/static/recipes/wonder-woman-1984/enemies-preview.png +0 -0
  142. package/docs/static/recipes/wonder-woman-1984/fill-maze.gif +0 -0
  143. package/docs/static/recipes/wonder-woman-1984/fill-walls.gif +0 -0
  144. package/docs/static/recipes/wonder-woman-1984/wonder-woman3.png +0 -0
  145. package/docs/static/recipes/wonder-woman-1984/ww-splash3.gif +0 -0
  146. package/docs/static/recipes/wonder-woman-1984/ww-splash3.mp4 +0 -0
  147. package/docs/static/ww84-background.png +0 -0
  148. package/docs/static/ww84-header.png +0 -0
  149. package/docs/ww84.html +0 -276
@@ -1,291 +0,0 @@
1
- # WW84: Chaos Maze
2
-
3
- ## {Introduction @unplugged}
4
-
5
- ![Game animation!](/static/recipes/wonder-woman-1984/ww-splash3.gif)
6
-
7
- Hey, let's make a game where Wonder Woman must find the way out of a tricky maze! In that maze, she can collect
8
- artifacts to gain points, but also needs to avoid her enemies that will steal points.
9
-
10
- ## {Step 1 : Make Wonder Woman @fullscreen}
11
-
12
- Open the ``||sprites:Sprites||`` Toolbox drawer and grab the ``||variables:set mySprite to||`` block. Drop this block in the ``||loops:on start||`` block.
13
- In the ``||variables:set mySprite to||`` block, click the grey box and draw Wonder Woman!
14
- **Tip: draw Wonder Woman small enough to fit through the pathway!**
15
-
16
- ```blocks
17
- let mySprite = sprites.create(img`
18
- . . . . . . . . . . . . . . . .
19
- . . . . . . f f f . . . . . . .
20
- . . . . f f f 5 f f f . . . . .
21
- . . . . f f 5 2 5 f f . . . . .
22
- . . . f f 2 2 2 2 2 f f . . . .
23
- . . . f f d d d d d f f . . . .
24
- . . f f f d e d e d f f f . . .
25
- . . f f f d d d d d f f f . . .
26
- . f f f f f d d d f f f f f . .
27
- . f f f f d 2 2 2 d f f f f . .
28
- . f f . . 5 2 5 2 5 . . f f . .
29
- . . . . . d 8 8 8 d . . . . . .
30
- . . . . . . 8 8 8 . . . . . . .
31
- . . . . . . d . d . . . . . . .
32
- . . . . . . 2 . 2 . . . . . . .
33
- . . . . . . . . . . . . . . . .
34
- `, SpriteKind.Player)
35
- ```
36
-
37
- ![WW](/static/recipes/wonder-woman-1984/wonder-woman3.png)
38
-
39
- ## {Step 2 : Let's make Wonder Woman move!}
40
-
41
- In the ``||controller:controller||`` drawer grab the ``||controller:move mySprite with buttons||`` block.
42
- This block will let you control Wonder Woman with the joystick or the arrow keys.
43
- Click on the **(+)** to change your speed. The **vx** and **vy** boxes represent her horizontal and vertical speed.
44
- Set them both to `150`! Now try moving Wonder Woman around the screen.
45
-
46
- ```blocks
47
- let mySprite = sprites.create(img`
48
- . . . . . . . . . . . . . . . .
49
- . . . . . . f f f . . . . . . .
50
- . . . . f f f 5 f f f . . . . .
51
- . . . . f f 5 2 5 f f . . . . .
52
- . . . f f 2 2 2 2 2 f f . . . .
53
- . . . f f d d d d d f f . . . .
54
- . . f f f d e d e d f f f . . .
55
- . . f f f d d d d d f f f . . .
56
- . f f f f f d d d f f f f f . .
57
- . f f f f d 2 2 2 d f f f f . .
58
- . f f . . 5 2 5 2 5 . . f f . .
59
- . . . . . d 8 8 8 d . . . . . .
60
- . . . . . . 8 8 8 . . . . . . .
61
- . . . . . . d . d . . . . . . .
62
- . . . . . . 2 . 2 . . . . . . .
63
- . . . . . . . . . . . . . . . .
64
- `, SpriteKind.Player)
65
- controller.moveSprite(mySprite, 150, 150)
66
- ```
67
-
68
- ## {Step 3 : Choose background color}
69
-
70
- From the ``||scene:Scene||`` Toolbox drawer, get the ``||scene:set background color||`` block and drop it into the ``||loops:on start||`` block. Click on the grey oval to choose a color. This will end up being the color of the pathway in the maze.
71
-
72
- ```blocks
73
- let mySprite = sprites.create(img`
74
- . . . . . . . . . . . . . . . .
75
- . . . . . . f f f . . . . . . .
76
- . . . . f f f 5 f f f . . . . .
77
- . . . . f f 5 2 5 f f . . . . .
78
- . . . f f 2 2 2 2 2 f f . . . .
79
- . . . f f d d d d d f f . . . .
80
- . . f f f d e d e d f f f . . .
81
- . . f f f d d d d d f f f . . .
82
- . f f f f f d d d f f f f f . .
83
- . f f f f d 2 2 2 d f f f f . .
84
- . f f . . 5 2 5 2 5 . . f f . .
85
- . . . . . d 8 8 8 d . . . . . .
86
- . . . . . . 8 8 8 . . . . . . .
87
- . . . . . . d . d . . . . . . .
88
- . . . . . . 2 . 2 . . . . . . .
89
- . . . . . . . . . . . . . . . .
90
- `, SpriteKind.Player)
91
- controller.moveSprite(mySprite, 150, 150)
92
- scene.setBackgroundColor(11)
93
- ```
94
-
95
- ## {Step 4 : Create tilemap}
96
-
97
- From the ``||scene:Scene||`` Toolbox drawer, drag and drop a ``||scene:set tilemap||`` block. Go to the next step in this tutorial to learn how to draw your maze.
98
-
99
- ```blocks
100
- let mySprite = sprites.create(img`
101
- . . . . . . . . . . . . . . . .
102
- . . . . . . f f f . . . . . . .
103
- . . . . f f f 5 f f f . . . . .
104
- . . . . f f 5 2 5 f f . . . . .
105
- . . . f f 2 2 2 2 2 f f . . . .
106
- . . . f f d d d d d f f . . . .
107
- . . f f f d e d e d f f f . . .
108
- . . f f f d d d d d f f f . . .
109
- . f f f f f d d d f f f f f . .
110
- . f f f f d 2 2 2 d f f f f . .
111
- . f f . . 5 2 5 2 5 . . f f . .
112
- . . . . . d 8 8 8 d . . . . . .
113
- . . . . . . 8 8 8 . . . . . . .
114
- . . . . . . d . d . . . . . . .
115
- . . . . . . 2 . 2 . . . . . . .
116
- . . . . . . . . . . . . . . . .
117
- `, SpriteKind.Player)
118
- controller.moveSprite(mySprite, 150, 150)
119
- scene.setBackgroundColor(11)
120
- tiles.setTilemap(tilemap`level`)
121
- ```
122
-
123
- ## {Now draw your maze @unplugged}
124
-
125
- This is how you will draw your maze in the next step. First fill in the canvas with a tile, then use the **Eraser** tool to draw the path for your maze.
126
-
127
- ![Draw Maze gif!](/static/recipes/wonder-woman-1984/fill-maze.gif)
128
-
129
- ## {Step 5 : Draw your maze}
130
-
131
- In the ``||scene:set tilemap||`` block, click on the grey box to choose a color or tile for the walls of your maze, then use the bucket **Fill** tool to fill in the entire canvas with the tile you selected.
132
- Next, use the **Erasor** tool to draw the path for the maze.
133
-
134
- ![Draw Maze!](/static/recipes/wonder-woman-1984/draw-maze-backup.png)
135
-
136
- ## {Now draw the walls of your maze @unplugged}
137
-
138
- Now, outline the walls of the maze with a **Wall** creation tool.
139
-
140
- ![Draw Walls gif!](/static/recipes/wonder-woman-1984/fill-walls.gif)
141
-
142
- ## {Step 6 : Create the maze walls}
143
-
144
- Now that we know what the maze looks like, we need to show the program where the walls of the maze are.
145
- In the Tilemap Editor, click on the red Wall icon, then draw the walls around your Maze path.
146
- Using this tool highlight all the walls that Wonder Woman should **NOT** be able to walk through.
147
-
148
- ![Draw Walls](/static/recipes/wonder-woman-1984/draw-walls-backup.png)
149
-
150
- ## {Step 7 : Create a Starting Position for Wonder Woman}
151
-
152
- In the Tilemap Editor, choose a new tile from the Gallery to be the start location for Wonder Woman. Place it at the beginning of the maze.
153
- Get the ``||scene:place mySprite on top of random||`` block and put it in the ``||loops:on start||`` block. Click on the checkered box and select the Start tile that you chose earlier.
154
- Wonder Woman should now start at this location when you play the game.
155
-
156
- ```blocks
157
- let mySprite = sprites.create(img`
158
- . . . . . . . . . . . . . . . .
159
- . . . . . . f f f . . . . . . .
160
- . . . . f f f 5 f f f . . . . .
161
- . . . . f f 5 2 5 f f . . . . .
162
- . . . f f 2 2 2 2 2 f f . . . .
163
- . . . f f d d d d d f f . . . .
164
- . . f f f d e d e d f f f . . .
165
- . . f f f d d d d d f f f . . .
166
- . f f f f f d d d f f f f f . .
167
- . f f f f d 2 2 2 d f f f f . .
168
- . f f . . 5 2 5 2 5 . . f f . .
169
- . . . . . d 8 8 8 d . . . . . .
170
- . . . . . . 8 8 8 . . . . . . .
171
- . . . . . . d . d . . . . . . .
172
- . . . . . . 2 . 2 . . . . . . .
173
- . . . . . . . . . . . . . . . .
174
- `, SpriteKind.Player)
175
- controller.moveSprite(mySprite, 150, 150)
176
- scene.setBackgroundColor(11)
177
- tiles.setTilemap(tilemap`level`)
178
- tiles.placeOnRandomTile(mySprite, sprites.dungeon.stairWest)
179
- ```
180
-
181
- ## {Step 8 : Follow the Sprite}
182
-
183
- Get the ``||scene:camera follow sprite||`` block and add it in the ``||loops:on start||`` block. This makes it so that Wonder Woman will always be on the screen.
184
-
185
- ```blocks
186
- let mySprite = sprites.create(img`
187
- . . . . . . . . . . . . . . . .
188
- . . . . . . f f f . . . . . . .
189
- . . . . f f f 5 f f f . . . . .
190
- . . . . f f 5 2 5 f f . . . . .
191
- . . . f f 2 2 2 2 2 f f . . . .
192
- . . . f f d d d d d f f . . . .
193
- . . f f f d e d e d f f f . . .
194
- . . f f f d d d d d f f f . . .
195
- . f f f f f d d d f f f f f . .
196
- . f f f f d 2 2 2 d f f f f . .
197
- . f f . . 5 2 5 2 5 . . f f . .
198
- . . . . . d 8 8 8 d . . . . . .
199
- . . . . . . 8 8 8 . . . . . . .
200
- . . . . . . d . d . . . . . . .
201
- . . . . . . 2 . 2 . . . . . . .
202
- . . . . . . . . . . . . . . . .
203
- `, SpriteKind.Player)
204
- controller.moveSprite(mySprite, 150, 150)
205
- scene.setBackgroundColor(11)
206
- tiles.setTilemap(tilemap`level`)
207
- tiles.placeOnRandomTile(mySprite, sprites.dungeon.stairWest)
208
- scene.cameraFollowSprite(mySprite)
209
- ```
210
-
211
- ## {Step 9 : Create End Position }
212
-
213
- Go back to your tilemap and choose a new tile from the Gallery to be the end location of the maze. Place it where you want the end of the maze to be.
214
-
215
- ![End Position](/static/recipes/wonder-woman-1984/end-position.png)
216
-
217
- ## {Step 10 : Allow Wonder Woman to win the game}
218
-
219
- Now, drag a ``||scene:on sprite of kind overlaps||`` block into the workspace. This will **NOT** go into the ``||loops:on start||`` block.
220
- Click on the checkered tile and select the End tile that you chose.
221
- Get a ``||game:game over||`` block and put it inside the ``||scene:on sprite of kind overlaps||`` block. Switch to **WIN** .
222
-
223
- Now, when Wonder Woman overlaps this tile, she'll get out of the maze and win the game!
224
-
225
- ```blocks
226
- scene.onOverlapTile(SpriteKind.Player, sprites.dungeon.stairLarge, function (sprite, location) {
227
- game.over(true)
228
- })
229
- ```
230
-
231
- ## {Step 11 : Finally, add a countdown timer!}
232
-
233
- Now let's add a timer to make the maze a bit harder! Get a ``||info:start countdown||`` block and put it inside the ``||loops:on start||`` block. Change the amount of time to `20` seconds.
234
-
235
- ```blocks
236
- let mySprite = sprites.create(img`
237
- . . . . . . . . . . . . . . . .
238
- . . . . . . f f f . . . . . . .
239
- . . . . f f f 5 f f f . . . . .
240
- . . . . f f 5 2 5 f f . . . . .
241
- . . . f f 2 2 2 2 2 f f . . . .
242
- . . . f f d d d d d f f . . . .
243
- . . f f f d e d e d f f f . . .
244
- . . f f f d d d d d f f f . . .
245
- . f f f f f d d d f f f f f . .
246
- . f f f f d 2 2 2 d f f f f . .
247
- . f f . . 5 2 5 2 5 . . f f . .
248
- . . . . . d 8 8 8 d . . . . . .
249
- . . . . . . 8 8 8 . . . . . . .
250
- . . . . . . d . d . . . . . . .
251
- . . . . . . 2 . 2 . . . . . . .
252
- . . . . . . . . . . . . . . . .
253
- `, SpriteKind.Player)
254
- controller.moveSprite(mySprite, 150, 150)
255
- scene.setBackgroundColor(11)
256
- tiles.setTilemap(tilemap`level`)
257
- tiles.placeOnRandomTile(mySprite, sprites.dungeon.stairWest)
258
- scene.cameraFollowSprite(mySprite)
259
- info.startCountdown(20)
260
- ```
261
-
262
- ## {Finish current tutorial or add artifacts @fullscreen}
263
-
264
- Congratulations on completing your Chaos Maze inspired by WONDER WOMAN 1984! Click on [**this link**](#recipe:/recipes/wonder-woman-1984/02-artifact) to move to the next tutorial where you can add items for Wonder Woman to collect! Otherwise, click the **Done** button.
265
-
266
- ![Add Artifacts](/static/recipes/wonder-woman-1984/artifact-preview.png)
267
-
268
- ```jres
269
- {
270
- "transparency16": {
271
- "data": "hwQQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
272
- "mimeType": "image/x-mkcd-f4",
273
- "tilemapTile": true
274
- },
275
- "level": {
276
- "id": "level",
277
- "mimeType": "application/mkcd-tilemap",
278
- "data": "MTAxMDAwMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMA==",
279
- "tileset": [
280
- "myTiles.transparency16",
281
- "sprites.dungeon.stairWest",
282
- "sprites.dungeon.stairLarge"
283
- ]
284
- },
285
- "*": {
286
- "mimeType": "image/x-mkcd-f4",
287
- "dataEncoding": "base64",
288
- "namespace": "myTiles"
289
- }
290
- }
291
- ```
@@ -1,70 +0,0 @@
1
- # WW84: Add Items to Collect
2
-
3
- ## {Intro @unplugged}
4
-
5
- Now let's add some artifacts that Wonder Woman can collect for points!
6
-
7
- ![Artifacts!](/static/recipes/wonder-woman-1984/artifact-preview.png)
8
-
9
- ## {Step 1 : Make an artifact}
10
-
11
- Go to the Tilemap Editor and click on **My Tiles**. Click on the **(+)** icon to create a new tile where you can draw the artifact you want Wonder Woman to collect. It could be her golden lasso, a coin, or anything else Wonder Woman might need. Place this artifact tile on your maze in all the places you want it to appear.
12
-
13
- ![Artifacts!](/static/recipes/wonder-woman-1984/artifact-preview.png)
14
-
15
- ## {Step 2 : Select the artifacts}
16
-
17
- From the ``||scene:Scene||`` Toolbox drawer, get the on ``||scene:sprite of kind overlaps||`` block and drop onto the Workspace. Click on the checkered square and select the artifact you just made.
18
-
19
- ```blocks
20
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
21
-
22
- })
23
- ```
24
-
25
- ## {Step 3 : Earn points when items are collected}
26
-
27
- First, we need to create a score tracker for the game.
28
- Get the ``||info:set score to||`` block at put it in the ``||loops:on start||`` block.
29
- Now when you start the game, your score will be set to `0`.
30
-
31
- Next, get the ``||info:change score by||`` block and put it in the ``||scene:on sprite of kind overlaps||`` artifact block you added in the previous step.
32
- This means that when Wonder Woman overlaps with the item, 1 point will be added to the score.
33
-
34
- ```blocks
35
- info.setScore(0)
36
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
37
- info.changeScoreBy(1)
38
- })
39
- ```
40
-
41
- ## {Step 4 : Add a sound when items are collected}
42
-
43
- From the ``||music:Music||`` Toolbox drawer, drag the ``||music:play sound||`` block into the ``||scene:on sprite of kind overlaps||`` artifact block. Then in the ``||music:play sound||`` block, click on the drop-down menu to select the sound you want to hear when Wonder Woman picks up the artifact.
44
-
45
- ```blocks
46
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
47
- info.changeScoreBy(1)
48
- music.baDing.play()
49
- })
50
- ```
51
-
52
- ## {Step 5 : Make the item disappear when collected}
53
-
54
- Now we need to delete the artifact when Wonder Woman picks it up. From the ``||scene:Scene||`` Toolbox drawer, drag a ``||scene:set at tilemap||`` block and drop it into the ``||scene:on sprite of kind overlaps||`` artifact block after the ``||music:play sound||`` block. Then from the ``||scene:on sprite of kind overlaps||`` block, drag the ``||variables:location||`` block into the ``||scene:set at tilemap||`` block replacing the ``||scene:tilemap col row||`` block.
55
-
56
- ```blocks
57
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
58
- info.changeScoreBy(1)
59
- music.baDing.play()
60
- tiles.setTileAt(location, myTiles.null)
61
- })
62
- ```
63
-
64
- ![Drag Location](/static/recipes/wonder-woman-1984/artifacts-location.gif)
65
-
66
- ## {Step 6 @fullscreen}
67
-
68
- Repeat these steps to add more artifacts for Wonder Woman to collect in her Maze. When you're ready to move on to the next tutorial, click [**this link**](#recipe:/recipes/wonder-woman-1984/03-enemies) to add enemies to your maze! Otherwise, click **Done**."
69
-
70
- ![Enemies!](/static/recipes/wonder-woman-1984/enemies-preview.png)
@@ -1,65 +0,0 @@
1
- # WW84: Add Enemies
2
-
3
- ## {Intro @unplugged}
4
-
5
- Now let's add some of Wonder Woman's biggest enemies to the maze!
6
-
7
- ![Enemies!](/static/recipes/wonder-woman-1984/enemies-preview.png)
8
-
9
- ## {Step 1 : Create your villain}
10
-
11
- Go to the Tilemap Editor and click on **My Tiles**. Click on the **(+)** icon to create a new tile where you can draw one of Wonder Woman's enemies - for example, **Cheetah**.
12
- Then place this enemy tile on your maze in all the places you want it to appear.
13
-
14
- ![Enemies!](/static/recipes/wonder-woman-1984/enemies-preview.png)
15
-
16
- ## {Step 2 : Place your artifacts}
17
-
18
- From the ``||scene:Scene||`` Toolbox drawer, get the ``||scene: on sprite of kind overlaps||`` block and drop onto the Workspace. Click on the checkered square and select the enemy you just made.
19
-
20
- ```blocks
21
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
22
-
23
- })
24
- ```
25
-
26
- ## {Step 3 : Lose points when Wonder Woman runs into enemies}
27
-
28
- Now, let's make Wonder Woman lose points when she runs into an enemy.
29
-
30
- From the ``||info:Info||`` Toolbox drawer, drag a ``||info:change score by||`` block and drop it into the ``||scene: on sprite of kind overlaps||`` enemy block you just created. In the ``||info:change score by||`` block, type `-1` as the value to change the score by. Now when Wonder Woman overlaps with an enemy, she will lose one point.
31
-
32
- ```blocks
33
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
34
- info.changeScoreBy(-1)
35
- })
36
- ```
37
-
38
- ## {Step 4 : Add a sound when for the enemy}
39
-
40
- From the ``||music:Music||`` Toolbox drawer, drag the ``||music:play sound||`` block into the ``||scene:on sprite of kind overlaps||`` enemy block. Then in the ``||music:play sound||`` block, click on the drop-down menu to select the sound you want to hear when Wonder Woman runs into an enemy.
41
-
42
- ```blocks
43
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
44
- info.changeScoreBy(1)
45
- music.baDing.play()
46
- })
47
- ```
48
-
49
- ## {Step 5 : Make enemies disappear}
50
-
51
- Now we need to destroy the enemy when Wonder Woman overlaps with it. From the ``||scene:Scene||`` Toolbox drawer, drag a ``||scene:set at tilemap||`` block and drop it into the ``||scene:on sprite of kind overlaps||`` enemy block after the ``||music: play sound||`` block. Then from the ``||scene:on sprite of kind overlaps||`` block, drag the ``||variables:location||`` block into the ``||scene:set at tilemap||`` block replacing the ``||scene:tilemap col row||`` block.
52
-
53
- ```blocks
54
- scene.onOverlapTile(SpriteKind.Player, myTiles.null, function (sprite, location) {
55
- info.changeScoreBy(1)
56
- music.baDing.play()
57
- tiles.setTileAt(location, myTiles.null)
58
- })
59
- ```
60
-
61
- ![Drag Location](/static/recipes/wonder-woman-1984/enemies-location.gif)
62
-
63
- ## {Step 6 Add more enemies}
64
-
65
- Repeat these steps to add more enemies for Wonder Woman to avoid in her Maze. When you're done, click **Done** to play and share your Wonder Woman Chaos Maze with friends! Congratulations!