/src/levels/Level04.as

http://github.com/schonstal/shadowmonk · ActionScript · 30 lines · 26 code · 4 blank · 0 comment · 0 complexity · a5d61a48b677c13d7f17319c35574fd0 MD5 · raw file

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