Search found 109 matches
- Mon Aug 05, 2024 11:46 pm
- Forum: General
- Topic: Atom alternatives
- Replies: 12
- Views: 26503
Re: Atom alternatives
Hopefully someone that uses Mac will come along and help out. I think the guide should work just the same for Mac, but you will need to add the love executable to your PATH environment variable. From some basic searching, it looks like you can do this through the /etc/paths file.
- Mon Aug 05, 2024 11:31 pm
- Forum: General
- Topic: Atom alternatives
- Replies: 12
- Views: 26503
Re: Atom alternatives
VS Code is great! Try this guide: https://sheepolution.com/learn/book/bonus/vscode
- Fri Jul 19, 2024 1:30 am
- Forum: General
- Topic: Can't call table values??
- Replies: 12
- Views: 8723
Re: Can't call table values??
What camera library are you using? It looks like "camera = require 'libraries/camera'" returns a table, which you try to call on line 9 (just like the error message says).
- Sun Jul 14, 2024 6:15 pm
- Forum: General
- Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
- Replies: 7
- Views: 8200
Re: [SOLVED] Lua Language Server type annotations for rxi/classic classes
I think if you are using the LLS plugin by sumneko, you need to add this to your settings.json:
Code: Select all
"Lua.workspace.library": [
"${3rd}/love2d/library"
],
- Fri Jul 12, 2024 12:01 am
- Forum: General
- Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
- Replies: 7
- Views: 8200
Re: Lua Language Server type annotations for rxi/classic classes
Solution found!
Example:
Example:
Code: Select all
---@class Map
---@overload fun(cols: integer, rows: integer): Map
local Map = Object:extend()
function Map:new(cols, rows)
-- initialize map
end
- Wed Jun 26, 2024 1:24 pm
- Forum: General
- Topic: Hesitate to come back on Love2D
- Replies: 12
- Views: 24733
Re: Hesitate to come back on Love2D
If OOP is the only sticking point for LOVE, there's plenty of class libraries out there. I like this one, but there are many more:
https://github.com/rxi/classic
https://github.com/rxi/classic
- Sun Jun 16, 2024 2:10 pm
- Forum: General
- Topic: Code editor made in Love2D?
- Replies: 6
- Views: 2677
Re: Code editor made in Love2D?
Only remove the package if it's not the bit library?
I'm not entirely sure why you need to remove the packages in the first place.
I'm not entirely sure why you need to remove the packages in the first place.
- Sun Jun 09, 2024 12:45 am
- Forum: General
- Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
- Replies: 7
- Views: 8200
[SOLVED] Lua Language Server type annotations for rxi/classic classes
Hello, everyone! I've been having a lot of success with the tiny rxi/classic class library. I understand the Lua Language Server has class and type annotations, but I can't seem to make them work with the classic classes. Has anyone had success using a class library with type annotations?
- Sun Jun 02, 2024 11:30 pm
- Forum: Support and Development
- Topic: Online game
- Replies: 5
- Views: 2551
Re: Online game
Networking is complicated. It's hard to diagnose the problem without some sample code.
- Fri May 24, 2024 9:17 pm
- Forum: Support and Development
- Topic: [ SOLVED ] Having a problem with putting a function into a list
- Replies: 2
- Views: 1565