这是我的代码
this.labelMeter = new cc.LabelBMFont("10.00mm", "res/meterBF.fnt");
this.labelMeter.anchorX = 1;
this.labelMeter.anchorY = 0;
this.labelMeter.setPosition(cc.pAdd(this.gamePadSprite.getPosition(), cc.p(this.gamePadSprite.width-80, this.gamePadSprite.height-50)));
this.animLayer.addChild(this.labelMeter);
```
在PrebuiltRuntimeJs里显示正常,但在浏览器就无法显示,console报错“"cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"” 还有“TypeError: node.textureAtlas is null”
请问是不是我漏了什么?本人第一次用Cocos2d-js框架开发。
多谢多谢,真是这个问题~ 必须提前加载,直接引用是不行的