"real, 3D Minecraft, purely in python"
This project is a Minecraft-inspired sandbox game built using the Ursina Engine. The game allows players to explore a generated flat area, place and destroy blocks, and interact with objects like a mini solar system.
- Voxel Terrain: Generate a simple flat world with grass blocks.
- Block Placement: Add blocks of different types, including grass, stone, brick, dirt, and solar systems.
- Block Removal: Destroy blocks using the left mouse button.
- Solar System: Create a solar system block that animates an orbiting planet.
- First-Person Controlled
- Fail-safe: Teleport back to the starting point if the player falls below the map.
- WASD or Arrow Keys: Move the player.
- Mouse Movement: Look around.
- Left Mouse Button: Destroy blocks.
- Right Mouse Button: Place blocks of the selected type.
- Number Keys (1-5): Switch between block types:
1
: Grass block2
: Stone block3
: Brick block4
: Dirt block5
: Solar system block
- ESC: Exit the game.
- Python 3.11+
- Ursina Engine
- Clone thy repo:
- Install the Ursina Engine:
pip install ursina
- Ensure all assets are located in the
assets/
folder, including textures, models, and sounds. - Run the
main.py
file:python main.py
-
README.md: This file.
-
main.py: The main barcraft code.
-
assetTest.py: A little script to test new models and textures.
-
sims.py: Methods that control the various simulations in the world. Might change this later as there becomes more simulations.
-
assets: Folder that contains all of the models, textures and audio files.
- Inspiration from Mojang's Minecraft.