naprawa pozycji + nowe rakiety

This commit is contained in:
2024-11-21 22:42:12 +01:00
parent 2bdfbb193c
commit 343b312227
10 changed files with 14 additions and 14 deletions

View File

@@ -2,14 +2,14 @@
#include "../headers/Bullet.h"
Bullet::Bullet(float x, float y, sf::Texture &texture) {
bulletPosition.x = x;
bulletPosition.y = y;
outOfBounds = false;
bulletTexture = texture;
bulletSprite.setTexture(texture);
bulletSprite.setOrigin(bulletSprite.getLocalBounds().width/2, bulletSprite.getLocalBounds().height/2);
bulletSprite.setPosition(x, y);
bulletSpeed = -10.0f;
bulletPosition.x = x;
bulletPosition.y = y;
}
void Bullet::setSpeed(float speed) {