X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Flevel.h;h=dc9af8d29ef92dc04141967011b95896e2bd7c4a;hb=7aad8db2edab014c0f750de76bc24bdab63aef2a;hp=ed32ce1a665af9e1fc8b7cdd4cd16fa50a19026f;hpb=5e41feadc19dbc9cda954543cf2b2649ced835b4;p=gbajam22 diff --git a/src/level.h b/src/level.h index ed32ce1..dc9af8d 100644 --- a/src/level.h +++ b/src/level.h @@ -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);