r/lua • u/brettmakesgames • May 20 '26
Usagi Engine v1 Released - Simple Lua 5.5 2D game engine with live reload and cross-platform export
I made a small game engine called Usagi for prototyping 2D games as quickly as possible with Lua 5.5. It's free and open source and made with Rust + Raylib. I just released v1.0 yesterday and thought it'd be fun to share it.
Here's the project's homepage: https://usagiengine.com/
And you can view the source here: https://github.com/brettchalupa/usagi
The engine is used via a command-line, much like cargo. You can usagi init to create a new project. usagi dev to boot up the dev game that live reloads code and assets. And usagi export to generate cross-platform builds of your game for web, Linux, macOS, and Windows.
My motivation for creating Usagi was that I love using tools like Pico-8 and Love2D for prototyping and game jams. But I wanted a free and open source engine with a nicer developer experience. In particular live reload and easy web exports. Usagi embraces constraints and provides sensible defaults, like a pause menu with input binding, to try to help devs focus on the game rather than the ancillary parts of development.
Since the engine is open source, the hope is that if someone makes a prototype they want to turn into a larger commercial game, they can just fork the engine and customize it themselves, write more bits of it in Rust, and change the API as they see fit.
I'd love it if you check the project out and let me know what you think!
5
u/immortalx74 May 20 '26
This looks brilliant and with a very well thought out API!
4
u/Nipth May 20 '26
This looks great! I'm actually part way through a similar project but with C & Raylib. Nice to see a hobby engine with hot reloading too, definitely checking this out :)
Just out of curiosity, how come you chose Lua 5.5 over LuaJIT - was it because of the web exports?
1
u/pytat0 May 24 '26
wow. looks impressive. I was just looking for a game engine on the latest version of lua
is any physics or multiplayer support planned? (or simple guides on building them from scratch)
2
u/AdvantageStatus4635 May 20 '26
looks great
1
u/mcknuckle May 21 '26
Sick! This makes me so excited!
1
u/ouzzgame May 21 '26
Wow! That's awesome! A really interesting project to follow
1
u/UseottTheThird May 23 '26
looks awesome, i also use lua 5.5 for my wip 2d game engine
-4
u/AutoModerator May 20 '26
Hi! It looks like you're posting about Love2D which implements its own API (application programming interface) and most of the functions you'll use when developing a game within Love will exist within Love but not within the broader Lua ecosystem. However, we still encourage you to post here if your question is related to a Love2D project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc.
If your question is about the Love2D API, start here: https://love2d-community.github.io/love-api/
If you're looking for the main Love2D community, most of the active community members frequent the following three places:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.