Procedural generation of ASCII cosmos

Опубликовано: 15 Май 2026
на канале: Patryk Szczypień
481
5

Showcase of a little sci-fi roguelike game project I'm doing, written in C and Lua with use of the ncurses library.

The stars on screen are created procedurally with use of a PCG random number generator (https://www.pcg-random.org/), and even though there are dozens of milions of them, the memory footprint is low and constant.
The RNG is seeded with a stars (x, y) position, which means that it will always be in the same place in the galaxy with the same random attributes such as planets, type, etc.

The project is inspired by OneLoneCoder's excellent video about Procedural Generation -    • Procedural Generation: Programming The Uni...  .

Code available at GitHub - https://github.com/bredlej/TleilaxRL