-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.cpp
36 lines (31 loc) · 887 Bytes
/
globals.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "raylib.h"
#include "globals.h"
#include "raymath.h"
Color green = {173, 204, 96, 255};
Color darkGreen = {43, 51, 24, 255};
const int cellSize = 30;
const int cellCount = 25;
const int offset = 75;
Color grey = Color{ 29, 29, 27, 255 };
Color yellow = Color{ 243, 216, 63, 255 };
int windowWidth = 1920;
int windowHeight = 1080;
const int gameScreenWidth = 2 * offset + cellSize * cellCount;
const int gameScreenHeight = 2 * offset + cellSize * cellCount;
bool exitWindowRequested = false;
bool exitWindow = false;
bool fullscreen = true;
const int minimizeOffset = 50;
float borderOffsetWidth = 20.0;
float borderOffsetHeight = 50.0f;
bool ElementInDeque(Vector2 element, deque<Vector2> deque)
{
for (unsigned int i = 0; i < deque.size(); i++)
{
if (Vector2Equals(deque[i], element))
{
return true;
}
}
return false;
}