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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user