This commit is contained in:
2024-01-30 15:45:14 +01:00
parent d67394aaec
commit ca204d05af
17 changed files with 658 additions and 568 deletions
+25 -25
View File
@@ -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;
};