77 lines
1.8 KiB
C++
77 lines
1.8 KiB
C++
#ifndef TETRIS_CONFIG_H
|
|
#define TETRIS_CONFIG_H
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#define COLIDER_ID 0x00000001
|
|
#define BRICK_ID 0x00000002
|
|
#define GAME_OVER 0x00000003
|
|
#define SHADOW_ID 0x00000004
|
|
#define BORDER_LEFT_ID 0x00000005
|
|
#define BORDER_RIGHT_ID 0x00000006
|
|
#define FLOOR_ID 0x00000007
|
|
#define SCORE_TEXTURE_ID 0x00000008
|
|
#define BACKGROUND_ID 0x00000009
|
|
#define LINE_ID 0x0000000A
|
|
#define BARRIER_ID 0x0000000B
|
|
#define TEXT_ID 0x0000000C
|
|
|
|
#define MENU_ITEM_ID 0x10000001
|
|
#define MENU_BACKGROUND_ID 0x10000002
|
|
#define MENU_TEXT_ID 0x10000003
|
|
#define MENU_RESUME_ID 0x10000004
|
|
#define MENU_OPTIONS_ID 0x10000005
|
|
#define MENU_RESTART_ID 0x10000006
|
|
#define MENU_QUIT_ID 0x10000007
|
|
#define MENU_MOUSE_ID 0x10000008
|
|
|
|
#define OPTIONS_COLOR_ID 0x10000009
|
|
#define OPTIONS_SHADOW_ID 0x1000000A
|
|
#define OPTIONS_3D_ID 0x1000000B
|
|
#define OPTIONS_SAVE_ID 0x1000000C
|
|
|
|
#define LEFT_BORDER 0.3
|
|
#define RIGHT_BORDER 0.7
|
|
#define BOTTOM_BORDER 1
|
|
#define TOP_BORDER 0.16
|
|
#define BLOCK_SIZE 0.04
|
|
|
|
#define PIECE_BRICK 0
|
|
#define PIECE_T 1
|
|
#define PIECE_L_RIGHT 2
|
|
#define PIECE_Z_RIGHT 3
|
|
#define PIECE_LINE 4
|
|
#define PIECE_L_LEFT 5
|
|
#define PIECE_Z_LEFT 6
|
|
#define PIECE_SHADOW 7
|
|
|
|
#define TICKS_TILL_FALL 500
|
|
#define TICKS_TILL_DESCEND 50
|
|
#define TICKS_TILL_MOVE 100
|
|
|
|
#define PAUSE_PAUSE 1
|
|
#define PAUSE_GAME_OVER 2
|
|
|
|
#define TETRIS_BRICK 0
|
|
#define TETRIS_T 1
|
|
#define TETRIS_L_RIGHT 2
|
|
#define TETRIS_Z_RIGHT 3
|
|
#define TETRIS_LINE 4
|
|
#define TETRIS_L_LEFT 5
|
|
#define TETRIS_Z_LEFT 6
|
|
|
|
#define PIECE_ACTION_UPDATE_COLOR 0
|
|
#define PIECE_ACTION_UPDATE_BLOCK 1
|
|
|
|
#define colors color_schemes[color_schemes_names[selected_color_scheme]]
|
|
|
|
extern std::map< std::string, std::map< std::string, std::string > >
|
|
color_schemes;
|
|
extern std::vector< std::string > color_schemes_names;
|
|
extern long unsigned int selected_color_scheme;
|
|
extern bool g_show_shadow;
|
|
extern bool g_show_3d;
|
|
|
|
#endif
|