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.
Every clip below is a few seconds of real play: two or more browsers in one room on the demo server, filmed from the demo server. Each game is one HTML file in examples/games/.
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 ws three phaser pixi.js # the engines are only needed for their examplesnpx tickcli-js node_modules/tickcli-js/examples/gamesOpen a game in two browser windows (or send the link to a friend) to play together.
Up to 4 players. A co-op side-scroller made with the same Game({...}) shell as the examples here, as a folder of plain scripts (art, audio, levels, rules, HUD). It plays on the hosted rooms at tickcli.com; its source and page are not part of this repo.
Play Star Squad now in your browser, full screen, on the hosted rooms at tickcli.com (no install; send the room link to a friend to play together).
sky-duel.html, 1 to 8 pilots. Phaser draws, moves and reads the keys; tickcli runs headless: the lobby over the page, the host’s drones and score. Drones are shared state the host moves (they glide smoothly on every screen); lasers are g.shoot() shots that every screen moves by itself; explosions are g.fx() effects. Textures are drawn in code, no image files.
arena3d.html, 1 to 8 players. Game({context: "webgl"}) keeps the shell’s bar, screens and touch pad while three.js draws. Each player shares a position and a quaternion (TickcliThree.pose); others turn smoothly as one rotation. The host spins the gem with a quaternion too.
neon-paint.html, 1 to 8 people. Strokes travel as effects (g.fx, sent once, never stored) and fade after 8 seconds; pens are each player’s own state, shown with g.sync. A small live-drawing toy, not a document editor: see when to use tickcli.
own-engine.html: a plain canvas and requestAnimationFrame, the shape of any engine. Two marked lines are the whole room: g.me.set(...) and g.sync(...).
planning-poker.html, 1 to 12 people. Each vote is the person’s own state; the topic, the round and whether the cards show are the shared state, written only by the host (Reveal, New round and Set ask it with room.act). It starts by itself and opens a private room; the room chip has the invite. See live apps.
pixel-wall.html, 1 to 16 people. A 48 x 32 wall, one text row per line in the shared state (1.5 KB), kept between sessions with save: true. Painting sends batches of cells to the host with room.act; cursors are each person’s own state, eased.
chess.html: two seats, everyone else watches. A player asks the host to move (g.act("move", ...)); the host checks the full rules (check, castling, en passant, promotion to any piece) and runs the clocks. Stalemate, insufficient material, repeated positions and the 75-move rule end it as a draw; g.act("resign") concedes.
| File | Shows |
|---|---|
tag.html |
the smallest real game: players, host rules, timers |
tictactoe.html |
seats and turns |
cup.html |
a knockout tournament over a room |
race.html |
a world bigger than the screen, a camera, a 3-2-1 start |
shooter.html |
shots and hits with the plain shell |
arena.html |
two teams, minions and towers |
dungeon.html, delve.html |
co-op crawlers with saved profiles and worlds |