1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 22:12:59 +00:00

ads-game:: do something about gameover, also spin the ship in handle_crashes

This commit is contained in:
Zeno Rogue
2022-09-12 14:57:37 +02:00
parent 7c87df85ac
commit ae0ab132e1
3 changed files with 4 additions and 4 deletions

View File

@@ -220,8 +220,8 @@ void handle_crashes() {
}
}
}
for(int i=0; i<isize(shape_ship); i+=2) {
hyperpoint h = kleinize(hpxyz(shape_ship[i], shape_ship[i+1], 1));
if(!game_over) for(int i=0; i<isize(shape_ship); i+=2) {
hyperpoint h = spin(ang*degree) * hpxyz(shape_ship[i], shape_ship[i+1], 1);
for(auto r: rocks) {
if(pointcrash(h, r->pts)) crash_ship();
}