Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.29 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.29 KB

js13k 2024: Cursed Elevator

Screenshot from the game.

Entry for the js13k competition of 2024.
Theme: Triskaidekaphobia (fear of the number 13)

Description

An interactive story about getting on a cursed elevator.
But it seems you are not the first this happened to.
Get to floor 13 … as often as you have to.

Controls

  • [W][A][S][D] / Arrow keys to look around
  • [R] to reset the camera
  • [P] to toggle Pointer Lock
  • [E][Enter] / Mouse click to interact
  • [Escape][1] to pause/unpause

Why aren't you using the PointerLock API by default?

When the pointer is locked, the normal mouse event attributes like clientX or screenY etc. stop working. Instead movementX and movementY have to be used. But I found those to not be precise enough. Small mouse movements still fired the event, but both values were 0. This resulted in a juddery camera on slow movements and made being precise very hard. With Firefox it was worse than with Chromium.

Resources