Proyek
Lihat di GitHub Minecraft from scratch

GianlucaP106/minecraft
Tentang
Minecraft clone from scratch with only OpenGL
Gim dan emulasiYang dapat Anda lakukan
- ๐ Infinite & procedurally generated terrain using Perlin noise
- โ๏ธ Physics engine with collision detection and response
- ๐ก Dynamic lighting with shadows and day/night cycle ๐๐
- ๐งฑ Block placement and destruction
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- +1
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliMinecraft from scratch 
A Minecraft clone from scratch with only OpenGL. No game engines or frameworks.
https://github.com/user-attachments/assets/ba68da39-bf90-4e17-b6ad-3e84fae37e23
โจ Features
- ๐ Infinite & procedurally generated terrain using Perlin noise
- โ๏ธ Physics engine with collision detection and response
- ๐ก Dynamic lighting with shadows and day/night cycle ๐๐
- ๐งฑ Block placement and destruction
- ๐ณ Tree generation & basic cave systems ๐ณ๏ธ
- ๐ฆ Dynamic chunk loading/unloading based on player position
- ๐ฏ Frustum culling for rendering optimization
- ๐ Simple inventory system with hotbar (1โ9)
- ๐น๏ธ Flying mode for creative exploration
- ๐บ๏ธ Biome-based terrain variation
๐ ๏ธ Installation
# Clone the repository
git clone https://github.com/GianlucaP106/minecraft minecraft && cd minecraft
# Run the game (requires Go)
go run .
๐ฆ Make sure you have Go installed: https://go.dev/dl/
๐ฎ Controls
| Action | Key/Mouse |
|---|---|
| Move | W, A, S, D |
| Jump | Space |
| Toggle Fly | F |
| Look Around | Mouse |
| Break Block | Left Click |
| Place Block | Right Click |
| Select Item | 1-9 |
๐งช Technical Highlights
๐ผ๏ธ Graphics
- Uses OpenGL 4.1
- Custom shader programs for blocks, UI, and lighting
- Frustum culling for performance optimization
๐ World Generation
- Multi-octave Perlin noise for terrain shaping
- Biome system to vary landscape types
- Procedural caves and tree generation
- Real-time chunk loading/unloading
โ๏ธ Physics
- Custom physics engine with rigid body dynamics
- Block-based collision detection
- Jumping & flying mechanics
๐งฉ Architecture Overview
The engine follows a component-based design. Key systems include:
- ๐ฎ Game: Core game loop and simulation
- ๐ World system: Chunk loading, block updates
- ๐งฌ Generator: Terrain, trees, caves, biomes
- โ๏ธ Physics engine: Collision, movement, response
- ๐ง Player: Camera, controls, raycasting
๐ฆ Dependencies
This project uses ONLY the following Go packages:
โ ๏ธ Disclaimer
This project is developed for educational and non-commercial purposes only.
It is not affiliated with or endorsed by Mojang, Microsoft, or any related entities.
Jelajahi proyek terkait
Memuatโฆ