Pong in 8 hours (SP & MP)

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Pong in 8 hours (SP & MP)

Post by Jack5500 »

Hello community,

This project was a challenge for me. My goal was cloning pong with sp & mp in under 10 hours. That seems not very much, but since I had nearly no Lua knowledge I'm pretty satisfied with the outcome of this experiment. Okay let's come to the feature list:
  • - Singleplayer against a Bot
    - Multiplayer with W-S and UP-DOWN controls
    - Score system
    - Menu system with stateful.lua
    - PNG-based paddels and ball
Image
Image

Well, that's it, pretty much. Please fell free to judge the outcome and the code if you want.
Regards, Jan
Attachments
Pong.love
version 1.2
(1.94 MiB) Downloaded 190 times
Last edited by Jack5500 on Thu Jan 05, 2012 6:51 pm, edited 4 times in total.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Pong in 8 hours (SP & MP)

Post by MarekkPie »

/cough You call it Tetris in game.

Looks very nice. I like the crumbled paper background. The rebounding seems a bit weird, as it mainly reverses the balls x-direction and y-direction on contact, only rarely doing the proper x-direction redirect while keeping the y-direction the same.
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Pong in 8 hours (SP & MP)

Post by Jack5500 »

Ok fixed that :o:
The rebounding is handled via a random variables that decides if the ball rebounds up or down. It seems the easiest way to handle that.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Pong in 8 hours (SP & MP)

Post by coffee »

I'm feeling dislexic. Pong, Tetris, Pongtris, Tetong...
Please, could you not reset pads position when the goal is scored? Or give instead some pause time to player get ready before ball starts again. The rest seems working ok and well. Nice joystick icon.But since it's Pong would be awesome you could get an original Pong spin paddle. :)

EDITED: I suggest a minor separation in score digits... 0|0, 0-0 or 0 0. Or give a distinct color to each score.
Last edited by coffee on Thu Jan 05, 2012 6:55 pm, edited 1 time in total.
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Pong in 8 hours (SP & MP)

Post by Jack5500 »

Thanks for the suggestion. Changed it immediately :)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests