-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
34 lines (24 loc) · 861 Bytes
/
main.cpp
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
#include <iostream>
#include <SFML/Graphics.hpp>
#include "src/hpp/Game.hpp"
#include "src/hpp/MainScreen.hpp"
typedef unsigned short ushort;
ushort myWidth, myHeight;
sf::Color defaultColor = sf::Color(0, 255, 0, 255);
sf::Color collisionColor = sf::Color(255, 0, 0, 255);
sf::Color mouseRectColor = sf::Color::Magenta;
sf::Color quadTreeColor = sf::Color::White;
float particleSpeed = 100.f, radius = 3.f;
float borderWeight = 1.f;
bool showQuadTree = false, showMouseRect = false;
int main()
{
srand(time(NULL));
const ushort screenWidth = sf::VideoMode::getDesktopMode().width * 0.75f;
const ushort screenHeight = sf::VideoMode::getDesktopMode().height* 0.75f;
myWidth = screenWidth;
myHeight = screenHeight;
Game myGame(screenWidth, screenHeight);
myGame.changeScreen(new MainScreen(&myGame));
myGame.gameLoop();
}