kuroneko1996 / cyberlab

jrpg-like game in pygame
MIT License
4 stars 3 forks source link

Reorganize collision detection #25

Closed slemonide closed 7 years ago

slemonide commented 7 years ago

I find it pretty confusing how the current collision detection is organized. I propose the following system:

  1. Check if the move is valid
  2. If it is, move the sprite, otherwise don't move it.

TODO:

This should prevent modification of sprite's internal fields all over the place.