23 lines
286 B
C++
23 lines
286 B
C++
#pragma once
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include <iostream>
|
|
|
|
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;
|
|
};
|
|
|