jankuss / shroom

Room Rendering Engine for Retros
https://jankuss.github.io/shroom/docs
GNU Lesser General Public License v3.0
62 stars 28 forks source link

Option to disable room dragging. #118

Open DamienJolly opened 3 years ago

DamienJolly commented 3 years ago

On habbo you can stop the room from dragging when holding an down a item action key.

Action keys: Ctrl for picking up items. Shift for rotation items. Alt for moving items.

tetreum commented 1 year ago

Setting an unhandled state to the camera will prevent it from allowing drag&drop ;)

const cam = RoomCamera.forScreen(room);

// @ts-ignore
cam._state.type = "OFF";