awesome-love2d
lua-language-server
awesome-love2d | lua-language-server | |
---|---|---|
28 | 79 | |
3,037 | 3,011 | |
1.3% | 1.8% | |
5.6 | 9.4 | |
6 days ago | 5 days ago | |
Lua | ||
Creative Commons Zero v1.0 Universal | MIT License |
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
-
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.
lua-language-server
-
Some questions about code formatting with lsp-zero and mason
Check the documentation of lua_ls
-
Beginner question: is there any coding standard for documenting Lua functions or tables emulating OOP?
You can use LLS extension for VSCode. Documentation: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
Lua: The Little Language That Could
There's lua-language-server which works with types defined in definition files and/or annotations in comments.
-
Documentation Comment highlighting with TreeSitter
Lastly, neovim now supports semantic token highlighting which uses semantic tokens from LSP servers to provide even better, language specific highlighting. Some LSP servers support semantic tokens for doc comments. The lua language server is a good example. Unfortunately, if you're using a language like C or C++, the language servers do not provide semantic tokens for comments because doxygen style comments are not specific to those languages so you might be out of luck for semantic token highlighting.
-
This little thing bugs me: in lua LSP popup content, the closing paren is always highlighted red
I think it is because the language server send a different type for the first line: https://github.com/LuaLS/lua-language-server/blob/eeffd1462b892fda5d01282acf840ba0e154e467/script/core/hover/label.lua (might be one of the other files here, not label)
-
How to add lua-language-server to $PATH
And I was reading this installation guide and after "./bin/lua-language-server " I get this in terminal
-
New to lua
Not sure about typescript but there is a jsdoc equivalent: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
How complex can I make games in Lua?
Lua with lua-language-server and annotated types is a much nicer experience.
-
mini.nvim - release of version 0.8.0
For it to be language-aware (like provide suggestions for module/table/class methods/fields) you also need language server (like lua_ls for Lua). But even without it you should see suggestions from fallback method. If you don't, then 'mini.completion' is not installed and/or activated.
-
PSA: Changes to the mason.nvim registry
I also want to thank current & past GitHub sponsors who help finance costs associated with the plugin. I regularly pay the surplus forward to other devs whose tooling I heavily rely on (huge shout-out to sumneko for working on the Lua language server, without it a plugin of the complexity of mason.nvim would be impossible, go sponsor them here).
What are some alternatives?
classic - Tiny class module for Lua
lua-lsp - A Lua language server
awesome-playdate - A list of awesome resources for Playdate (https://play.date) game development and the Playdate SDK (https://play.date/dev/)
luacheck - A tool for linting and static analysis of Lua code.
helium
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Slab - An immediate mode GUI for the Love2D framework.
lsp-mode - Emacs client/library for the Language Server Protocol
love-nuklear - Lightweight immediate mode GUI for LÖVE games
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
awesome-lua - A curated list of quality Lua packages and resources.
nvim-cmp - A completion plugin for neovim coded in Lua.