pxt-arcade 1.7.3 → 1.7.7
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 -0
- package/built/common-sim.js +4 -0
- package/built/target.js +1788 -236
- package/built/target.json +1788 -236
- package/built/targetlight.json +5 -5
- package/built/theme.json +3 -2
- package/docs/gamejam/global-2021.html +459 -0
- package/docs/hour-of-code/all.md +27 -0
- package/docs/hour-of-code/{educators.html → educators-2020.html} +25 -25
- package/docs/hour-of-code/educators-2021.html +625 -0
- package/docs/{hour-of-code.html → hour-of-code-2020.html} +37 -37
- package/docs/hour-of-code-2021.html +438 -183
- package/docs/hour-of-code-ref.json +3 -0
- package/docs/index-ref.json +1 -1
- package/docs/multipart-tutorials.md +0 -8
- package/docs/projects/SUMMARY.md +3 -2
- package/docs/recipes.md +0 -7
- package/docs/skillmap/clicker/clicker1.md +7 -7
- package/docs/skillmap/clicker/clicker2.md +9 -9
- package/docs/skillmap/clicker/clicker3.md +8 -8
- package/docs/skillmap/clicker/clicker4.md +8 -8
- package/docs/skillmap/clicker/clicker4a.md +7 -7
- package/docs/skillmap/clicker/clicker5.md +3 -3
- package/docs/skillmap/clicker-themed/clickert1.md +66 -38
- package/docs/skillmap/clicker-themed/clickert2.md +77 -58
- package/docs/skillmap/clicker-themed/clickert3.md +75 -55
- package/docs/skillmap/clicker-themed/clickert4.md +105 -118
- package/docs/skillmap/collector/collector1.md +11 -11
- package/docs/skillmap/collector/collector1a.md +8 -8
- package/docs/skillmap/collector/collector2.md +8 -8
- package/docs/skillmap/collector/collector3.md +8 -8
- package/docs/skillmap/collector/collector3a.md +7 -7
- package/docs/skillmap/collector/collector4.md +8 -8
- package/docs/skillmap/collector/collector5.md +2 -2
- package/docs/skillmap/collector-themed/collectort1.md +107 -88
- package/docs/skillmap/collector-themed/collectort2.md +109 -87
- package/docs/skillmap/collector-themed/collectort3.md +138 -115
- package/docs/skillmap/collector-themed/collectort4.md +130 -118
- package/docs/skillmap/collector-themed/collectort4old.md +23 -23
- package/docs/skillmap/collector-themed/collectort5.md +2 -2
- package/docs/skillmap/educator-info/forest-map-info.md +34 -25
- package/docs/skillmap/educator-info/pongo-map-info.md +55 -0
- package/docs/skillmap/educator-info/racer-map-info.md +105 -0
- package/docs/skillmap/educator-info/rockstar-map-info.md +1 -1
- package/docs/skillmap/educator-info/simple-shark-map-info.md +101 -0
- package/docs/skillmap/forest/forest1.md +1 -69
- package/docs/skillmap/forest/forest2.md +5 -65
- package/docs/skillmap/forest/forest3.md +1 -174
- package/docs/skillmap/forest/forest4.md +2 -336
- package/docs/skillmap/forest/forest5.md +1 -396
- package/docs/skillmap/forest/forest6.md +6 -372
- package/docs/skillmap/forest-old.md +92 -0
- package/docs/skillmap/forest.md +9 -9
- package/docs/skillmap/forest_new/forest1.md +191 -0
- package/docs/skillmap/forest_new/forest2.md +217 -0
- package/docs/skillmap/forest_new/forest3.md +333 -0
- package/docs/skillmap/forest_new/forest4.md +196 -0
- package/docs/skillmap/forest_new/forest5.md +291 -0
- package/docs/skillmap/forest_new/forest6.md +272 -0
- package/docs/skillmap/interface/activity1.md +41 -49
- package/docs/skillmap/jungle/jungle1.md +48 -28
- package/docs/skillmap/jungle/jungle2.md +50 -26
- package/docs/skillmap/jungle/jungle3.md +48 -27
- package/docs/skillmap/jungle/jungle4.md +76 -58
- package/docs/skillmap/jungle/jungle5.md +31 -25
- package/docs/skillmap/jungle/jungle6.md +34 -28
- package/docs/skillmap/jungle/jungle7.md +36 -24
- package/docs/skillmap/jungle/jungle8.md +27 -25
- package/docs/skillmap/jungle.md +7 -3
- package/docs/skillmap/long-shark.md +119 -0
- package/docs/skillmap/pongo/pongo1.md +256 -0
- package/docs/skillmap/pongo/pongo2.md +179 -0
- package/docs/skillmap/pongo/pongo3.md +177 -0
- package/docs/skillmap/pongo.md +59 -0
- package/docs/skillmap/racer.md +7 -7
- package/docs/skillmap/rockstar/rockstar1.md +32 -41
- package/docs/skillmap/rockstar/rockstar2.md +45 -27
- package/docs/skillmap/rockstar/rockstar3.md +45 -27
- package/docs/skillmap/rockstar.md +3 -1
- package/docs/skillmap/shark/shark1-simple.md +151 -0
- package/docs/skillmap/shark/shark2-simple.md +203 -0
- package/docs/skillmap/shark/shark3-simple.md +204 -0
- package/docs/skillmap/shark/shark4-simple.md +246 -0
- package/docs/skillmap/shark/shark4a-simple.md +244 -0
- package/docs/skillmap/shark.md +25 -58
- package/docs/skillmap/space/space1.md +63 -29
- package/docs/skillmap/space/space2.md +34 -25
- package/docs/skillmap/space/space3.md +86 -69
- package/docs/skillmap/space/space4.md +96 -65
- package/docs/skillmap/space/space4a.md +34 -25
- package/docs/skillmap/space/space5.md +81 -45
- package/docs/skillmap/space/space6.md +59 -81
- package/docs/skillmap/space.md +8 -5
- package/docs/skillmap/story/card.md +6 -6
- package/docs/skillmap/story/card2.md +6 -6
- package/docs/skillmap/story/story1.md +60 -175
- package/docs/skillmap/story/story2.md +89 -327
- package/docs/skillmap/story/story3.md +238 -228
- package/docs/skillmap/story/story4.md +23 -23
- package/docs/skillmap/zoo/zoo1.md +31 -16
- package/docs/skillmap/zoo/zoo2.md +45 -30
- package/docs/skillmap/zoo/zoo2a.md +51 -36
- package/docs/skillmap/zoo/zoo3.md +8 -7
- package/docs/skillmap/zoo/zoo4.md +61 -32
- package/docs/skillmap/zoo/zoo5.md +41 -31
- package/docs/skillmap/zoo.md +2 -2
- package/docs/skillmaps.md +20 -4
- package/docs/static/experiments/accessibleblocks.png +0 -0
- package/docs/static/experiments/blockserrorlist.png +0 -0
- package/docs/static/gamejam/jams/global-2021/assets/banner.png +0 -0
- package/docs/static/gamejam/jams/global-2021/info.json +10 -0
- package/docs/static/gamejam/jams/global-2021/rules.md +22 -0
- package/docs/static/gamejam/jams/global-2021/style.css +141 -0
- package/docs/static/gamejam/lib/gamejam.d.ts +1 -0
- package/docs/static/gamejam/lib/gamejam.js +34 -24
- package/docs/static/gamejam/lib/gamejam.ts +35 -24
- package/docs/static/hero-gallery/stream.png +0 -0
- package/docs/static/hour-of-code/{apple.png → 2020/apple.png} +0 -0
- package/docs/static/hour-of-code/{arcade.png → 2020/arcade.png} +0 -0
- package/docs/static/hour-of-code/{asphodel.png → 2020/asphodel.png} +0 -0
- package/docs/static/hour-of-code/{card.png → 2020/card.png} +0 -0
- package/docs/static/hour-of-code/{chase-the-pizza.png → 2020/chase-the-pizza.png} +0 -0
- package/docs/static/hour-of-code/{clovers.png → 2020/clovers.png} +0 -0
- package/docs/static/hour-of-code/{design.png → 2020/design.png} +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/asphodel-level1.png +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/asphodel-level4.png +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/asphodel-level6.png +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/asphodel-level7.png +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/asphodel-level9.png +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/clover-design.gif +0 -0
- package/docs/static/hour-of-code/{educators → 2020/educators}/shark-attack-tutorial.png +0 -0
- package/docs/static/hour-of-code/{galga.png → 2020/galga.png} +0 -0
- package/docs/static/hour-of-code/{lemon-leak.png → 2020/lemon-leak.png} +0 -0
- package/docs/static/hour-of-code/{micro-bit.png → 2020/micro-bit.png} +0 -0
- package/docs/static/hour-of-code/{minecraft.png → 2020/minecraft.png} +0 -0
- package/docs/static/hour-of-code/{nfl.png → 2020/nfl.png} +0 -0
- package/docs/static/hour-of-code/{ocean-jam.png → 2020/ocean-jam.png} +0 -0
- package/docs/static/hour-of-code/{pixel-background-primary.png → 2020/pixel-background-primary.png} +0 -0
- package/docs/static/hour-of-code/{pixel-background-secondary.png → 2020/pixel-background-secondary.png} +0 -0
- package/docs/static/hour-of-code/{shadowed-aside-frame.png → 2020/shadowed-aside-frame.png} +0 -0
- package/docs/static/hour-of-code/{shadowed-button-frame.png → 2020/shadowed-button-frame.png} +0 -0
- package/docs/static/hour-of-code/{shadowed-primary-frame.png → 2020/shadowed-primary-frame.png} +0 -0
- package/docs/static/hour-of-code/{shark-attack.png → 2020/shark-attack.png} +0 -0
- package/docs/static/hour-of-code/{simulator.gif → 2020/simulator.gif} +0 -0
- package/docs/static/hour-of-code/{simulator.png → 2020/simulator.png} +0 -0
- package/docs/static/hour-of-code/{styles.css → 2020/styles.css} +1 -1
- package/docs/static/hour-of-code/2021/Rowdies/OFL.txt +93 -0
- package/docs/static/hour-of-code/2021/Rowdies/Rowdies-Bold.ttf +0 -0
- package/docs/static/hour-of-code/2021/Rowdies/Rowdies-Regular.ttf +0 -0
- package/docs/static/hour-of-code/2021/beginner-skillmap.png +0 -0
- package/docs/static/hour-of-code/2021/favicon.png +0 -0
- package/docs/static/hour-of-code/2021/forest-skillmap-game.gif +0 -0
- package/docs/static/hour-of-code/2021/game-jam-hero.png +0 -0
- package/docs/static/hour-of-code/2021/hoc-2020.png +0 -0
- package/docs/static/hour-of-code/2021/hoc-card.png +0 -0
- package/docs/static/hour-of-code/2021/hoc-header-educators.png +0 -0
- package/docs/static/hour-of-code/2021/hoc-header-plane.gif +0 -0
- package/docs/static/hour-of-code/2021/hoc-header-scene.gif +0 -0
- package/docs/static/hour-of-code/2021/jungle-skillmap.png +0 -0
- package/docs/static/hour-of-code/2021/makecode-example.png +0 -0
- package/docs/static/hour-of-code/2021/microbit.png +0 -0
- package/docs/static/hour-of-code/2021/minecraft.png +0 -0
- package/docs/static/hour-of-code/2021/rockstar-skillmap.png +0 -0
- package/docs/static/hour-of-code/2021/styles.css +660 -62
- package/docs/static/logo.png +0 -0
- package/docs/static/skillmap/assets/my-assets-three.png +0 -0
- package/docs/static/skillmap/assets/sprite-from-container.gif +0 -0
- package/docs/static/skillmap/backgrounds/jungle-bg.png +0 -0
- package/docs/static/skillmap/backgrounds/jungle-map.png +0 -0
- package/docs/static/skillmap/backgrounds/rock-map.png +0 -0
- package/docs/static/skillmap/backgrounds/rockstar-card.gif +0 -0
- package/docs/static/skillmap/backgrounds/space-comp.png +0 -0
- package/docs/static/skillmap/backgrounds/space.png +0 -0
- package/docs/static/skillmap/certificates/forest-cert.pdf +0 -0
- package/docs/static/skillmap/certificates/forest-cert.png +0 -0
- package/docs/static/skillmap/certificates/jungle-cert.pdf +0 -0
- package/docs/static/skillmap/certificates/jungle-cert.png +0 -0
- package/docs/static/skillmap/certificates/rockstar-cert.pdf +0 -0
- package/docs/static/skillmap/certificates/rockstar-cert.png +0 -0
- package/docs/static/skillmap/certificates/shark-cert.pdf +0 -0
- package/docs/static/skillmap/certificates/shark-cert.png +0 -0
- package/docs/static/skillmap/certificates/space-cert.pdf +0 -0
- package/docs/static/skillmap/certificates/space-cert.png +0 -0
- package/docs/static/skillmap/pongo/pongo1.gif +0 -0
- package/docs/static/skillmap/pongo/pongo2gif +0 -0
- package/docs/static/skillmap/pongo/pongo3.gif +0 -0
- package/docs/static/skillmap/racer/racer1.gif +0 -0
- package/docs/static/skillmap/racer/racer2.gif +0 -0
- package/docs/static/skillmap/racer/racer3.gif +0 -0
- package/docs/static/skillmap/rockstar/rockstar1.gif +0 -0
- package/docs/static/skillmap/rockstar/rockstar2.gif +0 -0
- package/docs/static/skillmap/rockstar/rockstar3.gif +0 -0
- package/docs/static/skillmap/shark/shark1-simple.gif +0 -0
- package/docs/static/skillmap/shark/shark4a-simple.gif +0 -0
- package/docs/static/skillmap/zoo/overlaps-food-sprite.gif +0 -0
- package/docs/tutorials/barrel-dodger.md +4 -4
- package/docs/tutorials/collect-the-clovers.md +2 -2
- package/docs/tutorials/froggy.md +105 -90
- package/docs/tutorials/hundred.md +400 -0
- package/package.json +3 -3
- package/pxtarget.json +3 -2
- package/targetconfig.json +4 -1
- package/docs/recipes/wonder-woman-1984/01-maze.md +0 -291
- package/docs/recipes/wonder-woman-1984/02-artifact.md +0 -70
- package/docs/recipes/wonder-woman-1984/03-enemies.md +0 -65
- package/docs/skillmap/forest/forest9.md +0 -714
- package/docs/static/hour-of-code/2021/placeholder.png +0 -0
- package/docs/static/hour-of-code/ww-maze.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/artifact-preview.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/artifacts-location.gif +0 -0
- package/docs/static/recipes/wonder-woman-1984/draw-maze-backup.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/draw-walls-backup.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/end-position.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/enemies-location.gif +0 -0
- package/docs/static/recipes/wonder-woman-1984/enemies-preview.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/fill-maze.gif +0 -0
- package/docs/static/recipes/wonder-woman-1984/fill-walls.gif +0 -0
- package/docs/static/recipes/wonder-woman-1984/wonder-woman3.png +0 -0
- package/docs/static/recipes/wonder-woman-1984/ww-splash3.gif +0 -0
- package/docs/static/recipes/wonder-woman-1984/ww-splash3.mp4 +0 -0
- package/docs/static/ww84-background.png +0 -0
- package/docs/static/ww84-header.png +0 -0
- package/docs/ww84.html +0 -276
- package/sim/public/locales/zh-CN/bundled-strings.json +0 -1800
- package/sim/public/locales/zh-CN/target-strings.json +0 -13
- package/sim/public/locales/zh-TW/bundled-strings.json +0 -1903
- package/sim/public/locales/zh-TW/target-strings.json +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Get Your Gear
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Welcome @showdialog
|
|
@@ -12,19 +12,21 @@ Jerry needs to gather all of the instruments before getting on the tour bus!
|
|
|
12
12
|
|
|
13
13
|
## 2. Add Points
|
|
14
14
|
|
|
15
|
-
**🎸 Award points when Jerry grabs an instrument
|
|
15
|
+
**🎸 Award points when Jerry grabs an instrument**
|
|
16
16
|
When your sprite overlaps an instrument, we'll change the score.
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
- :
|
|
22
|
-
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
21
|
+
- :tree: To detect an overlap, drag an
|
|
22
|
+
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
23
23
|
container into an empty area of the workspace.
|
|
24
24
|
|
|
25
25
|
- :mouse pointer: Change the checkerboard to the red guitar called **instrument1**.
|
|
26
26
|
|
|
27
|
-
- :
|
|
27
|
+
- :id card: Snap a
|
|
28
|
+
``||info:change score by [1]||``
|
|
29
|
+
block into the new container.
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
```blocks
|
|
@@ -35,7 +37,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`instrument1`, function (sprit
|
|
|
35
37
|
|
|
36
38
|
## 3. Try It!
|
|
37
39
|
|
|
38
|
-
**🕹️ Try your maze and grab a guitar
|
|
40
|
+
**🕹️ Try your maze and grab a guitar**
|
|
39
41
|
|
|
40
42
|
---
|
|
41
43
|
|
|
@@ -44,13 +46,21 @@ Uh oh! You get WAY too many points when you touch the guitar! We can fix that i
|
|
|
44
46
|
|
|
45
47
|
## 4. Pick It Up
|
|
46
48
|
|
|
47
|
-
**Replace the instruments you collect with an empty tile.**
|
|
49
|
+
**Replace the instruments you collect with an empty tile.**
|
|
48
50
|
|
|
49
51
|
---
|
|
50
52
|
|
|
51
|
-
- :
|
|
53
|
+
- :tree: Drag
|
|
54
|
+
``||scene:set [ ] at tilemap col [0] row [0]||``
|
|
55
|
+
into **the top** of the
|
|
56
|
+
``||scene:on [sprite] of kind [Player] overlaps [instrument1] at [location]||``
|
|
57
|
+
container.
|
|
52
58
|
|
|
53
|
-
- :
|
|
59
|
+
- :mouse pointer: Replace
|
|
60
|
+
``||scene:tilemap col [0] row [0]||``
|
|
61
|
+
with the
|
|
62
|
+
``||variables:location||``
|
|
63
|
+
value from the top of the **Player overlaps instrument** container.
|
|
54
64
|
|
|
55
65
|

|
|
56
66
|
|
|
@@ -68,7 +78,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`instrument1`, function (sprit
|
|
|
68
78
|
|
|
69
79
|
## 5. Look Again
|
|
70
80
|
|
|
71
|
-
**🕹️ Try your maze in the game window
|
|
81
|
+
**🕹️ Try your maze in the game window**
|
|
72
82
|
|
|
73
83
|
---
|
|
74
84
|
|
|
@@ -77,21 +87,26 @@ You should get one point for every guitar you collect. What about the drums and
|
|
|
77
87
|
|
|
78
88
|
## 6. More Instruments
|
|
79
89
|
|
|
80
|
-
**🎹 Do it all again
|
|
81
|
-
Follow the same steps two more times to add points for the drums and keyboard tiles.
|
|
90
|
+
**🎹 Do it all again**
|
|
91
|
+
Follow the same steps two more times to add points for the **drums** and **keyboard** tiles.
|
|
82
92
|
|
|
83
93
|
---
|
|
84
94
|
|
|
85
|
-
- :
|
|
86
|
-
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
95
|
+
- :tree: Drag
|
|
96
|
+
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
87
97
|
into an empty area of the workspace and set the instrument.
|
|
88
98
|
|
|
89
|
-
- :
|
|
90
|
-
``||scene:
|
|
91
|
-
|
|
92
|
-
``||
|
|
99
|
+
- :tree: Drag
|
|
100
|
+
``||scene:set [ ] at tilemap col [0] row [0]||``
|
|
101
|
+
into **the top** of the
|
|
102
|
+
``||scene:on [sprite] of kind [Player] overlaps [instrument] at [location]||``
|
|
103
|
+
container and replace
|
|
104
|
+
``||scene:tilemap col [0] row [0]||``
|
|
105
|
+
with ``||variables:location||``.
|
|
93
106
|
|
|
94
|
-
- :
|
|
107
|
+
- :id card: Snap
|
|
108
|
+
``||info:change score by [1]||``
|
|
109
|
+
into the new container.
|
|
95
110
|
|
|
96
111
|
```blocks
|
|
97
112
|
scene.onOverlapTile(SpriteKind.Player, assets.tile`instrument0`, function (sprite, location) {
|
|
@@ -107,7 +122,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`instrument4`, function (sprit
|
|
|
107
122
|
|
|
108
123
|
## 7. Look Again...Again
|
|
109
124
|
|
|
110
|
-
**🕹️ Try your maze again
|
|
125
|
+
**🕹️ Try your maze again**
|
|
111
126
|
|
|
112
127
|
---
|
|
113
128
|
|
|
@@ -117,18 +132,20 @@ You should get one point for every instrument you collect! Can you make it to t
|
|
|
117
132
|
|
|
118
133
|
## 8. Out the Door
|
|
119
134
|
|
|
120
|
-
**🚪 Make it out the door
|
|
135
|
+
**🚪 Make it out the door**
|
|
121
136
|
Let's finish the game with a WIN when Jerry overlaps the exit door!
|
|
122
137
|
|
|
123
138
|
---
|
|
124
139
|
|
|
125
|
-
- :
|
|
126
|
-
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
140
|
+
- :tree: To detect an overlap, drag an
|
|
141
|
+
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
127
142
|
container into an empty area of the workspace.
|
|
128
143
|
|
|
129
144
|
- :mouse pointer: Change the checkerboard to red door tile named **exit**.
|
|
130
145
|
|
|
131
|
-
- :
|
|
146
|
+
- :circle: Snap a
|
|
147
|
+
``||game:game over <LOSE>||``
|
|
148
|
+
block into the new container.
|
|
132
149
|
|
|
133
150
|
- :mouse pointer: Toggle **`<LOSE>`** to **`<WIN>`**.
|
|
134
151
|
|
|
@@ -147,8 +164,9 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`exit`, function (sprite, loca
|
|
|
147
164
|
|
|
148
165
|
---
|
|
149
166
|
|
|
150
|
-
Grab your instruments and guide Jerry to the door, then click **Done** to head back to the
|
|
151
|
-
|
|
167
|
+
Grab your instruments and guide Jerry to the door, then click **Done** to head back to the skillmap.
|
|
168
|
+
|
|
169
|
+
In the next level we'll show you how to subtract points when Jerry runs into crazed fans!
|
|
152
170
|
|
|
153
171
|
|
|
154
172
|
```package
|
|
@@ -189,7 +207,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan1`, function (sprite, loca
|
|
|
189
207
|
let mySprite = sprites.create(assets.image`rockstar`, SpriteKind.Player)
|
|
190
208
|
controller.moveSprite(mySprite, 100, 100)
|
|
191
209
|
scene.cameraFollowSprite(mySprite)
|
|
192
|
-
tiles.placeOnRandomTile(mySprite,
|
|
210
|
+
tiles.placeOnRandomTile(mySprite, assets.tile`stage`)
|
|
193
211
|
info.startCountdown(60)
|
|
194
212
|
info.setScore(0)
|
|
195
213
|
```
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Avoid the Fans
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Welcome @showdialog
|
|
5
5
|
|
|
6
|
-
How did those fans get backstage?
|
|
6
|
+
How did those fans get backstage?
|
|
7
|
+
|
|
8
|
+
Keep the fans away from Jerry if you want to get the highest score.
|
|
7
9
|
|
|
8
10
|

|
|
9
11
|
|
|
@@ -12,15 +14,15 @@ How did those fans get backstage? Keep the fans away from Jerry if you want to
|
|
|
12
14
|
|
|
13
15
|
## 2. Spot the Fan
|
|
14
16
|
|
|
15
|
-
**📸 Remove points when Jerry runs into a screaming fan
|
|
17
|
+
**📸 Remove points when Jerry runs into a screaming fan**
|
|
16
18
|
|
|
17
19
|
When your sprite overlaps a fan, we'll change the score.
|
|
18
20
|
|
|
19
21
|
---
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
- :
|
|
23
|
-
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
24
|
+
- :tree: To detect an overlap, drag an
|
|
25
|
+
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
24
26
|
container into an empty area of the workspace.
|
|
25
27
|
|
|
26
28
|
- :mouse pointer: Change the checkerboard to the tile called **fan1**.
|
|
@@ -34,8 +36,9 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan1`, function (sprite, loca
|
|
|
34
36
|
## 3. Subtract Points
|
|
35
37
|
|
|
36
38
|
|
|
37
|
-
- :
|
|
38
|
-
|
|
39
|
+
- :id card: Snap a
|
|
40
|
+
``||info:change score by [1]||``
|
|
41
|
+
block into the new container.
|
|
39
42
|
|
|
40
43
|
- :mouse pointer: Change **1** to **-1**.
|
|
41
44
|
|
|
@@ -49,7 +52,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan1`, function (sprite, loca
|
|
|
49
52
|
|
|
50
53
|
## 4. Try It!
|
|
51
54
|
|
|
52
|
-
**🕹️ Try your maze and see what happens when you run into a fan
|
|
55
|
+
**🕹️ Try your maze and see what happens when you run into a fan**
|
|
53
56
|
|
|
54
57
|
---
|
|
55
58
|
|
|
@@ -58,14 +61,21 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan1`, function (sprite, loca
|
|
|
58
61
|
|
|
59
62
|
## 5. Fewer Fans
|
|
60
63
|
|
|
61
|
-
**Replace the fans with an empty tile.**
|
|
64
|
+
**Replace the fans with an empty tile.**
|
|
62
65
|
|
|
63
66
|
---
|
|
64
67
|
|
|
65
|
-
- :
|
|
68
|
+
- :tree: Drag
|
|
69
|
+
``||scene:set [ ] at tilemap col [0] row [0]||``
|
|
70
|
+
into **the top** of the
|
|
71
|
+
``||scene:on [sprite] of kind [Player] overlaps [fan1] at [location]||``
|
|
72
|
+
container.
|
|
66
73
|
|
|
67
|
-
- :
|
|
68
|
-
``||
|
|
74
|
+
- :mouse pointer: Replace
|
|
75
|
+
``||scene:tilemap col [0] row [0]||``
|
|
76
|
+
with the
|
|
77
|
+
``||variables:location||``
|
|
78
|
+
value from the top of the **Player overlaps fan** container.
|
|
69
79
|
|
|
70
80
|
|
|
71
81
|
```blocks
|
|
@@ -81,21 +91,24 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan1`, function (sprite, loca
|
|
|
81
91
|
|
|
82
92
|
## 6. More Fans
|
|
83
93
|
|
|
84
|
-
**🎤 Encore 🎤**
|
|
94
|
+
**🎤 Encore 🎤**
|
|
85
95
|
Follow the same steps two more times to include the other fans.
|
|
86
96
|
|
|
87
97
|
---
|
|
88
98
|
|
|
89
|
-
- :
|
|
90
|
-
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
99
|
+
- :tree: Drag
|
|
100
|
+
``||scene:on [sprite] of kind [Player] overlaps [ ] at [location]||``
|
|
91
101
|
into an empty area of the workspace and **set the fan tiles**.
|
|
92
102
|
|
|
93
|
-
- :
|
|
94
|
-
``||scene:
|
|
95
|
-
|
|
96
|
-
``||
|
|
103
|
+
- :tree: Drag
|
|
104
|
+
``||scene:set [ ] at tilemap col [0] row [0]||``
|
|
105
|
+
into
|
|
106
|
+
``||scene:on [sprite] of kind [Player] overlaps [fan] at [location]||``
|
|
107
|
+
and replace
|
|
108
|
+
``||scene:tilemap col [0] row [0]||``
|
|
109
|
+
with ``||variables:location||``.
|
|
97
110
|
|
|
98
|
-
- :
|
|
111
|
+
- :id card: Snap ``||info:change score by [1]||`` into the new container and change to **-1**.
|
|
99
112
|
|
|
100
113
|
```blocks
|
|
101
114
|
scene.onOverlapTile(SpriteKind.Player, assets.tile`fan2`, function (sprite, location) {
|
|
@@ -109,24 +122,29 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`fan3`, function (sprite, loca
|
|
|
109
122
|
```
|
|
110
123
|
|
|
111
124
|
|
|
112
|
-
##
|
|
125
|
+
## 7. Look Again
|
|
113
126
|
|
|
114
|
-
**🕹️ Try your maze in the game window
|
|
127
|
+
**🕹️ Try your maze in the game window**
|
|
115
128
|
|
|
116
129
|
---
|
|
117
130
|
|
|
118
131
|
You should lose one point for every fan you run into.
|
|
132
|
+
|
|
119
133
|
How many points can you keep on your way to the door?
|
|
120
134
|
|
|
121
135
|
|
|
122
|
-
##
|
|
136
|
+
## 8. Out of Time
|
|
123
137
|
|
|
124
|
-
**🕒 Make it out in time
|
|
138
|
+
**🕒 Make it out in time**
|
|
125
139
|
Let's use a timer to add some hustle to the whole experience!
|
|
126
140
|
|
|
127
141
|
---
|
|
128
142
|
|
|
129
|
-
- :
|
|
143
|
+
- :id card: Drag
|
|
144
|
+
``||info:start countdown [10] (s)||``
|
|
145
|
+
into **the end** of the
|
|
146
|
+
``||loops:on start||``
|
|
147
|
+
container.
|
|
130
148
|
|
|
131
149
|
- :mouse pointer: Change 10 to 30 to give yourself extra time.
|
|
132
150
|
|
|
@@ -136,7 +154,7 @@ tiles.setTilemap(tilemap`level1`)
|
|
|
136
154
|
let mySprite = sprites.create(assets.image`rockstar`, SpriteKind.Player)
|
|
137
155
|
controller.moveSprite(mySprite, 100, 100)
|
|
138
156
|
scene.cameraFollowSprite(mySprite)
|
|
139
|
-
tiles.placeOnRandomTile(mySprite,
|
|
157
|
+
tiles.placeOnRandomTile(mySprite, assets.tile`stage`)
|
|
140
158
|
//@highlight
|
|
141
159
|
info.startCountdown(30)
|
|
142
160
|
```
|
|
@@ -145,7 +163,7 @@ info.startCountdown(30)
|
|
|
145
163
|
|
|
146
164
|
## Finale
|
|
147
165
|
|
|
148
|
-
🔥 **Congratulations** 🔥
|
|
166
|
+
🔥 **Congratulations** 🔥
|
|
149
167
|
|
|
150
168
|
---
|
|
151
169
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# 80's Rockstar Maze!
|
|
2
2
|
* name: 80's Rockstar Maze!
|
|
3
3
|
* description: Create a fast-paced maze game by programming a rockstar to move through the crowded backstage area and collect all of their gear before they're mobbed by fans!
|
|
4
|
+
* infoUrl: skillmap/educator-info/rockstar-map-info
|
|
4
5
|
* backgroundurl: /static/skillmap/backgrounds/rockstar-comp.png
|
|
5
|
-
* bannerurl: /static/skillmap/rockstar/
|
|
6
|
+
* bannerurl: /static/skillmap/rockstar/rockstar2.gif
|
|
6
7
|
* primarycolor: #ff93c4
|
|
7
8
|
* secondarycolor: #fdf60c
|
|
8
9
|
* tertiarycolor: #161112
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
* kind: completion
|
|
50
51
|
* type: certificate
|
|
51
52
|
* url: /static/skillmap/certificates/rockstar-cert.pdf
|
|
53
|
+
* imageUrl: /static/skillmap/certificates/rockstar-cert.png
|
|
52
54
|
* position: 4 0
|
|
53
55
|
* actions:
|
|
54
56
|
* map: [Try Jungle Monkey Jump](/skillmap/jungle)
|