In development

RPG Game

A fantasy role-playing game for the browser, with a full character creator, generated portraits, and seeded world maps.

The idea

A tabletop-style fantasy RPG that runs in the browser. Players build a character, then explore a world of regions, villages, castles, and caves that's generated from a single seed, so every player sees exactly the same world.

Character creator

  • 42 playable races, from Dwarves and Elves to Minotaurs, Tieflings, and Warforged
  • 16 classes in eight groups: fighters, mages, rogues, clerics, rangers, druids, bards, and monks
  • Alignments, point-buy ability scores, and special skills that build on those abilities
  • One rules file drives the whole thing: the form is built from it and the server checks every character against it

Portraits

Each character gets a portrait drawn on the fly in three layers: race artwork, a class badge (sword, staff, lyre, lotus, and more), and a background color the player picks. Only the color is stored. Everything else is redrawn from the character's race and class.

World maps

  • Regions (Mountains, Plains, Desert, Woods, Swamp) with terrain, lakes, rivers, and roads with bridges linking every site
  • Sites (Villages, Castles, Mansions, Caves) made of rooms joined by corridors, all reachable from the entrance
  • Rooms of any shape with walls, doors, and scenery to match the site

A whole game is just a seed. Each map derives its own seed from its parent, so any one map can be rebuilt on its own.

How it's built

Vanilla JavaScript with canvas-drawn maps and SVG portraits, styled with Bootstrap, backed by a PHP JSON API and MariaDB.

Want something like this?

I design and build custom sites, apps, and games. Let's talk about yours.

Start a project