I'm starting off and making my first video game, as of now I'm working on the starting screen and title screen. I've made a GameScreen, SplashScreen, and finally a ScreenManager file.
The ScreenManager file itself is coded as so (Reminder: I just started this a few hours ago and don't entirely know what I'm doing so don't judge).
#ifndef SCREENMANAGER_H
#define SCREENMANAGER_H
#include<string>
#include<iostream>
#include"GameScreen.h"
#include"SplashScreen.h"
#define ScreenWidth 1600
#define ScreenHeight 900
class ScreenManager
{
public:
~ScreenManager();
static ScreenManager &GetInstance();
void Initialize();
void LoadContent();
void Update();
void Draw(sf:: RenderWindow &Window)
virtual ~ScreenManager();
protected:
private:
GameScreen *currentScreen, *newScreen;
ScreenManager();
ScreenManager(ScreenManager const&);
void operator=(ScreenManager const&);
};
#endif // SCREENMANAGER_H
My main file is as so
#include <iostream>
#include<SFML/Graphics.hpp>
#include<ScreenManager.hpp>
using namespace std;
int main()
{
sf::RenderWindow Window(sf::VideoMode(ScreenWidth, ScreenHeight, 32), "Dash")
while(Window.isOpen())
{
sf::Event event
if(Window.GetEvent(event))
{
if(event.Type == sf::Event::Closed || event.key.code == sf::Key::Escape)
Window.close();
}
}
return 0;
}
I get an error with #include<ScreenManage.h> saying that there is no such file or directory when compiling.
I've checked the name and don't really have enough knowledge or experience to fix the problem by myself, google as well hasn't really helped so if anyone could help me or direct me to a tutorial on how to fix this I would greatly appreciate it.