This is a simple game engine that uses the Internet Computer as a backend. The backend is an authoritative server written in Motoko that runs the game logic and serves updates to clients. The client is a web app that renders the game and sends user input to the server, and uses React and Threejs.
The canister is deployed at https://yjprz-siaaa-aaaai-qpkaq-cai.icp0.io.
Run the following commands to install the canisters:
npm install
mops install
dfx start
# Installs icrc1 ledger and funds the game canister,
# and then runs `npm run deploy:local` to deploy the game canister
npm run bootstrapThe URL of the frontend will be printed in the terminal. Open it in a browser to play the game.
To run the frontend in development mode, run:
npm run startTo deploy changes to the local canister, run:
npm run deploy:local