-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #243 from JiyaGupta-cs/main
feat: Added Minecraft
- Loading branch information
Showing
27 changed files
with
37,823 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Welcome to React three fiber Minecraft | ||
|
||
This project is just me trying to mimic Minecraft in React. | ||
|
||
## How to play? | ||
|
||
Currently it has 5 types of blocks: Grass, Wood, Log, Glass and Dirt. | ||
You switch blocks with numbers 1-5 on your keyboard. | ||
You navigate the world with the mouse and WASD. | ||
You can click to add blocks and Alt+Click to remove blocks. | ||
You world is stored in your browsers local storage. | ||
|
||
![Preview](preview.png 'Preview') | ||
|
||
### How to Run | ||
|
||
1. **Clone the Repository:** | ||
```bash | ||
git clone https://github.com/Kritika30032002/ReactCreations.git | ||
``` | ||
|
||
2. **Navigate to the Project Directory:** | ||
```bash | ||
cd ReactCreations\Minecraft | ||
``` | ||
|
||
3. **Install Dependencies:** | ||
```bash | ||
npm install | ||
``` | ||
|
||
4. **Start the Server on Port 3000:** | ||
```bash | ||
npm start | ||
``` | ||
|
||
5. **Access the Server:** | ||
Once the server is running, you can access it in your web browser by navigating to `http://localhost:3000`. | ||
|
||
|
||
#### Tech Stack | ||
- **Frontend:** React.js | ||
- **Dependencies:** npm, node | ||
|
||
#### Demo | ||
Check out the demo of the Minecraft clone on YouTube: [Minecraft Clone Demo](https://youtu.be/Kc5pwakHoc8)(https://youtu.be/Kc5pwakHoc8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- [x] Boilerplate | ||
- [x] Sky | ||
- [x] Textures and images | ||
- [x] Ground | ||
- [x] Keyboard inputs | ||
- [x] Player | ||
- [x] First person view | ||
- [x] Gravity | ||
- [x] Movement | ||
- [x] State management | ||
- [x] Cubes | ||
- [x] Adding cubes | ||
- [x] Removing cubes | ||
- [x] Cube type selector | ||
- [x] Save world in localstorage | ||
- [x] Hover state on cubes | ||
- [x] Build a house |
Oops, something went wrong.