#pragma once #include #include #include "utils.h" // Textos constexpr const char* WINDOW_CAPTION = "JailDoctor's Dilemma"; constexpr const char* TEXT_COPYRIGHT = "@2022 JailDesigner"; constexpr const char* VERSION = "0.7"; // Tamaño de bloque constexpr int BLOCK = 8; constexpr int HALF_BLOCK = 4; // Tamaño de la pantalla virtual constexpr int GAMECANVAS_WIDTH = 256; constexpr int GAMECANVAS_HEIGHT = 192; // Zona de juego constexpr int PLAY_AREA_TOP = (0 * BLOCK); constexpr int PLAY_AREA_BOTTOM = (16 * BLOCK); constexpr int PLAY_AREA_LEFT = (0 * BLOCK); constexpr int PLAY_AREA_RIGHT = (32 * BLOCK); constexpr int PLAY_AREA_WIDTH = PLAY_AREA_RIGHT - PLAY_AREA_LEFT; constexpr int PLAY_AREA_HEIGHT = PLAY_AREA_BOTTOM - PLAY_AREA_TOP; constexpr int PLAY_AREA_CENTER_X = PLAY_AREA_LEFT + (PLAY_AREA_WIDTH / 2); constexpr int PLAY_AREA_CENTER_FIRST_QUARTER_X = (PLAY_AREA_WIDTH / 4); constexpr int PLAY_AREA_CENTER_THIRD_QUARTER_X = (PLAY_AREA_WIDTH / 4) * 3; constexpr int PLAY_AREA_CENTER_Y = PLAY_AREA_TOP + (PLAY_AREA_HEIGHT / 2); constexpr int PLAY_AREA_FIRST_QUARTER_Y = PLAY_AREA_HEIGHT / 4; constexpr int PLAY_AREA_THIRD_QUARTER_Y = (PLAY_AREA_HEIGHT / 4) * 3; constexpr int BORDER_TOP = 0; constexpr int BORDER_RIGHT = 1; constexpr int BORDER_BOTTOM = 2; constexpr int BORDER_LEFT = 3; // Anclajes de pantalla constexpr int GAMECANVAS_CENTER_X = GAMECANVAS_WIDTH / 2; constexpr int GAMECANVAS_FIRST_QUARTER_X = GAMECANVAS_WIDTH / 4; constexpr int GAMECANVAS_THIRD_QUARTER_X = (GAMECANVAS_WIDTH / 4) * 3; constexpr int GAMECANVAS_CENTER_Y = GAMECANVAS_HEIGHT / 2; constexpr int GAMECANVAS_FIRST_QUARTER_Y = GAMECANVAS_HEIGHT / 4; constexpr int GAMECANVAS_THIRD_QUARTER_Y = (GAMECANVAS_HEIGHT / 4) * 3; // Secciones del programa constexpr int SECTION_LOGO = 0; constexpr int SECTION_LOADING_SCREEN = 1; constexpr int SECTION_TITLE = 2; constexpr int SECTION_CREDITS = 3; constexpr int SECTION_GAME = 4; constexpr int SECTION_DEMO = 5; constexpr int SECTION_GAME_OVER = 6; constexpr int SECTION_ENDING = 7; constexpr int SECTION_ENDING2 = 8; constexpr int SECTION_QUIT = 9; // Subsecciones constexpr int SUBSECTION_LOGO_TO_INTRO = 0; constexpr int SUBSECTION_LOGO_TO_TITLE = 1; constexpr int SUBSECTION_TITLE_WITH_LOADING_SCREEN = 2; constexpr int SUBSECTION_TITLE_WITHOUT_LOADING_SCREEN = 3; // Colores const color_t borderColor = {0x27, 0x27, 0x36}; const color_t black = {0xFF, 0xFF, 0xFF};