Ellipse and making sure a character doesnt go through it
I am making a hockey game. I have an ellipse for the hockey rink. The player is a square. I want to make it so that the player cant go through the rink. How would I do this?
Feel free to email me at NYYanks432@hotmail.com if you have any questions
August 17, 2001 03:51 PM
What kind of language... C++?, VB? Other?
And what kind of programming... DOS? OpenGL? Windows? DirectX?
After that i can help u (maby)...
//
char nicon[255];
And what kind of programming... DOS? OpenGL? Windows? DirectX?
After that i can help u (maby)...
//
char nicon[255];
Use a collision map. Which is the size of the rink. If the X,Y location of player encounters black pixels of collision map then player can''t pass. If white, he''s free to move.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement