Crate yareio

Crate yareio 

Source
Expand description

You should export a tick function with the following signature:

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

Modules§

base
The base creates new spirits once it has enough energy. If your base if destroyed you lose the game.
console
Mappings for the JavaScript console.
game
Yare.io is a RTS game played by executing code.
graphics
Render circles and lines on the map. First set the colour and then draw a shape.
id
Helper struct for spirit id.
outpost
Outposts are objects that can be captured by energizing them. Outposts will shoot at random energies within their range.
player
Information about players in the game.
position
Position is given as an x and y coordinate on an Euclidean plane.
random
Access to random numbers.
spirit
Spirits are the game’s units. They carry energy which is used for creating new spirits, fighting, and capturing outposts.
star
Stars are sources of energy.