davidjtferguson / dancejab

super simple fighting game. dashing and jabbing only.
MIT License
2 stars 0 forks source link

re-wire hitboxes #9

Closed davidjtferguson closed 5 years ago

davidjtferguson commented 5 years ago

Hitboxes and hurtboxes need to be easily re-configurable so we can mess around with art and how the boxes should work.

Seems to be half way there but need to test more and make the code clear. Currently there is the comment

  --hitbox sizes in pixels
  -- (won't effect visual)
  -- ... and probs don't work

So need to remember why it 'probs won't work' and remove that issue.

Draw a rectangle where the hitbox is instead of a sprite, since we won't be using seperate sprites anymore.

Want the hurtboxes to be seperate from the visual, so need an offset to say if the top left of the sprite is the origin where is the smaller hurtbox should sit.