Here's my pong clone. The game object colors can be changed and sound disabled through a right-click menu. I would like to know if there are any game speed problems with it.
Maybe a bit slow, but nice. I would rather use the arrow keys than the mouse though
game speed is a little slow for me (1.4 Athlon, 256 RAM, GF 2 64mb). and it pauses when it tries to play a sound (when the ball hits the paddle)
>>It is possible to use the arrow keys to control the game.
hmm... so it is. But they're slow.
The delay is noticable. The other paddle doesn't refresh its position until after the sound has finished playing.
i belive a good approach to playing a sound without delaying game play is to use multi-threading. if the sound runs on a seperate thread it will not conflict with game/rendering processes. im not sure about implementation details for threads in c++ though.Originally posted by lambs4
Anyone have any suggestion on how to improve my update function or to fix the speed issue?
Sorry, for bringing this back up , but I still want to fix the pausing problem. If you disable the sound does the delay stop? Right-Click->Sound->Off. I think the problem isn't really with the sound, but with how the AI is written.
can I add that the ball speed is too slow too since you brought it back up. You need to increase it a bunch.
"When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."
Not bad. But yes it is slow sometimes.. it pauses a bit after you press the arrow key and then continues to move (i guess it is due to keyboard repeat rate in windows). try to make it independent of the repeat rate, if possible (even i dont know how to do this).
i have been searching for it online for months now, but no luck
try my pong clone, by the way
it is all written in TEXT
Hey, I liked both pong clones. The text one was nice, I made a similar one when I was working out collision detection stuff. I really liked the graphical one, though. In fact, I found it far easier to use the mouse than to use the arrow keys. And while it did seem slow at first, I realised that the longer the ball is bouncing without someone scoring, the faster it goes. It ended up going pretty darn fast for me . I didn't have any weird pauses during sounds or anything, either. It all worked perfectly dandy for me. So nice job, to both of you!
Draco dormiens nunquam titallandus.
Console Graphics Library: http://www.geocities.com/steve_alberto/cgl.html
both games were o.k.
The first game was very slow (run it on 2.66 Ghz)
The other text pong was better..... (You get the real fealing playing a very old game )
The first pong was...boring. The text pong was wicked sweet, though!
Well, there are a few things wrong with your code:
1) It does not work.
2) It does not work.
3) It does not work.
Hope this helps.