Crate yareio[][src]

Expand description

You should export a tick function with the following signature:

#[no_mangle]
pub extern "C" fn tick(tick: u32) {}

Modules

The base creates new spirits once it has enough energy. If your base if destroyed you lose the game.

Mappings for the JavaScript console.

Yare.io is a RTS game played by executing code.

Render circles and lines on the map. First set the colour and then draw a shape.

Helper struct for spirit id.

Outposts are objects that can be captured by energizing them. Outposts will shoot at random energies within their range.

Information about players in the game.

Position is given as an x and y coordinate on an Euclidean plane.

Access to random numbers.

Spirits are the game’s units. They carry energy which is used for creating new spirits, fighting, and capturing outposts.

Stars are sources of energy.