Implementing hitbox polygon

Posted by Delusional Logic on Game Development See other posts from Game Development or by Delusional Logic
Published on 2012-10-23T19:53:45Z Indexed on 2012/10/23 23:20 UTC
Read the original article Hit count: 127

Filed under:
|

I'm creating a shooter, it's still very early, but i'm implementing some polygon hitboxes.

So far i have created a polygon class, and i'm looking into how i can hook it onto my player.

I'm trying to stay away from having a Tick() function in my polygon class, and I would rather not update the position every tick (it would clutter up my tick functions). At the same time I would really like to have the positions in there somehow (it has a drawing function, and i will be using it for hit detection)

How would i go about implementing this polygon object into my entities?

© Game Development or respective owner

Related posts about XNA

Related posts about c#