linsyking/messenger-core/17.1.3

NOTE: the latest version is 20.0.0

Renamed to elm-messenger/messenger-core. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/messenger-core still install under that name. 34 versions of 52 come from the new location (see their notes). 7 versions could not be recovered and cannot be installed.

Messenger.Coordinate.Camera

Camera Tools

setCameraPos : ( Float, Float ) -> GlobalData u -> GlobalData u

Set the camera position.

setCameraScale : Float -> GlobalData u -> GlobalData u

Set the camera scale.

setCameraAngle : Float -> GlobalData u -> GlobalData u

Set the camera angle.

defaultCamera : GlobalData u -> Camera

Default camera for the game.

worldToView : Camera -> ( Float, Float ) -> ( Float, Float )

Tranform a position from the world coordinate system to the view (camera) coordinate system.

viewToWorld : Camera -> ( Float, Float ) -> ( Float, Float )

Transform a position from the view coordinate system to the world coordinate system.

This is the inverse of worldToView.