new Camera(width, height, x, y, params)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
width |
Int | initial width inside the render |
|
height |
Int | initial height inside the render |
|
x |
Int | position in the Render |
|
y |
Int | position in the Render |
|
params |
Object |
<optional> |
optional parameters |
- Source:
Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
name |
String |
<optional> |
"noname" | name your camera |
tag |
String |
<optional> |
"none" | assign tags if it's can be useful for you |
scene |
Scene |
<optional> |
null | you can give a scene on creation, or later |
Example
Game.camera = new DE.Camera( 1920, 1080, 0, 0, { "name": "mainGame", "backgroundColor": "green" } );