Cos usprawnione i nasrane
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#include "../headers/Bullet.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
|
||||
void Bullet::update() {
|
||||
//std::cout << "Start update: speed = " << speed << ", position.y = " << position.y << std::endl;
|
||||
sprite.move(0.0f, speed);
|
||||
position.y += int(speed);
|
||||
if(position.y < -100) {
|
||||
outOfBounds = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user