Skip to content

Instantly share code, notes, and snippets.

@jbax86
jbax86 / cpp
Created November 27, 2018 17:45
carp
#include <string>
#include <SFML/Graphics.hpp>
class TileMap : public sf::Drawable, public sf::Transformable
{
public:
bool load(const std::string& tileset, sf::Vector2u tileSize, const int* tiles, unsigned int width, unsigned int height);
private:
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;