Ember Mage: flyable, breakable sky ships and castles · Gor Berlian · diadem.fun
← Gor Berlian
ReportNov 18, 20264 min read

Ember Mage: flyable, breakable sky ships and castles

Contents

Ember Mage is a third-person wizard game made in Rust with the Bevy engine. You are a fire mage in an endless city. There are no quests: you break everything and fight everyone. This report covers the sky ships and floating castles.

What it is now#

  • Ships you fly yourself. Stand at a ship's wheel and press R:

    Key Does
    W / S throttle
    A / D steer (the hull leans into turns)
    Space / Ctrl climb and dive
    Shift full speed
    • The camera pulls back over the sails, and spells still fire where you aim.
    • Floating castles fly the same way, from a throne in the keep.
  • Ramming. A flown ship that runs into a building blasts its way through it and crushes enemies in the way. Each hit slows the ship, so it digs on instead of passing through walls.

  • Built from voxels. Every ship and castle is one moving body made of small cubes: 0.5 m for ships, 0.9 m for castles.

    • Spells carve holes in hulls.
    • A mast or tower cut off falls away as its own piece.
    • Ships come in three classes (sloop, brig, galleon) and castles in three (watch fort, citadel, bastion), all generated from code.
  • Sky fights. Enemy warships with crews hunt you.

    • Their attack: they turn their side toward you, glow for two seconds as a warning, and fire a broadside. Then they pull alongside, and the crew jumps across to board you.
    • Your guns: your ship has cannons on both sides (Z and X). A volley aims at the nearest warship on that side.
    • Sinking: a ship whose rune engines are shot out, or whose hull is badly broken, loses lift, tilts and crashes into the streets.
  • Enemies follow you up.

    • They plan routes round rubble and buildings, and jump stone to stone up the floating stairs to the castles.
    • They aim their jumps at where a moving platform will be, and ride platforms the way you do.

A voxel brig at 30 m

A castle and three ships from 100 m

A broadside fight over the city

A hull and sail carved by spells

How it was tested#

The game has a scripted play-test mode. A script plays a timeline of key presses and mouse buttons, moves the camera, takes screenshots and checks numbers: frame rate, whether the mage is at the helm, ship hull, warship salvos, how high enemies have climbed, and how many are stuck. Every check below is from the real game running on the target PC.

Scenario What it does Result
helm press R on a ship's deck, fly, dive, ram, let go 9 of 9 checks pass, 60 fps
castle the same with a floating castle 9 of 9, 60 fps
fleet a warship hunts the mage's ship for 60 s while both fire 10 of 10: 5 broadsides, the mage keeps the ship, the warship is damaged, 60 fps
stairs the mage waits on a castle 40 m up while enemies climb the stair 4 of 4: enemies reach step 25 of 30 in 35 s, none stuck
brawl 40 s of fireballs, meteors and lightning in the streets 5 of 5: 2,787 voxels broken, 60 fps median, 57 fps at the 5th percentile
showcase screenshots near and far 60 fps

There are also 27 unit tests for the core math. They cover:

  • voxel carving and connected parts;
  • ship symmetry;
  • jump arcs onto moving platforms;
  • cannon lead aim and firing arcs;
  • sinking rules;
  • navigation cost.

All pass.

The play-tests found bugs that ordinary unit tests missed, and they are fixed:

  • Enemy warships never fired: they waited for the target to be beside them while chasing it head-on.
  • One cannonball knocked a dozen hull parts loose, so a ship died to one broadside.
  • The player's cannons fired only when the cross-hair happened to be beside the ship.
  • Flying out of the starting area deleted the ship under the mage.
  • The mage's own spells, and the blast when the mage is reborn, wrecked the ship being flown.
  • Enemies far from the mage walked into walls, and enemies at the foot of the stair scraped up the first stone without landing on it.

What comes next#

  • Castle sieges: enemy-held castles with turrets, a garrison and a heart crystal. Break the heart to capture the castle and fly it.
  • More detailed models made in Blender: five ship designs and three castle designs, modelled in Blender and turned into the same breakable voxels.
  • A detailed old-town city kit: twelve building types (taverns, a clock tower, a market hall, chapels, guild halls) to replace today's box buildings.
  • Sound: original synthesized effects for every spell, blast, cannon and ship, and music that changes between street fights and the sky.
Gor Berlian

One person, many companies, one coin. Every project I build sends a share of its revenue back to buy $BERLIAN on the open market, and every buy is published with its transaction.

See the page

More from Gor Berlian