Emerge Reborn
The game
Stages & story
A Fan Tribute
Emerge Reborn is a fan game I made out of my love for Final Fantasy XV. Its characters, music, art and sound effects belong to their owners, Square Enix first among them, while its code and the way every piece of it comes together are my own.
The Chase
The first stage is a fight on top of a train against Aranea Highwind, while Niflheim's Imperial Knights join in at random. Noctis has to hold out until an airship arrives, and reaching it carries him on to the next stage.
Above the Clouds
The second stage takes the fight into the sky against Ardyn Izunia, among Imperial airships whose launchers fire volleys of homing rockets. Noctis and Ardyn both make scripted entrances, hovering into view before each of them warps into battle through his own swords.
The Final Battle
The last stage is set high above a city in a rainstorm, where Noctis flies freely with his Armiger, the ring of spectral swords that circles him. Diving low brings the city into view beneath him, and climbing back up returns him to the open sky above the clouds.
Combat
Abilities & weapons
Free Flight
In the final battle Noctis flies freely in eight directions, and holding left or right builds his speed up from 9 to 36 pixels a frame. Letting go leaves him gliding on, slowing more gently the faster he was going, while his sprite leans into every move.
Warping
Noctis warps as he does in Final Fantasy XV. On the train he throws his sword and becomes it, reappearing wherever it stops, and in the final battle Space with a direction warps him 125 pixels to either side or 200 pixels up or down, with a short pause before the next warp.
The Armiger
E and Q throw his swords to the right and to the left, and the arrow keys tilt every throw upwards or downwards. The 1 and 2 keys switch between single throws and volleys of three swords, and each volley opens a short timing window, announced by a sound and a cue on his sprite, in which another press throws again at once and keeps the chain going.
Lock-On
Holding C makes Noctis lunge upwards and then lock on to his target. He warps straight onto it and keeps chasing it, while homing swords keep appearing around him and steer themselves onto it.
On the Train
On the train Noctis runs and jumps under gravity, dodges with a short hop, warps through the air and warp-strikes to either side or upwards. He also has two special attacks: Rapid Strike, a slash that streaks across the screen and rebounds, and Trident Strike.
The bosses
Enemies & attacks
Aranea Highwind
Aranea leads the fight on the train with 3,000 hit points. Every few seconds she leaps and hurls her sword across the train and dashes forward, and at set points along it she slashes, leaps far ahead or fires in mid-jump.
Ardyn Izunia
Ardyn holds the sky with 50,000 hit points and an Armiger of his own, and a pose gives each of his attacks away a moment before it comes. Every 3.75 seconds he sends out two pairs of golden homing swords, every 6.7 seconds a barrage of six slashing swords, and every ten seconds he warps to another of three platforms by turning into his own thrown sword.
The Empire
Niflheim's Imperial Knights join the chase on the train at random, and up in the sky four missile launchers on the Imperial airships fire volleys of three homing rockets every twelve to fifteen seconds.
Controls
Keys & actions
- W, A, S and D fly Noctis in eight directions.
- Space with a direction warps him that way.
- E and Q throw his swords to the right and to the left.
- The up and down arrows tilt every throw upwards or downwards.
- 1 and 2 switch between single throws and volleys of three swords.
- Holding C locks on to the target.
- F1 clears the rain away, and holding it brings the rain back.
- F9 and F10 hide the performance overlay's figures, and holding them shows them again.
- Holding Space and Backspace together returns to the title screen.
Presentation
Sights & sounds
Title Screen
The game opens on a title screen with the Emerge Fantasy XV logo over a landscape in pixel art, while an instrumental version of Somnus plays behind it.
Rain
Three animated layers of rain fall across the whole screen in the final battle, in front of Noctis, together with the sound of the storm.
An Endless Sky
The sky scrolls on without end, drawn as two copies of one seamless panorama 3,840 pixels wide. Flying low brings the city into view beneath the clouds and climbing back up returns to the open sky, with a wide margin between the two so the scene never flickers back and forth.
Trails
Noctis leaves an aura behind him as he flies and every sword trails light behind it. Each trail is a copy of its sprite that shrinks and fades away a little every frame.
Sound
Every action has a sound of its own, from warps and throws to switches and cues, and each throw plays a random pair or three of weapon sounds, so no two sound quite alike. Every stage has music of its own too, over the sound of the train or of the storm.
Engineering
Code & performance
Java & Greenfoot
Emerge Reborn is written in Java on the Greenfoot framework: 165 classes, seven of them worlds and 155 of them actors, in some 9,300 lines of my own code, with 230 images and 52 sounds, all on a stage of 1920 by 1080 pixels.
Performance Overlay
A live overlay reports the frame rate, the time each frame takes, the average frame rate, the 1% and 0.1% lows and the memory the Java heap is using, read from the JVM itself, so the game's performance can be watched while it runs.
Homing & Steering
Homing swords and rockets turn towards their targets every frame, and the lock-on's swords steer by the angle to their target, worked out with atan2, so they curve in from wherever they appear.
Level Geometry
Floors, walls, platforms and triggers are invisible actors placed at exact coordinates, so the layout of every stage is set out in code. Gravity looks for the floor beneath an actor every frame, and touching a trigger can carry the game on to its next stage.
Timing & Input
Attacks and cooldowns run on timers counted in milliseconds, while combos count frames, so a timing window lasts the same twenty frames every time. Keys that bring the rain or the overlay back, or leave the battle, have to be held for a moment before they act, and a sword is thrown once for each press, so a held key never fires by accident.
Worlds & Shared State
Every stage is a Greenfoot world of its own. The music and the health counters live in shared static fields that any class can reach, and leaving a stage stops its sound, clears its actors and pauses for a moment before the next world takes over.