Jump to content

Simulate Markdown in Phaser.Text! :D


Recommended Posts

Hi guys,


You can simulate Markdown in Phaser 2.4.2 very easily, see my example: http://codepen.io/jdnichollsc/pen/pJqadN?editors=001

var hello = game.add.text(x, y, "Hello **World**, this is **MarkDown** in *Phaser*!", {    font: "bold 60px Arial"});hello.applyMarkdown(); //that is all!

Regards, Nicholls  :D

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...