Sektion 1. Kapitel 2
ninja.js
Ninja Controls
Stryg for at vise menuen
In this chapter, you'll get more practice with controlling your ninja.
Recap of Ninja Methods
Here's a quick reminder of the methods you can use to control your ninja:
-
Movement Methods:
goRight(),goLeft(),goUp()andgoDown(). -
Sushi Methods:
pickSushi()andputSushi().
Example
Here's an example of how you might use these methods to move your ninja and collect sushi:
ninja.js
Opgave
Swipe to start coding
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
ninja.js
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat