Added comments and todo to collide.c

This commit is contained in:
KikooDX 2020-12-21 13:35:28 +01:00
parent 733533a35d
commit a42fbe24f5
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ uint8_t collide_point(Vec point, const Level *level, uint layer_id) {
}
}
/* TODO: 'collide{right,left,up,down} are a bad idea, should replace all
* of these for by an unique function i.e. 'player_collide'.
*/
bool collide_right(Player *player, Vec position, const Level *level, uint layer_id) {
Vec pos;
vec_cpy(&pos, position);