Zaimplementowano debuff.

Do dokończenia resetowanie debuff
This commit is contained in:
2025-01-13 15:55:45 +01:00
parent 62808a9fbf
commit 67f396ae84
12 changed files with 184 additions and 25 deletions

View File

@@ -1,5 +1,11 @@
#include "../headers/Bullet.h"
Bullet::Bullet(float x, float y, sf::Texture &texture): Projectile(x,y, texture) {}
Bullet::Bullet(float x, float y, sf::Texture &texture, float speed): Projectile(x,y, texture) {
this->speed = -speed;
}
void Bullet::update() {
//std::cout << "Start update: speed = " << speed << ", position.y = " << position.y << std::endl;
sprite.move(0.0f, speed);