PONG programmed in like an hour by a noob (me)
Posted: Wed Feb 08, 2023 4:01 am
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?
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?