ippa / jaws

Jaws - HTML5 canvas javascript 2D Game Framework
https://jawsjs.ippa.se
GNU Lesser General Public License v3.0
364 stars 75 forks source link

Feature Request: Text Support #92

Open atomdmac opened 11 years ago

atomdmac commented 11 years ago

This is just as much a question as it is a feature request: Is there a reason that there isn't any support for drawing text?

I'm considering creating a copy of the Sprite class and modifying it to create a "Text" class that will accept a "text" option instead of a "image" option. Additionally, I would swap the setImage() method with a setText() method.

Are there any reasons that I -shouldn't- do it this way? Is there a better way? If there are already plans to add text support, should I even bother?

Thanks!

ippa commented 11 years ago

Hi, it sounds like your looking for this: https://github.com/ippa/jaws/blob/master/src/text.js ?

atomdmac commented 11 years ago

Ah, perfect! That oughta save me a whole bunch of time :P

I'll have a stab at building from src now. Thanks again!