More cleanups of the tests and fixes to the room and door positioning.

This commit is contained in:
Zed A. Shaw 2026-03-15 22:53:00 -04:00
parent 8e2a691337
commit 02d23bb77d
11 changed files with 75 additions and 78 deletions

View file

@ -3,39 +3,39 @@
#include <string>
#include <array>
constexpr const int INV_SLOTS=16;
constexpr const int TEXTURE_WIDTH=256;
constexpr const int TEXTURE_HEIGHT=256;
constexpr const int RAY_VIEW_WIDTH=900;
constexpr const int RAY_VIEW_HEIGHT=600;
constexpr const int SCREEN_WIDTH=1280;
constexpr const int SCREEN_HEIGHT=720;
constexpr const int RAY_VIEW_X=(SCREEN_WIDTH - RAY_VIEW_WIDTH);
constexpr const int RAY_VIEW_Y=0;
constexpr const int GLOW_LIMIT=220;
constexpr const int LIGHT_MULTIPLIER=2.5;
constexpr const float AIMED_AT_BRIGHTNESS=0.2f;
constexpr const int MAP_TILE_DIM=64;
constexpr const int ICONGEN_MAP_TILE_DIM=64;
constexpr const int PLAYER_SPRITE_DIR_CORRECTION=270;
constexpr const int RENDER_DISTANCE=500;
constexpr const int ROOM_SIZE=3;
constexpr int INV_SLOTS=16;
constexpr int TEXTURE_WIDTH=256;
constexpr int TEXTURE_HEIGHT=256;
constexpr int RAY_VIEW_WIDTH=900;
constexpr int RAY_VIEW_HEIGHT=600;
constexpr int SCREEN_WIDTH=1280;
constexpr int SCREEN_HEIGHT=720;
constexpr int RAY_VIEW_X=(SCREEN_WIDTH - RAY_VIEW_WIDTH);
constexpr int RAY_VIEW_Y=0;
constexpr int GLOW_LIMIT=220;
constexpr int LIGHT_MULTIPLIER=2.5;
constexpr float AIMED_AT_BRIGHTNESS=0.2f;
constexpr int MAP_TILE_DIM=64;
constexpr int ICONGEN_MAP_TILE_DIM=64;
constexpr int PLAYER_SPRITE_DIR_CORRECTION=270;
constexpr int RENDER_DISTANCE=500;
constexpr int ROOM_SIZE=3;
constexpr const int BOSS_VIEW_WIDTH=1080;
constexpr const int BOSS_VIEW_HEIGHT=SCREEN_HEIGHT;
constexpr const int BOSS_VIEW_X=SCREEN_WIDTH - BOSS_VIEW_WIDTH;
constexpr const int BOSS_VIEW_Y=0;
constexpr int BOSS_VIEW_WIDTH=1080;
constexpr int BOSS_VIEW_HEIGHT=SCREEN_HEIGHT;
constexpr int BOSS_VIEW_X=SCREEN_WIDTH - BOSS_VIEW_WIDTH;
constexpr int BOSS_VIEW_Y=0;
constexpr const bool VSYNC=false;
constexpr const int FRAME_LIMIT=60;
constexpr const int NUM_SPRITES=1;
constexpr const int MAX_LOG_MESSAGES=17;
constexpr bool VSYNC=true;
constexpr int FRAME_LIMIT=60;
constexpr int NUM_SPRITES=1;
constexpr int MAX_LOG_MESSAGES=17;
#ifdef NDEBUG
constexpr const bool DEBUG_BUILD=false;
constexpr bool DEBUG_BUILD=false;
#else
constexpr const bool DEBUG_BUILD=true;
constexpr bool DEBUG_BUILD=true;
#endif