-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (34 loc) · 877 Bytes
/
main.cpp
File metadata and controls
41 lines (34 loc) · 877 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
34
35
36
37
38
39
40
41
#include <SFML/Graphics.hpp>
#include <filesystem>
#include <vector>
#include <string>
#include <algorithm>
#include "Entities/Portal.hpp"
#include "Entities/Slime.hpp"
#include "Entities/Demon.hpp"
#include "Entities/Shadow.hpp"
#include <random>
#include "Managers/Game_Manager.hpp"
#include <iostream>
#include "Managers/Menu.hpp"
int main() {
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
sf::RenderWindow menuWindow(desktop, "Dungeon Adventure", sf::Style::Fullscreen);
Menu menu(menuWindow);
int choice = menu.show();
menuWindow.close();
Game_Manager game;
switch (choice) {
case 0:
game.startNewGame();
break;
case 1:
game.loadGame();
break;
case 2:
default:
return 0;
}
game.run();
return 0;
}