Search found 5 matches

by HappyYoyo09
Mon Dec 23, 2024 12:57 am
Forum: General
Topic: how to import classes from a file (middleclass)
Replies: 2
Views: 275

how to import classes from a file (middleclass)

I'm using the middleclass library, and I have my classes and my main.lua file separated. I'm trying to figure out how to import classes from the objects.lua file to the main.lua file. this is my main.lua script, I'm new to lua, so I'm not really sure how importing things with require works local cla...
by HappyYoyo09
Sun Dec 22, 2024 1:22 pm
Forum: General
Topic: good OOP libraries?
Replies: 3
Views: 398

Re: good OOP libraries?

never mind, I managed to fix it, turns out I had misspelled middleclass at some point when I was moving it to the project directory.
by HappyYoyo09
Sun Dec 22, 2024 12:58 pm
Forum: General
Topic: good OOP libraries?
Replies: 3
Views: 398

Re: good OOP libraries?

thanks, this looks like it functions almost exactly like the playdateSDK OOP library, which also uses : syntax. that said, this is the first library I've attempted to use in lua, and I'm not quite sure how it works, I'm using the example they gave under the "Quick Look" heading, saved to t...
by HappyYoyo09
Sat Dec 21, 2024 11:39 pm
Forum: General
Topic: good OOP libraries?
Replies: 3
Views: 398

good OOP libraries?

I'm not really sure what OOP implementation to use, I'm coming from the playdateSDK, which has its own built in library, so something similar to that would be ideal. my main wants would be a way to avoid having to pass in self every time by using some sort of shorthand, as well as inheritance support.
by HappyYoyo09
Tue Nov 26, 2024 8:55 pm
Forum: General
Topic: common libraries?
Replies: 1
Views: 1191

common libraries?

I'm trying to decide whether to use Love2D, so I have a couple of questions what are the more popular classes implementations? I saw there is a list of classes implementations on the wiki, though I'm not sure how up to date that is. If anyone here is familiar with the PlaydateSDK classes implementat...