naprawa pozycji + nowe rakiety
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user