This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/headers/Background.h

21 lines
349 B
C++

#ifndef BACKGROUND_H
#define BACKGROUND_H
#include "SFML/Graphics.hpp"
class Background {
private:
sf::Texture texture;
sf::Sprite sprite1;
sf::Sprite sprite2;
float speed;
public:
Background(const std::string& texturePath, float speed);
void update();
void draw(sf::RenderWindow& window);
};
#endif // BACKGROUND_H