#connector #game-server #websocket #com #events #ship #flattiverse

flattiverse_connector

Connector library for the flattiverse.com game server

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

#758 in Games

Download history 21/week @ 2024-02-16 70/week @ 2024-02-23 3/week @ 2024-03-01

79 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

~13–26MB
~482K SLoC