Search found 18 matches

by hokuto
Fri Apr 14, 2023 2:32 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

Rude I was trying to help in best faith. But i have once again proven why i choose to put OOP users on ignore. You are the only rude person in this forum. You only know how to criticize and make people dizzy and you don't teach anything. And you have once again written something useless, which is u...
by hokuto
Fri Apr 14, 2023 2:19 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

Brot's excuse is that he's German (even though he's the only German I've know with so much bile to spread). Anyway... There are several approaches to gamestates. But first let's define what we're talking about. When you're in the menu screen, you want to handle the menu; when you are in the game sc...
by hokuto
Fri Apr 14, 2023 2:16 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

You have multiple declarations of love.update() and love.draw() This is your first project and you are still learning the basics of Lua language and Löve2D. At this point OOP is too advanced. (That is not really oop anyway.) In the "Programming in Lua" documentation it is chapter 16, quit...
by hokuto
Thu Apr 13, 2023 1:36 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

This is the same code. You havent changed anything. All you did was cosmetics but the code flow is the same. Hehehe, I laugh so as not to cry. During these days the only thing you have shown me is a very messy little example, with a horrible and confusing syntax and your comments are even more conf...
by hokuto
Wed Apr 12, 2023 8:55 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

Here is the updated pong code, I have tried to follow BrotSagtMist's advice and not use oop and be faithful to the example that happened to me, but I have a problem. The functions handled by the player and the cpu have a love.draw and when they are painted on the screen only one appears, so how can ...
by hokuto
Wed Apr 12, 2023 3:30 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

BrotSagtMist is using some technics that are very useful but when starting out, they are too confusing. All "tricks" of the Lua language are documentated, afterall programming always follows strict rules. But you will not find it in beginner tutorials. Tutorials often write stuff that is ...
by hokuto
Wed Apr 12, 2023 3:28 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

When I've seen a love tutorial, the first thing it teaches you is the love.load, love.update and love.draw functions that you have to place them in order and then you create your tables as objects and place them appropriately in each function. Do they explain why? Dont write anything that you do no...
by hokuto
Tue Apr 11, 2023 2:26 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

I am going to try to explain myself well because it is not easy to write in my language and then translate it with the translator and tweak until something understandable remains. When I've seen a love tutorial, the first thing it teaches you is the love.load, love.update and love.draw functions tha...
by hokuto
Mon Apr 10, 2023 7:01 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

I wouldn't pay much attention to that kind of flamebait. Flamebait my ass, he asked for opinion, no? And my opinion is that you should not waste your time trying to make code running that should not be in you game at the first place. If i had to replicate the file above i would end up with somethin...
by hokuto
Mon Apr 10, 2023 6:51 pm
Forum: Support and Development
Topic: supervision of my first game(pong)
Replies: 32
Views: 6093

Re: supervision of my first game(pong)

Personally, if your goal is to try and figure out the 'best way' to do things I'd recommend looking to the community for examples of projects they feel are well-written (and why, if they're in the mood to explain!) and studying those. Tell me where I can find these projects to download and study th...