Skip to content

Extends Phaser.Text to easily let you add underlines anywhere in your text

Notifications You must be signed in to change notification settings

brentstrandy/phaser-underline-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Phaser UnderlineText

Features

  • Keep all functionality of Phaser.Text object
  • Add as many underlines as needed
  • Works with variable font sizes
  • Works with variable line spacing
  • Works with word wrap

Example

this.myTextObj = new UnderlineText(this.game, 84, 79, 'Hello World', { font: '18px Verdana', fill: '#000000' });
this.myTextObj.addUnderline(0, 4);

...

this.myTextObj.clearUnderlines();
this.myTextObj.addUnderline(10, 20);
this.myTextObj.addUnderline(22, 10);

About

Extends Phaser.Text to easily let you add underlines anywhere in your text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages