9 lines
179 B
C++
9 lines
179 B
C++
#include "../headers/Bullet.h"
|
|
|
|
void Bullet::update() {
|
|
sprite.move(0.0f, speed);
|
|
position.y += int(speed);
|
|
if(position.y < -100) {
|
|
outOfBounds = true;
|
|
}
|
|
} |