ElixirQuake.View (elixir_quake v0.1.0)

Copy Markdown View Source

What the player sees, gathered from the game each tick for ElixirQuake.Render:

  • :map, :time
  • :camera — %{origin:, angles:}, the eye with bob, kick and death roll worked in
  • :entities — each drawn thing in a leaf the eye can see, as %{model:, frame:, skin:, origin:, angles:, effects:, entity:}; :statics, the scenery made static, likewise
  • :weapon — the held weapon, %{model:, frame:}, or nil
  • :beams, :particles
  • :styles — the scale of each of the 64 light styles now, 256 normal
  • :stats — as ElixirQuake.StatusBar.draw/2 takes, with :pain_until
  • :washes, :notify, :center, :intermission, :finale, :tally, :over

Summary

Functions

World units per sound placement unit.

The view of state, an ElixirQuake.Game state.

The effect flags of entity's model: trails and spinning.

Functions

audio_scale()

@spec audio_scale() :: float()

World units per sound placement unit.

build(state)

@spec build(map()) :: map()

The view of state, an ElixirQuake.Game state.

model_flags(server, entity)

@spec model_flags(QuakeServer.Server.t(), non_neg_integer()) :: integer()

The effect flags of entity's model: trails and spinning.