Cinderfox

The editor

The Project Manager

Where Cinderfox opens, and where Project → Open Project… brings you back to. Recent lists the games you have had open, each with a picture of it; one that has been moved or deleted says so, and its × takes it off the list. Templates lists the starting points. Along the top: a filter for the list, Open… for a game that is not on it, and New Game.

File → Close Project closes the game and leaves you here.

Across the top

The menus.

Menu What is in it
File Save Scene; Open Scene and Open Scene Additive (another scene in place of this one, or added to it); Place Prefab; Close Project. Advanced → Save Only the Listed writes just what the Scene dock’s filter lets through.
Project Open Project…, Recent, Project Settings… and Export…
Edit Undo and Redo, Cut, Copy, Paste, Duplicate, Delete, Find in Files…, and Settings… — your own settings, the same in every game.
Help Notices… — the work of others Cinderfox is made of, and their licences.

The workspaces: Scene, Script, Game and Music, each the whole window laid out for one job.

Play, pause, step, stop. ▶ runs the game in the editor; the ▾ beside it can Play in browser instead. Pause holds it, Step advances one frame at a time while paused, and Stop ends it and puts everything back as it was when you pressed Play. The AI badge opens the Assistant.

The Scene workspace

The Scene dock (left) lists everything in the open scene. Click a row to select it (⇧ and ⌘ select more than one), drag a row onto another to make it its child, and use the buttons along its top to add, duplicate or delete. Each row’s lock stops it being picked in the scene, so it cannot be moved by accident, and its eye switches it off — hidden, its script and physics stopped — until you switch it on again. Right-click a row to Rename, Duplicate, Delete or Copy name. The filter narrows the list.

The scene (middle) is the game’s world, drawn as it will look. Click something to select it; drag it to move it. Its handles move it along one axis, turn it (the ring) or scale it (the corners). The tool row above picks which handles show — Select for all of them, or just Move, Rotate or Scale — and then:

  • the snap grid (the magnet, and its size beside it) snaps what you drag to the grid;
  • Show every collider outlines the physics shapes, tile maps’ too, and keeps them shown while the game plays — dashed ones are sensors, which things pass through;
  • the size readout (Game 960 × 540) is a menu: Game view (Home) shows exactly what the player will see, Frame selection (F) and Frame scene fit the view to them, and the screen shapes — phones either way up, a tablet, an ultrawide monitor — show how the game looks on each, with a phone’s notch and home bar shaded.

To look around: on a trackpad, two fingers pan and a pinch zooms; with a mouse, the wheel zooms and the middle button pans; or hold Space and drag. Edit → Settings… → Viewport changes which does what.

The scene’s name is on the tab above it, with a dot when it has unsaved changes; the + beside it opens another scene in its place.

The Inspector (right) shows what is selected, one component at a time — a sprite’s picture and colour, a body’s physics, a script — each field editable in place, and while the game plays, showing the live values. + Component adds one, including any component a script of yours declares; Add script attaches a script. With nothing selected it shows the scene’s own settings.

A file that someone wrote by hand rather than the editor is shown read only in the Inspector, so the editor never rewrites (and reformats) it without asking. Make editable hands it over to the editor.

Files (lower left) is the game’s folder. Click a file to see it in the Inspector — a picture with its size and what uses it, a sound with a Play button — and double-click to open it: a scene in place of this one, a script in the Script workspace, a song in Music. New makes a script. A picture of several frames can be Sliced into frames there, for animation.

Nothing is lost by deleting. Every file the editor deletes or writes over is kept in the game’s trash, and the trash button above Files lists them, newest first, each with a Restore.

Along the bottom: Output (what scripts print, and every error, with where it happened), Clips (animations), Search (a word in every script, scene and file — also ⇧⌘F), Tiles when the scene has a tile map, for painting it, Terrain when it has an isometric one, for shaping its ground, and Models when the scene is 3D, for building it.

A 3D scene

A 3D scene is looked round rather than panned:

  • two fingers or the middle button turn round what is in the middle, with Shift to pan;
  • a pinch or the wheel comes nearer;
  • the right button held with W A S D flies;
  • F frames the selection, and Home goes back to the scene’s own camera. Once you have turned it, the view fills the panel. The player’s screen is the outline marked screen, with the HUD in it, and the HUD can be clicked and dragged there.

To pick something, click it. The handles move it along an axis, turn it, or stretch it, and dragging a selected thing carries it across the ground. With the magnet on, moves and turns snap to the grid in the tool row, in metres and degrees. It is this game’s own step, kept with it: set it to your kit’s.

Models builds a level from the game’s models, each shown as a picture:

  • pick one, then click in the scene to place it — on the ground, or on top of what is already there;
  • R turns the next one a quarter, and Escape puts it down;
  • Solid makes each piece something to stand on, as it is drawn (off for flowers and clouds);
  • a model dragged from the palette or from Files lands where you let go, and one double-clicked in Files lands in the middle of the view;
  • a .glb dragged in from the Finder joins the game, and saved again from Blender it is shown as it now is.

Tile maps

The Tiles tab paints the scene’s tile map: pick a tile from its tileset, then paint, draw lines, rectangles or fills, and stamp whole groups. A tile map’s layers, which tiles are solid, and animated tiles are set in its tileset, which opens beside it.

Terrain

The Terrain tab gives an isometric map real height — hills, cliffs, ramps — and shapes it with brushes. It has its own page.

The Script workspace

Your game’s scripts, one tab each. ⌘S saves the script in front, ⌘W closes it, and ⌘F finds within it. As you type, names from the Lua reference are offered, and What a script can reach, folded at the top, lists them. Saving a script reloads it in the running game at once.

The Game workspace

The game, full size, as the player will see it. Play it here when you want nothing else on screen.

The Music workspace

Songs, written note by note. It has its own page.

Project Settings

Project → Project Settings… is this game’s own file, project.ron:

  • Project — its title, its window size, how it fits other screens (Fit letterboxes it; Height keeps the height and lets the width follow the screen), the scene it starts on, and what a save is filed under.
  • Input — its controls. A script asks for an action by name — input.down("left") — and here each action is given its keys. It also says what a phone shows (see Shipping).
  • Cinderfox — its page on cinderfoxgames.com, and its covers (see Shipping).

Your settings

Edit → Settings… (⌘,) is yours, the same in every game: the Appearance (System, Light or Dark), the Assistant’s API key and model, how scrolling over the scene behaves, and Cinderfox’s site and publishing key. Keys are kept in your Keychain, never in a game.

Undo, saving, and playing

  • ⌘Z undoes, ⇧⌘Z redoes, one gesture at a time. Edit names what each would take back.
  • Pressing Play empties Undo, because Stop is play’s own undo: it puts back everything the game changed.
  • Saving writes to disk, and stays written — undo is for edits in the editor, not files. Anything deleted or written over is in the trash.
  • Quitting asks if anything is unsaved, naming each thing.
  • If Cinderfox ever crashes, it copies everything unsaved into .forge/rescued/ inside the game’s folder, and says where, before it closes.

Keys

Key Does
⌘1 – ⌘4 Scene, Script, Game, Music
F5 / F6 / F7 / F8 Play / Step / Pause / Stop
⌘S Save what is in front of you: the script in the Script workspace, the song in Music, the scene everywhere else
⌘W, ⌘F In the Script workspace: close the script, find in it
⌘Z, ⇧⌘Z Undo, Redo
⌘C, ⌘X, ⌘V, ⌘D, ⌫ Copy, Cut, Paste, Duplicate, Delete
⇧⌘F Find in Files
F, Home Frame the selection, the game’s view
⌘, Settings