Expand description

Module for the main game loop, in the run function.

Structs

PeerState 🔒

Tracked state for a specific peer.

Constants

The amount of time one frame should take.

Functions

Returns the neighboring chunks to the given chunk index. There are 4-9 neighbors for every chunk, depending on if they’re on the border of the world.

Takes a ClientAction, the PlayerCharacter associated with the action, and the World, and comes up with the Effects that the action causes. The return value contains the appropriate chunk index for each Effect.

Runs the game loop and blocks until it returns an error (or the process is terminated).