Properties
Readonly
capacity
capacity: number
Methods
add
- add(tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): undefined | number
-
Parameters
-
tileX: number
-
tileY: number
-
spriteSize: number
-
sourceX: number
-
sourceY: number
-
sourceSize: number
-
Optional
offsetX: number
-
Optional
offsetY: number
-
Optional
red: number
-
Optional
green: number
-
Optional
blue: number
-
Optional
alpha: number
Returns undefined | number
begin
- begin(): void
-
Returns void
delete
- delete(): void
-
Returns void
end
- end(): number
-
Returns number
remove
- remove(index: number): boolean
-
Returns boolean
render
- render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void
-
Parameters
-
x: number
-
y: number
-
tileScale: number
-
viewportWidth: number
-
viewportHeight: number
Returns void
update
- update(index: number, tileX: number, tileY: number, spriteSize: number, sourceX: number, sourceY: number, sourceSize: number, offsetX?: number, offsetY?: number, red?: number, green?: number, blue?: number, alpha?: number): void
-
Parameters
-
index: number
-
tileX: number
-
tileY: number
-
spriteSize: number
-
sourceX: number
-
sourceY: number
-
sourceSize: number
-
Optional
offsetX: number
-
Optional
offsetY: number
-
Optional
red: number
-
Optional
green: number
-
Optional
blue: number
-
Optional
alpha: number
Returns void