-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamesys.h
41 lines (32 loc) · 819 Bytes
/
gamesys.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
#ifndef GAMESYS_H
#define GAMESYS_H
#include <SFML/Graphics.hpp>
#include "weirdalien.h"
#include "nextalien.h"
#include "shitalien.h"
#include <vector>
#include "cannon.h"
#include "spaceship.h"
class GameSys
{
public:
GameSys();
void start();
private:
void event_handler();
void update(sf::Time&);
void renderer();
sf::Texture _texture;
sf::Sprite _sprite;
sf::Image _image;
sf::Texture _background;
sf::Sprite _forbackground;
sf::RenderWindow game_window;
std::vector<Alien*>alien;
Cannon player;
int alien_killer;
Spaceship spaceship;
sf::Clock spClock;
};
bool collision(Bullet&,std::vector<Alien*>&,int &);
#endif // GAMESYS_H