Tilemaps

Now we use .csv tilemap files to easier and faster create levels. It can be helpful to
generate these files using the toast editor at
http://toastedware.com/toasteditor/. The commit includes
an example level.
Det stämmer bra. Var inte meningen att ta bort det så bra att du märkte 
det. Nu är det iallafall fixat.
On 2014-10-10 21:17, Rovanion Luckey wrote:
>
> In Level.js:
>
> >
> >  		this.bobby.create(this.characterStartX, this.characterStartY);
> >  		this.timer.create();
> > -
> > -		// Register hooks for the number keys to switch between levels.
> > -		keynames = [ "", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX",
> > -								 "SEVEN", "EIGHT", "NINE", "TEN", "ZERO" ];
> > -		for ( var n = 1; n <= 10; n++){
> > -			// The extra anonymous function here exists because of:
> > -			// http://www.mennovanslooten.nl/blog/post/62
> > -			switchLevel = ( function(n) { return function () { game.state.start(n); } } )(n);
> > -			// Equivelant of this.input.keyboard.addKey(49,50, .. ,58)
> > -			this.input.keyboard.addKey(Phaser.Keyboard[keynames[n]]).onDown.add(switchLevel);
> > -		}
>
> Den här biten kod vill vi inte ta bort.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Rovanion/SuperHappyFunTime/pull/42/files#r18725116>.
>