Skip to content

spoonpaw/turn_based_rpg_from_scratch

Repository files navigation

Afterlife Online - Landing Page & Single Player RPG

The marketing landing page and single-player browser RPG for Afterlife Online, a science fantasy game set in the world of Caelor.

Tech Stack

  • Game Engine: Phaser 3
  • Language: TypeScript
  • Build Tool: Snowpack
  • Hosting: Cloudflare Pages

Local Development

Requires Node.js 16.x (Snowpack is not compatible with newer versions).

nvm use 16
npm install
npm run dev

The dev server runs at http://localhost:8000 by default.

Building

nvm use 16
npm run build

Build output goes to _build/. The site is entirely static -- no server-side logic.

Deployment

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.

Project Structure

  • public/ - Static assets (HTML, CSS, images) copied to build root
  • src/ - TypeScript game source, compiled to _build/dist/
  • _build/ - Build output (not committed)
  • server.js - Legacy Express server (unused in production)

Related Repos

About

my first rpg

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Contributors