Camera
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
gridHeight: * |
|
public |
gridWidth: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
player: * |
|
public |
|
|
public |
|
|
public |
renderer: * |
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
center() |
|
public |
centreOn(entity: *) |
|
public |
clip() |
|
public |
decenter() |
|
public |
forEachVisiblePosition(callback: *, offset: *) |
|
public |
handlePanning(direction: *) |
|
public |
setGridPosition(x: *, y: *) |
|
public |
setPlayer(player: *) |
|
public |
setPosition(x: *, y: *) |
|
public |
update() |
|
public |
zone(direction: *) |
Public Constructors
public constructor() source
Public Members
public gridHeight: * source
public gridWidth: * source
public player: * source
public renderer: * source
Public Methods
public center() source
public centreOn(entity: *) source
Params:
Name | Type | Attribute | Description |
entity | * |
public clip() source
public decenter() source
public forEachVisiblePosition(callback: *, offset: *) source
Params:
Name | Type | Attribute | Description |
callback | * | ||
offset | * |
public handlePanning(direction: *) source
Params:
Name | Type | Attribute | Description |
direction | * |
public setGridPosition(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public setPlayer(player: *) source
Params:
Name | Type | Attribute | Description |
player | * |
public setPosition(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public update() source
public zone(direction: *) source
Params:
Name | Type | Attribute | Description |
direction | * |