Fixed

indigo.shared.scenegraph.Camera.Fixed
See theFixed companion object
final case class Fixed(position: Point, zoom: Zoom, rotation: Radians) extends Camera

Indigo's default camera is fixed. It starts at position 0,0 and shows you everything down and right from there until it runs out of screen. Fixed cameras are useful for replicating the behaviour of Indigos normal windowing while controlling the position, zoom and rotation.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Camera
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def bounds(viewport: GameViewport): Rectangle
def bounds(viewport: Size): Rectangle
def moveBy(amount: Point): Fixed
def moveBy(x: Int, y: Int): Fixed
def moveTo(newPosition: Point): Fixed
def moveTo(x: Int, y: Int): Fixed
def rotateBy(angle: Radians): Fixed
def rotateTo(angle: Radians): Fixed
def topLeft(viewport: GameViewport): Point
def topLeft(viewport: Size): Point
def withRotation(newRotation: Radians): Fixed
def withX(newX: Int): Fixed
def withY(newY: Int): Fixed
def withZoom(newZoom: Zoom): Fixed

Inherited methods

def frustum(viewport: Size): Rectangle

Attributes

Inherited from:
Camera
def frustum(viewport: GameViewport): Rectangle

Attributes

Inherited from:
Camera
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val isLookAt: Boolean