I am working on a Pygame project and there is water on the map. I want to slow down the player if player goes into water. Area where water is has an elliptic shape. I can slow down player if the shape was a rectangle but i don't want the non-water area to slow down the player. So how can i get the area where player is supposed to be slowed down? How to control if character's coordinates are in the ellipse?
Edit: I checked the link in the comments and it worked for me.