From 744115fe481b928b2de4930a9b9c41794dce10e0 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 13 Oct 2022 21:25:06 +0300 Subject: add some comments --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 13c2ed1..07675b7 100644 --- a/src/main.c +++ b/src/main.c @@ -7,7 +7,7 @@ #include "tiles.h" #include "tilemap.h" -// amount of tiles +// amount of different tiles and their rotations size_t TILES; // width and height of a single tile @@ -72,7 +72,7 @@ void collapse_this(int i) size_t t = possibilities[rand() % psz]; collapse(i, t); // collapse a random tile - // apply a bitmask, based on the direction + // apply a bitmask, on tiles around the newly collapsed tile if(i / SWIDTH != 0) // up if(!(has_collapsed(i-SWIDTH))) mask(i-SWIDTH, t, 0); -- cgit v1.2.3