ElixirQuake.StatusBar (elixir_quake v0.1.0)

Copy Markdown View Source

Quake's status bar, 320 by 48: the inventory bar (weapons held, ammunition counts, keys, power-ups and runes) over the main bar (armour, face, health, ammunition). Colour 255 is see-through.

ElixirQuake.StatusBar.draw(stats, time)

stats is %{health:, armor:, ammo:, items:, weapon:, shells:, nails:, rockets:, cells:, pain_until:}; items carries the runes in its top four bits.

Summary

Functions

The status bar for stats at time seconds.

Functions

draw(stats, time)

@spec draw(map(), number()) :: Cauldron3D.Frame.t()

The status bar for stats at time seconds.