🎉 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

Started by
2 comments, last by GameDev135 22 years, 10 months ago
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
Advertisement
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];
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.
How would I test to see if he runs into black colored pixels or not?

Btw, I am using directx
Feel free to email me at NYYanks432@hotmail.com if you have any questions

This topic is closed to new replies.

Advertisement