ElixirDoom.Text (elixir_doom v0.1.0)

Copy Markdown View Source

Writing in Doom's small font (STCFN033..STCFN095) onto a frame, placed in Doom's 320 by 200 screen and stretched to the frame, and the message line a player sees after picking something up.

Summary

Functions

Write text at {x, y} in Doom's screen, scaled by {sx, sy} and enlarged size times.

The player's current message across the top of a view width by height.

How wide text is in Doom's screen pixels, enlarged size times.

Functions

draw(frame, graphics, text, arg1, arg2, size \\ 1)

Write text at {x, y} in Doom's screen, scaled by {sx, sy} and enlarged size times.

message(frame, graphics, arg3, arg4)

The player's current message across the top of a view width by height.

width(graphics, text, size \\ 1)

@spec width(ElixirDoom.Graphics.t(), String.t(), number()) :: number()

How wide text is in Doom's screen pixels, enlarged size times.