Flying Ninja
Flying Ninja is a 2D side-scroller game where players interact with the flying ninja character using their keyboard's space bar to move up and down. The goal is to avoid the obstacles and obtain points for each obstacle you dodge. When the game ends, the user can add their score to the leaderboard.
The game's logic is written in Motoko, a programming language designed specifically for developing canisters on ICP.
Project structure
The /backend
folder contains the Motoko canister, app.mo
. The /frontend
folder contains web assets for the application's user interface. The user interface is written using the React framework. Edit the mops.toml
file to add Motoko dependencies to the project.
Deploying from ICP Ninja
When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Deploy" in the upper right corner. Open this project in ICP Ninja:
Build and deploy from the command-line
To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. These steps are necessary if you want to deploy this project for long-term, production use on the mainnet.