33 lines
476 B
C++
33 lines
476 B
C++
#include <iostream>
|
|
#include <SFML/Graphics.hpp>
|
|
#include <SFML/Audio.hpp>
|
|
|
|
#include "enemy.h"
|
|
#include "texts.h"
|
|
|
|
using namespace std;
|
|
|
|
#ifndef GAMEWORLD_H
|
|
#define GAMEWORLD_H
|
|
|
|
class GameWorld {
|
|
bool isGameOver;
|
|
int damage;
|
|
|
|
sf::Texture backgroundTexture;
|
|
sf::Sprite background;
|
|
sf::Time time;
|
|
|
|
Enemy enemy;
|
|
Texts texts;
|
|
|
|
bool loadBackground();
|
|
|
|
public:
|
|
GameWorld();
|
|
bool performSetup();
|
|
bool runGame();
|
|
};
|
|
|
|
#endif
|