Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Camera2D

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _matrix

_matrix: Matrix

Private _modifiedCount

_modifiedCount: number

angle

angle: number

compositeOperation

compositeOperation: CompositeOperation

game

game: Game

height

height: number

id

id: number

local

local: boolean

name

name: string

opacity

opacity: number

scaleX

scaleX: number

scaleY

scaleY: number

width

width: number

x

x: number

y

y: number

Methods

Private _applyTransformToRenderer

  • _applyTransformToRenderer(renderer: Renderer): void
  • Parameters

    Returns void

Private _updateMatrix

  • _updateMatrix(): void

getMatrix

modified

  • modified(): void
  • Returns void

moveBy

  • moveBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • moveTo(obj: CommonOffset): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    Returns void

resizeBy

  • resizeBy(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

resizeTo

  • resizeTo(width: number, height: number): void
  • resizeTo(size: CommonSize): void
  • Parameters

    • width: number
    • height: number

    Returns void

  • Parameters

    Returns void

scale

  • scale(scale: number): void
  • Parameters

    • scale: number

    Returns void

serialize

  • serialize(): any
  • Returns any

Static deserialize

  • Parameters

    • ser: any
    • game: Game

    Returns Camera2D

Generated using TypeDoc