Created laser object without any collision detection
@@ -0,0 +1,11 @@
#include "Laser.h"
Laser::Laser()
{
_laser = RectangleShape(Vector2f(2, 20));
_laser.setFillColor(Color::White);
}
void Laser::setInitialPosition(Vector2f position) {
_laser.setPosition(Vector2f(position.x - (_laser.getScale().x / 2), position.y));
The note is not visible to the blocked user.