fixes and optimizations
This commit is contained in:
1 parent
b5a79de6c0
commit
1fa3293df0
11 files changed
+163
-296
No files matched your search
@@ -1,22 +0,0 @@
|
||||
#ifndef DATA_HPP
|
||||
#define DATA_HPP
|
||||
|
||||
#include "globals.hpp"
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
|
||||
struct Map {
|
||||
const char map[MAX_ROWS][MAX_COLS];
|
||||
};
|
||||
|
||||
struct Player {
|
||||
sf::Vector2<float> size { TILESIZE / 2.0f, TILESIZE / 2.0f };
|
||||
sf::Vector2<float> pos { TILESIZE, TILESIZE };
|
||||
float max_velocity_y { 15.0f };
|
||||
float border_size { -1.0f };
|
||||
|
||||
float dash_distance { 20.0f };
|
||||
sf::Vector2f velocity { 3.0f, 0 };
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user