Layer
user_6225994
Plain Text
08/18/2023 7:50 AM
544 B
24
Indexable
Never
//
// Created by Jakub Kosmaty on 02/06/2020.
//
#ifndef BOMBERMAN_LAYER_H
#define BOMBERMAN_LAYER_H
#include <SFML/Graphics.hpp>
#include <Config.h>
class Layer : public sf::Drawable {
private:
sf::Texture tileSet;
sf::VertexArray vertexArray;
unsigned mapWidth;
unsigned mapHeight;
unsigned tileSize;
public:
std::vector<int> mapArray;
Layer();
Layer(const Layer& layer);
void update();
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
};
#endif //BOMBERMAN_LAYER_HEditor is loading...