26 lines
356 B
C++
26 lines
356 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;
|
|
};
|
|
|