-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstantes.h
35 lines (29 loc) · 1.39 KB
/
constantes.h
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
#ifndef CONSTANTES_H
#define CONSTANTES_H
// Minimum dimension of the game graphics in pixels
const int REJILLA = 20;
// Number of rows and columns for the board
const int COLUMNAS = 8;
const int FILAS = 12;
// Window dimensions
const int ANCHO = (COLUMNAS + 12) * REJILLA;
const int ALTO = (FILAS + 2) * REJILLA;
// color code for rendering
const int colores[16][3] = {{0,0,0}, //0 black
{255,255,255}, //1 white
{0xC0,0xC0,0xC0}, //2 silver
{0,255,255}, //3 aqua
{0,0,255}, //4 blue
{255,0,255}, //5 Fuchsia
{0x80,0x80,0x80}, //6 grey
{0,0x80,0}, //7 green
{0,255,0}, //8 Lime
{0x80,0,0}, //9 Maroon
{0,0,0x80}, //10 Navy
{0x80,0x80,0x80}, //11 Olive
{0x80,0,0x80}, //12 Purple
{255,0,0}, //13 Red
{0,0x80,0x80}, //14 Teal
{255,255,0} //15 yellow
};
#endif