Orasund/pixelengine/4.3.0

NOTE: the latest version is 6.2.0

PixelEngine.Graphics.Options

Options are tweak different aspects of your program.

Options

type alias Options msg =
Options msg

Options for the render function

fromWidth : Float -> Options msg

Defines the width of the game.

withAnimationFPS : Float -> Options msg -> Options msg

Sets the Frames per Seconds for Animations.

Value must be positv or else the function will be ignored.

Default value: 1

withMovementSpeed : Float -> Options msg -> Options msg

The speed of movement in seconds.

Default value: 0.2

withScale : Int -> Options msg -> Options msg

Scales up everything.

Use only power of 2 as scale to ensure crisp pixels.

Default value: 1