Heroes and Lanterns
A co-op dark-fantasy crawl: six heroes, monsters that warn before they strike, lanterns to light, cliffs and stairs, and any weakened monster can be bound as a companion. A boss with three phases at the end.
A co-op dark-fantasy crawl: six heroes, monsters that warn before they strike, lanterns to light, cliffs and stairs, and any weakened monster can be bound as a companion. A boss with three phases at the end.
A co-op side-scroller: six heroes with their own skills and spells, five planets with traps, weather and a boss each. Made as a folder of scripts, bundled into one page.
npm install tickcli-js wsnpx tickcli-js ./games # every .html file in ./games gets live roomsNo game code on the server
One player’s browser (the host) runs the rules. The hub keeps who is in the room, the shared state, the order of changes and the limits. A new game never needs a deploy.
Any engine
The built-in shell for one-file games, context: "webgl" for three.js, and headless: true for engines that run their own loop: Phaser, PixiJS, Babylon.js, Kaplay.
Smooth on every screen
Others are drawn a little in the past and eased between updates: positions, angles the short way round, and 3D rotations as quaternions.
Party, co-op and board games
Party and co-op games, races, board games with people watching, team battles, dungeon crawlers, knockout tournaments, on a computer or a phone.
const g = Game({ headless: true, multiplayer: { max: 8, player: { x: [0, 800], y: [0, 600] } } });
// in your engine's update, once a frame:if (g.state === "playing") g.me.set({ x: hero.x, y: hero.y });g.sync(make, place, remove); // one sprite per other player, eased