
-----------------------------------
Ice2099
Mon Feb 27, 2006 7:40 pm

Pong
-----------------------------------
Hello, all.
I'm relatively new to Turing and programming in general. (Only my third week in grade 10 Comp Science) but I have managed to make a game of Pong Smile

Anywho, any tips on how to improve this would be most appreciated. And I have heard from some of my friends that the ball goes through the top of the paddle in some cases, although this has not happened to me personally.

-----------------------------------
iker
Tue Feb 28, 2006 7:38 pm


-----------------------------------
Very impressive. I like the AI, haven't tried the two player, but I would assume its good. I like how you have the score in a different window. One thing maby, instead of just the horazontal speed increasing insanely fast, have both horazontal and verticle speed increase at different increments (so it doesn't always move at a 45) to add a little more challenge.

-----------------------------------
Delos
Tue Feb 28, 2006 9:27 pm


-----------------------------------
I like this.  It's a fairly well put together programme, with only a few bugs.  As your friends have reported, the ball does sometimes go through the board.  This is simply your collision detection, which may not be entirely 'mutually exclusive and exhastive' in its possibilities.

There are a lot of things you can improve on here, which will cut down your code from 288 lines to...hmm...150 something I'd say.  This all involves Procedures, Functions, Arrays, Types, and all those other wonderful pre-Object Oriented concepts we need.

The Turing Walkthrough will give you a good start on all of these topics.  I suggest you read through the tuts on all mentioned topics before continuing with this post.

I'll wait...

...ok now that you've done that, a couple of comments.


        if ovaly >= y1 + 30 and ovalx = 10 and ovaly 