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

Show off your games, demos and other (playable) creations.
Post Reply
Alex_FIG
Prole
Posts: 2
Joined: Wed Feb 08, 2023 3:50 am

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

Post 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?
Last edited by Alex_FIG on Wed Feb 08, 2023 9:41 pm, edited 4 times in total.
User avatar
GVovkiv
Party member
Posts: 685
Joined: Fri Jan 15, 2021 7:29 am

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

Post by GVovkiv »

Maybe i'm blind, but i don't see anything
Alex_FIG
Prole
Posts: 2
Joined: Wed Feb 08, 2023 3:50 am

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

Post by Alex_FIG »

LMAO I don't know how this site works
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

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

Post 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.
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

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

Post by darkfrei »

Nice game, but how to move the pads?
Screenshot_20230210_071626.jpg
Screenshot_20230210_071626.jpg (32.29 KiB) Viewed 2780 times
You can make the pixelated font just with default one, see below
https://love2d.org/wiki/love.graphics.newFont
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

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

Post by zalander »

I bet I can make a pong game but worse !
(In half an hour)
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 1 guest