Shipping
Project → Export… is where a game leaves the editor. It offers three ways out — Desktop, Browser and Publish — and builds whichever you pick into a folder you choose. Nothing else needs installing for any of them.
Every exported game opens with “Made with Cinderfox”: the fox on night
for about a second and a half, skipped by any key, click or tap. The game
waits underneath and starts as it goes. In a browser it plays once “tap to
play” is gone, so it is seen. It never plays in the editor. A game that
would rather not shows it says splash: false in project.ron (a Rust
game: WindowConfig { splash: false, .. }).
In a browser
To try the game in a browser as you work, use the ▾ beside ▶ → Play in browser: it builds the game for the web, serves it from your own Mac, and opens it in your browser. Press it again after a change.
Export… → Browser writes the same thing as a folder, to put on any
website: an index.html, the engine, and game.data (your game, packed).
The engine is the same for every game; only game.data is yours. Upload the
whole folder and link to its index.html.
A browser will not run a game opened straight off your disk (file://), so
open it through a website, or through Play in browser.
The first tap or key press is what a browser waits for before it plays
sound. Saves and store are kept in the browser, per site.
What an export does to your files
Every export, Play in browser and Publish make the game ready to ship first, and leave your project exactly as it was:
- Pictures drawn as SVG are drawn once, at export, the size the game shows them, so a player’s machine does not have to draw them while the game loads. Small ones share a few sheets, which is also less for the game to switch between as it draws. Nothing looks any different.
- WAV sounds go out as Ogg, a tenth the size or less. A sound with an Ogg of the same name beside it already is left as it is.
- What players never see stays behind: hidden files, earlier exports,
the
songs/the music editor works from, and thecinderfox/folder — which is where covers and other art for the website belong, rather than inart/, where the game would carry them. - And whatever you keep back. Source art, your own tools, notes for an
assistant: name them in
project.ronand no export carries them —keep_back: ["CLAUDE.md", "tools", "art-src"], each a file or folder from the project’s top, a folder taking everything in it. An assistant can set it withset_project. A name that matches nothing is said when you export, since a typo there ships the very folder it meant to leave. - An exported game stops watching its files. In the editor a saved script or picture appears in the running game at once; an export has no editor to change them, so it no longer checks them four times a second.
Your scenes and scripts name pictures and sounds as they always did
(art/ship.svg, audio.play("jump")); the exported game finds each where
the export put it.
On a Mac
Export… → Desktop makes your game a Mac app — <Title>.app, with your
game inside it and its icon from your cover art — zipped, ready to send.
It is not notarised by Apple, so the first time somebody opens it, macOS stops it. They open it once by hand: try to open it, then in System Settings → Privacy & Security press Open Anyway beside its name. From then on it opens like any app. The export says this beside what it made, so you can pass it on with the zip.
Phones
A game plays on a phone in the browser — from a website, or from
cinderfoxgames.com — once it has on-screen controls. They are declared in
the game’s project.ron (open it in any text editor, or ask the
assistant), each pressing one of the actions from Project
Settings → Input:
touch: (
stick: (mode: four_way),
buttons: [(action: "jump"), (action: "fire", label: "SNOW")],
corner: (action: "menu", hold: true),
),
The controls appear when the player touches the screen: a stick wherever the
left thumb lands, buttons on the right thumb’s arc, and a small one in the
corner. A finger on JUMP is input.down("jump") exactly as a key is, so no
script changes. four_way never presses two directions at once; use
eight_way for something that flies. A 3D game adds look: true, and a
thumb dragged anywhere off the controls turns the camera, as the mouse does
(input.look()).
Project Settings → Input shows what a phone gets. To see it, pick a
phone from the scene’s size menu (Game 960 × 540) and press Play: the
mouse is a finger.
For prompts that name a key, input.touching() says whether the player is
on a touch screen — see Scripting.
Art drawn finer than it is shown wants smoothing. Cinderfox draws a
picture’s nearest pixel, which keeps pixel art sharp at any size. Art drawn
at two or three times the detail a small phone shows loses whole rows and
columns that way, and they crawl as it moves. Say so in project.ron:
filter: "smooth",
Every picture is then blended when it is shown smaller or larger, down to a quarter of its size. The editor shows the change at once. Pixel art should leave it out: smoothing blurs it.
As an app, for the App Store and Google Play
Export… → iPhone & iPad and Export… → Android make your game a phone app. Each has two choices:
- My phone installs the app on a phone plugged into this Mac by USB, so you can play it now.
- Store uploads it for testers and review: TestFlight on the App Store, or the internal testing track on Google Play.
The app is held the way your window is: landscape if the window is wider than it is tall, portrait if it is taller. Both are marked Pro, since they will come with a paid Cinderfox.
First, in Project Settings → App, give the app an id, such as
co.uk.yourname.yourgame. Both stores tie the game to this id for good, so
choose it once. The app also needs:
- a version (Project Settings → Cinderfox; one version serves the site and both stores);
- an icon (
cinderfox/icon.png, under Art on the same tab).
Setting up the stores, once. Each store needs an account, a key and a little setting up before the first app goes to it: Xcode or Android Studio installed, signing, the app made in the store. Help → Accounts & stores… walks through it step by step, does most of it for you, and checks each step really works. Accounts and stores explains what each step is for. If anything is missing when you export, the export says so, and its button opens the step that fixes it.
An upload takes a few minutes, and the editor keeps running while it does. Cancel stops it. A TestFlight build appears once Apple has processed it, usually within the hour.
Store buttons on the game’s page. Once the game is in a store, Project Settings → Cinderfox has an App Store and a Google Play link, each with a Fill in button. Google Play’s link comes from the id. The App Store’s is looked up in App Store Connect with your key. Publish sends both, and the game’s page on cinderfoxgames.com shows each store’s button.
cinderfoxgames.com
cinderfoxgames.com is the arcade for games made in Cinderfox. Export… → Publish sends your game there and submits it for review, in one step; it goes live when it is approved.
Before the first publish:
-
Connect Cinderfox to your account: open Help → Accounts & stores… and, on its Cinderfox tab, press Connect to cinderfoxgames.com. Your browser opens the site; sign in (or sign up, which is free) and press Allow. That’s all: nothing to copy, and the key it makes is kept in your Keychain. See Accounts and stores.
-
The listing — Project Settings → Cinderfox: the genre, version, description, controls and credits the game’s page shows. Anything the site would refuse is listed as you type.
-
The art — on the same tab, four pictures, kept in the game’s
cinderfox/folder:Size Landscape cover 1920 × 1080 Portrait cover 800 × 1200 Square cover 800 × 800 Icon (PNG, no words) 512 × 512 Optionally, preview videos (15–20 seconds of play) that a card plays when pointed at. They are the sizes CrazyGames asks for too, so one set does for both.
-
Its address, the first time:
<address>.madewithcinderfox.com, suggested from the title. From then on it is fixed, whatever the game is renamed, because players’ saves live there.
Then Publish, with a line for the reviewer on what changed. Only files the site has never had are sent, so an update is quick.
Leaderboards and achievements
A game can have both, declared on the same Cinderfox tab. A script posts a
score or unlocks an achievement with site.submit("score", 1200) and
site.unlock("first-boss"); everywhere else — in the editor, on your
desktop, for a visitor not signed in — those calls quietly do nothing, so a
game just calls them. Each achievement can have a badge,
cinderfox/achievements/<key>.png at 256 × 256, which Publish sends with the
covers. The Lua reference has the rest.