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
+7
View File
@@ -0,0 +1,7 @@
#include "Alien.h"
Alien::Alien(Vector2f& position) {
_shape = RectangleShape(Vector2f(100, 50));
_shape.setFillColor(Color::Red);
_shape.setPosition(Vector2f(position.x - (_shape.getScale().x / 2.0), position.y));
}