PageRenderTime 33ms CodeModel.GetById 29ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/levels/Level04.as

http://github.com/schonstal/shadowmonk
ActionScript | 30 lines | 26 code | 4 blank | 0 comment | 0 complexity | a5d61a48b677c13d7f17319c35574fd0 MD5 | raw file
 1package levels
 2{
 3  import org.flixel.*;
 4
 5  public class Level04 extends PlayState
 6  {
 7    [Embed(source = '../../data/Level04/layer_0.txt', mimeType = "application/octet-stream")] private var Ground:Class;
 8    [Embed(source = '../../data/Level04/layer_1.txt', mimeType = "application/octet-stream")] private var Wall:Class;
 9    public static var title:String = "Awesome";
10
11    public function Level04()
12    {
13      GroundMap = Ground;
14      WallMap = Wall;
15      super();
16    }
17
18    public override function initialize():void {
19      _player = new Player(2,6,2);
20      addGuard(new Array(new FlxPoint(10,10), new FlxPoint(14,10), new FlxPoint(14, 4), new FlxPoint(6, 4), new FlxPoint(6,10)), 1);
21      addTrap(9,4);
22      addTrap(9,5);
23      addTrap(9,9);
24      addTrap(10,11);
25      addStairs(17, 4);
26	  addStairs(17, 5);
27    }
28  }
29}
30