Module ggez_goodies::camera [] [src]

A camera object for ggez. Currently ggez has no actual global camera state to use, so this really just does the coordinate transforms for you.

Basically it translates ggez's coordinate system with the origin at the top-left and Y increasing downward to a coordinate system with the origin at the center of the screen and Y increasing upward.

Because that makes sense, darn it.

However, does not yet do any actual camera movements like easing, pinning, etc. But a great source for how such things work is this: http://www.gamasutra.com/blogs/ItayKeren/20150511/243083/Scroll_Back_The_Theory_and_Practice_of_Cameras_in_SideScrollers.php

Structs

Camera

Traits

CameraDraw