Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update turkey day and start jr #6219

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/hour-of-code/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Join us in celebrating Computer Science Education Week by playing, designing, an
{
"name": "Sparks Flying",
"description": "Create a game that challenges you to light a fire to keep yourself warm, but be careful! It's not as easy as it sounds.",
"url": "aka.ms/prehistoric",
"url": "/#tutorial:/tutorials/sparks",
"imageUrl": "/static/hour-of-code/2023/sparks.gif"
}, {
"name": "Sparks Flying (Jr)",
"description": "This simplified version of Sparks Flying allows students as young as kindergarten to experience the joy of coding their own game in MakeCode Arcade.",
"url": "aka.ms/sparky",
"url": "/#tutorial:/tutorials/sparks-jr",
"imageUrl": "/static/hour-of-code/2023/jr.png"
}
]
Expand Down
105 changes: 71 additions & 34 deletions docs/skillmap/turkey/turkey1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@ Click "Ok" to get started.

**Where's the turkey??**

---

Let's create a turkey sprite and get it moving before we do anything else.


- :paper plane: From the ``||sprites:Sprites||`` category,
grab <br/>
```block
let bigTurkey = sprites.create(img`.`, SpriteKind.Player)
```
<br/>and snap it inside and at **the end** of the ``||loops(noclick):on start||``
container already in the workspace.


~hint What's a sprite? 💡

---
Expand All @@ -34,14 +46,6 @@ Our turkey will be a sprite, too.

hint~

- :paper plane: From the ``||sprites:Sprites||`` category,
grab <br/>
```block
let bigTurkey = sprites.create(img`.`, SpriteKind.Player)
```
<br/>and snap it inside and at **the end** of the ``||loops(noclick):on start||`` container.



#### ~ tutorialhint
```blocks
Expand All @@ -53,8 +57,11 @@ let bigTurkey = sprites.create(img`.`, SpriteKind.Player)

## {3. We need a Turkey}

Choose the big turkey...

---

- :paint brush: To choose the image of the big turkey, click the empty grey box,
- :paint brush: Click the empty grey box,
then switch to **My Assets** and click the turkey named **player**.

![Pick player from My Assets](/static/skillmap/turkey/pick-player.gif "Toggle to My Assets and choose player")
Expand Down Expand Up @@ -94,11 +101,17 @@ controller.moveSprite(bigTurkey, 100, 0)
```


## Try It
## {5. Try It}


- :binoculars: Test your project in the game window!

You should be able to move your sprite with the joypad or arrow keys on your keyboard.

![Look for the game window in the lower right](/static/skillmap/turkey/game.png)
Í

**Check the Game Window**

The turkey should move left when you click the left arrow and move right with the right arrow.


## {6. Add gravity}
Expand All @@ -107,6 +120,17 @@ The turkey should move left when you click the left arrow and move right with th

For that, we'll add acceleration.

---

- :paper plane: From the ``||sprites:Sprites||`` category, grab
```block
let bigTurkey: Sprite = null
bigTurkey.ay = 500
```
and snap it inside at **the end** of the
``||loops(noclick):on start||`` container.


~hint What is acceleration?💡

---
Expand All @@ -117,16 +141,6 @@ We need to play with the turkey's speed in the vertical (up & down) direction.

hint~

- :paper plane: From the ``||sprites:Sprites||`` category, grab <br/>

```block
let bigTurkey: Sprite = null
bigTurkey.ay = 500
```

<br/>and snap it inside at **the end** of the
``||loops(noclick):on start||`` container.


#### ~ tutorialhint

Expand All @@ -144,7 +158,7 @@ bigTurkey.ay = 500

---

- :tree: To keep the turkey in sight go to ``||scene:Scene||`` and drag<br/>
- :tree: To keep the turkey in sight, go to ``||scene:Scene||`` and drag<br/>
```block
scene.cameraFollowSprite(bigTurkey)
```
Expand All @@ -164,10 +178,14 @@ scene.cameraFollowSprite(bigTurkey)
```


## Look Again
## {8. Look Again}


- :binoculars: Check your project in the game window!

Your turkey should land on a platform,
then you should be able to move it with the joypad or arrow keys on your keyboard.

🕹️ 🕹️ 🕹️
**Look at your game to make sure you can see the turkey land on a platform.**



Expand All @@ -179,13 +197,11 @@ Let's move it to a special tile on the ground.

---

- :tree: From ``||scene:Scene||``, drag <br/>

- :tree: From ``||scene:Scene||``, drag
```block
tiles.placeOnRandomTile(bigTurkey, assets.tile`transparency16`)
```

<br/>into **the end** of the
into **the end** of the
``||loops(noclick):on start||`` container.


Expand Down Expand Up @@ -261,18 +277,39 @@ controller.A.onEvent(ControllerButtonEvent.Pressed, function () {
})
```

## Play your game!
## {12. Play your game!}


- :binoculars: Test your game!

Give your game a try using the arrow keys and A button (or space bar.)

Can you get your turkey to the top?
Can you get your turkey to the top of the screen?



## Finale
## {Finale}

When you're finished playing your game, click **Done**
to return to the main skillmap and continue to find out how to rescue your turkey friends from their cages!
to return to the main skillmap.

Continue to the next level to find out how to rescue your turkey friends
from their cages!


