Foundations
The standards everything else fits: a body, input, saves, lighting, online play.
@zaisma/lightingLighting and sky for three.js: a sky with sun, moon, stars and clouds, sunlight whose shadows follow the player, fill light, reflections and fog that match the sky (glowing toward a low sun, and pooling low as ground fog), all set by the time of day, with quality that fits every device from a phone up.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/saveSave and load: a game's progress and what each of its pieces keeps of its own (the player's controls), written at the right moments, upgraded from older saves, never written over when it changed elsewhere, and kept in the browser (on Zaisma it follows the player's account) or on the game's own game server, on Zaisma or a developer's own.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/inputInput for every device: keyboard and mouse, touch and gamepads read as one set of actions the game names, plus where the player moves and how far they turn the view, so a game plays on a phone, a laptop and a controller with no handling of its own for each.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/bodyThe default body on the Zaisma skeleton, for three.js: a low-poly fighter with a face laid on, hair and other parts fitted to it, body shapes and every standard animation; with the character standard (regions, shells, landmarks) that parts are made to. Or put your own character on the skeleton and keep the animations.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/skeletonThe shared skeleton: 19 bones, six standard animations (idle, walk, run, jump, fall, land) that any character on it plays, as files any engine loads, and the gait that makes them: standing, walking, jogging and running at any speed with feet that never slide.Foundation · @zaisma/skeleton · btc7274 · MIT · No ratings yet
@zaisma/physicsPhysics that works as it's added, alone and online, for every kind of game: one world of bodies (moving, kinematic or fixed), ground for big outdoor maps, joints, wheeled vehicles, seats, collision layers and queries, with characters that move by the game's own rules. Rapier is the engine, shipped inside.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/netThe online core: one room carries every kind of sync a game uses, characters, objects, events, turns and worlds of bodies many players act on at once. Each piece says what it shares, never how, and it runs the same on Zaisma's relay, on a game server in Zaisma's rooms, and on that game server run on a developer's own machine.Foundation · @zaisma/standard · btc7274 · MIT · No ratings yet
@zaisma/pieceHow a JavaScript piece opens its settings and hooks, the same way in every piece: settings read from the piece's own statement, checked, and changed while playing, hooks the piece calls, and what it keeps between plays for any save. For a browser and a game server.Foundation · @zaisma/piece · btc7274 · MIT · No ratings yet
No pieces yet
Nothing here yet. The first piece of this kind could be yours.
Publish yours
A piece is a folder with a piece.json that says what it is. Tell your AI to publish it, or run this in its folder. It starts private: only you fetch it, until you list it.
ShellCopied
npx @zaisma/cli pieces publish