Meteoryty lecą w trybie testowym.

This commit is contained in:
2024-11-19 14:42:25 +01:00
parent a69dc434a9
commit cf10a042c0
7 changed files with 112 additions and 21 deletions

View File

@@ -1,9 +1,10 @@
#include <iostream>
#include "../headers/Bullet.h"
Bullet::Bullet(float x, float y, sf::Texture &bulletTexture) {
Bullet::Bullet(float x, float y, sf::Texture &texture) {
outOfBounds = false;
bulletSprite.setTexture(bulletTexture);
bulletTexture = texture;
bulletSprite.setTexture(texture);
bulletSprite.setPosition(x, y);
bulletSpeed = -10.0f;
bulletPosition.x = x;