Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions raycaster/raycaster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ constexpr float M_PI_H = 1.5707963267948966f;

constexpr float EPSILON = 0.00000001f;

#ifdef PICO_BOARD
#ifdef PICO_BUILD
constexpr uint16_t NUM_SPRITES = 1000;
constexpr uint16_t NUM_STARS = 50;
#else
constexpr uint16_t NUM_SPRITES = 5000;
constexpr uint16_t NUM_STARS = 100;
#endif

#if defined(BLIT_BOARD_PIMORONI_PICOSYSTEM) || defined(BLIT_BOARD_PIMORONI_PRESTO)
constexpr uint16_t OFFSET_TOP = 30;
constexpr uint16_t SCREEN_WIDTH = 120;
constexpr uint16_t SCREEN_HEIGHT = 120;
constexpr uint16_t NUM_SPRITES = 1000;
constexpr uint16_t NUM_STARS = 50;
#define AMBIENT_OCCLUSION // Paints into a mask with a blur pass, disable for a slight performance boost
//#define SHOW_FPS // Frame time is pretty high on PicoSystem, so just turn off the FPS meter :D
#else
constexpr uint16_t OFFSET_TOP = 0;
constexpr uint16_t SCREEN_WIDTH = 160;
constexpr uint16_t SCREEN_HEIGHT = 120;
constexpr uint16_t NUM_SPRITES = 5000;
constexpr uint16_t NUM_STARS = 100;
#define AMBIENT_OCCLUSION
//#define SHOW_FPS
#endif
Expand Down
Loading