Creada la clase para dibujar el fondo del juego

This commit is contained in:
2024-06-01 13:11:19 +02:00
parent b7cda085cc
commit 75a18c5306
5 changed files with 263 additions and 156 deletions

View File

@@ -15,9 +15,12 @@
#define GAMECANVAS_WIDTH 256
#define GAMECANVAS_HEIGHT 192
// Marcador
const int SCOREBOARD_HEIGHT = (4 * BLOCK);
// Zona de juego
const int PLAY_AREA_TOP = (0 * BLOCK);
const int PLAY_AREA_BOTTOM = GAMECANVAS_HEIGHT - (4 * BLOCK);
const int PLAY_AREA_BOTTOM = GAMECANVAS_HEIGHT - SCOREBOARD_HEIGHT;
const int PLAY_AREA_LEFT = (0 * BLOCK);
const int PLAY_AREA_RIGHT = GAMECANVAS_WIDTH - (0 * BLOCK);
const int PLAY_AREA_WIDTH = PLAY_AREA_RIGHT - PLAY_AREA_LEFT;