awesome-love2d
A curated list of amazingly awesome LÖVE libraries, resources and shiny things. (by love2d-community)
classic
Tiny class module for Lua (by rxi)
awesome-love2d | classic | |
---|---|---|
28 | 11 | |
3,648 | 883 | |
3.7% | - | |
7.6 | 0.0 | |
4 days ago | about 3 years ago | |
Lua | ||
Creative Commons Zero v1.0 Universal | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
awesome-love2d
Posts with mentions or reviews of awesome-love2d.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-01.
-
what should I use to create games in lua? raylib vs love 2d
I tried both and honestly the experience with love is better because it's actually made for lua. There's a vscode extension for love, a ton of lua libraries etc.
-
Beginner question: is there any coding standard for documenting Lua functions or tables emulating OOP?
For OOP, look into metatables. I got started with Lua through Love2D and through that I found some OOP modules that are pretty helpful. Here’s a full list of them: https://github.com/love2d-community/awesome-love2d (I’ve been using classic with my projects)
-
What are the first game engines/frameworks that come to mind when you hear "code only?"
Such a great Lua gamedev framework! And there's lots of libraries in GitHub. Many collected on awesome-love2d so you don't have to build everything yourself.
-
ECS engine in C++ in Lua
love2d is open source and runs on PC and phones. Someone's even ported it to Nintendo3DS/Switch homebrew. nata is the ECS I use, but you can also checkout more libraries on awesome-love2d. I really enjoy using love2d (especially if you enjoy the engine building parts), but one caveat is that major version number bumps will break compatibility. It's usually easy to port and they deprecate functions long in advance. But there's lots of old libraries out there for older versions that won't just work on the latest love2d (like the code for Harvard's CS50 course).
- What are some good libraries for UI and other common needs nowadays?
-
Question about game menus and ui
This is example is just the simple version, a state managers can be very powerful, some examples can be found here
-
Can one make a Stardew Valley clone with Love2D?
I've used tiny ECS a bit, and I like it a lot. Check out this list
- Love2D vs Solar2D
-
How to make apps for mobile?
It depends on what you want to display that will dictate the limitations on how you can adjust to different resolutions. There are probably libraries that can help you with this.
-
how would u do this
Once you've done a few tutorials, you can start doing your own thing. Use the LÖVE Wiki (first link) to your advantage. It has the whole love API documented, and you'll probably need to have it open while you work. At this point, you can also look at this GitHub repository for a list of cool libraries that work with LÖVE.
classic
Posts with mentions or reviews of classic.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-08.
- fe: A tiny, embeddable language implemented in ANSI C
-
Learning on Roblox
Once they grasp some lua basics and I've actually got a little code running but before I do much to make a game. I'd suggest you give them loom my fork includes the documentation with the code. Also a class system either a basic but easy to understand or more featureful.
-
Could someone critique my way of doing simple OOP and perhaps offer improvements or tell me if I'm doing something wrong?
I can't criticism your implementation at the moment but I want to share a tiny class module for Lua as a inspiration. https://github.com/rxi/classic
-
New to Lua and coding in general. Trying to understand the self command. Why does Version 1 of this code work and Version 2/3 not work?
(this example uses classic, which is a library I like using for OOP to keep things simple)
-
Arbitrary 'require' order
I like classic over middleclass: https://github.com/rxi/classic Feels lighter weight, like barely anything.
- How would I go about creating a item/object and be able to instance it.
- I'm confused how inheritance works in Lua. What am I doing wrong?
-
Comparing Unreal, Unity, Godot, and Defold game engines in a graphical table of features
You can do oop in Lua too! You just need a class lib.
-
I would like to animate a circle moving around a circle (api = love)
I'd recommend spending a bit of time with the readme for classic: https://github.com/rxi/classic
-
Any Lua exercises?
Get as simple as possible OOP library, for example this one and write some code using it. This library can inherit ordinary functions, but not any metamethods. Try to improve it. If you can implement metamethod chaining inheritance that allows you to __call an instance of inherited classes like a function, then you understand metamethods thoroughly. Even if you fail, it still will be a good practice.
What are some alternatives?
When comparing awesome-love2d and classic you can also consider the following projects:
awesome-lua - A curated list of quality Lua packages and resources.
middleclass - Object-orientation for Lua
flecs-lua - Lua script host for flecs
blog - gamedev blog
glsp - Language Server Protocol SDK for Go