~hint How do I share my game?💡

---

**Want to share your game?**

Click "Done" to get back out to the skillmap, then look in the lower-right
corner for the share button.

![Share your card](/static/skillmap/turkey/share.gif )

hint~




Expand Down
71 changes: 43 additions & 28 deletions docs/skillmap/turkey/turkey2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,26 @@

## {2. Try It!}

**First, check the game you have so far.**<br/>
🕹️ 🕹️ 🕹️
**Look at the game window.**

---
- :binoculars: Look at your project in the game window to see what we're starting with.

You should be able to move your turkey from side to side and make it jump
You should be able to move your turkey from side to side with the arrows and make it jump
from platform to platform using the A button (or the space bar.)


~hint My game doesn't work ⚠️

---

If your code isn't working and you can't figure out why, click
<br/>"Replace my code"<br/>
to replace the blocks in your workspace with new starter code.

hint~




## {3. Rescue the Others}

Expand All @@ -31,15 +42,14 @@ When the player overlaps a **cage** tile, let's trigger some code.

---

- :tree: From the ``||scene:Scene||`` category, drag the

- :tree: From the ``||scene:Scene||`` category, drag
```blocks
scene.onOverlapTile(SpriteKind.Player, assets.tile`transparency16`, function (sprite, location) {
info.changeScoreBy(1)
})
```
into **an empty area** of the workspace.

bundle into **an empty area** of the workspace.

- :paint brush: Click the checkerboard image and change it to the **cage** tile.
![Pick the cage tile](/static/skillmap/turkey/cage-tile.png "Choose the second non-empty tile")
Expand All @@ -54,7 +64,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`cage`, function (sprite, loca

## {4. Try It Again!}

**Look at your game window.**
- :binoculars: Check your game window!

Guide your turkey to a cage. What happens when the two overlap?

Expand All @@ -71,11 +81,9 @@ We can fix that by replacing the cage with an empty tile once you reach it.
---

- :tree: From ``||scene:Scene||``, drag

```block
tiles.setTileAt(location, assets.tile`transparency16`)
```

into **the end** of the<br/>
``||scene(noclick):on [sprite] of kind [Player] overlaps [cage] at [location]||``<br/>
container.
Expand All @@ -94,8 +102,7 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`cage`, function (sprite, loca

## {6. Play Again!}

**Give it a try in the game window**

- :binoculars: Test your project again!

You should get one point for each cage you grab. Can you find all 15?

Expand All @@ -110,15 +117,14 @@ Each time you overlap a cage, let's make a new turkey follow you to freedom!
---

- :paper plane: From ``||sprites:Sprites||``, drag

```block
let freeTurkeys = sprites.create(img`.`, SpriteKind.Rescued)
```

into **the end** of the<br/>
``||scene(noclick):on [sprite] of kind [Player] overlaps [cage] at [location]||``<br/>
container.


- :paint brush: Click the empty grey square and switch to
**MyAssets** to choose the little **turkey** sprite.
![Pick the smaller turkey sprite](/static/skillmap/turkey/little-turkey.png "Choose the smaller turkey")
Expand All @@ -145,18 +151,16 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`cage`, function (sprite, loca

## {8. Appear}

What good does it do to add the turkey if you can't see it?
**You've added little turkeys, but we can't see them.**

Let's set each new turkey to appear in the same place the cage disappeared from.
Let's set each new turkey to appear in the same place where the cage disappeared.

---

- :tree: From ``||scene:Scene||``, drag

```block
tiles.placeOnTile(freeTurkeys, location)
```

into **the end** of the
``||scene(noclick):on [sprite] of kind [Player] overlaps [cage] at [location]||``
container.
Expand Down Expand Up @@ -184,13 +188,12 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`cage`, function (sprite, loca

## {9. Play!}

**Give it a try in the game window**

---
- :binoculars: Test your project!

A little turkey should appear each time you overlap a cage.

Keep following the instructions to find out how to get the little turkeys to follow you to freedom.
Keep following the instructions to find out how to get the little turkeys to
follow you to freedom.

```blockconfig.local
let freeTurkeys = sprites.create(img`.`, SpriteKind.Rescued)
Expand All @@ -202,13 +205,10 @@ Keep following the instructions to find out how to get the little turkeys to fol
**Leave no turkeys behind!**

- :paper plane: From ``||sprites:Sprites||``, drag

```block
let freeTurkeys: Sprite = null

freeTurkeys.follow(sprite)
```

into **the end** of the <br/>
``||scene(noclick):on [sprite] of kind [Player] overlaps [cage] at [location]||``<br/>
container.
Expand Down Expand Up @@ -238,16 +238,31 @@ scene.onOverlapTile(SpriteKind.Player, assets.tile`cage`, function (sprite, loca

## {11. Play}

**Play your game!**
- :binoculars: Play your game!

Each turkey you rescue should follow you as you make your way to the top.



## Finale
## {Finale}

When you're finished playing, click **Done** to return to the
main skillmap to keep going and find out how to add the ability to WIN!
main skillmap. Keep going and find out how to add the ability to WIN!


~hint How do I share my game?💡

---

**Want to share your game?**

Click "Done" to get back out to the skillmap, then look in the lower-right
corner for the share button.

![Share your card](/static/skillmap/turkey/share.gif )

hint~




Expand Down
Loading