diff --git a/src/consts.c b/src/consts.c new file mode 100644 index 0000000..8e4edb3 --- /dev/null +++ b/src/consts.c @@ -0,0 +1,7 @@ +#include "consts.h" + +const int SCREEN_WIDTH = 320; +const int SCREEN_HEIGHT = 240; + +const int WIN_WIDTH = 1280; +const int WIN_HEIGHT = 720; diff --git a/src/consts.h b/src/consts.h new file mode 100644 index 0000000..7cd8464 --- /dev/null +++ b/src/consts.h @@ -0,0 +1,5 @@ +extern const int SCREEN_WIDTH; +extern const int SCREEN_HEIGHT; + +extern const int WIN_WIDTH; +extern const int WIN_HEIGHT; diff --git a/src/main.c b/src/main.c index fa3af70..08ecf14 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,4 @@ +#include "consts.h" #include "raylib.h" #include "raymath.h" #include @@ -9,11 +10,6 @@ #include #endif -#define SCREEN_WIDTH (320) -#define SCREEN_HEIGHT (240) -#define WIN_WIDTH (1280) -#define WIN_HEIGHT (720) - #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b))