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?
PONG programmed in like an hour by a noob (me)
PONG programmed in like an hour by a noob (me)
Last edited by Alex_FIG on Wed Feb 08, 2023 9:41 pm, edited 4 times in total.
Re: PONG programmed in like an hour by a noob (me)
Maybe i'm blind, but i don't see anything
Re: PONG programmed in like an hour by a noob (me)
LMAO I don't know how this site works
Re: PONG programmed in like an hour by a noob (me)
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)
Nice game, but how to move the pads?
You can make the pixelated font just with default one, see below
https://love2d.org/wiki/love.graphics.newFont
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)
I bet I can make a pong game but worse !
(In half an hour)
(In half an hour)
Using LOVE to make everything except games
Code: Select all
astring = "pog"
print(astring)
--pog
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 1 guest