breakhack/src/defines.h

37 lines
856 B
C
Raw Normal View History

#ifndef DEFINES_H_
#define DEFINES_H_
#include "config.h"
2017-12-19 19:42:05 +01:00
/* Room/Map dimensions */
#define MAP_ROOM_WIDTH 16
#define MAP_ROOM_HEIGHT 12
#define MAP_V_ROOM_COUNT 10
#define MAP_H_ROOM_COUNT 10
#define TILE_DIMENSION 32
2018-01-23 12:14:44 +01:00
#define SPRITE_DIMENSION 16
/* Display stuff */
2018-01-24 08:52:50 +01:00
#define GAME_VIEW_WIDTH (MAP_ROOM_WIDTH * TILE_DIMENSION)
#define GAME_VIEW_HEIGHT (MAP_ROOM_HEIGHT * TILE_DIMENSION)
2018-01-23 12:14:44 +01:00
2018-01-24 08:52:50 +01:00
#define RIGHT_GUI_WIDTH (10 * SPRITE_DIMENSION)
2018-01-23 12:14:44 +01:00
#define RIGHT_GUI_HEIGHT GAME_VIEW_HEIGHT
2018-01-24 08:52:50 +01:00
#define BOTTOM_GUI_HEIGHT (10 * SPRITE_DIMENSION)
#define BOTTOM_GUI_WIDTH (GAME_VIEW_WIDTH + RIGHT_GUI_WIDTH)
2018-01-23 12:14:44 +01:00
2018-01-24 08:52:50 +01:00
#define SCREEN_WIDTH (GAME_VIEW_WIDTH + RIGHT_GUI_WIDTH)
#define SCREEN_HEIGHT (GAME_VIEW_HEIGHT + BOTTOM_GUI_HEIGHT)
/* Windows and compile crap */
#ifdef _WIN32
#define strdup _strdup
#endif // _WIN32
#define UNUSED(x) (void)(x)
#endif // DEFINES_H_