Expand description

This library contains the shared functions and data types between server and client.

Modules

Implementation of an ad-hoc protocol on top of UDP used for sending gameplay update between the server and client.

Structs

Contains the map tiles, spawn points (if any), and player characters for a limited area in the game.

Information about a character moving from point A to B.

A randomly generated identifier that differentiates different player characters.

Player character information, relative to the chunk the player is in.

Coordinates.

An identifier for different looking tiles.

Contains all the game state.

Enums

Changes to a Chunk, or an entire Chunk to replace the current one with.

Client-side actions that are sent to the server.

An effect applied to a Chunk that will change its state deterministically.

Messages sent back to clients by the server.

Constants

The amount of columns of chunks in the world.

The amount of rows of chunks in the world.

The height of one chunk in tiles.

The width of one chunk in tiles.

The amount of timesteps in one second. The “FPS” of the game logic.

Type Definitions