# Camera

Module hilo/game/Camera Requires hilo/core/Class, hilo/util/util Source Camera.js
Camera.

### Properties

| Property | Defined
--- | --- | ---
| bounds:Array The rect area where camera is allowed to move [x, y, width, height]. | Camera
| deadzone:Array The rect area where camera isn't allowed to move[ x, y, width, height]. | Camera
| height:Number The height of the camera. | Camera
| scroll:Object The scrolling value of the camera {x:0, y:0}. | Camera
| target:View The target that the camera follow. | Camera
| width:Number The width of the camera. | Camera

### Methods

| Method | Defined
--- | --- | ---
| Camera(properties:Object) Constructor | Camera
| follow(target:Object, deadzone:Array) Follow the target. | Camera
| tick(deltaTime:Number) update. | Camera

### Property Detail

bounds:Array
The rect area where camera is allowed to move [x, y, width, height].
deadzone:Array
The rect area where camera isn't allowed to move[ x, y, width, height].
height:Number
The height of the camera.
scroll:Object
The scrolling value of the camera {x:0, y:0}.
target:View
The target that the camera follow.
width:Number
The width of the camera.

### Constructor

Camera(properties:Object)

parameters
properties:Object — The properties to create a view object, contains all writeable props of this class

### Method Detail

follow(target:Object, deadzone:Array)
Follow the target.

parameters
target:Object — The target that the camera follow. It must has x and y properties.
deadzone:Array — The rect area where camera isn't allowed to move[ x, y, width, height].

tick(deltaTime:Number)
update.

parameters
deltaTime:Number —