Crates.io | flattiverse_connector |
lib.rs | flattiverse_connector |
version | 42.1.3 |
source | src |
created_at | 2017-11-16 20:58:45.003702 |
updated_at | 2023-02-17 15:04:50.228578 |
description | Connector library for the flattiverse.com game server. |
homepage | https://www.flattiverse.com/ |
repository | https://github.com/flattiverse/connector-rust.git |
max_upload_size | |
id | 39596 |
size | 190,446 |
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.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