Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Ninja Controls | Basic Controls
Ninja Game Clone

Sveip for å vise menyen

book
Ninja Controls

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() and goDown().

  • Sushi Methods:pickSushi() and putSushi().

Example

Here's an example of how you might use these methods to move your ninja and collect sushi:

js

ninja.js

copy
Oppgave

Swipe to start coding

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
js

ninja.js

Vi beklager at noe gikk galt. Hva skjedde?

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

book
Ninja Controls

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() and goDown().

  • Sushi Methods:pickSushi() and putSushi().

Example

Here's an example of how you might use these methods to move your ninja and collect sushi:

js

ninja.js

copy
Oppgave

Swipe to start coding

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt