info
turn this project into a package
import mc
world = mc.World(...)
world.set_block(x, y, z, mc.DIRT)
mc.run(world)
how to run
pip install pyglet
git clone https://github.com/fogleman/Minecraft.git
cd Minecraft
python main.py
how to play
w: forward
s: back
a: strafe left
d: strafe right
mouse: look around
space: jump
tab: toggle flying mode
building
-
selecting type of block to create
- 1: brick
- 2: grass
- 3: sand
-
mouse left-click: remove block
-
mouse right-click: create block
quitting
- esc: release mouse, then close window