字体不显示在画布上

时间:2014-08-12 13:49:56

标签: javascript html5 canvas fonts impactjs

我在javascript中使用impactjs引擎绘制字体,我有一个字体的图像,并试图在我的画布上绘制它,但字体显示在画布上,我在哪里错了?任何帮助    感谢名单

.defines(function(){

EntityTutorial = ig.Entity.extend({
yellowFont : new ig.Font('/tutorial/yellow.png'),

 draw: function(){
    this.parent();
    console.log("draw");
    this.yellowFont.draw('Swipe from the hero to the Blue Team Soldier to release a Lightning Dragon',ig.game.screen.x+100,100,ig.Font.ALIGN.RIGHT);
    //this.blueFont.draw('dfdfd',ig.game.screen.x+100,100,ig.Font.ALIGN.RIGHT);
}
});

0 个答案:

没有答案