mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-09 02:03:00 +00:00
3d:: 1/2/3 perspectives in noshmup
This commit is contained in:
@@ -5665,6 +5665,7 @@ purehookset hooks_drawmap;
|
||||
|
||||
transmatrix cview() {
|
||||
sphereflip = Id;
|
||||
if(DIM == 3 && !shmup::on && vid.yshift) return cpush(2, vid.yshift) * View;
|
||||
if(DIM == 3) return View;
|
||||
if(sphereflipped()) sphereflip[DIM][DIM] = -1;
|
||||
return ypush(vid.yshift) * sphereflip * View;
|
||||
|
||||
Reference in New Issue
Block a user