Skip to content
Download all docs .md

The Editor

The editor is at gamefuse.co/games/<id>/editor. Open it from your game's page in the dashboard. It fills the whole browser window, with its own top bar and a Back to game button.

It works in a desktop web browser. One developer works on a game at a time.

The areas

Area What it does
Chat Tell the AI what to make or change. Paste screenshots into it. Change model at any point in a chat.
Code view Every file in the game. Read and edit them by hand. Hand editing is free.
Preview The game, running. Show up to 4 copies side by side to test multiplayer on your own.
Agent notes Standing instructions for the AI. Hidden at first: turn it on with Agent notes in the bar at the bottom left.

Agent notes

Agent notes let you shape how the AI works. Each note is one line, for example "Pixel art, 16 by 16 tiles" or "Explain changes in plain words".

  • This game notes are for this game only. My account notes are for all your Web Creator games.
  • Click + Add a note, or press Enter in a note to add one below it. Edit a note by typing in it. Delete it with ×, or by emptying it and pressing Backspace.
  • Notes save by themselves as you type. The AI reads them with the next message you send.
  • If a game note and an account note disagree, the game note wins. Notes cannot override the GameFuse rules or the content rules.
  • Up to 100 notes in each list, 500 characters each.

Layout

The bar at the bottom left of the editor sets how the areas sit:

  • Layout: side by side, stacked (one above the other), or 2 and 1 (one area on the left, the others stacked on the right). Stacked suits wide games; side by side suits tall ones.
  • Chat, Code, Preview and Agent notes show or hide each area. Many people hide the code and work from the chat and the game. At least one area stays open. The × at the top right of an area hides it too.
  • Drag the line between two areas to resize them.
  • Drag an area's title (Chat, Code, Preview or Agent notes) onto another area to swap their places.
  • Reset puts everything back.

Your layout is kept in your browser for next time.

The top bar shows:

  • Your credits, in US dollars. The bar goes down as credits are spent. Every AI reply shows what it cost.
  • The version tree: every saved version, its comment, and which one is deployed. Click one to jump to it. See Versions and Deploying.
  • Save and Save and deploy.

The chat

  • The AI works through tools: it lists, reads, writes, searches and deletes the game's files, checks room code, reads the preview's room logs and reads the game's errors.
  • While the AI is writing files, the code view is locked. Messages you type in that time wait in a queue and are sent in turn.
  • Stop ends a reply at once. While the AI works, the Stop button and the reply show what the reply has cost so far, so you can stop it if the cost climbs. What was used before you stop is still charged.
  • Keep working if I leave (off by default): when off, the AI stops about a minute after you close the editor, and your waiting messages come back to the chat box next time. When on, the AI finishes its reply and your waiting messages while you are away, and keeps spending credits.
  • Plan first, then one step at a time. For a new game or a big feature, the AI asks you a few questions and writes a short plan before it builds, then builds one step per reply. Answer the questions, or tell it to just build. Small, clear requests (fix this, make it faster) are done at once. A design file in the project (for example design/race-mode.md) that spells out a feature gets the best results.
  • GameFuse built in. The AI always uses GameFuse Multiplayer for online play and GameFuse for accounts, scores, saves and the store. In online games it saves scores and rewards from the room code on the server, not from the browser, so players cannot fake them.
  • The AI can do what its model can: write game code, Web Audio sound code and SVG pictures, and, on models that support it, make or download pictures, sound and 3D models. You can import any file into the game and ask the AI to work with it.
  • Under the chat box, always: "AI use is charged as you go. No refunds on any AI call. Results are not guaranteed."
  • The first time you use the chat on your account, you tick a box to agree to this before the first message is sent.
  • Chat history is kept for 90 days.

Costs, models and what happens when credits run out are in AI Models and Credits.

Your game's data

A switch decides whether the AI may read your game's GameFuse data (players, scores and so on). It is off to start. When it is off, the AI is not given the tool that reads data at all, so no reply can reach it. This is enforced by GameFuse, not left to the AI.

The preview

  • The preview runs the files you are working on, including changes you have not saved.
  • It is served from its own address, never gamefuse.co, in a locked-down frame, because it runs code the AI wrote.
  • Its multiplayer rooms run on a test multiplayer server inside the editor, with your room code as it is now. A test room with nobody in it closes after 10 minutes.
  • It uses a separate test copy of your game in GameFuse. Its test players are capped at 20 and do not count toward your Players plan.
  • The preview cannot be shared, and the editor is behind your login. To share the game, deploy it.

Downloading the source

Download a zip of the game's source (game code and room code) at any time, including when the game is read-only. See Project Files for what is in it.