game/tetris/config.hpp

67 lines
1.5 KiB
C++
Raw Normal View History

#ifndef TETRIS_CONFIG_H
#define TETRIS_CONFIG_H
2020-09-11 13:05:41 +00:00
#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
2020-12-18 14:14:08 +00:00
#define MENU_ITEM_ID 0x10000001
#define MENU_BACKGROUND_ID 0x10000002
#define MENU_TEXT_ID 0x10000003
#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
2020-09-29 16:22:26 +00:00
#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
2021-01-30 20:35:25 +00:00
#define PIECE_ACTION_UPDATE_BLOCK 1
#define colors color_schemes[color_schemes_names[selected_color_scheme]]
2020-11-21 19:58:52 +00:00
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;
2020-09-29 16:22:26 +00:00
extern bool g_show_3d;
#endif