Text On Objects? #71
-
Hello , thank you for this awesome project <3
Is there any way to put text in objects? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, yes that is super easy to do! You can override the default render and use the drawText function...
|
Beta Was this translation helpful? Give feedback.
-
Yeah, there are a few ways you can find out... If you mouse over the function in vs it will show you the params. Color is the 4th param. You can also check the docs... https://killedbyapixel.github.io/LittleJS/docs/Draw.html#.drawText Or the function in the code... https://github.com/KilledByAPixel/LittleJS/blob/main/src/engineDraw.js#L250 |
Beta Was this translation helpful? Give feedback.
Hey, yes that is super easy to do! You can override the default render and use the drawText function...