🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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?
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