A simple Minecraft clone written in C using modern OpenGL (shaders).
- Simple but nice looking terrain generation using perlin / simplex noise.
- More than 10 types of blocks and more can be added easily.
- Supports plants (grass, flowers, trees, etc.) and transparency (glass).
- Simple clouds in the sky (they don't move).
- World changes persisted in a sqlite3 database.
- Multiplayer support!
Download and install CMake if you don't already have it.
sudo apt-get install cmake libglew-dev xorg-dev
sudo apt-get build-dep glfw
It should be able to run on Windows, but I don't have a Windows machine to test on at the moment. Let me know if and how you get it to run and I will update the README.
Once you have the dependencies (see above), run the following commands in your terminal.
git clone https://github.com/fogleman/Craft.git
cd Craft
cmake .
make
./craft
You can run your own server or connect to mine. The server uses the same SQLite database format as the client running standalone.
./craft 199.115.118.225 16018
pip install sqlalchemy
python server.py [HOST [PORT]]
- WASD to move forward, left, backward, right.
- Space to jump.
- Left Click to destroy a block.
- Right Click or Cmd + Left Click to create a block.
- 1-9 to select the block type to create.
- E to cycle through the block types.
- Tab to toggle between walking and flying.
- ZXCVBN to move in exact directions along the XYZ axes.
- Left shift to zoom.
- F to show the scene in orthographic mode.
- Arrow keys emulate mouse movement.
- Enter emulates mouse click.