1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 16:37:40 +00:00

racing:: speedometer

This commit is contained in:
Zeno Rogue
2019-06-01 20:03:03 +02:00
parent 3d08d359ee
commit d864c8cc1e
4 changed files with 13 additions and 2 deletions

View File

@@ -1853,6 +1853,7 @@ void movePlayer(monster *m, int delta) {
ld r = hypot_d(WDIM, avg_inertia);
nat = nat * rspintox(avg_inertia) * xpush(r * delta) * spintox(avg_inertia);
if(WDIM == 3) nat = nat * cspin(0, 2, playerturn[cpid]) * cspin(1, 2, playerturny[cpid]);
m->vel = r * (600/SCALE);
}
else if(WDIM == 3) {
nat = nat1 * cpush(0, playerstrafe[cpid]) * cpush(2, playergo[cpid]) * cspin(0, 2, playerturn[cpid]) * cspin(1, 2, playerturny[cpid]);