mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 16:23:08 +00:00
3D graphics in 2D (first commit)
This commit is contained in:
1 parent
ea768b634b
commit
1c4d86e0e9
27 files changed
+424
-269
No files matched your search
+3
-1
@@ -93,7 +93,9 @@ void remission() {
|
||||
}
|
||||
|
||||
hyperpoint move_destination_vec(int d) {
|
||||
if(DIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
|
||||
if(GDIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
|
||||
else if(WDIM == 2 && pmodel == mdPerspective) return cspin(0, 2, d * M_PI/4) * tC0(pushone());
|
||||
else if(WDIM == 2) return spin(-d * M_PI/4) * tC0(pushone());
|
||||
else if(d&1) return cspin(0, 1, d > 4 ? M_PI/2 : -M_PI/2) * tC0(pushone());
|
||||
else return cspin(0, 2, d * M_PI/4) * tC0(pushone());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user