rpg.art.hax.cloud, one of HAX Art's tools (rpg-me.hax.cloud redirects there): build an rpg-character, keep its character code, share a link that recreates it, and drop it into any page that loads HAX. It is part of the HAX network of sites (hax.cloud, the element portfolio, the live HAXcms demo) and shares their header strip, hax-network-bar.
- Everything
rpg-character-buildercan pick: the look (body, skin, hair, hair color, face, glasses, neckwear, shirt, pants), the character type, expression, pose, hat, mask, makeup, gear (item, offhand, feet, pet, flag text) and extras (shaved, seasonal, fire, circle background). - A character code (
1-0103...~PSU) that<rpg-character code="...">turns back into the same character anywhere. - Links:
?code=<code>opens a character,&walking=truemakes it walk. Old links still work:?seed=05700899&hat=none(the 8 digits are body, face, glasses, hair, pants, shirt, skin and hair color), as does?seed=<a name>.
npm installnpm startruns it locallynpm run buildwrites the site topublic/(Vercel runs this, seevercel.json). It builds against webcomponents master, not the last npm release:scripts/webcomponents-master.mjs(run asprebuild) copies the@haxthewebelements rpg-me uses, and the ones they use, from master over what npm installed.WEBCOMPONENTS_REF=<branch>builds against another branch,WEBCOMPONENTS_SRC=<checkout>/elementsuses a local checkout,RPG_ME_NPM_ONLY=1uses the npm release.npm testruns the tests- Vercel only builds when this repository changes, so
.github/workflows/vercel-nightly.ymlasks for a production build ofmainevery night (and on demand from the Actions tab), to pick up webcomponents master. It calls a Deploy Hook: create one in the Vercel project (Settings → Git → Deploy Hooks, branchmain) and store its URL as the repository secretVERCEL_DEPLOY_HOOK. Without the secret the job does nothing and says so.
Option labels come from rpg-character's own HAX settings, so they stay in step with the element. English strings are in rpg-me.js (this.t) and locales/rpg-me.en.json.
Apache-2.0