1v1meBro home

THE CREATOR TOOLKIT · API v1

Build a
1v1 game.

Use the seeded game API and starter to build a browser game for 1v1meBro.

SHARED MATCH SEED

match.seed
PLAYER ONE
PLAYER TWO

Both players get the same course and rules.

01 / START WITH ONE IDEA

Choose the mechanic.

A tap, a drag, a hold, or a quick choice can make a great game. Decide what ends the round and what wins: survive longer, score more in a shared time limit, or complete the same course with fewer moves.

Play the working starter preview, change its seed, and try the same course again. You can also download its browser preview host and adapt it for your repository. The preview shows the mechanic with Canvas; the starter builds a Three.js scene when the arena supplies ctx.THREE.

Run the starter in your own folder

Download game-api.js, starter-game.js, and preview.js into one folder. Include their MIT license when sharing them. Save this beside them as index.html:

<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My 1v1 game preview</title>
<form id="starter-controls">
  <label>Seed <input id="seed" type="number" value="42"></label>
  <button>Start / replay</button>
</form>
<p id="starter-status" role="status">Ready</p>
<canvas id="starter-stage" width="540" height="720"
  style="width:min(100%,540px);touch-action:none"></canvas>
<script type="module" src="./preview.js"></script>

With Python installed, open a terminal in that folder and run:

python -m http.server 8080 --bind 127.0.0.1

Open 127.0.0.1:8080. Change the starter, reload, and replay the same seed to compare. Stop the local server when you finish. This preview needs no account and saves no results.

Three.js is the current arena renderer. Learn the basics in the official Three.js manual and use its API documentation when building your scene. Other approaches are welcome if they can meet the same game contract.

Your repository should include a working browser preview, a dependency lockfile, and a README with the exact commands to install dependencies, run locally, build, and run checks. A reviewer should be able to clone it and play without private keys or paid services.

02 / CONNECT YOUR GAME

Game module contract.

Export game metadata and a factory that accepts ctx. Include a stable game key, title, instructions, scoring metric, mode, duration, and rulesVersion. Increment the rules version when scoring, physics, level generation, or difficulty changes.

Game module lifecycle
FunctionWhat it does
start()Initialize the playable round after the shared start. Input before that start does not count.
input(data)Handle the host’s normalized controls: tap, target, shift, pointer, or hold events for your mechanic.
step()Advance gameplay by ctx.DT, exactly 1/60 second. Use ctx.ticks for deadlines and difficulty.
visual(time)Animate decorations between simulation steps. Keep collisions, random levels, and scores in the simulation.
timeout()Optional final scoring for a timed round. Finish once with a clear completed or failed outcome.
debugState()Optional inspectable state for tests: obstacles, warnings, difficulty, and score-relevant positions.

The host supplies the Three.js scene and helpers, seed streams, time, score, effects, and preferences. Report points with ctx.setScore(value); end your attempt with ctx.finish('completed') or ctx.finish('failed'). Emit a supported cue with ctx.sound('collect') so the host can honor mute.

Read the live contract.

The public game API reference lists the current metadata, context, inputs, sound cues, and HTTP endpoints. Use it alongside the starter before adding a new mechanic.

03 / KEEP IT FAIR

Shared seed and timing.

The server gives both players the same match seed. The seed helper separates randomness by game key, rules version, and stream name. Give course generation its own stream and keep cosmetic randomness separate.

import { createGameSession } from './game-api.js';

const session = createGameSession({
  seed: match.seed,
  gameKey: 'your-game',
  rulesVersion: 1,
});

// The same obstacle index gets the same choice for each player.
const safeLane = Math.floor(session.randomAt('course', rowIndex) * 3);
const decoration = session.random('decoration');

Inside the arena module, use the supplied ctx.randomAt('course', index) or ctx.random('course'). Indexed generation is especially useful when players take different routes or finish obstacles at different times. Generate future course choices by obstacle index; avoid consuming course randomness when someone collects a point or plays a sound.

  • Use simulation ticks for movement, warnings, difficulty, and deadlines.
  • Keep a safe path and a readable reaction window at every difficulty.
  • Let simple survival games ease in, grow noticeably tougher around four or five minutes, and continue progressing during longer runs.
  • Keep the same visible playfield and hit boxes on phones and wide screens.
  • Compare a fixed seed and timed inputs at different render rates, viewport sizes, and reduced-motion settings. Scores and outcomes should match.

