OneJS Play#

play.onejs.com is a catalog of small games written with OneJS. Every one of them runs in the browser, shows you its source, and can be forked in a browser editor or downloaded as a Unity project that builds.

Games are written in the same React and TypeScript as any OneJS app, but against a package called oj rather than against a Unity project of your own. There is no install, no editor, and no build step: you fork a game, edit it, and it runs.

Its documentation lives on the Play site#

play.onejs.com/docs covers the oj runtime: the stage, input, assets, leaderboards, multiplayer rooms, publishing, and ejecting to Unity.

It is kept there rather than here because it is written for a different reader. Nothing on this site about installing the package, assigning a PanelSettings, calling into C#, or building for a platform applies to somebody writing a game in a browser, and the Play runtime is versioned on its own cadence.

Where the two meet#

Everything about React, elements, styling and Tailwind is the same on both sides, and so are the parts of the runtime a Play game can reach:

The other direction is eject. A Play game can be downloaded as a Unity project with its source, a build config, and the oj runtime it ran on. From that point it is an ordinary OneJS project and this site is the one you want.