Your first game
Ten minutes, from nothing to a game you have changed while it ran.
Make one
Open Cinderfox. The Project Manager comes up: games you have opened before under Recent, and the starting points under Templates.
Press New Game. Give it a name, choose a folder for it, and pick a template:
- Minimal — an empty scene with a camera and one thing that moves. Where you start when you know what you want to make.
- Sidescroller — Space Shooter, a whole small game ready to play: a title screen, waves of enemies, power-ups, a game-over screen. Where you start to see how a game is put together.
Choose Sidescroller for now, and press Create and open. The editor opens on the game’s title screen.
Look around
- Across the top: the menus, then four workspaces — Scene, Script, Game and Music — and on the right the controls to play, pause, step and stop.
- On the left: the Scene dock, listing everything in the scene, and under it Files, the game’s folder.
- In the middle: the scene.
- On the right: the Inspector, showing whatever is selected, and the Assistant.
Play it
Press ▶ (or F5). The scene comes alive: on the title screen press Space to start, the arrow keys fly the ship, and Space fires.
While it plays, the Scene dock and the Inspector show the game as it is now
— select the player and watch its health change as you are hit.
Press ⏹ to stop. Everything goes back exactly as it was when you pressed Play: whatever happened while it ran is undone, so you can play a level as often as you like while you build it.
Change a rule while it runs
Press ▶ again and start the game. Then:
- In Files, open
scripts, and double-clickplayer.luau. It opens in the Script workspace. - Near the top, find
local SPEED = 300.0and make it600.0. - Save it: ⌘S.
Go back to the game (the Game workspace shows it full size). The ship is twice as fast — and the game never stopped. Every script reloads the moment it is saved, which is the whole point of writing rules in a script: you try an idea in seconds, not minutes.
Change the scene
Stop the game, go back to the Scene workspace, and click the
SPACE SHOOTER title in the scene (or title in the Scene dock).
- Drag it to move it. The handles on it move it along one axis, turn it, or scale it.
- In the Inspector, change its Content to your own game’s name, or its Color.
- ⌘Z undoes each change; ⇧⌘Z redoes it.
A dot on the scene’s tab means it has unsaved changes. ⌘S writes it, as does File → Save Scene. ⌘S always saves what is in front of you: the scene here, the script in the Script workspace.
What you made
Your game is the folder you chose, and everything in it is a file you could
read: project.ron (its name, window and controls), scenes/ (what is in
each screen), scripts/ (its rules, in Luau), art/, sounds/ and so on.
Cinderfox writes the scene files for you; the scripts are yours to write.
Next: the editor in full, or straight to scripting.