+ init_pair(1, COLOR_WHITE, COLOR_BLUE);
+ init_pair(2, COLOR_BLUE, COLOR_BLACK);
+ attr_t attr_mem = COLOR_PAIR(2);
+ attr_t attr_sha = COLOR_PAIR(1);
+ try_resize_winmap(win, world.map.length, world.map.length * 2 + 1);
+ for (y = 0; y < world.map.length; y++)
+ {
+ for (x = 0; x < world.map.length; x++)
+ {
+ attr_t a=' '==world.mem_map[y*world.map.length+x]?attr_sha:attr_mem;
+ char c = world.mem_map[y*world.map.length + x];
+ set_ch_on_yx(win, y, x * 2 + (y % 2), c | a);
+ set_ch_on_yx(win, y, x * 2 + (y % 2) + 1, ' ' | a);
+ }
+ }
+ for (y = 0; y < world.map.length; y++)