Defines global constants and enums used throughout the engine and game. More...
#include <SDL2/SDL_rect.h>#include <string>

Go to the source code of this file.
Enumerations | |
| enum | GroupLabels : std::size_t { MAP , PACMAN , GHOSTS , GHOST_BAR , PELLETS , COLLIDERS , BUTTONS } |
| Enumeration for assigning entities to specific rendering or update groups. | |
Variables | |
| const int | FPS_CAP = 60 |
| The target frames per second for the game loop. | |
| const float | FRAME_DELAY = 1.0f / (float)FPS_CAP |
| The ideal time slice for a single frame. | |
| const std::size_t | MAX_COMPONENTS = 32 |
| Maximum number of components an entity can have. | |
| const std::size_t | MAX_GROUPS = 32 |
| Maximum number of groups available in the manager. | |
| const SDL_Point | WINDOW_SIZE { 1366, 768 } |
| Default window dimensions. | |
| const int | MAX_SCENE_COUNT = 10 |
| Maximum number of scenes the manager can hold. | |
| const int | SAMPLE_COUNT = 10 |
| Number of frames to average over for FPS calculation. | |
| const std::string | MOUSE_TAG = "mouse" |
| Collider tag for the mouse entity. | |
| const std::string | WALL_TAG = "wall" |
| Collider tag for wall tiles. | |
Defines global constants and enums used throughout the engine and game.