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
- Host: GitHub
- URL: https://github.com/invpe/blockdigger
- Owner: invpe
- License: mit
- Created: 2024-08-09T07:38:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T13:12:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T23:25:57.865Z (over 1 year ago)
- Topics: game, game-development, glut-library, multiplayer-game, opengl, raw, socketserver
- Language: C++
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlockDigger

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
