26 stable releases (7 major)

42.1.3 Feb 17, 2023
41.0.2 Feb 17, 2023
40.1.4 Feb 15, 2023
39.0.1 Feb 13, 2023
0.9.6 Nov 16, 2017

#781 in Games

Download history 23/week @ 2024-09-18 41/week @ 2024-09-25

64 downloads per month

MIT license

145KB
3.5K SLoC

Flattiverse Rust Connector

Homepage: https://flattiverse.com/
GitHub-Dev: https://github.com/flattiverse/
C#-Connector: https://github.com/flattiverse/connector-csharp

The rust implementation of the Flattiverse connector. It uses WebSocket to connect to the Flattiverse servers.

See the examples for how to use this crate

  • examples/console.rs: Demonstrates very basic usage of the connector. Only logs to the console. Shows connecting to the server, sending messages, creating a ship, scanning stuff and processing events.
  • examples/sdl2.rs: Additionally, opens a SDL2-Window, draws the own ship onto it and demonstrates how to process input-events.

Hint compilation

This crate uses rustls for encryption. If you are building in debug mode, consider adding the following to your Cargo.toml to speed up the socket encryption.

[profile.dev.package."*"]
opt-level = 3

Dependencies

~14–25MB
~476K SLoC