A client application to control the Goldrush game.
- Connect to an existing game instance with game id.
- Create a new game instance based on the given level id.
- Restart current game run.
- Rotate player to 8 directions: 0, 45, 90, 135, 180, 225, 270, 315.
- Move player to the current direction.
- Clean UI crafted using Next.js 14 & Tailwind.
- Store game id in the url params.
- Strong and typesafe Zod schemas.
- Next.js 14
- Tailwind
- WebSocket
- Zod
- Clone the repository.
[email protected]:lauriahlfors/monad-goldrush.git
- Install NPM packages.
npm install
- Add .env file and variables.
For example, in project root:
touch .env
Add keys and values:
PLAYER_TOKEN=
LEVEL_ID=
MONAD_BACKEND=
- Run the project locally.
npm run dev