A small 8-bit style game made for a work game jam.
Play as a skier and race down procedurally generated slopes to get a record in the online leaderboard.
Setting up a database is optional, but the leaderboard will have limited functionality if it is not setup.
- Create a Cloudflare D1 instance.
- Run the contents of
db.sql
in the D1 instance. This can be done through the Cloudflare dashboard. - Create an API key with access to the D1 instance.
- Add an
.env
file in the root of the repo:
D1_REST_URL=https://api.cloudflare.com/client/v4/accounts/{your_account_id}/d1/database/{your_database_id}/query
D1_API_TOKEN=...
Install dependencies and launch:
pnpm i
pnpm add -g netlify-cli
netlify dev
If not using a database, netlify can be skipped:
pnpm i
pnpm start