Search found 11 matches

by guy
Wed Nov 27, 2019 3:43 pm
Forum: Support and Development
Topic: Help with making a class library
Replies: 3
Views: 779

Re: Help with making a class library

That actually makes a lot of sense. Thanks for the reply!
by guy
Wed Nov 27, 2019 7:16 am
Forum: Support and Development
Topic: Help with making a class library
Replies: 3
Views: 779

Help with making a class library

I just started getting back into Lua and I decided to try and write my own class library based on ones made by other people (rxi and recursor specifically). So far I have this: local Class = {} Class.__index = Class function Class:new() local obj = setmetatable({}, self) obj['__call'] = self.__call ...
by guy
Sat Jul 06, 2019 2:34 pm
Forum: Support and Development
Topic: Advantages of using classes over tables for OOP
Replies: 5
Views: 1465

Re: Advantages of using classes over tables for OOP

Yeah I should have been more clear. I knew that there aren't classes in lua, I meant libraries that implement them. But I understand the concept a lot more now, thanks for the help!
by guy
Sat Jul 06, 2019 3:43 am
Forum: Support and Development
Topic: Advantages of using classes over tables for OOP
Replies: 5
Views: 1465

Advantages of using classes over tables for OOP

I've been using love for a while now, and I've mostly just used tables for everything object-oriented. I started looking at source codes for other love games and I see many people using classes for oop. What are the advantages of using classes over tables? Does it really matter?
by guy
Thu May 09, 2019 12:46 am
Forum: Support and Development
Topic: How to do a one-off collision?
Replies: 3
Views: 874

Re: How to do a one-off collision?

Thanks a bunch. I didn't realize it was so simple!
by guy
Wed May 08, 2019 1:25 am
Forum: Support and Development
Topic: How to do a one-off collision?
Replies: 3
Views: 874

How to do a one-off collision?

I'm making a really small game where the player has to reach a door to get to the next level. The door has really simple collision detection where if the player is colliding with it then the collision function returns true. I just wanted to know if there's a way to make it return true just one time ...
by guy
Sat Feb 23, 2019 1:57 pm
Forum: Support and Development
Topic: What's the best way to make boundaries around the screen?
Replies: 4
Views: 3009

Re: What's the best way to make boundaries around the screen?

These work perfectly for what I am trying to do. Thanks for the responses!
by guy
Sat Feb 23, 2019 2:36 am
Forum: Support and Development
Topic: What's the best way to make boundaries around the screen?
Replies: 4
Views: 3009

What's the best way to make boundaries around the screen?

Just a quick question. I have a simple boundary system setup where if the player's x position is higher than 0 he can move left. But the image I'm using for the character is clipping off the screen a bit. I know it's because the x position isn't exact, just wanted to know if there's a better way to ...
by guy
Sat Feb 23, 2019 2:35 am
Forum: General
Topic: Is the proper name löve or love2d?
Replies: 14
Views: 7926

Re: Is the proper name löve or love2d?

thanks a bunch, just wasnt sure.
by guy
Tue Feb 12, 2019 1:39 am
Forum: General
Topic: Is the proper name löve or love2d?
Replies: 14
Views: 7926

Is the proper name löve or love2d?

I just don't know what to officially call it.