clean up level01

This commit is contained in:
Juraj Michalek
2015-12-27 19:34:48 +01:00
parent c235d6efe6
commit aa9fbd8f58
6 changed files with 9 additions and 8 deletions

View File

@@ -5,8 +5,8 @@ levelSelectorState.preload = function() {
}
levelSelectorState.create = function() {
for (var i=0; i!=2; i++) {
var text = new Kiwi.GameObjects.Textfield( this, "Level " + (i+1).toString(), 66+i*140, 60, "#000", 32, 'normal', 'Impact' );
for (var i=1; i!=3; i++) {
var text = new Kiwi.GameObjects.Textfield( this, "Level " + i.toString(), 66+i*140, 60, "#000", 32, 'normal', 'Impact' );
var sprite = new Kiwi.GameObjects.Sprite(this, this.textures.button, 50+i*140, 50);
sprite.levelIndex = i;
sprite.input.onUp.add( this.buttonReleased, this );