refactor: re-organize code

This commit is contained in:
2024-01-09 16:21:57 +01:00
parent 8d542b6484
commit 15c745d7c0
14 changed files with 126 additions and 146 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "Laser.h"
Laser::Laser()
{
_laser = RectangleShape(Vector2f(4, 30));
_laser.setFillColor(Color::White);
}
void Laser::setInitialPosition(Vector2f position) {
_laser.setPosition(Vector2f(position.x - (_laser.getScale().x / 2), position.y));
}