add map gr, and house pictures
This commit is contained in:
parent
80736dbb57
commit
70ab42d349
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 707 B |
|
@ -0,0 +1,19 @@
|
|||
#include "map.h"
|
||||
|
||||
const int dim_x=100;
|
||||
const int dim_y=100;
|
||||
static int map[dim_x][dim_y];
|
||||
|
||||
int get_item(int x, int y)
|
||||
{
|
||||
if (x&~dim_x||y&~dim_y)
|
||||
return -1;
|
||||
return map[x][y];
|
||||
}
|
||||
|
||||
void set_item(int x, int y, int item)
|
||||
{
|
||||
if (x&~dim_x||y&~dim_y)
|
||||
return;
|
||||
map[x][y]=item;
|
||||
}
|
Loading…
Reference in New Issue