RetroFont#pasteLine()

pasteLine(line, x, y, customSpacingX)

Internal function that takes a single line of text (2nd parameter) and pastes it into the BitmapData at the given coordinates.
Used by getLine and getMultiLine

Parameters
Name Type Description
line string

The single line of text to paste.

x number

The x coordinate.

y number

The y coordinate.

customSpacingX number

Custom X spacing.

Source code: gameobjects/RetroFont.js (Line 420)
doc_phaser
2017-02-14 11:07:50
Comments
Leave a Comment

Please login to continue.