Skip to content

splurf/blazed-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blazed-demo

A client-server 3D renderer featuring real-time player movement and view synchronization within a dynamic 128-tick rate system. Built with Rust using OpenGL and SDL2.

Build

Retrieve the repository:

git clone https://github.com/splurf/blazed-demo

Running the Client

Before attempting to compile the client, you will need to configure SDL2. Afterwards, you should have the library files placed into your toolchain and the .dll file at client\SDL2.dll in this project's directory.

cargo r --release --manifest-path client\Cargo.toml

Additional Usage

Client

Usage: client server --remote-tcp-addr <REMOTE_TCP_ADDR> --local-udp-addr <LOCAL_UDP_ADDR> --remote-udp-addr <REMOTE_UDP_ADDR>

Options:
      --remote-tcp-addr <REMOTE_TCP_ADDR>  Remote TCP IP address
      --local-udp-addr <LOCAL_UDP_ADDR>    Local IP address
      --remote-udp-addr <REMOTE_UDP_ADDR>  Remote IP address
  -h, --help                               Print help

Server

Usage: server [OPTIONS] --tcp-addr <TCP_ADDR> --udp-addr <UDP_ADDR>

Options:
  -t, --tcp-addr <TCP_ADDR>  TCP IP address
  -u, --udp-addr <UDP_ADDR>  UDP IP address
      --tps <TPS>            [default: 128]
  -h, --help                 Print help

Notes

  • The server has a --tps flag, which will allow you to specify the tick rate (min: 1, max: 255).