add make target that prints CC, CFLAGS, and LDFLAGS
[menche_rl.git] / map.c
blobbadb8504122a639fc65f38f34d57253578ee3ccc
1 #include <stdlib.h>
2 #include <string.h>
3 #include <stdint.h>
4 #include "map.h"
6 enum tile* get_sector(int y, int x)
8 uint8_t i = 0;
9 enum tile* r = calloc(16*16, sizeof(enum tile));
11 for(; i<(16*16)/4; i++)
12 get_tile(r, rand()%16, rand()%16) = TILE_TREE;
14 return r;