-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutils.hpp
More file actions
76 lines (65 loc) · 1.87 KB
/
Copy pathutils.hpp
File metadata and controls
76 lines (65 loc) · 1.87 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef UTILS_HPP
#define UTILS_HPP
//SFML (Simple Fast Media Library)
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
//STL (Standard Toolkit Library)
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <stack>
#include <queue>
#include <map>
namespace Dir {
enum Direction { down, left, right, none , up };
}
namespace PState {
enum level { shoes, legs, body, arms, hands, head, wings, qttLevel};
enum state { idleRight, idleLeft, walkingRight, walkingLeft, runningRight, runningLeft, jumpingRight, jumpingLeft, pushingRight, pushingLeft, qttState};
}
namespace colors {
enum itemColor { boxColor, doorColor, buttonColor, muffinColor, hammerColor,
footColor, legsColor, bodyColor, armsColor, handColor, headColor, wingColor};
}
// If you want to declare global variables you can do it here:
extern const int mx[5];
extern const int my[5];
extern const sf::Color colorsArray[12];
extern const float GRAVITY;
extern const int PLAYER_MAX_SPEED[7];
extern const int PLAYER_ACCELERATION[7];
extern const float PLAYER_JUMP_TIME[7];
extern const int PLAYER_JUMP_SPEED;
extern const int PLAYER_SIZE_X[PState::qttLevel];
extern const int PLAYER_SIZE_Y[PState::qttLevel];
extern const float PLAYER_ANIMATION_TIMER[7];
extern const int PLAYER_SPRINT_SPEED;
// shoes
extern float SHOES_TIMER[4];
extern int SHOES_N[4];
// legs
extern float LEGS_TIMER[8];
extern int LEGS_N[8];
// body
extern float BODY_TIMER[10];
extern int BODY_N[10];
// arms
extern float ARMS_TIMER[10];
extern int ARMS_N[10];
// hands
extern float HANDS_TIMER[10];
extern int HANDS_N[10];
// head
extern float HEAD_TIMER[PState::qttState];
extern int HEAD_N[PState::qttState];
// wings
extern float WINGS_TIMER[2];
extern int WINGS_N[2];
#endif // UTILS_HPP