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