Function imap_get
#include <macaw.h>int imap_get(int m, int layer, int x, int y);
Reads one tile of an imported map.
Parameters
mint- The imported map's number.
layerint- Which layer, counting from 0.
xint- The tile's column, counting from 0.
yint- The tile's row, counting from 0.
Returns int
The tile's sprite number, or 0 if it's empty, off the map, or there's no such layer.
In Maps made elsewhere, with importmap, importmapimage, imap_layers, imap_layername, imap_size, imap_picture, imap_used, imap_notes, imap_note, imap_free.