Search found 18 matches

by hokuto
Mon Apr 10, 2023 6:48 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6358

Re: supervision of my first game(pong)

You could try the approach on this topic for implementing game states https://love2d.org/forums/viewtopic.php?f=3&t=94157 And if you're looking for some simple examples of games with löve (with code), check this link https://simplegametutorials.github.io/love/ Thanks for the links, although the...
by hokuto
Sun Apr 09, 2023 3:17 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6358

Re: supervision of my first game(pong)

I have the first code example, right now I have the title screen and the game screen.

I would like them to look at it and tell me what needs to be improved or changed, I would also like to know how to make pressing enter go from the title screen to the game screen because I don't know how to do it.
by hokuto
Sat Apr 08, 2023 1:55 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6358

Re: supervision of my first game(pong)

That is what a forum is for. But you will likely spawn a ton of angry discussion about how stuff is made right. For example when i look at your previous thread and its about oop, well this is pain. people who try using oop brought the pain upon themself and they deserve no help for it is a terrible...
by hokuto
Fri Apr 07, 2023 1:52 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6358

supervision of my first game(pong)

Hello. An idea occurred to me that I don't know if you would like. I want to make my first game with love2d but something simple and short, it would be the pong game with two phases and little else. I have never made a complete game with love2d, I have only been learning and I will surely have probl...
by hokuto
Sun Apr 02, 2023 1:46 pm
Forum: Support and Development
Topic: problems with oop and inheritance
Replies: 6
Views: 1576

Re: problems with oop and inheritance

I missed a comment and when I translated it with the translator I could understand it. That said, as a exercise, see if you can change the 'Jugador' class so that it adds the player instance to the list of objects. If you can do that, there will be no more reason to call the player's update an draw ...
by hokuto
Fri Mar 31, 2023 4:06 pm
Forum: Support and Development
Topic: problems with oop and inheritance
Replies: 6
Views: 1576

Re: problems with oop and inheritance

Hi, I made a little improvement in the code, shown below Disparo = setmetable({}, Padre) With this change, the Disparo class is now able to use the Padre's class methods the way you intended Thank you very much for the help, now it works perfectly. :awesome: I forgot to say that I only speak Spanis...
by hokuto
Fri Mar 31, 2023 4:00 pm
Forum: Support and Development
Topic: problems with oop and inheritance
Replies: 6
Views: 1576

Re: problems with oop and inheritance

Hi hokuto. I wrote what I understand of emulating classes in Lua in this post here: https://love2d.org/forums/viewtopic.php?p=253586#p253586 The other posts in that thread are also useful. When I was first trying to learn that in Lua, I didn't try to make a complex game with them, but something sim...
by hokuto
Thu Mar 30, 2023 7:43 pm
Forum: Support and Development
Topic: problems with oop and inheritance
Replies: 6
Views: 1576

problems with oop and inheritance

Hi, I'm new to lua and love2d, before using lua I've used processing and I still use it from time to time, but it's not game-oriented, that's why I decided on lua and love2d. I have been trying to learn oop with metatables in lua but I don't understand them very well and I am having problems, I am g...