[minor] Added note on camera_init

This commit is contained in:
KikooDX 2020-09-23 15:59:31 +02:00
parent 62ca2886e9
commit e6ed0ad85e
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ void camera_step(Camera *camera)
void camera_init(Camera *camera, Player *player, const Level *level)
{
/* NOTE: This system doesn't totally works, but it's good enough for now. */
/* check level size */
const Vec level_dim = {level->width * (TILE_SIZE / VEC_PRECISION * SCALE),
level->height * (TILE_SIZE / VEC_PRECISION * SCALE)};