NewsCrawler.org

How a solo developer built a custom game engine for the puzzle game Satelital

How I made a custom game engine for Satelital
Early prototype of a tile-based level editor built with LÖVE and Lua.
Testing alpha blending with my first vulkan triangles
Funny looking bug I got doing the Vulkan port
Image: spectralorbit.com

The developer of Satelital, a rule-discovery puzzle game about learning alien logic, has released the game. They built most of the tools themselves, including the engine, renderer, puzzles, editors, UX, design, art and music, to learn the fundamentals of game technology.

The developer started in C++ with SDL2[1], then moved to OpenGL for better graphics and added shader code reloading, which they call their biggest regret not having from the start. They later replaced SDL2 with their own platform layer of a few thousand lines for macOS and Windows, and replaced most of the C++ standard library with their own base library, which took a month and shortened compile times. They moved to Vulkan[2] to get HDR, since HDR did not work on macOS through OpenGL, and MoltenVK[3] made Vulkan run on macOS.

Instead of a 3D engine, the developer used a fixed top-down orthographic view, prerendering assets in Blender and loading their albedo, normal and height maps as textures. Dynamic shadows are drawn with ray marching[4] over the height maps, and planet terrain is generated procedurally in shaders.

Video from the article · Watch on YouTube

Read the original spectralorbit.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page