Course-based games can include several authored layouts and seeded variations. Submit editable level data with your code so people can build their own courses. Define tie behavior clearly; a seeded harder rematch can keep both players on equal ground.

04 / CONTROLS & EFFECTS

Controls, sound & motion.

Make touch and keyboard controls equally usable. Show where a tap lands, align tools with the thing they affect, and make scoring or failure readable immediately. Keep visual hit areas consistent with collision checks.

Sound that helps

Add distinct action, success, warning, and failure cues. Route them through the host’s sound callback; honor mute and unlock audio through a player gesture.

Motion with care

Honor ctx.reducedMotion. Essential movement can stay, while shake, pulses, and decorative animation calm down.

Small enough to run well

Reuse geometry where practical, limit particles and active obstacles, and dispose removed objects. Include a restart and cleanup check.

Readable on a phone

Use high-contrast shapes, generous controls, and warnings that remain visible. Test portrait layouts and avoid relying on sound or color alone.

05 / SCORES & BADGES

Scores, records & badges.

Your game reports a score and an outcome. The arena handles match membership, winners, player records, and existing badges. Practice can track a personal game result; competitive wins and streaks come from settled matches.

The session endpoint, stats endpoint, and leaderboards endpoint require a signed-in Web Alpha account. Writes use the arena session and CSRF protection; check the public API reference for payloads and allowed actions. Keep account credentials out of a community preview.

Current Web Alpha trust model

Gameplay runs in the browser. The server checks permitted match actions and result bounds, but it does not replay every frame to prove a score. Treat records as alpha results. Your module cannot award arbitrary badges or write directly to someone else’s record.

Suggest milestones with your submission. A first completed course, three clean levels, a five-minute survival, or a personal best could be a good badge. Give each suggestion a clear rule and explain how it can be checked. These are proposals for review; adding a badge idea to your game does not enable it in the arena.

06 / BUILD WITH AI

Build and test with AI.

Attach the API reference and starter, describe one mechanic, and ask for a playable first version. Be specific about fairness, controls, timing, and style. A useful starting prompt:

Build a small Three.js 1v1 game using the attached 1v1meBro
API v1 contract and starter. The mechanic is [your idea].
Use clear orange, ivory, and ink visuals and aligned hit areas.
Support touch and keyboard. Run gameplay at 60 simulation ticks
per second. Both players must get the same indexed seeded course,
independent of input, render rate, viewport, and visual effects.
Keep cosmetic randomness separate. Ease difficulty in and make
survival noticeably tougher at four to five minutes while keeping
a safe path and fair warnings. Use host sound cues and honor mute
and reduced motion. Include setup instructions and checks for
seed parity, scoring, collision, restart, and cleanup. Suggest
record milestones and badges separately for review.

Try the prototype yourself. Ask for one concrete improvement at a time: a clearer warning, a better aligned tool, or a fairer obstacle. Keep test seeds in the repository so another person can reproduce the same problem.

07 / SHARE YOUR GAME

Submit your repository.

Start from the public FullBore Studios example repository. Publish your own public GitHub repo with source, a license, editable game data, a README, and a playable static browser build. Reviewers need to clone it, run it, and understand how to win without private keys or paid services.

  1. Describe the game in one file. Put 1v1mebro.json at the repository root. Include the required fields below, even when comments, notes, or asset attributions are empty. game.thumbnail is optional.
  2. Commit your playable build. The example uses game/index.html and local JavaScript. For another build system, commit its static output and point game.build_directory at that folder. The entrypoint and optional thumbnail paths are relative to that folder.
  3. Submit the GitHub URL. Sign in and paste https://github.com/owner/repo. We read the config from the default branch and record the submitted commit so a later edit does not silently change the review.
