blob: c7789374a9818a16d9d550da317fe83ce80c861b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//--------------------------------------------------------------------------------------------------
// CGameConstants.
// A class to hold game global variables.
//--------------------------------------------------------------------------------------------------
#ifndef __CGAMECONSTANTS_H__
#define __CGAMECONSTANTS_H__
class CGameConstants
{
public:
CGameConstants(void);
~CGameConstants(void);
// Width and height of the screen.
static const int SCREEN_WIDTH = 1200;
static const int SCREEN_HEIGHT = 900;
// Color depth of the screen.
static const int SCREEN_BPP = 32;
// Width and height of the player (the image).
static const int PLAYER_IMAGE_WIDTH = 100;
static const int PLAYER_IMAGE_HEIGHT = 150;
// Width and height of the player (on the map, the square under his foots).
static const int PLAYER_WIDTH = 100;
static const int PLAYER_HEIGHT = 100;
// Offset of the player when rendered.
static const int PLAYER_OFFSET_RENDER_X = 0;
static const int PLAYER_OFFSET_RENDER_Y = -50;
// Width and height of the tiles.
static const int TILE_WIDTH = 50;
static const int TILE_HEIGHT = 50;
// Width and height of the map in tiles.
static const int MAP_WIDTH = 24;
static const int MAP_HEIGHT = 18;
// Cantidad de tiles que hay en una fila en la imagen de tiles.
static const int TILE_IMAGE_WIDTH = 16;
// Types of tiles.
static const int TILE_CLASS_WALL = 0;
static const int TILE_CLASS_WALL_ENDING = 1;
static const int TILE_CLASS_FLOOR = 2;
static const int TILE_CLASS_BENCH_TOP = 3;
static const int TILE_CLASS_BENCH_SIDE = 4;
};
#endif /* __CGAMECONSTANTS_H__ */
|