Files
Space-Invader/include/Player.h
T
2024-01-23 11:40:46 +01:00

26 lines
331 B
C++

#pragma once
#define _USE_MATH_DEFINES
#include <SFML/Graphics.hpp>
#include <iostream>
#include <cmath>
using namespace std;
using namespace sf;
class Player
{
public:
Player(Vector2u screenSize);
CircleShape& getShape() { return _shape; };
void move(int direction);
private:
CircleShape _shape;
int _screenWidth;
};