1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 23:10:26 +00:00

2d3d:: adjusted shmup to reversed Z

This commit is contained in:
Zeno Rogue 2019-05-09 21:55:17 +02:00
parent 55d7678c99
commit 360f95ce43
2 changed files with 4 additions and 4 deletions

View File

@ -1100,7 +1100,7 @@ void centerpc(ld aspd) {
else else
View = inverse(T); View = inverse(T);
if(vid.yshift) View = cpush(2, wall_radar(viewctr.at->c7, T)) * View; if(vid.yshift) View = cpush(2, wall_radar(viewctr.at->c7, T)) * View;
if(WDIM == 2) View = cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) * View; if(WDIM == 2) View = cspin(0, 1, M_PI) * cspin(2, 1, M_PI/2 + shmup::playerturny[id]) * spin(-M_PI/2) * View;
#if CAP_RACING #if CAP_RACING
if(racing::on) racing::set_view(); if(racing::on) racing::set_view();

View File

@ -1652,7 +1652,7 @@ void movePlayer(monster *m, int delta) {
if(WDIM == 2 && GDIM == 3) { if(WDIM == 2 && GDIM == 3) {
double mdd = hypot(mdx, mdy); double mdd = hypot(mdx, mdy);
godir[cpid] = atan2(mdx, -mdy); godir[cpid] = -atan2(mdx, -mdy);
mgo += mdd; mgo += mdd;
} }
@ -1687,8 +1687,8 @@ void movePlayer(monster *m, int delta) {
bool blown = m->blowoff > curtime; bool blown = m->blowoff > curtime;
if(WDIM == 2 && GDIM == 3 && !lctrlclick && cpid == 0 && !racing::on) { if(WDIM == 2 && GDIM == 3 && !lctrlclick && cpid == 0 && !racing::on) {
playerturn[cpid] += mouseaim_x; playerturn[cpid] -= mouseaim_x;
playerturny[cpid] += mouseaim_y; playerturny[cpid] -= mouseaim_y;
mouseaim_x = 0; mouseaim_x = 0;
mouseaim_y = 0; mouseaim_y = 0;
} }