// Splash screen for my game
#ifndef _SPLASH_H_
#define _SPLASH_H_
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include "gamestate.h"
#include "image.h"
#include "particle.h"
extern bool running;
extern bool changeStates;
extern SDL_Surface* gameScreen;
extern Gamestate* nextState;
using namespace std;
class Splash : public Gamestate{
private: // Variables
SDL_Rect background;
Uint32 whiteColor;
Emitter *ps;
public: // The default methods for the gameloop
Splash(){ps = new Emitter(100, 100, 100, "data/particle.png", "data/dot.png");};
~Splash(){delete ps;};
bool Init();
void Event(SDL_Event* Event);
void Loop();
void Render();
void Cleanup();
};
#endif