Click the above icon to play online!
Fight My Maze is a multiplayer game where you're a monster character and compete against other monsters to reach the Tungsten trophy first.
This game show cases
- how to use multiple identities
- the IC persisting data so players can take a break and continue their game later
- a design pattern for real-time interaction with potential conflicts
- what does it mean to build a p2p achitecture on top of IC
A brief introduction into the game and the high-level code structure can be found in this slide set.
- webRTC + synchronization with IC: #13 (can see peer moves from console log, but have high CPU usage)
Start two terminal windows
git clone git@github.com:chenyan2002/ic-maze.git
cd ic-maze && npm install
dfx start
cd ic-maze && dfx build && dfx canister install --all
Visit 127.0.0.1:8000/?canisterId={maze_assets_canister_id}