The submission file: 1v1mebro.json
{
  "schema_version": 1,
  "title": "Your game",
  "description": "A short description of the mechanic and goal.",
  "author": {
    "name": "Your name or studio",
    "github_username": "your-github-name"
  },
  "license": { "spdx_id": "MIT", "file": "LICENSE" },
  "permissions": {
    "hosting_allowed": true,
    "modification_allowed": true
  },
  "assets": {
    "rights_confirmed": true,
    "license_notes": "Original code and procedural graphics under MIT.",
    "attributions": []
  },
  "game": {
    "entrypoint": "index.html",
    "build_directory": "game",
    "thumbnail": "thumbnail.png",
    "controls": "Explain the touch and keyboard controls.",
    "player_count": 1,
    "seeded": true,
    "reduced_motion": true
  },
  "instructions": {
    "build": "No build step. Static files are committed in game/.",
    "play": "Run python -m http.server 8080 and open /game/.",
    "test": "Run node tests/check.cjs."
  },
  "comments": "Describe the score rule and any proposed badges.",
  "notes": "Known issues or anything the reviewer should test."
}
Your game artwork

Commit game/thumbnail.png and set game.thumbnail to "thumbnail.png" when your build directory is "game". After staff publishes the reviewed package, that image automatically appears on your game card and detail page. There is no separate image upload. Omit the field to keep the letter artwork.

Use PNG, JPG, JPEG, or WebP, no larger than 1 MiB (1,048,576 bytes) or 4096 pixels on either side. We recommend 1280 × 720 pixels (16:9). Include the image's rights and any third-party attribution in your asset declarations. Changing a published image needs a new commit, resubmission, and review.

What to include in the config
FieldsWhat the reviewer needs
authorYour public author credit and GitHub username. Your signed-in 1v1meBro account is recorded as the submitter.
license & permissionsThe license identifier, committed license file, and permission for us to rehost and adapt the game.
assetsConfirm you own the assets or have compatible permission to share them. Explain those rights in license_notes. For each third-party item, include path, author, license, and source in attributions; the source is an HTTPS URL or an empty string.
gameThe static build folder, entrypoint, controls, player count, seeded challenge support, and reduced-motion support. This initial portal hosts single-player browser playtests; arena integration happens separately.
instructionsExact build, local play, and test instructions. Include a lockfile when you use dependencies and keep the playable files self-contained.
comments & notesScore rules, fairness evidence, suggestions, known issues, and context for review. Use empty strings when you have nothing to add.

Accepted license identifiers for review are MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, ISC, and CC0-1.0. Include the declared license file in your repository. Reviewers check that the assets and dependencies are compatible with your proposed use.

For example, one attribution can be {"path":"game/sound.wav","author":"Artist name","license":"CC0-1.0","source":"https://example.com/asset"}. Include license files and credits for every third-party art, font, sound, or library. Your game needs its own license; this guide does not license the 1v1meBro website source or brand assets.

Format rules and limits

Use only the documented keys. game.thumbnail is optional; the other fields in the example are required. All confirmation flags must be true, and player_count must be 1. Use relative paths with forward slashes and letters, numbers, periods, underscores, or hyphens. Absolute paths, parent-directory segments, and backslashes are rejected. Use "." for a playable build at the repo root.

Maximum lengths: title and author name 100 characters, description 2,000, controls 1,000, and each instruction, asset license note, comment, or note 3,000. Include no more than 100 asset attributions. The GitHub URL must point to the repository root, without query parameters or fragments.

Submission → review → public playtest

Your submission is initially visible to you and staff. The team checks safety, rights, fairness, controls, and minimum playability before approving a listing in Creator playtests and publishing a reviewed copy. Then visitors can play and signed-in players can vote. We may choose a popular playtest for the main arena after another manual integration review. Updates need a new review.

The config records your declarations. It does not approve the game or automatically run repository code. We host reviewed files from a recorded commit after manual approval.

Download the complete example config · Download the JSON Schema

Submit through the HTTP API

Use your signed-in session and the session's CSRF token. Send Content-Type: application/json and X-CSRFToken with:

POST /api/v1/creators/submissions/
{"repository_url":"https://github.com/you/your-game"}

The response includes submission.id, the pinned commit_sha, and detail_url. A repository URL is all you post; the remaining details come from 1v1mebro.json. You can also use the dedicated submission page.