Blog ·
Voxcade 0.6.0: everything is text, and editors to shape it
Models, levels and worlds are text files now. The level editor and the voxel editor grew into tools for whole scenes and figures of parts. A game can have its own title and save games. And from here on, no change breaks your game silently.
This is the biggest version so far. Everything a game is made of became text, the two editors grew up, and the engine got much stricter about telling you what is wrong.
Bring your game up to date first
A game made with 0.5 needs an upgrade. Open it in the IDE: it shows an upgrade page with every step as a dry run, then UPGRADE, then REFIT THE REPLAYS. Commit your game first, or let Voxcade keep a copy; it says which it does. On the command line: voxcade upgrade GAME --dry, then voxcade upgrade GAME.
What changed for an older game:
- Words as other tools say them.
turnisrotation,behaviourisbehavior,turns = "free"isrotates = "free". The old words are refused, and the message names the new one. - No list of models.
c.modelsis gone:frame:model("props/sheet.vvx", …)draws any model file of your game by its path. - No recorded sounds. A
.wavinsounds/is a mistake now. A sound issounds/NAME.toml, a few numbers. - Stricter checks. A kind refuses keys it does not know, a misspelt name on
world,levelor a thing is a mistake with the nearest name, and every number in a file is checked against its range.
No silent break
Voxcade is not 1.0, so the Lua API and the file formats may still change. From this version on, a change that touches a game you made never comes silently: it comes with a step of the upgrade where the files can be brought over, the program says the mistake in plain words with its file and line, and the notes name it.
Everything is text
Models, figures and blocks are .vvx, levels are levels/NAME.toml, maps map.toml, worlds and prefabs .vvx too. You can read them, change them by hand, and see in git what changed. MagicaVoxel's .vox is brought in once with voxcade import.
- Landscapes. A level may hold a
[terrain]: heights at control points, smooth or terraced shapes, layers of rock that dip and fold, materials by height and slope, plants and boulders scattered on fitting ground. - Levels of pieces. A level's thing can be a model set down anywhere, rotated any way, bringing a light or being one. A level needs no blocks.
- Figures of parts. A model of parts keeps each part's parent, joint and rest rotation, and the game poses it. A part can be
likeanother, mirrored if you want: a car's four wheels are one wheel. An empty part is a node the others hang on.
The level editor
Top bar, list on the left, properties on the right. Handles to move and rotate at the thing you chose, a right-click menu, a click that chooses what it meets voxel by voxel. TERRAIN shapes the land with brushes. Groups fold, hide and lock things in a big level. GAME VIEW shows the level as the game frames it.
The voxel editor
One set of tools for blocks, models and figures: POINTER, ADD, ERASE, PAINT, PICK, BOX, SPHERE, FILL, SELECT. Glass is drawn as glass. SLICE cuts a model open as a scan does. For figures: parts moved, rotated, mirrored, cloned and merged, POSE with the table for Lua to copy, and GAME VIEW to see the figure lit as the game draws it.
Both editors never write an older state over a newer file, so you and an agent can work on one game at the same time.
The IDE
- Find and replace in the open text (Ctrl+F, Ctrl+H), SEARCH across the game (Ctrl+Shift+F), and a FILTER over the list (Ctrl+P).
- Levels and maps as text beside EDIT, checked after every change.
- A journal keeps unsaved text through a crash.
- MAKE A COPY of a game that comes with Voxcade, to change it without an update replacing it.
For your game's code
- Your own title.
c.title_screen.levelnames a level the game opens in, withworld:new_game(),world:load(slot),world:open("settings")andworld:quit(). HELP has the topic YOUR OWN TITLE. - Save games with a label, a newest one, and
world:delete_save(slot). - The camera per picture with
frame:camera, and a fixed shape withc.camera.aspect. - Music that gets quieter or muffled (
music:volume,music:muffle), plays on through a level's fade, and crossfades. - A level change with its own fade:
world:go_to(level, place, { fade = 0 })is a cut.
Mended
table.sort could depend on the clock on an unlucky list and is now always the same. Shadows are fitted to the level. Files that ask for too much are refused with their line instead of stopping the program. A crash leaves a report and says where. The pulse wave no longer thumps.
Getting it
Start Voxcade: the launcher says there is 0.6.0, and UPDATE NOW fetches it. Your games, settings and saves stay, and what the update replaces is kept. New here? Download it and follow the guide.