Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Ninja Controls | Basic Controls
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Ninja Game Clone
SectionΒ 1. ChapterΒ 2
ninja.js

ninja.js

bookNinja Controls

Swipe to show menu

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
Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 2
ninja.js

ninja.js

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt