1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-19 23:25:13 +00:00

3d:: shmup mode now works as a fps

This commit is contained in:
?
2019-02-25 14:51:51 +01:00
committed by Zeno Rogue
parent 5ae2714e37
commit bba0e5138e
2 changed files with 35 additions and 9 deletions

View File

@@ -1037,6 +1037,11 @@ void centerpc(ld aspd) {
if(geometry == gCrystal)
crystal::centerrug(aspd);
#endif
if(shmup::on && DIM == 3) {
transmatrix at = cpush(2, -vid.yshift) * ggmatrix(shmup::pc[0]->base) * shmup::pc[0]->at;
View = inverse(at) * View;
}
#if CAP_RACING
if(racing::on && !racing::standard_centering) {