From a236f83d8cd680f956677ac6d65f0a953036e144 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 19 Feb 2021 10:02:23 +0300 Subject: Room can be loaded. --- src/room.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/room.h (limited to 'src/room.h') diff --git a/src/room.h b/src/room.h new file mode 100644 index 0000000..40a6974 --- /dev/null +++ b/src/room.h @@ -0,0 +1,27 @@ +#ifndef TAKETHIS_INCLUDED_ROOM +#define TAKETHIS_INCLUDED_ROOM + + +#include + + +typedef struct tt_room { + const SDL_Rect *tiles[15][19]; + void *bodies[15][19]; +} tt_room; + + +tt_room *tt_room_load(int num); + +void tt_room_draw(SDL_Renderer *rdr, SDL_Texture *txr, tt_room *room); + +/* +void tt_room_rtol(SDL_Renderer *rdr, SDL_Texture *txr, + tt_room *right, tt_room *left, int permille); + +void tt_room_utod(SDL_Renderer *rdr, SDL_Texture *txr, + tt_room *up, tt_room *down, int permille); +*/ + + +#endif -- cgit v1.2.3