Moved more variables to gamestate

This commit is contained in:
Renan LE CARO 2025-03-14 12:23:19 +01:00
parent 4fb4c97734
commit b6fe46c9bc
5 changed files with 217 additions and 209 deletions

View file

@ -1,4 +1,4 @@
import { fitSize, gameCanvas } from "./game";
import { fitSize } from "./game";
export const options = {
sound: {
@ -29,7 +29,7 @@ export const options = {
name: `Mouse pointer lock`,
help: `Locks and hides the mouse cursor.`,
afterChange: () => {},
disabled: () => !gameCanvas.requestPointerLock,
disabled: () => !document.body.requestPointerLock,
},
easy: {
default: false,