bouncing shape?

Hi, can anyone tell me how to move a simple circle around the screen making it rebound off all four sides (similar to pong). I'd appreciate your help or even if you could point me in the direction of some code.

thanks
p.s. i'm using borland c++ with the standard DOS bgi layout.


Comments

  • : Hi, can anyone tell me how to move a simple circle around the screen making it rebound off all four sides (similar to pong). I'd appreciate your help or even if you could point me in the direction of some code.
    :
    : thanks
    : p.s. i'm using borland c++ with the standard DOS bgi layout.
    :
    :

    are you asking about drawing circles and using buffers etc to draw it smoothly, or about the geometry for calculating collisions? if its the first, have a look at my page http://members.xoom.com/nthom/ and see if that helps.

  • oops that should be http://members.xoom.com/nthom/f.htm i seem to have screwed up my files :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion