Skip to content

KennyC3200/Minecraft-Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft

This is a Minecraft clone, made with recreational intended purposes.

Thumbnail Image

Building

Currently, this is only tested for macOS. To build on macOS, run

make run

Which will build the executable file in the bin folder.

Current Implemented Features

Features that are implemented include:

  • Movement
  • Placing and blocks
  • Removing blocks
  • Hotbar

Libraries Used

Issues and Fixes

Path: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon

Update glfw path: cmake -D CMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

TODO

  • Optimize rendering
    • Pack and unpack the data, each vertice should be 0-16 (4 bits); a face is (4 * 6) / 8 = 3 bytes
    • Pass a chunk_pos vec3 into the vertex shader
  • Either vectors are slow or classes are slow, most likely the former. Load times are taking a while...
  • Chunks rendering as player moves around
  • Physics
  • Padding issues, add -Wpadded to see

About

Minecraft clone in C++ with OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages