diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-13 21:25:06 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-13 21:25:06 +0300 |
commit | 744115fe481b928b2de4930a9b9c41794dce10e0 (patch) | |
tree | 303cfb8bae18c25ce3beb723f4d7f5c2af8856a9 /src/main.c | |
parent | af0cf5646bb703daf5f777f478017b46f137ed99 (diff) |
add some comments
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |