Skip to content
Proyek

Tentang

Minecraft clone from scratch with only OpenGL

Gim dan emulasi

Cara angka ini diukur

Yang 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

Asli

Minecraft from scratch minecraft

A Minecraft clone from scratch with only OpenGL. No game engines or frameworks.

https://github.com/user-attachments/assets/ba68da39-bf90-4e17-b6ad-3e84fae37e23

Screenshot 2025-05-11 at 12 48 01โ€ฏAM
Screenshot 2025-05-11 at 9 50 57โ€ฏPM Screenshot 2025-05-11 at 9 50 12โ€ฏPM
Screenshot 2025-05-11 at 9 52 20โ€ฏPM demo7

โœจ 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

architecture

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โ€ฆ