Skip to content

Commit

Permalink
Fix globetrotters and update Sparks
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-lee committed Sep 29, 2023
1 parent 6a990ea commit cacf987
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
14 changes: 11 additions & 3 deletions docs/skillmap/educator-info/spark-map-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The **Sparks Flying** skillmap introduces simple game design and computer scienc

In this set of activities, students will create a 5-level clicker game with MakeCode Arcade. This map is intended for students who are new to MakeCode with little or no previous coding experience.

* [See Teacher Lesson Plan](https://1drv.ms/w/s!AqsgsTyHBmRBoCHZ8rm2BKsISKS1?e=5xrAQl)
* [See Slides](https://1drv.ms/p/s!AqsgsTyHBmRBn2pQnnku4yb7iYfa?e=tsFXRo)
* [Visit Resources on OneDrive](https://1drv.ms/f/s!AqsgsTyHBmRBn2mMdQSkzSMTSCJg?e=pnPxYg)





Designed for students between the ages of 10 & 16, this experience contains a total of 3 tutorials (approximating 45 minutes of instruction). At the end of the learning path, students receive a certificate of completion and a badge.

| | Minutes* | Key Concepts |
Expand Down Expand Up @@ -49,16 +57,16 @@ After completing Sparks Flying, students will have gained exposure to all the el
| Activity | Pile of Sticks (18 min) |
|---|---|
| ![Pile of Sticks thumbnail](/static/skillmap/sparks/sparks1.gif) | Learn to use MakeCode Arcade and add fire pit sprite to your project. |
| Blocks used | ``[scene.setBackgroundImage(img`.`)]`` <br/> ``[let kindling = sprites.create(img`.`, SpriteKind.Player)]`` <br/> ``[controller.A.onEvent(ControllerButtonEvent.Pressed, function () {})]`` <br/> ``[info.changeScoreBy(1)]`` <br/> ``[let kindling: Sprite = null; kindling.startEffect(effects.fire, 25)]``|
| Solution option | [Pile of Sticks Project](https://makecode.com/_JM0UJi1ojWed) |
| Blocks used | ``[scene.setBackgroundImage(img`.`)]`` <br/> ``[let kindling = sprites.create(img`.`, SpriteKind.Player)]`` <br/> ``[controller.A.onEvent(ControllerButtonEvent.Pressed, function () {})]`` <br/> ``[info.changeScoreBy(1)]`` <br/> ``[let kindling: Sprite = null; kindling.startEffect(effects.fire, 500)]``|
| Solution option | [Pile of Sticks Project](https://makecode.com/_PXrdTU93ig45) |

#### 2. Win Some, Lose Some

| Activity | Win Some, Lose Some (12 min) |
|---|---|
| ![Win Some, Lose Some thumbnail](/static/skillmap/sparks/sparks2.gif) | Add win and loss conditions to your game using events. |
| Blocks used | <br/> ``[game.onUpdateInterval(1000, function () {}]`` <br/>``[info.changeScoreBy(1)]`` <br/> ``[info.onScore(30, function () {})]`` <br/> ``[game.setGameOverScoringType(game.ScoringType.LowScore) ]`` <br/> ``[info.setScore(0)]`` <br/> ``[game.gameOver(true)]``|
| Solution option | [Win Some, Lose Some Project](https://makecode.com/_RioVF8L3HbtA) |
| Solution option | [Win Some, Lose Some Project](https://makecode.com/_KkM6gg0fEevk) |


<!--
Expand Down
6 changes: 2 additions & 4 deletions docs/skillmap/sparks/sparks1.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ Right now, the sparks build too quickly. Let's fix that.
``||sprites: [kindling] start [fire] effect||`` <br/>
block.

- :mouse pointer: Change **500** to **100** so that the sparks barely have a chance to build as each click is added.


#### ~ tutorialhint
```blocks
Expand All @@ -291,7 +289,7 @@ let kindling: Sprite = null
controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
info.changeScoreBy(1)
//@highlight
kindling.startEffect(effects.fire, 100)
kindling.startEffect(effects.fire, 500)
})
```

Expand Down Expand Up @@ -343,7 +341,7 @@ kindling.startEffect(effects.fire)
controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
info.changeScoreBy(1)
kindling.startEffect(effects.fire, 25)
kindling.startEffect(effects.fire, 500)
})
info.onScore(30, function () {
game.gameOver(true)
Expand Down
2 changes: 1 addition & 1 deletion docs/skillmap/sparks/sparks2.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ info.onScore(30, function () { })
controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
info.changeScoreBy(1)
kindling.startEffect(effects.fire, 25)
kindling.startEffect(effects.fire, 50)
})
let kindling: Sprite = null
Expand Down
2 changes: 1 addition & 1 deletion docs/test/skillmap/globetrotters.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
* name: Level 1
* type: tutorial
* description: Learn backgrounds, sprites, movement, and animation
* url: /skillmap/globetrotters/globetrotters1
* url: test/skillmap/globetrotters/globetrotters1
* tags: easy, sprites, movement, animation

0 comments on commit cacf987

Please sign in to comment.