Welcome to ReactCraft, a delightful blend of Minecraft's classic gameplay and the immersive capabilities of React and Three.js. Get ready to dive into a world of block-building adventures where you can construct, demolish, and create structures using a selection of five different blocks. Let your imagination soar as you embark on an exciting journey of creativity and exploration!
- Intuitive controls and a user-friendly interface.
- Choose from a range of five fundamental blocks: wood, wood planks, cobblestone, dirt, and more.
- Each block has unique characteristics and aesthetics, providing a diverse palette to bring your ideas to life.
- Build structures that reflect your imagination, such as castles, cottages, bunkers, or landscapes.
- Combine different block types strategically to add depth and character to your creations.
- Real-time reactions and responsive gameplay powered by React and Three.js.
- Currently, there are five types of blocks available: Grass, Wood, Log, Glass, and Dirt.
- Switch between blocks using the numbers 1-5 on your keyboard.
- Navigate the world using the mouse and WASD keys.
- Click to add blocks and use Alt+Click to remove blocks.
- Your world is stored in your browser's local storage.
To run the game locally, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies by running
npm install
. - Start the development server with
npm start
. - Open your browser and visit http://localhost:3000 to play the game.
- Make edits to the code, and the page will automatically reload with your changes.
- Check the console for any lint errors during development.
This project is licensed under the MIT License.
- This project was bootstrapped with Create React App.
- Thanks to Freecodecamp for guding through the peoject