This is an Electron-based version of the Evolving Block RPG game. The game features a 3D block-based world with dynamic lighting, day/night cycles, and basic gameplay mechanics.
/
├── main.js # Electron main process file
├── package.json # Project configuration and dependencies
├── src/ # Source code directory
│ ├── index.html # Main HTML file
│ ├── css/ # CSS styles
│ │ └── styles.css # Main stylesheet
│ └── js/ # JavaScript modules
│ ├── Game.js # Main game orchestrator
│ ├── GameSystem.js # Base system class
│ ├── RendererSystem.js # Handles 3D rendering
│ ├── WorldSystem.js # World generation and management
│ ├── PlayerSystem.js # Player controls and physics
│ ├── InputSystem.js # Keyboard/mouse input
│ ├── MonsterSystem.js # NPC and monster logic
│ ├── BuildingSystem.js # Building mechanics
│ ├── UISystem.js # User interface
│ ├── Inventory.js # Inventory management
│ ├── SimplePerlinNoise.js # Noise generator for terrain
│ └── config.js # Game constants and data
- Install Node.js and npm if you haven't already
- Install dependencies:
npm install - Run the application:
npm start
- WASD: Move
- Space: Jump
- I: Toggle Inventory
- Mouse: Look around
- Left Click: Break blocks
- Right Click: Place blocks
- Mouse Wheel: Change selected block
- Run in development mode with DevTools:
npm run dev
- Electron
- Three.js
- ES6 Modules