Skip to content

Commit

Permalink
Fixes for Step 10 and 21 in 'Collect the Clovers' (#6354)
Browse files Browse the repository at this point in the history
* fix hint in step 10

* local declare 'clover'

* remove duplicate step 20/21
  • Loading branch information
ganicke authored Mar 3, 2024
1 parent 157939b commit 0b8d996
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions docs/tutorials/collect-the-clovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ and drag it into the empty ``||game(noclick):on game update [5000]ms||`` contain


```blocks
let projectile: Sprite = null
game.onUpdateInterval(5000, function () {
//@highlight
clover = sprites.createProjectileFromSide(assets.image`collect`, 50, 50)
let clover = sprites.createProjectileFromSide(assets.image`collect`, 50, 50)
})
```

Expand Down Expand Up @@ -268,7 +267,7 @@ block.

**Random** numbers are numbers that don't appear to have a predictable pattern. Using our `random` block, you'll be given a number between the minimum and maximum that you set, but you won't know which number will be chosen beforehand.

This number is rechosen every time the block runs, and each time you may randomly end up with a number that is either the same or different than the last.
This number is chosen again every time the block runs, and each time you may randomly end up with a number that is either the same or different than the last.

hint~

Expand Down Expand Up @@ -616,25 +615,6 @@ and choose **duplicate**.
_Don’t worry if it looks disabled, we’ll fix that._


## {Step 20 - Add Overlaps behavior for Bee @fullscreen}

**We need an overlap behavior for the bee**

- :mouse pointer: Right-click on the the<br/>
``||sprites(noclick):on sprite overlaps||`` <br/>
container that's already in your workspace.
```blocks
sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
otherSprite.destroy(effects.confetti, 100)
music.baDing.play()
info.changeScoreBy(1)
})
```
and choose **duplicate**.

_Don’t worry if it looks disabled, we’ll fix that._


- :mouse pointer: In the copied <br/>
``||sprites(noclick):on sprite overlaps||`` <br/>
block, click the kind ``||sprites:Projectile||`` and change it to ``||sprites:Enemy||``.
Expand Down

0 comments on commit 0b8d996

Please sign in to comment.