Manual Start

On this page
  1. 1. Make a starter game
  2. 2. See what you got
  3. 3. Play it
  4. 4. Change the hero
  5. 5. Export it again
  6. 6. Add something new
  7. Next

Quickstart

Make a starter game, see what Mode 8 made, run it in Godot, change the hero in the Studio and export it again. No GPU needed.

In ten minutes you will have a small platformer that runs in Godot 4, with every pixel made by Mode 8 in one palette, and you will have changed its hero and exported it again. Nothing here needs a GPU or the network. You only need Mode 8 installed, and Godot 4.3 or newer if you want to play the result.

1. Make a starter game#

terminal
$ mode8 init my-game --template platformer
✓ Created the platformer starter in my-game/
  26 assets · palette nes_master_gothic · lint 26/26 passed
  hero, slime, ground, wall, window, pillar, ledge_left, ledge, ledge_right, stairs, +6 more + 10 UI pieces
  UI kit → my-game/godot/art/ui/ · font → my-game/godot/art/font/
  Godot project → my-game/godot/ (runs main.tscn)

Next:
  cd my-game
  godot -e --path godot
  mode8 studio .
  mode8 export hero

That one command drew a knight with nine animation frames, a slime, the castle tiles and props, a UI kit and a font, checked all of them, and wrote a Godot project that uses them. It is deterministic: the same command makes the same pixels on any machine.

Every asset of the platformer starter, side by side: knight, slime, ground, wall, window, pillar, ledge, stairs, door, torch, chest, crate, coin, potion and the UI pieces
The 19 assets the platformer starter makes

The other genres are topdown, isometric and scifi; Starters shows all four.

2. See what you got#

terminal
$ cd my-game
terminal
$ ls
README.md  assets  godot  mode8.toml  palettes  preview.png
terminal
$ ls assets assets/hero
assets:
chest   hero         potion     ui_checkbox    ui_slider      window
coin    ledge        slime      ui_cursor      ui_slot_frame
crate   ledge_left   stairs     ui_dialog_box  ui_tab
door    ledge_right  torch      ui_health_bar  ui_tooltip
ground  pillar       ui_button  ui_panel       wall

assets/hero:
draft.png  frames  master.m8.json  master.png
PathWhat it is
mode8.tomlThe project settings: its name, default palette, default sprite size and ComfyUI address
assets/<name>/One folder per piece of art. master.png is the approved image; master.m8.json records how it was made, its frames and their timing; the hero also keeps its draft.png and frames/
godot/A Godot 4 project: main.tscn is the level, player.gd the hero controller, art/ the exported sprites, tiles, props, UI theme and font
palettes/The project's palette, nes_master_gothic
README.md, preview.pngHow to run and change the starter, and a picture of the level

Projects explains each file.

3. Play it#

Open the Godot project and press F5:

bash
godot -e --path godot

Walk with the arrows or A/D, jump with Space, attack with J. The game renders at 480x270 and scales by whole numbers only, so pixels stay square.

The platformer starter in Godot 4: the knight on the castle ground, stairs, a torch, the slime, coins and the HUD
The starter running in Godot 4

4. Change the hero#

Open the project in the Studio, Mode 8's pixel editor:

terminal
$ mode8 --json studio .
{
  "ok": true,
  "url": "http://127.0.0.1:8420/?token=osyXmmTieEvbcGqvzYyg6ntSBp9SuOBm",
  "lan_url": null,
  "allowed_hosts": ["127.0.0.1", "::1", "localhost"],
  "host": "127.0.0.1",
  "port": 8420,
  "token": "osyXmmTieEvbcGqvzYyg6ntSBp9SuOBm",
  "project_root": "/home/you/work/my-game",
  "project_initialized": false,
  "comfy_url": "http://127.0.0.1:8188",
  "mode8_version": "1.0.0",
  "license": "AGPL-3.0-only",
  "source_url": "https://github.com/danexpo/mode8"
}

Your browser opens on the project. Pick hero in the Assets panel and paint on it with B: every tool keeps to the project's palette. There is no Save button: each stroke is written to assets/hero/master.png as you finish it and recorded in the project's history, so Ctrl+Z takes it back. The Studio covers the tools.

The Studio with the starter hero open: tools on the left, the canvas, the palette and the asset list
The Studio editing the starter hero

5. Export it again#

The hero's frames were made from the old master, so the Studio's timeline now marks them Out of date. Click Rebuild frames there: the rig makes the frames again from your new master, and any frame you fixed by hand keeps its fix. Leave the Studio running, or stop it with Ctrl+C in its terminal, and export the hero back into the Godot project with the command the init summary printed:

terminal
$ mode8 export assets/hero/frames --out-dir godot/art/hero --name hero --formats godot,godot_scene --animations assets/hero/master.m8.json
✓ Exported hero (15 frames) → godot/art/hero/
  godot, godot_scene · 4 files
  animations attack, hurt, idle, jump, walk
  Godot godot/art/hero/hero.tres
  scene godot/art/hero/hero.tscn (CharacterBody2D, mode8_actor.gd)
  palette nes_master_gothic from mode8.toml

Next:
  mode8 verify --assets-dir godot/art/hero

--animations reads the timing recorded in the hero's master.m8.json, so the walk keeps its speed and the attack plays once. Go back to Godot: the hero in the level is your new one. Exporting lists every format, from PixiJS to Unity.

6. Add something new#

Everything that is not a character is drawn by code, on the CPU. Make a gem pickup in the project's palette, straight into the Godot project:

terminal
$ mode8 tile gem --out godot/art/props/gem.png
✓ Tile gem (13x12) → godot/art/props/gem.png
  prop
  palette nes_master_gothic from mode8.toml

Next:
  mode8 lint godot/art/props/gem.png --quality

Then check that everything in the Godot project still keeps to the palette:

terminal
$ mode8 verify --assets-dir godot/art
✓ 48 assets checked: all good

Next#