2D resource mining simulator with procedural world generation and multiplayer support. Explore, mine, and build in dynamically generated worlds with friends!
- World Generation:
- 🌍 Procedurally generated infinite worlds
- ⛰️ Multiple block types with unique properties
- Gameplay:
- ⛏️ Resource mining and collection
- 🎒 Inventory management system
- 🗺️ Real-time terrain modification
- Multiplayer:
- 🌐 Client-server architecture
- 👥 Real-time player synchronization
- 🔄 Shared persistent world state
-
Clone repository
git clone https://github.com/Zebaro24/Miner-2D.git cd Miner-2D -
Create virtual environment
python -m venv venv # Windows venv\Scripts\activate # Linux/Mac source venv/bin/activate
-
Install dependencies
pip install pygame
python sockets/server.pyDefault address: 127.0.0.1:12345
python runner.py- Movement: WASD keys
- Inventory: E key
- Mining: Left mouse button
- Building: Right mouse button
- Camera: Mouse wheel zoom
- Start server on host machine
- Players launch game clients
- Connect using server IP:port format
- All world changes sync in real-time
- See other players mining and building
blocks/
├── all_block.py # Block type management
├── block.py # Base block class
scenes/
├── inventory.py # Inventory UI system
├── menu.py # Game menus
├── miner_2d.py # Core gameplay scene
sockets/
├── client.py # Client networking
├── server.py # Server backend
images/ # Game textures
config.py # Game settings
map_miner.py # Procedural world generation
player.py # Player controller
runner.py # Main game executable| Single Player | Multiplayer |
|---|---|
| 👨💻 Developer | 💻 GitHub | |
|---|---|---|
| Denys Shcherbatyi | zebaro.work@gmail.com | @Zebaro24 |
| Dmitro Itsko | cloud.me.fr@gmail.com | @WhiteDh |