This commit is contained in:
2024-12-19 16:01:21 +01:00
parent 36984b859f
commit 76203a8b29
14 changed files with 58 additions and 68 deletions

View File

@@ -2,7 +2,7 @@
void Rocket::update() {
sprite.move(0.0f, speed);
position.y += int(speed);
position.y += static_cast<int>(speed);
if(position.y < -100) {
outOfBounds = true;
}