From 9d08026e70c3a474182a7b76c25fd9cf53abdf57 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 2 Mar 2021 18:19:35 +0300 Subject: Fullscreen, etc... --- src/room.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/room.h') diff --git a/src/room.h b/src/room.h index f1f9ba2..23aca00 100644 --- a/src/room.h +++ b/src/room.h @@ -1,23 +1,20 @@ #ifndef TAKETHIS_INCLUDED_ROOM #define TAKETHIS_INCLUDED_ROOM - -#include #include "body.h" - +#include #define TT_ROOM_W 20 #define TT_ROOM_H 16 typedef struct tt_room { - SDL_Rect *floor[TT_ROOM_H][TT_ROOM_W]; - tt_body *walls[TT_ROOM_H][TT_ROOM_W]; - tt_body *bodies; - int bodies_count; + SDL_Rect * floor[TT_ROOM_H][TT_ROOM_W]; + tt_body * walls[TT_ROOM_H][TT_ROOM_W]; + tt_body * bodies; + int bodies_count; struct tt_room *neighbours[4]; } tt_room; - void tt_room_draw_background(tt_room *room); void tt_room_draw_foreground(tt_room *room); @@ -25,5 +22,4 @@ int tt_room_collide(tt_room *room, SDL_Rect *box); int tt_room_out(tt_room *room, SDL_Rect *box); - #endif -- cgit v1.2.3