Added laser collision on aliens

This commit is contained in:
2024-01-30 16:22:43 +01:00
parent d67394aaec
commit 0bc7a96c32
9 changed files with 499 additions and 409 deletions
+21 -22
View File
@@ -1,22 +1,21 @@
#pragma once
#include <iostream>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
class Laser
{
public:
Laser() {};
Laser(Window& window);
RectangleShape& getShape() { return _laser; }
void setInitialPosition(Vector2f position);
private:
RectangleShape _laser;
};
#pragma once
#include <iostream>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
class Laser
{
public:
Laser(Window& window);
RectangleShape& getShape() { return _laser; }
void setInitialPosition(Vector2f position);
private:
RectangleShape _laser;
};