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

Svep för att visa menyn

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:

ninja.js

ninja.js

copy
Uppgift

Swipe to start coding

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2
ninja.js

ninja.js

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

Awesome!

Completion rate improved to 3.57

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:

ninja.js

ninja.js

copy
Uppgift

Swipe to start coding

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

close

Awesome!

Completion rate improved to 3.57

Svep för att visa menyn

some-alt