refactor: re-organize code
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user