diff --git a/Sol.cpp b/Sol.cpp new file mode 100644 index 0000000..a9861f2 --- /dev/null +++ b/Sol.cpp @@ -0,0 +1,12 @@ +#include "Sprite.hpp" + +Sol::Sol() { + // Constructor implementation + + std::cout << "Sol created." << std::endl; +} + +Sol::~Sol() { + // Destructor implementation + std::cout << "Sol destroyed." << std::endl; +} diff --git a/Sol.hpp b/Sol.hpp new file mode 100644 index 0000000..e12c8e7 --- /dev/null +++ b/Sol.hpp @@ -0,0 +1,11 @@ +#pragma once +#include "Sprite.hpp" +#include + +class Sol: public Sprite { +public: + Sol(); + virtual ~Sol(); + + +} diff --git a/Sprite.hpp b/Sprite.hpp new file mode 100644 index 0000000..c0062b4 --- /dev/null +++ b/Sprite.hpp @@ -0,0 +1,23 @@ +#pragma once +#include +#include +#include + +class Sprite { +private: + SDL_Surface* surface = nullptr; + SDL_Texture* texture = nullptr; + float posX = 0.0f; + float posY = 0.0f; +public: + Sprite() = default; + virtual ~Sprite() = default; + + // Pure virtual function to be implemented by derived classes + virtual void draw() const = 0; + + // Function to set the position of the sprite + virtual void setPosition(float x, float y) { posX = x; posY = y; } + // Function to get the current position of the sprite + virtual void getPosition(float &x, float &y) const { x = posX; y = posY; } +}; diff --git a/TILES/bomberman_blanc/bomberman_direction_bas.xcf b/TILES/bomberman_blanc/bomberman_direction_bas.xcf new file mode 100644 index 0000000..efaadeb Binary files /dev/null and b/TILES/bomberman_blanc/bomberman_direction_bas.xcf differ diff --git a/TILES/bomberman_blanc/bomberman_direction_droite.xcf b/TILES/bomberman_blanc/bomberman_direction_droite.xcf new file mode 100644 index 0000000..5463210 Binary files /dev/null and b/TILES/bomberman_blanc/bomberman_direction_droite.xcf differ diff --git a/TILES/bomberman_blanc/bomberman_direction_gauche.xcf b/TILES/bomberman_blanc/bomberman_direction_gauche.xcf new file mode 100644 index 0000000..8f2f393 Binary files /dev/null and b/TILES/bomberman_blanc/bomberman_direction_gauche.xcf differ diff --git a/TILES/bomberman_blanc/bomberman_direction_haut.xcf b/TILES/bomberman_blanc/bomberman_direction_haut.xcf new file mode 100644 index 0000000..cc83ace Binary files /dev/null and b/TILES/bomberman_blanc/bomberman_direction_haut.xcf differ diff --git a/TILES/MUR.xcf b/TILES/map/MUR.xcf similarity index 100% rename from TILES/MUR.xcf rename to TILES/map/MUR.xcf diff --git a/TILES/SOL_VERT.xcf b/TILES/map/SOL_VERT.xcf similarity index 100% rename from TILES/SOL_VERT.xcf rename to TILES/map/SOL_VERT.xcf