1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-26 02:31:22 +00:00

fully turnable product spaces

This commit is contained in:
Zeno Rogue
2019-08-18 01:31:37 +02:00
parent 52f19a26a8
commit 00f4f4fca5
10 changed files with 63 additions and 35 deletions

View File

@@ -610,7 +610,7 @@ EX void apply() {
}
}
View = solmul(cspin(0, GDIM-1, movement_angle * degree) * ypush(shift_angle * degree) * xpush(cycle_length * t / period) * ypush(-shift_angle * degree) *
cspin(0, GDIM-1, -movement_angle * degree), View);
cspin(0, GDIM-1, -movement_angle * degree), nisot::local_perspective, View);
moved();
if(clearup) {
viewcenter()->wall = waNone;
@@ -633,7 +633,7 @@ EX void apply() {
case maTranslationRotation:
View = solmul(cspin(0, GDIM-1, movement_angle * degree) * ypush(shift_angle * degree) * xpush(cycle_length * t / period) * ypush(-shift_angle * degree) *
cspin(0, GDIM-1, -movement_angle * degree), View);
cspin(0, GDIM-1, -movement_angle * degree), nisot::local_perspective, View);
moved();
View = cspin(0, GDIM-1, 2 * M_PI * t / period) * View;
if(clearup) {