1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 08:57:39 +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

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