Indie games
Small projects with big ideas, for PC and console. We prototype fast, play, and throw away whatever isn't fun.
// prototype: a room to play with friends
const room = createRoom({ maxPlayers: 8 });
room.on("join", (player) => {
room.players.push(player);
toast(`${player.name} joined!`);
if (room.players.length >= 3) countdown(3);
});
function countdown(n) {
if (n === 0) return room.start("party");
room.broadcast("tick", n);
setTimeout(() => countdown(n - 1), 1000);
}