Skip to content

dzeromsk/cubes-opengl

Repository files navigation

cubes-opengl

Simple OpenGL demo with multiplayer feature. Player controls single cube with mechanics inspired by "Katamari Damacy".

Details:

  • Internally demo consist of client and server
  • Both communicate over UDP using Snapshots Interpolation model*
  • Server dumps simulation state 10 times per second (10pps)
  • State is bound and quantizied before sending
  • Client renders recived data and sends user input to server (smilar to Quake 2 model)

Build

Works on Windows and Linux :)

git clone https://github.com/dzeromsk/cubes-openg.git
mkdir cubes-openg/build
cd cubes-openg/build
cmake -GNinja ..
ninja

Examples

Start screen

You can connect to existing server or start new one.

Alt text

Player view

Player controls large cube using WSAD.

Alt text

Multiplayer

Player count is limited only by server troughput.

Alt text

Debug view

Press F12 to open second udp connection and recive raw data (no interpolation and quantization) from server.

Alt text

References

About

Cubes demo using OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published