This is a experimental “PC running DOS” emulator inside a VR environment.
The VR environment was built using Three.js and the emulator is rendered inside the world using CanvasTexture.
To achive proper fps (main thread needs a lot of cpu for VR rendering) I modified js-dos to be able to compile it as a Web Worker.
On PC you can use your keyboard to control the emulator and mouse to look around.
In VR this are the default mappings (tested with Oculus Quest):
0: [Key.Enter], // Trigger
1: [Key.Shift], // Squeeze
3: [Key.Ctrl], // Joy fire
4: [Key.Space, Key.Shift, Key.Ctrl], // A
5: [Key.Ctrl, Key.Q, Key.Escape] // B
- Add sound support
- Add mouse support
- Add Joystick support
- Optimize canvas drawing using OffscreenCanvas
- Optimize rendering loops, gamepad handling
3D Model https://sketchfab.com/railek