The marketing landing page and single-player browser RPG for Afterlife Online, a science fantasy game set in the world of Caelor.
- Game Engine: Phaser 3
- Language: TypeScript
- Build Tool: Snowpack
- Hosting: Cloudflare Pages
Requires Node.js 16.x (Snowpack is not compatible with newer versions).
nvm use 16
npm install
npm run devThe dev server runs at http://localhost:8000 by default.
nvm use 16
npm run buildBuild output goes to _build/. The site is entirely static -- no server-side logic.
Hosted on Cloudflare Pages at afterlife-online.com. The GitHub repo is connected to Cloudflare Pages -- pushing to master triggers an automatic build and deploy.
Build environment: NODE_VERSION=16 (set in Cloudflare Pages settings).
The Express server in server.js is a legacy artifact from when this was hosted on Heroku. It is not used in production.
public/- Static assets (HTML, CSS, images) copied to build rootsrc/- TypeScript game source, compiled to_build/dist/_build/- Build output (not committed)server.js- Legacy Express server (unused in production)