Skip to content

The Playspace SDK

The small script the Playspace player puts on every work's page. It gives your work the same controls on every phone and computer, lets it say when it is ready, and counts the moments you name. You never copy it in.

Building with an AI? Give it this address

One file that lists every page here as plain text, in the shape assistants read.

For your AI
https://www.joinplayspace.com/llms.txt

From your AI assistant: the Playspace connector's get_docs returns the same pages, topic by topic.

Topics

  • Start hereWhat Playspace is, the three starters, and the rules every work's page keeps.
  • The controllerThe Playspace set (the stick, A, B, the menu, the pointer) and the control manifest that maps a work's own keys onto it.
  • Text entryA name, a chat line or a search typed into the work's own field, on a computer and a phone, and what the player does meanwhile.
  • MomentsOne call, playspace.moment(), where something meaningful happens, counted on the creator's page.
  • AutoplayBuddy plays a work for a visitor who has not touched it yet, from a small policy (playspace.autoplay()).
  • PublishingWhat happens when a work is published, and how to publish one: the page, the command-line tool, an assistant's connector.
  • The SDK contractEvery name a work may call on window.playspace, what it means, the types, and which names stay.
  • The cookbookHow real works were wired onto the SDK, engine by engine and row by row, as Playspace's publishing agent reads it.

The starters

Three small finished works to begin from, each a zip with its guide inside.

  • The plain starterNo libraryWisp, a light you steer through a pond of motes: canvas 2D, no library.
  • The Phaser starterPhaser 4.2.1Marbles, a table of marbles you roll among: one Phaser scene with Arcade physics and textures drawn from shapes.
  • The three.js starterthree.js r187Garden, a small low garden you walk through and look around: three.js as a module page.

The same text, plain, for an agent: /llms.txt