12 Text - JcerelusDev/CanvasGameJs GitHub Wiki

How to use the Text Method

the Text Method allows you to draw text on the stage.

Example :

Text("white","italic","22px","courier","Hello World",110,30)

1 color

2 fontstyle

3 size in pixel

4 font-family

5 the text or variable representing a text

6 xPosition of the text

7 yPosition of the text

Goood to know :

fontstyle doesn't have to be Italic, it depends on you.

Text("white","normal","22px","courier","Hello World",-110,-30)