#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 = "1.09"; // Velocidad del juego constexpr Uint32 GAME_SPEED = 1000 / 60; // 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; // Colores const Color borderColor = {0x27, 0x27, 0x36}; const Color black = {0xFF, 0xFF, 0xFF};