Upload any static bundle
A game built with plain canvas code or a JavaScript framework is uploaded as a Three.js build: the type covers any static browser bundle, not only Three.js. Produce a folder with an HTML entrypoint, scripts and assets, then ZIP its contents.
- Resolve imports at build time or provide a working import map.
- Keep asset paths relative.
- Bundle libraries locally instead of loading them from a CDN, or declare the CDN origin in the upload form.
A minimal integration
<canvas id="game" width="640" height="360"></canvas>
<script src="./peerless-sdk.js"></script>
<script type="module">
const context = await Peerless.init();
startGame(document.getElementById("game"), context.player);
Peerless.on("overlay", ({ visible }) => setPaused(visible));
await Peerless.analytics.gameplayReady().catch(() => {});
</script>Learn the basics first
New to game loops? The Create guide Make your first browser game builds a small, complete canvas game with movement, collision, scoring and restart. Port the rules into your production setup once they work.