-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.hpp
42 lines (36 loc) · 1.72 KB
/
game.hpp
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
37
38
39
#pragma once
//======================================================================================
//Header for global game objects. Sorry, yes, there are globals.
//
//(c) Patrick Dickinson, University of Lincoln, School of Computer Science, 2020
//======================================================================================
#include "SDL.h"
//======================================================================================
//Global quit flag to exit the game
//======================================================================================
extern bool gQuit;
//======================================================================================
//SDL Main constructs
//======================================================================================
extern SDL_Window* gMainWindow;
extern SDL_Renderer* gMainRenderer;
//======================================================================================
//Surfaces and textures for sprites
//======================================================================================
extern SDL_Surface* tileSurface;
extern SDL_Surface* tileBlockedSurface;
extern SDL_Surface* targetSurface;
extern SDL_Surface* botSurface;
extern SDL_Surface* tileClosedSurface;
extern SDL_Surface* tileRouteSurface;
extern SDL_Texture* tileTexture;
extern SDL_Texture* tileBlockedTexture;
extern SDL_Texture* targetTexture;
extern SDL_Texture* botTexture;
extern SDL_Texture* tileClosedTexture;
extern SDL_Texture* tileRouteTexture;
//======================================================================================
//Macros for grid size
//======================================================================================
#define GRIDWIDTH (40)
#define GRIDHEIGHT (40)