-
-
Read the JSON associated to the picture
| Name |
Type |
Description |
json |
Object
|
Json object describing the picture |
-
-
Read the JSON associated to the picture
-
-
Get the absolute path associated to this picture
Returns:
-
readCollisionsImage
(image)
-
Read collisions according to image size
| Name |
Type |
Description |
image |
Image
|
The image texture |
-
-
Read collisions, we assume that this.width and this.height had been
edited
-
-
Get a specific collision square according to texture
| Name |
Type |
Description |
pos |
Array.<number>
|
Texture position |
Returns:
-
-
Get a specific collision square according to texture
| Name |
Type |
Description |
x |
number
|
Texture x position |
y |
number
|
Texture y position |
Returns:
-
-
Get a specific collision square according to index
| Name |
Type |
Description |
index |
number
|
The index positions |
Returns:
-
getSquaresForWall
(texture)Array.<Array.<number>>
-
Get a specific collision for wall
| Name |
Type |
Description |
texture |
Array.<number>
|
Texture position |
Returns:
| Type |
Description |
|
Array.<Array.<number>>
|
|
-
getSquaresForTexture
(texture)Array.<Array.<number>>
-
Get a specific collision square according to texture
| Name |
Type |
Description |
texture |
Array.<number>
|
Texture position |
Returns:
| Type |
Description |
|
Array.<Array.<number>>
|
|
-
getSquaresForStates
(image)Array.<Array.<Array.<number>>>
-
Get a specific collision square according to texture
| Name |
Type |
Description |
image |
Image
|
The image texture |
Returns:
| Type |
Description |
|
Array.<Array.<Array.<number>>>
|
|