Add misc and sfml modules with initial implementations, including new classes, assets, and CMake integration.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user