UI sprites
[gbajam22] / src / level.h
index ed32ce1..dc9af8d 100644 (file)
@@ -40,6 +40,7 @@ struct level {
        int width, height;
        int orgx, orgy;
        unsigned int xmask;
+       int xshift;
        struct cell *cells;
 
        struct mob *mobs;
@@ -55,6 +56,8 @@ struct player;
 struct level *init_level(const char *descstr);
 void free_level(struct level *lvl);
 
+struct cell *level_cell(struct level *lvl, int cx, int cy);
+
 void upd_vis(struct level *lvl, struct player *p);
 
 void cell_to_pos(struct level *lvl, int cx, int cy, int32_t *px, int32_t *py);