Search found 9 matches

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: 207

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: 207

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: 518

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: 518

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: 2720

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: 2720

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: 6201

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: 6201

Is the proper name löve or love2d?

I just don't know what to officially call it.
by guy
Wed Sep 19, 2018 7:16 pm
Forum: Support and Development
Topic: How can I use multiple files?
Replies: 1
Views: 428

How can I use multiple files?

So I have a main.lua with nothing in it, and a player.lua which is just a rectangle with user input. And none of the tutorials I've seen so far have helped. How can I call player.lua into the main.lua?