naprawa pozycji + nowe rakiety
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -88,8 +88,8 @@ int main()
|
||||
for (auto& meteor : plansza.getMeteors()) {
|
||||
if(ship.getSprite().getGlobalBounds().intersects(meteor.getSprite().getGlobalBounds())) {
|
||||
std::cout << "You lost the game!\n";
|
||||
window.close();
|
||||
exit(-2); // Kod -2 oznacza uderzenie się w meteoryt
|
||||
// window.close();
|
||||
// exit(-2); // Kod -2 oznacza uderzenie się w meteoryt
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user