simplify first level

This commit is contained in:
Juraj Michalek
2015-12-27 22:40:51 +01:00
parent d824f78071
commit 69a5fa0a4c
10 changed files with 250 additions and 66 deletions

View File

@@ -5,7 +5,7 @@ levelSelectorState.preload = function() {
}
levelSelectorState.create = function() {
for (var i=1; i!=3; i++) {
for (var i=1; i<levels.length+1; 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;