blob: 62da89f148a6ab27ae484b2425dfce86faaf1963 (
plain)
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
49
50
51
52
53
54
55
|
/*********************************/
/* THRESHOLD ( // */
/* gameplayh ( )/ */
/* by salade )(/ */
/* ________________ ( /) */
/* ()__)____________))))) :^} */
/*********************************/
#ifndef GAMEPLAY_H_
#define GAMEPLAY_H_
#include "terrain.hpp"
#include "window.hpp"
#include "entity.hpp"
#include <vector>
#include <iostream>
#define COOLPURPLE CLITERAL(Color){ 170, 153, 255, 255 } // cool Purple
//rgb(170,153,255)
class Game {
int nEnemies; // number of enemies on given level
std::vector<Entity> * enemies;
std::vector<Terrain*> * terrain;
Entity * player;
std::string next; // next level
Camera2D * camera;
int frameWidth;
int frameHeight;
Rectangle sourceRec;
Vector2 origin;
public:
Game(std::string const &path);
~Game();
void start() ;
void draw() const;
int tick() const;
int getKeys() const;
int shoot() const;
std::string const &getNext() const; // returns next level's string
};
#endif // GAMEPLAY_H_
|