From facde12002422cbfa02f5eae8e3d52d7c9971a07 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Mon, 9 Mar 2026 01:02:44 +0100 Subject: feat(game): add global settings and debug mode --- include/game.h | 5 ----- include/globals.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 include/globals.h (limited to 'include') diff --git a/include/game.h b/include/game.h index 9cdcf71..6b37293 100644 --- a/include/game.h +++ b/include/game.h @@ -8,9 +8,4 @@ typedef enum GameScreen { SCREEN_GAME_OVER } GameScreen; -#define SCREEN_WIDTH 1280 -#define SCREEN_HEIGHT 720 - -#define BACKGROUND_COLOR (Color){ 88, 68, 34, 255 } - #endif // GAME_H diff --git a/include/globals.h b/include/globals.h new file mode 100644 index 0000000..e7830de --- /dev/null +++ b/include/globals.h @@ -0,0 +1,13 @@ +#ifndef GLOBALS_H +#define GLOBALS_H + +#include "raylib.h" + +#define TILE_SIZE 16 +#define SCREEN_WIDTH 1280 +#define SCREEN_HEIGHT 720 +#define BACKGROUND_COLOR (Color){ 88, 68, 34, 255 } + +extern bool debugMode; + +#endif -- cgit v1.3.1