Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Ellipse and making sure a character doesnt go through it

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 GameDev135   Members   

133
Like
Likes
Like

Posted 14 August 2001 - 06:28 AM

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?

#2 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 17 August 2001 - 09:51 AM

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];

#3 wd8502   Members   

122
Like
Likes
Like

Posted 17 August 2001 - 03:38 PM

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.

#4 GameDev135   Members   

133
Like
Likes
Like

Posted 19 August 2001 - 12:05 PM

How would I test to see if he runs into black colored pixels or not?

Btw, I am using directx




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.