#pragma once #include #include "utils.h" #include "lang.h" #ifndef CONST_H #define CONST_H // Tamaño de bloque #define BLOCK 8 #define HALF_BLOCK BLOCK / 2 // Tamaño de la pantalla de juego #define GAME_WIDTH 256 #define GAME_HEIGHT 192 // Zona de juego const int PLAY_AREA_TOP = (0 * BLOCK); const int PLAY_AREA_BOTTOM = GAME_HEIGHT - (4 * BLOCK); const int PLAY_AREA_LEFT = (0 * BLOCK); const int PLAY_AREA_RIGHT = GAME_WIDTH - (0 * BLOCK); const int PLAY_AREA_WIDTH = PLAY_AREA_RIGHT - PLAY_AREA_LEFT; const int PLAY_AREA_HEIGHT = PLAY_AREA_BOTTOM - PLAY_AREA_TOP; const int PLAY_AREA_CENTER_X = PLAY_AREA_LEFT + (PLAY_AREA_WIDTH / 2); const int PLAY_AREA_CENTER_FIRST_QUARTER_X = (PLAY_AREA_WIDTH / 4); const int PLAY_AREA_CENTER_THIRD_QUARTER_X = (PLAY_AREA_WIDTH / 4) * 3; const int PLAY_AREA_CENTER_Y = PLAY_AREA_TOP + (PLAY_AREA_HEIGHT / 2); const int PLAY_AREA_FIRST_QUARTER_Y = PLAY_AREA_HEIGHT / 4; const int PLAY_AREA_THIRD_QUARTER_Y = (PLAY_AREA_HEIGHT / 4) * 3; // Anclajes de pantalla const int SCREEN_CENTER_X = GAME_WIDTH / 2; const int SCREEN_FIRST_QUARTER_X = GAME_WIDTH / 4; const int SCREEN_THIRD_QUARTER_X = (GAME_WIDTH / 4) * 3; const int SCREEN_CENTER_Y = GAME_HEIGHT / 2; const int SCREEN_FIRST_QUARTER_Y = GAME_HEIGHT / 4; const int SCREEN_THIRD_QUARTER_Y = (GAME_HEIGHT / 4) * 3; // Secciones del programa #define PROG_SECTION_LOGO 0 #define PROG_SECTION_INTRO 1 #define PROG_SECTION_TITLE 2 #define PROG_SECTION_GAME 3 #define PROG_SECTION_QUIT 4 // Subsecciones #define GAME_SECTION_PLAY_1P 0 #define GAME_SECTION_PLAY_2P 1 #define GAME_SECTION_PAUSE 2 #define GAME_SECTION_GAMEOVER 3 #define TITLE_SECTION_1 3 #define TITLE_SECTION_2 4 #define TITLE_SECTION_3 5 #define TITLE_SECTION_INSTRUCTIONS 6 // Ningun tipo #define NO_KIND 0 // Colores const color_t bgColor = {0x27, 0x27, 0x36}; const color_t noColor = {0xFF, 0xFF, 0xFF}; const color_t shdwTxtColor = {0x43, 0x43, 0x4F}; #endif