An open API service indexing awesome lists of open source software.

https://github.com/invpe/blockdigger

Multiplayer Blocks Digger game with raw sockets and OpenGL
https://github.com/invpe/blockdigger

game game-development glut-library multiplayer-game opengl raw socketserver

Last synced: 6 months ago
JSON representation

Multiplayer Blocks Digger game with raw sockets and OpenGL

Awesome Lists containing this project

README

          

# BlockDigger

![zzzzz](https://github.com/user-attachments/assets/536d92e8-9db8-43aa-8ac3-f21d8227a9ef)

A very simple framework made with raw sockets and OpenGL for a multiplayer blocks mining game.
It's a good starting point for further customization and enhancements.
Should compile on anything having GLUT/GL

# How does it work
- The max size of the generated block structure is 32x32x32
- Server generates blocks around a center point that are adjacent to each other.
- Each block has 3 digs (3 clicks) to be destroyed.
- Each destroyed blocks gives +1 to the player score
- Clients connect to the master server
- Clients rotate around the generated structure holding RMB
- Clients zoom with scroller
- Clients dig the blocks with LMB
- Clients render only visible faces

# Enhancements
Thousands, but this code is kept to minimum to allow customizing it's simple form

![image](https://github.com/user-attachments/assets/b0bb4573-78a6-4d07-badf-e21a72dd05ec)