pong clone

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
x_eqis
Posts: 18
Joined: April 10th, 2012, 5:37 pm

pong clone

Post by x_eqis » April 23rd, 2012, 6:04 pm

hello programming folk,
I googled for the game PONG and learned there are no clones whatsoever out there :lol: so I decided to try my own. Please find it attached.
There is a computer ennemy, and the score is counted and displayed. also, both the computer and the ball get faster if the player wins points, so the first points are easy but the game gets harder towards the end.

next stop: TETRIS!!!!
x_eqis

PS @ chili: I just watched the beginning of the new tutorial...thanks a lot for showcasing that little game man!! and that poem...wicked! - yet awesome! btw: you do underestimate your german pronounciation.
Cannot wait to watch the rest of lesson 14...will chili handle ray-tracing at last?
Attachments
pong.rar
code and executable
(54.24 KiB) Downloaded 366 times

Voxavs
Posts: 8
Joined: April 15th, 2012, 7:07 pm

Re: pong clone

Post by Voxavs » April 23rd, 2012, 6:20 pm

Wow man, still trying to decipher your code (cos I'm not good at reading the code). Good job.

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: pong clone

Post by LuX » April 23rd, 2012, 7:06 pm

Very nice.

Very nice indeed. :ugeek:
ʕ •ᴥ•ʔ

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: pong clone

Post by chili » April 24th, 2012, 4:29 am

Your code is as messy as ever X_Eqis! :lol:
I'm glad to see that you have separated out your drawing routines from your simulation routines though. Always nice to know my teachings aren't falling on deaf ears. ;)

Anyways, I might tease you about your coding style, but I can't argue with the results. Very nice indeed bro. The scoreboard and increasing difficulty level was a nice touch btw.

P.S. Are you still waiting on KPence to post his scrolling code? If you're interested I might whip up a simple demonstration of scrolling for you to take a peek at and get some ideas from. Not a full blown tutorial mind you, just some sample code.
Chili

x_eqis
Posts: 18
Joined: April 10th, 2012, 5:37 pm

Re: pong clone

Post by x_eqis » April 24th, 2012, 6:19 am

Hey chili,
in german (maybe in english too?) there's a saying that goes like "only the genius controls the chaos" :ugeek:
This saying certainly doesn't apply to my code which is just messy. Well, for now it kind of works but I hope that when I work on more complex programs, I will have to force myself to improve my layout. Until then, I will just continue labelling it a "progressive approach to layout"...

Concerning the scrolling sample code: I would be highly interested and more than glad to see how it can work if someone who actually knows something wrote it. Wow - scrolling AND mouse support in the same year - so much more than I could hope for...a big thank you once again for everything.

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: pong clone

Post by LuX » April 24th, 2012, 7:10 am

Yeah a scrolling map could be cool :)
I'm also waiting for the File IO, planning to replicate my isometric engine from visual basic :D
damn thing is laggy as hell and damn VB doesn't support true transparency withing the same form, so I had to make like 60 forms just to get the separate layers.

Can't wait for new lessons, Chili! I'm impatient... IMPATIENT! :twisted:
ʕ •ᴥ•ʔ

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: pong clone

Post by chili » April 24th, 2012, 8:54 am

I'd like to record the next one right at this minute, but my mouth is practically swollen shut. ;)
The good news is that FileIO is coming in the near future, and the next few lessons won't be marathons like the last batch have been, so I should be getting them out at a faster pace.
Chili

Post Reply