Buckets:
| class Map { | |
| public: | |
| struct Tile { | |
| int x; | |
| int y; | |
| int type; | |
| Sprite* sprite; | |
| bool moveable = true; | |
| bool deadly = false; | |
| bool Win = false; | |
| }; | |
| Map(int size); | |
| ~Map(); | |
| void draw(RenderWindow& window); | |
| void update(); | |
| void loadTextures(const std::string& path); | |
| void loadTiles(const std::string& path); | |
| float checkCollision(FloatRect rect); | |
| bool isCollisionOnTop( const sf::Sprite& player); | |
| bool isCollisionOnLeft(const sf::Sprite& player); | |
| bool isCollisionOnRight(const sf::Sprite& player); | |
| int GateCollision(const sf::Sprite& player); | |
| bool WiGateCollision(const sf::Sprite& player); | |
| bool isDeadly(FloatRect rect); | |
| private: | |
| std::vector<Tile> tiles_; | |
| std::vector<Texture*> textures_; | |
| int size_; | |
| }; | |
Xet Storage Details
- Size:
- 970 Bytes
- Xet hash:
- 86bc3f77202c5093f5c0bbab5891896fa194fdfd5f2369a321a0524c3ddb0dd9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.