-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.hpp
51 lines (36 loc) · 874 Bytes
/
config.hpp
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
42
43
44
45
46
47
48
49
50
#ifndef CONFIG_HPP
#define CONFIG_HPP
#include <iostream>
#include <sstream>
#include <list>
#include <ctime>
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
#include "SFML/Audio.hpp"
#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600
#define HEARTS_NUMBER 5
#define COMBOS_NUMBER 5
#define CHAR_FRAME_NUMBER 16
#define JUMPING_FRAME_NUMBER 20
#define ACCELERATION 1
#define V0 20
#define POS_X 50
#define CHAR_WIDTH 200
#define CHAR_HEIGHT 200
#define OBSTACLE_WIDTH 50
#define OBSTACLE_HEIGHT 100
#define SCALE 1.f
#define IMAGES_PATH "data/images/"
#define FONTS_PATH "data/fonts/"
#define SOUNDS_PATH "data/sounds/"
#define DELTA_GENERATE_TIME_WAVES sf::seconds(1)
#define DELTA_TIME_WAVES sf::milliseconds(5)
bool AABBvSAABB(sf::Rect<float> rect1, sf::Rect<float> rect2);
struct pos
{
int x;
int y;
};
std::string toString(int n);
#endif