It’s been about a month since the last devlog. The game finally has the thing it was named after: Fimbulwinter.
Fire and Fimbulwinter
You now have a fire to manage. It sits at the top of the sidebar, animated in all its ASCII glory. With every action you take, the fire burns a little lower. Pushing forward and fighting is the key to keeping it alive. Slain enemies have a chance to drop amber, the only material you can use to stoke the fire to extend its life. This fire is also what lets you see. As it burns down, the world gets darker, and your sight closes in with it.
When the last ember dies, Fimbulwinter sets in. Your sight drops significantly as the snow starts to fall. The color drains out of the world. Oh, and every enemy in the dungeon becomes frenzied. You can rekindle a dead fire, but it’ll cost you. Each time the fire dies, it leaves behind a frost scar on the hearth. These scars prevent the fire from ever burning as high again.
This is the first mechanic that really pushes you forward, since hanging around on a floor isn’t free anymore.
Note
I am intentionally speeding up time to demonstrate how the fire dies down.
Lighting and Effects
This is where most of my time went. Honestly, it’s also the part I’m most excited about. Instead of drawing straight to the window, the game now renders to an offscreen scene and runs a post-processing pass over it. This has opened the door to a whole pile of new effects:
- Firelight shades everything you can see, makes the floor glow, and flickers (you can turn the flicker off).
- Bright glyphs bloom, and a vignette closes in as the fire dies.
- Getting hit shakes the screen and makes the entity flash.
- Hits and verses send out pulses, and ripples bend the screen.
- Blood, embers, and frost burst out as particles.
- Each Realm gets its own ambient particles, plus drifting mist and a pulsing venom effect.
- A transition plays on the stairs.
- Low health displays a warning pulse.
Fog of War
You finally have a real field of view. Anything outside it falls into fog, but the game remembers the items and traps you’ve already spotted. Traps got sneakier, too. You can hear one spring out of sight, but you won’t find out what set it off.
Rendering
Everything is drawn with CP437 now, the classic IBM PC character set that so many roguelikes are built on. Map and text glyphs share one atlas, get tinted Dwarf Fortress-style, and sit on two different grids: square cells for the map and half-width cells for text, the same trick Cogmind uses.
I also wrote a reader and writer for .xp files, the format REXPaint saves to, so the game’s menu screens are now drawn as .xp art. If you’re interested, I recently wrote an article on how I’m decoding .xp files in Odin.
Menus and Saving
Fimbul now has a main menu and a pause menu. The pause menu shows the run’s seed and the game’s version, and it has a settings menu for toggles like smooth animation. You can save and load, too, including saving without quitting.
They’re not pretty, but they get the job done. I’ll circle back and make them prettier at some point.
Replays and Morgue Files
Whether you win or lose, Fimbul now generates a morgue file for your character. It records things like:
- Where in the dungeon you died
- What killed you
- How many enemies you’d slain
- What the fire looked like when you died
- The map
- Stats, gear, last words (a snapshot of the last few log messages)
- Replay data
That last item is important to me. With replay data, you can send me your morgue file, and I can inspect what your run looked like in its entirety. All I have to do is import that morgue file into my replay tool, and I can get a full play-by-play of your session, right up to your death. Hopefully it’ll come in handy for diagnosing bugs!
To generate this replay data, I needed to make sure the entire game was deterministic. The graphics needed their own RNG, separate from the simulation. I also have tests in place to ensure that this determinism stays intact as I build out new features.
Volund
Volund is a new standalone tool that lives in the Fimbul repo. Right now all it does is open a window and draw .xp documents. Not much yet! But it’s the start of my own editor for Fimbul’s art, and I plan on expanding it soon.
General
Other smaller additions to Fimbul include the following:
- Movement is smooth now. Entities slide between cells instead of snapping.
- Verses and disarming now let you pick a target and confirm it.
- Traps have their own colors and labels, so they’re easier to spot.
- The death screen tells you what killed you.
- You can scroll back through old messages, and long lines wrap.
- When the game crashes, it now generates a crash log.
Getting Ready for an Alpha
All of this is cool, but when can you actually play Fimbul?! Well, hopefully soon! I have a small stack of items I’ve collected that I would like to put into the game before it goes out to the public. Things such as adding more variety to the Realms, enemy fairness, a few QoL features, and some balance tweaking are necessary to make this playable for anyone besides me. I’ll keep y’all apprised as things develop.
Until next time 🤙