You've landed in a world where lava is trying to swallow everything around you. Science fiction? No, this is a new game project! In this world, completely flooded with lava, you have to escape from ruins, laboratories, abandoned buildings, castles and mysterious technical structures.

The game follows a linear progression with steadily rising difficulty. Every stage is a unique location with its own puzzles and quirks. But all stages share one thing: you need to find the portal and step through it.

The game was built with WebGL, and I used the Three.js library for development. The maps were drawn in TrenchBroom — a very convenient editor for building simple locations. I could have used Blender, Maya, 3ds Max or even Houdini, but this story isn't about them; it's about TrenchBroom and why I went with it.

First of all, in this editor you can place entities and set parameters for each of them, and you can easily add your own entities as well.

Screenshot-2024-04-01-at-22.41.13

Building a “mini” game engine on top of Three.js is fairly transparent, but far from simple. We write a parser for Quake .map files (the main format in TrenchBroom). We convert the resulting set of brushes and entities into a convenient format for work and change the main axis from Z to Y.

Then we bring the entities to life. For that I needed doors, buttons, platforms, triggers, teleports, light sources and other auxiliary elements. The most important ones were doors, platforms and buttons — they're based on a single entity and differ only in a set of parameters. That greatly simplified writing the code. Literally, by writing the code for one entity I made the world more alive, and adding triggers to create links between objects made the world fully alive.

After the basic engine prototype was ready, the map-making process began. The first maps were a set of experiments with entities. They never made it into the release and stayed behind the scenes. The very first map that appeared was “Reactor”. That's where the journey began.

Screenshot-2024-03-31-at-01.45.59
Map - Reactor

The next map was “Tunnel”. It didn't appear by chance and has its own backstory. Once I saw a record sleeve from a space-themed music compilation where mirrors placed at a slight angle created the illusion of a fantastic tunnel. At that moment it made a very unusual impression on me and fired up my imagination about travelling to other planets. All the more so because the record featured artists with many compositions about space, whom I really like: Jean-Michel Jarre, Didier Marouani and others.

Screenshot-2024-03-31-at-01.45.04-1
Map - Tunnel

The game is published on itch.io (a very convenient platform for publishing your projects).

Play Lava