From 3188fb2e686bb6f52b0d6876e58c3d42e0d926cc Mon Sep 17 00:00:00 2001 From: ? Date: Tue, 26 Feb 2019 02:36:19 +0100 Subject: [PATCH] 3D:: wasd keys (by default) now work as usual, plus mouse for aiming --- shmup.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shmup.cpp b/shmup.cpp index 066ae7c0..c9c0a04b 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -78,8 +78,8 @@ namespace multi { }; vector playercmds_shmup3 = { + "move forward", "strafe right", "move backward", "strafe left", "rotate up", "rotate down", "rotate left", "rotate right", - "move up", "move right", "move down", "move left", "throw a knife", "face the pointer", "throw at the pointer", "drop Dead Orb", "center the map on me", "Orb power (target: mouse)", "Orb power (target: facing)" @@ -1718,9 +1718,10 @@ void movePlayer(monster *m, int delta) { } if(DIM == 3) { - playerstrafe[cpid] = mturn * SCALE * delta / 600; - playerturn[cpid] = mdx * SCALE * delta / 200; - playerturny[cpid] = mdy * SCALE * delta / 200; + playergo[cpid] = -mdy * SCALE * delta / 600; + playerstrafe[cpid] = mdx * SCALE * delta / 600; + playerturn[cpid] = mgo * SCALE * delta / 200; + playerturny[cpid] = mturn * SCALE * delta / 200; if(!lctrlclick) { playerturn[cpid] += mouseaim_x;