/src/levels/DiodeOne.as

http://github.com/schonstal/shadowmonk · ActionScript · 36 lines · 28 code · 8 blank · 0 comment · 0 complexity · f542874d42776fdcd3d6e953d1e7fe8f MD5 · raw file

  1. package levels
  2. {
  3. import org.flixel.*;
  4. public class DiodeOne extends PlayState
  5. {
  6. [Embed(source = '../../data/Levels/DiodeOne/Ground.txt', mimeType = "application/octet-stream")] private var Ground:Class;
  7. [Embed(source = '../../data/Levels/DiodeOne/Wall.txt', mimeType = "application/octet-stream")] private var Wall:Class;
  8. public static var title:String = "Short Circuit";
  9. public function DiodeOne() {
  10. GroundMap = Ground;
  11. WallMap = Wall;
  12. super();
  13. }
  14. public override function initialize():void {
  15. _player = new Player(5, 2, Direction.RIGHT);
  16. barActive = false;
  17. addDiode(8, 2, Direction.LEFT);
  18. addDiode(7, 3, Direction.DOWN);
  19. addDiode(10, 7, Direction.UP);
  20. addDiode(8, 8, Direction.RIGHT);
  21. addDiode(6, 8, Direction.RIGHT);
  22. addDiode(14, 7, Direction.DOWN);
  23. addKey(14, 2, new FlxPoint(5, 3));
  24. addKey(12, 8, new FlxPoint(14, 3));
  25. addStairs(5, 10);
  26. }
  27. }
  28. }