Zaimplementowano debuff.
Do dokończenia resetowanie debuff
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user