-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 781 Bytes
/
main.cpp
File metadata and controls
33 lines (27 loc) · 781 Bytes
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
#include <SFML/Graphics.hpp>
#include "Settings.h"
#include "Title.h"
#include "Game.h"
#include "Setup.h"
#include "OnlineMode.h"
#include "SpriteRender.h"
#include "SplashScreen.h"
#include "ServerManager.h"
#include "RequestFeedback.h"
int main() {
Settings settings;
settings.load();
sf::VideoMode videoMode(1366, 768);
sf::Uint32 style = settings.fullscreen ? sf::Style::Fullscreen :
(settings.borderless ? sf::Style::None : sf::Style::Default);
sf::RenderWindow window(videoMode, "eMusiMath", style);
window.setVerticalSyncEnabled(true);
SplashScreen splash(window);
splash.show();
Title titleScreen(window);
if (titleScreen.show()) {
Game game(window);
game.start();
}
return 0;
}