Page 1 of 1

PONG programmed in like an hour by a noob (me)

Posted: Wed Feb 08, 2023 4:01 am
by Alex_FIG
Exactly what the title says, honestly I'm impressed that I managed to do a sort of functional game in an hour, even though it's not the best code imo. You can check out the source code if you wanna, it'll probably make you cringe tho. Also idk why but sometimes the ball gets stuck for like a second, only on very rare occasions, I still don't know what causes it.

If you really wanna look at the code, I challenge you into finding ways to optimise it, and preferably explain it too!

The controls are:
Left Paddle: W = Up, S = Down.
Right Paddle: O = Up, L = Down.

Fun fact: The font I used for the scores literally weighs more than the code.
Edit: I have no idea how to use attachments, so I gave up and put it in this link: https://mega.nz/file/fbhWhJ7b#5mreaYluk ... c8Wf3CNg7Q
Enjoy pong I guess?

Re: PONG programmed in like an hour by a noob (me)

Posted: Wed Feb 08, 2023 12:39 pm
by GVovkiv
Maybe i'm blind, but i don't see anything

Re: PONG programmed in like an hour by a noob (me)

Posted: Wed Feb 08, 2023 5:34 pm
by Alex_FIG
LMAO I don't know how this site works

Re: PONG programmed in like an hour by a noob (me)

Posted: Thu Feb 09, 2023 7:28 pm
by pgimeno
Maybe it didn't allow you to post an attachment on your first post? If you try again I think you should be able to.

Re: PONG programmed in like an hour by a noob (me)

Posted: Fri Feb 10, 2023 6:17 am
by darkfrei
Nice game, but how to move the pads?
Screenshot_20230210_071626.jpg
Screenshot_20230210_071626.jpg (32.29 KiB) Viewed 2322 times
You can make the pixelated font just with default one, see below
https://love2d.org/wiki/love.graphics.newFont

Re: PONG programmed in like an hour by a noob (me)

Posted: Sun Feb 12, 2023 11:30 am
by zalander
I bet I can make a pong game but worse !
(In half an hour)