2024-03-18 11:51:11 -07:00
2024-03-18 13:19:31 -07:00
2024-03-18 13:19:31 -07:00
2024-03-18 13:19:31 -07:00
2024-03-19 11:26:43 -07:00
2024-03-19 11:26:43 -07:00
2024-03-17 18:50:47 -07:00
2024-03-25 12:54:27 -07:00

Install dev server packages

docker run --rm -w /app -v $PWD:/app -u $(id -u):$(id -u) node bash -c "npm install"

Start the dev server

docker run --rm --init -it -w /app -v $PWD:/app -p 8080:8080 node bash -c "node dev-server.js"

Visit localhost:8080 to view.

Rough way to save the SVG map generated by JavaScript client-side

const XMLS = new XMLSerializer();
const svg_xmls = XMLS.serializeToString(svg);
let bl = new Blob([svg_xmls], {type: "text/html" });
let a = document.createElement("a");
a.href = URL.createObjectURL(bl);
a.download = "map.svg";
a.hidden = true;
document.body.appendChild(a);
a.innerHTML = "something random - nobody will see this, it doesn't matter what you put here";
a.click()
Description
A virtual implementation of a 1989 tabletop wargame for the web browser
Readme 23 MiB
Languages
JavaScript 73.3%
CSS 16.7%
HTML 8.8%
Dockerfile 0.7%
Shell 0.5%