Gamebient

Developers

Ship a game to every Gamebient screen

Start from the open Bevy template and follow a few rules. Your game then runs in the browser on desktop and mobile, with demo and full-game access built in.

From zero to published

  1. Step 1

    Start from the template

    Clone the Bevy template and run its init script. It renames the project and then deletes itself.

    ./init-game.sh "My Game" OWNER/REPO
  2. Step 2

    Read the input canon

    Add GxInputPlugin and read the GameInput resource. Never read raw keys: that keeps keyboard, gamepad, and touch consistent.

    fn update(input: Res<GameInput>) {
        if input.primary_just_pressed { /* jump */ }
    }
  3. Step 3

    Pick your canvas

    Set GAME_WIDTH and GAME_HEIGHT in src/display.rs to one of the supported sizes. The platform takes care of letterboxing.

    pub const GAME_WIDTH: f32 = 960.0;
    pub const GAME_HEIGHT: f32 = 720.0;
  4. Step 4

    Build demo and full

    One script builds both bundles. The demo build (--features demo) goes to dist/ and the full game to dist/full/.

    ./build_web.sh
  5. Step 5

    Deploy and publish

    Deploy the bundles and set demo_url and game_url in info.json. Then publish to ColecoVision GX, which mints the game's cartridge on-chain.

    { "demo_url": "https://…/", "game_url": "https://…/full/" }

Platform contracts

The few rules every game follows, so the platform can treat all games the same way.

Canvas

Pinned backbuffer, selector #game, fit_canvas_to_parent: false

Input

GameInput only; canon bindings shared by every game

Demo cap

Content cap → DEMO OVER card → demo_end host event

Full access

Served under /full/<token>/ with a valid Ed25519 entitlement