       * Is touch device?
       */
      const isTouchDevice = 'ontouchstart' in window

      class MainScene extends Scene3D {
        constructor() {
          super('MainScene')
        }

        init() {
          this.renderer.setPixelRatio(Math.max(1, window.devicePixelRatio / 2))

          this.canJump = true
          this.move = false

          this.moveTop = 0
          this.moveRight = 0
        }

        async preload() {
          /**
           * Medieval Fantasy Book by Pixel (https://s