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

ads-game:: configurable scale

This commit is contained in:
Zeno Rogue
2022-09-18 13:03:14 +02:00
parent 00b2dc522a
commit 707247d297
5 changed files with 12 additions and 7 deletions

View File

@@ -255,7 +255,7 @@ void handle_crashes() {
}
}
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);
hyperpoint h = spin(ang*degree) * hpxyz(shape_ship[i] * scale, shape_ship[i+1] * scale, 1);
for(auto r: rocks) {
if(pointcrash(h, r->pts)) crash_ship();
}