Entry for the js13k competition of 2024.
Theme: Triskaidekaphobia (fear of the number 13)
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.
[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
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.
- ptex – Mini randomized pixel-art textures
- W – A micro WebGL2 framework (with a lot of modifications)
- ZzFX – Zuper Zmall Zound Zynth