Module hilo/game/Camera
Requires
hilo/core/Class, hilo/util/util
Source
Camera.js
Camera.
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 |
Method | Defined | |
---|---|---|
Camera(properties:Object)
Constructor
|
Camera | |
follow(target:Object, deadzone:Array)
Follow the target.
|
Camera | |
tick(deltaTime:Number)
update.
|
Camera |