Nox Engine
 
Loading...
Searching...
No Matches
Constants.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <SDL2/SDL_rect.h>
9#include <string>
10
14enum GroupLabels : std::size_t {
15 MAP,
16 PACMAN,
17 GHOSTS,
18 GHOST_BAR,
19 PELLETS,
20 COLLIDERS,
21 BUTTONS,
22};
23
24// main
25const int FPS_CAP = 60;
26const float FRAME_DELAY = 1.0f / (float)FPS_CAP;
27
28// ECS
29const std::size_t MAX_COMPONENTS = 32;
30const std::size_t MAX_GROUPS = 32;
31
32// game
33const SDL_Point WINDOW_SIZE { 1366, 768 };
34
35// scene manager
36const int MAX_SCENE_COUNT = 10;
37
38// counters
39const int SAMPLE_COUNT = 10;
40
41// mouse
42const std::string MOUSE_TAG = "mouse";
43
44const std::string WALL_TAG = "wall";
45
46// anim
47static const char* ANIM_ENTRY =
48 "animentry";
const std::size_t MAX_COMPONENTS
Maximum number of components an entity can have.
Definition Constants.h:29
const int SAMPLE_COUNT
Number of frames to average over for FPS calculation.
Definition Constants.h:39
const int FPS_CAP
The target frames per second for the game loop.
Definition Constants.h:25
const int MAX_SCENE_COUNT
Maximum number of scenes the manager can hold.
Definition Constants.h:36
const float FRAME_DELAY
The ideal time slice for a single frame.
Definition Constants.h:26
const SDL_Point WINDOW_SIZE
Default window dimensions.
Definition Constants.h:33
const std::string MOUSE_TAG
Collider tag for the mouse entity.
Definition Constants.h:42
GroupLabels
Enumeration for assigning entities to specific rendering or update groups.
Definition Constants.h:14
const std::size_t MAX_GROUPS
Maximum number of groups available in the manager.
Definition Constants.h:30
const std::string WALL_TAG
Collider tag for wall tiles.
Definition Constants.h:44