Python Forum
[PyGame] Keeping the player within a polygon
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Keeping the player within a polygon
#3
Thanks for your response. In the actual game I'm making I've got aabb collisions working, I understand that the code I posted is just drawing them and there's no collision detection in place yet. The example was just meant to be a visual that someone could add the collision code to if they wanted to. Sorry for being unclear but I think I can figure it out now, like you said it's just collisions between a circle and a series of lines and I've found some examples already on how to implement that. I appreciate the reply, hope you have a good day ^_^
Reply


Messages In This Thread
Keeping the player within a polygon - by Atekka - Feb-27-2021, 12:16 AM
RE: Keeping the player within a polygon - by Atekka - Feb-28-2021, 11:44 PM
RE: Keeping the player within a polygon - by Atekka - Mar-06-2021, 10:28 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020