diff options
Diffstat (limited to 'inc/cell.h')
-rw-r--r-- | inc/cell.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/cell.h b/inc/cell.h new file mode 100644 index 0000000..eceb45c --- /dev/null +++ b/inc/cell.h @@ -0,0 +1,19 @@ +#pragma once + +typedef struct Cell Cell; +struct Cell { + int id; + int x; + int y; + int width; + int height; + int *data; + Cell *next; +}; + +extern float g_shake; + +Cell *cell_load(const char *pattern, int id, int x, int y); +void cell_destroy(Cell *this, bool recurse); +void cell_draw(Cell *this, int x, int y); +int2 cell_find(Cell *this, int tile); |