Skip to content

Commit

Permalink
Merge pull request #243 from JiyaGupta-cs/main
Browse files Browse the repository at this point in the history
feat: Added Minecraft
  • Loading branch information
Kritika30032002 authored Feb 11, 2024
2 parents 3779632 + 2d8b757 commit 6b3f15f
Show file tree
Hide file tree
Showing 27 changed files with 37,823 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Minecraft/.gitignore
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*
46 changes: 46 additions & 0 deletions Minecraft/README.md
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)
17 changes: 17 additions & 0 deletions Minecraft/TUTORIAL.md
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
Loading

0 comments on commit 6b3f15f

Please sign in to comment.