ramove FontAwesome, because it is slowing down load and there is was just one icon in the game

This commit is contained in:
Juraj Michalek
2015-12-30 10:01:18 +01:00
parent 048a417542
commit 8a0d8b1556
13 changed files with 54 additions and 698 deletions

View File

@@ -9,8 +9,6 @@ levelSelectorState.save = function() {
}
levelSelectorState.preload = function() {
this.addSpriteSheet('button', './data/images/gfx64/button.png', 128, 64 );
if (this.game.saveManager.exists('levelStatus')) {
this.levelStatus = this.game.saveManager.getData('levelStatus');
} else {
@@ -51,8 +49,8 @@ levelSelectorState.create = function() {
button.levelIndex = i;
if (this.levelStatus[i-1] == 'locked') {
var text = new Kiwi.GameObjects.Textfield( this, "\uf023", 100+counterX*120, 32+counterY*70, "#cb6f25", 32, 'normal', 'FontAwesome' );
this.addChild(text);
var lock = new Kiwi.GameObjects.Sprite(this, this.textures.lock, 100+counterX*120, 32+counterY*70);
this.addChild(lock);
} else {
var text = new Kiwi.GameObjects.Textfield( this, i.toString(), 100+counterX*120, 30+counterY*70, "#fbd712", 32, 'normal', 'Impact' );
this.addChild(text);