🚀
This commit is contained in:
+25
-25
@@ -1,25 +1,25 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user