Just want to point out that the code below works if your component has DOM, but not Canvas (and obviously not WebGL, which doesn't seem to support text yet):
Crafty.e("Text").text("hi\nthere")
Renders in Canvas as hi there and in DOM as:
Tested with v0.9.0.
Just want to point out that the code below works if your component has DOM, but not Canvas (and obviously not WebGL, which doesn't seem to support text yet):
Crafty.e("Text").text("hi\nthere")Renders in Canvas as
hi thereand in DOM as:Tested with v0.9.0.