r/lua • u/morew4rd • Feb 14 '23
Lyte2D, a new game framework that I'm making!
Hi everyone,
I'm making a 2D game framework in C and Lua. It's inspired by LOVE2D!
I just released alpha 0.3, and along with it, better samples and user guide, so now I feel comfortable sharing this with you Lua enthusiasts. (Note this is my first Reddit announcement of Lyte2D!)
https://simple-bits.com/lyte has links to downloads (on itch.io), source code (on github) as well as HTML5 versions of the samples and the user guide + full API. The documentation is bare at this point, but if you have some experience with similar stuff, you should be good to go!
Let me know if anyone has any questions or suggestions. I'm open to constructive criticism as well.
If this post is against the rules, please delete/let me know. Thank you!
PS. Also follow me on Twitter for updates on this! I'll continue to work on this and my own game with it at the same time.
--- EDIT: 0.4 is out with API changes :) --
8
u/morew4rd Feb 14 '23
My goal with this framework is to create a very simple and small framework with an orthogonal API set, single-binary deployments and a small footprint. Windows and Linux binaries are each around 1MB zipped!
4
u/morew4rd Feb 14 '23 edited Feb 14 '23
So some of the design choices that are different compared to LOVE:
And missing bigger pieces:
I'll be adding physics support next. I plan to use a 3D physics engine (ODE) with optional 2D mode. This is to enable some game genres. (Like top-down soccer games)
2
u/Dragon20C Feb 14 '23
How would the layout of the code be, for example in love it has separate functions for drawing and checking input would your implementation follow something similar or is it going to follow the pygame way (which I prefer)
2
u/uskpp Mar 04 '23
That's amazing, your project is fantastic. I will study it and use it in a future project for sure.
1
u/AutoModerator Feb 26 '23
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.
-4
u/AutoModerator Feb 14 '23
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.