-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
48 lines (38 loc) · 963 Bytes
/
Game.h
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
40
41
42
43
44
45
46
47
48
//Using SDL, SDL_image, standard IO, and strings
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
#include <stdio.h>
#include <cstring>
#include <stdlib.h>
#include <fstream>
#include <vector>
#include <utility>
#include "WTexture.h"
#include "Constants.h"
#pragma once
//The window we'll be rendering to
extern SDL_Window* gWindow;
//The window renderer
extern SDL_Renderer* gRenderer;
extern TTF_Font* gFont;
//Scene textures
extern WTexture gPlayer1Texture;
extern WTexture gPlayer2Texture;
extern WTexture gBackgroundTexture;
extern WTexture gRoadTexture;
extern WTexture gProfTexture;
extern WTexture gBuildingTexture;
extern WTexture gGrassTexture;
extern WTexture gTask1;
extern WTexture gTask2;
//Starts up SDL and creates window
bool init();
//Loads media
bool loadMedia();
//Frees media and shuts down SDL
void close();
//Map
extern int map[70][100];
//Locations for tasks
extern std::pair<int, int> locPoints[7];
extern std::string tasks[7];