summaryrefslogtreecommitdiff
path: root/src/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.h')
-rw-r--r--src/room.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/room.h b/src/room.h
index 40a6974..9d6661a 100644
--- a/src/room.h
+++ b/src/room.h
@@ -5,13 +5,17 @@
#include <SDL2/SDL.h>
+#define TT_ROOM_W 19
+#define TT_ROOM_H 15
+
typedef struct tt_room {
- const SDL_Rect *tiles[15][19];
- void *bodies[15][19];
+ char tiletypes[TT_ROOM_H][TT_ROOM_W];
+ const SDL_Rect *tiles[TT_ROOM_H][TT_ROOM_W];
+ void *bodies[TT_ROOM_H][TT_ROOM_W];
} tt_room;
-tt_room *tt_room_load(int num);
+tt_room *tt_room_load(char c);
void tt_room_draw(SDL_Renderer *rdr, SDL_Texture *txr, tt_room *room);