Separados los elementos de la pantalla en diferentes texturas

This commit is contained in:
2022-09-22 12:42:37 +02:00
parent 5806f7352f
commit c97063e728
11 changed files with 339 additions and 27 deletions

View File

@@ -19,8 +19,10 @@
#define GAMECANVAS_HEIGHT 240
// Zona de juego
const int PLAY_AREA_TOP = (4 * BLOCK);
const int PLAY_AREA_BOTTOM = (30 * BLOCK);
const int PLAY_AREA_X = 0;
const int PLAY_AREA_Y = (4 * BLOCK);
const int PLAY_AREA_TOP = (0 * BLOCK);
const int PLAY_AREA_BOTTOM = (26 * BLOCK);
const int PLAY_AREA_LEFT = (0 * BLOCK);
const int PLAY_AREA_RIGHT = (40 * BLOCK);
const int PLAY_AREA_WIDTH = PLAY_AREA_RIGHT - PLAY_AREA_LEFT;
@@ -32,6 +34,16 @@ 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;
// Marcador
const int SCOREBOARD_X = 0;
const int SCOREBOARD_Y = 0;
const int SCOREBOARD_TOP = (0 * BLOCK);
const int SCOREBOARD_BOTTOM = (4 * BLOCK);
const int SCOREBOARD_LEFT = (0 * BLOCK);
const int SCOREBOARD_RIGHT = (40 * BLOCK);
const int SCOREBOARD_WIDTH = SCOREBOARD_RIGHT - SCOREBOARD_LEFT;
const int SCOREBOARD_HEIGHT = SCOREBOARD_BOTTOM - SCOREBOARD_TOP;
// Anclajes de pantalla
const int GAMECANVAS_CENTER_X = GAMECANVAS_WIDTH / 2;
const int GAMECANVAS_FIRST_QUARTER_X = GAMECANVAS_WIDTH / 4;