This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/sources/Rocket.cpp
2024-12-19 16:01:21 +01:00

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;
}
}