This repository has been archived on 2022-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
jtmm2-old/include/collide.h

14 lines
287 B
C

#ifndef _DEF_PLAYER_COLLIDE
#define _DEF_PLAYER_COLLIDE
#include <gint/defs/types.h>
#include "conf.h"
#include "level.h"
/* return tile at the given position
* -1 is out of bound */
uint8_t collide_point(Vec point, const Level *level, uint layer);
#endif /* _DEF_PLAYER_COLLIDE */