cleaned up elevator physics, added ability to hold the elevator at one location
added elevator with a on/off button to level highrise (0.6 chance to show up)
This commit is contained in:
landgreen
2021-05-27 07:11:39 -07:00
parent 39e6ee5dde
commit 8ab86fea09
7 changed files with 123 additions and 141 deletions

View File

@@ -2856,12 +2856,6 @@ const m = {
}
m.look = () => { //disable mouse aiming
//always on mouse look
// m.angle = Math.atan2(
// simulation.mouseInGame.y - m.pos.y,
// simulation.mouseInGame.x - m.pos.x
// );
//smoothed mouse look translations
const scale = 0.8;
m.transSmoothX = canvas.width2 - m.pos.x - (simulation.mouse.x - canvas.width2) * scale;
m.transSmoothY = canvas.height2 - m.pos.y - (simulation.mouse.y - canvas.height2) * scale;