A Modular VR Escape Game
Protocol-Escape Game is a virtual reality (VR) escape room game built using the LÖVR framework and Lua scripting. As an indie developer, I, Axlfc, designed this game to provide an immersive and extensible VR experience, packed with intriguing puzzles and a modular architecture for scalability.
The game's architecture is organized into several components:
- Core
main.lua: Entry point managing the game lifecycle.
- Controllers
sceneManager.lua: Handles scenes and transitions.gameController.lua: Manages game logic and player actions.
- Models
gameState.lua,playerState.lua: Track game and player states.
- Views
menuView.lua,hud.lua: Render UI and HUD components.
- Entities
pawn.lua,character.lua: Represent objects and players in the game.
- Utilities
eventDispatcher.lua,logger.lua: Support debugging and event handling.
- Lua installed (source)
- A VR headset (optional for development).
-
Clone this repository:
git clone https://github.com/axlfc/protocol-escape-game.git cd protocol-escape-game -
Extract LÖVR files in the repository.
-
Run the project:
- Windows:
or drag-and-drop the main.lua file onto lovr.exe or lovrc.bat
.\lovr.exe .
- macOS/Linux:
lovr .
- Windows:
- Interact: Press the trigger on your VR controller.
- Move: Use the thumbstick or trackpad.
- Menu: Access with the menu button.
Follow me, Axlfc, on:
Happy coding! 🚀