← Back to context

Comment by honeycrispy

4 hours ago

I'm fascinated with how that game is almost entirely written in Lua.

The underlying voxel game engine is written in C++.

https://github.com/luanti-org/luanti

  • Yes, the engine handles shaders, networking, DBMS backends (Sqlite, Postgres,... to store "worlds"), entities (mobs/items/vehicles...) to name the obvious things, but the logic of the game (weather, mob AI, user/world interaction, inventories, forms and other dialog box, custom world generation) and other other functions (area protections in multiplayer, account management, chat moderation, ...) are done with Lua 5.1 JIT generally.

    One can also hook it with external services, e.g. instant messaging.

    [1] https://content.luanti.org/packages/?type=mod&page=1&tag=com... (couldn't find a more accurate category in ContentDB; it's "complex" because downloading and installing a mod or a game with Luanti is a couple of clicks).