Add misc and sfml modules with initial implementations, including new classes, assets, and CMake integration.

This commit is contained in:
2026-02-27 16:02:24 +01:00
parent 939e98d5b2
commit 8c726d9cb5
883 changed files with 365 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
//
// Created by David Hackbarth on 27.02.26.
//
#ifndef CMAKESFMLPROJECT_PADDLE_H
#define CMAKESFMLPROJECT_PADDLE_H
#include "SFML/Graphics/RectangleShape.hpp"
#include "SFML/Window/Keyboard.hpp"
class Paddle {
public:
Paddle(sf::Keyboard::Key upKey, sf::Keyboard::Key downKey);
sf::RectangleShape& getShape() { return _shape; }
void Update(float dt);
private:
sf::RectangleShape _shape;
sf::Keyboard::Key _upKey;
sf::Keyboard::Key _downKey;
};
#endif //CMAKESFMLPROJECT_PADDLE_H