ExPilot.Radar (ExPilot v0.1.1)

Copy Markdown View Source

XPilot's radar on Cauldron2D.Minimap: the whole arena in a few rows of braille, walls in blue, bases grey, the player's ship yellow, teammates blue and enemies red. With radar.players? false in the view (the map's playersonradar), only the player's own ship is marked.

ExPilot.Radar.rows(arena, view, {30, 12})

Each row is a list of {text, colour} runs, a hud row. The scaled walls are kept per map name and radar size after the first call, so a map's name must be unique among the maps open at once.

Summary

Functions

The radar for view of arena fitted into columns cells by rows rows.

Functions

rows(arena, view, cells)

@spec rows(ExPilot.Map.t(), map(), {pos_integer(), pos_integer()}) :: [
  [{String.t(), {byte(), byte(), byte()}}]
]

The radar for view of arena fitted into columns cells by rows rows.