Search found 109 matches

by keharriso
Mon Aug 05, 2024 11:46 pm
Forum: General
Topic: Atom alternatives
Replies: 10
Views: 7156

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.
by keharriso
Mon Aug 05, 2024 11:31 pm
Forum: General
Topic: Atom alternatives
Replies: 10
Views: 7156

Re: Atom alternatives

VS Code is great! Try this guide: https://sheepolution.com/learn/book/bonus/vscode
by keharriso
Fri Jul 19, 2024 1:30 am
Forum: General
Topic: Can't call table values??
Replies: 12
Views: 6521

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).
by keharriso
Sun Jul 14, 2024 6:15 pm
Forum: General
Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
Replies: 7
Views: 5751

Re: [SOLVED] Lua Language Server type annotations for rxi/classic classes

gcmartijn wrote: Sat Jul 13, 2024 8:43 am How did you include love ?
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"
    ],
by keharriso
Fri Jul 12, 2024 12:01 am
Forum: General
Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
Replies: 7
Views: 5751

Re: Lua Language Server type annotations for rxi/classic classes

Solution found!

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
by keharriso
Wed Jun 26, 2024 1:24 pm
Forum: General
Topic: Hesitate to come back on Love2D
Replies: 12
Views: 9451

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
by keharriso
Sun Jun 16, 2024 2:10 pm
Forum: General
Topic: Code editor made in Love2D?
Replies: 6
Views: 1559

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.
by keharriso
Sun Jun 09, 2024 12:45 am
Forum: General
Topic: [SOLVED] Lua Language Server type annotations for rxi/classic classes
Replies: 7
Views: 5751

[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?
by keharriso
Sun Jun 02, 2024 11:30 pm
Forum: Support and Development
Topic: Online game
Replies: 5
Views: 1736

Re: Online game

Networking is complicated. It's hard to diagnose the problem without some sample code.
by keharriso
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: 922

Re: Having a problem with putting a function into a list

I think you're missing an equals sign.

You want

Code: Select all

textsFunctions = {F1}