Minecraft clone for Windows, Mac OS X and Linux. Just a few thousand lines of C using modern OpenGL (shaders). Online multiplayer support is included using a Python-based server.
http://www.michaelfogleman.com/craft/
- 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).
- Day / night cycles and a textured sky dome.
- World changes persisted in a sqlite3 database.
- Multiplayer support!
Mac and Windows binaries are available on the website.
http://www.michaelfogleman.com/craft/
See below to run from source.
Download and install CMake if you don't already have it. You may use Homebrew to simplify the installation:
brew install cmake
sudo apt-get install cmake libglew-dev xorg-dev
sudo apt-get build-dep glfw
Download and install CMake
and MinGW. Add C:\MinGW\bin
to your PATH
. Use the
following commands in place of the ones described in the next section.
cmake -G "MinGW Makefiles"
mingw32-make
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
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.
- O to observe players in the main view.
- P to observe players in the picture-in-picture view.
- Arrow keys emulate mouse movement.
- Enter emulates mouse click.