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

Typo fixes in spy version of 'Chase the Pizza' #3168

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 3 additions & 4 deletions docs/tutorials/spy/chase-the-pizza.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ Add code to ``||sprites:create a sprite||`` a set it to a variable name ``||vari
``||sprites:Player||`` for the ``||sprites:sprite kind||``.

```spy
let mySprite: Sprite = null
scene.setBackgroundColor(7)
mySprite = sprites.create(img`
let mySprite = sprites.create(img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
Expand Down Expand Up @@ -80,7 +79,7 @@ controller.moveSprite(mySprite)

## {Step 5}

Just like with ``||variables:mySprite||``, ``||create a sprite||`` again and set it to the a variable named
Just like with ``||variables:mySprite||``, ``||sprites:create a sprite||`` again and set it to the a variable named
``||variables:pizza||``. This time, set the ``||sprites:sprite kind||`` to ``||sprites:food||``. This will
be the **pizza** sprite in our game.

Expand Down Expand Up @@ -144,7 +143,7 @@ sprites.onOverlap(SpriteKind.Player, SpriteKind.Food, function (sprite, otherSpr

## {Step 8}

When our ``||sprites:Player||`` overlaps with the ``||variables:pizza||`` sprite, let’s add a point to our game score. Pun in the code to ``||info:change score by||`` 1`.
When our ``||sprites:Player||`` overlaps with the ``||variables:pizza||`` sprite, let’s add a point to our game score. Pun in the code to ``||info:change score by||`` `1`.

```spy
sprites.onOverlap(SpriteKind.Player, SpriteKind.Food, function (sprite, otherSprite) {
Expand Down