PageRenderTime 23ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/levels/TwoStep.as

http://github.com/schonstal/shadowmonk
ActionScript | 37 lines | 28 code | 9 blank | 0 comment | 0 complexity | 953c09c8b65dbf5f462f40b4b8e5385f MD5 | raw file
 1package levels
 2{
 3	import org.flixel.*;
 4
 5	public class TwoStep extends PlayState
 6	{
 7        [Embed(source = '../../data/Levels/TwoStep/Ground.txt', mimeType = "application/octet-stream")] private var Ground:Class;
 8        [Embed(source = '../../data/Levels/TwoStep/Wall.txt', mimeType = "application/octet-stream")] private var Wall:Class;
 9        public static var title:String = "Misdirection";
10
11        public function TwoStep() {
12            GroundMap = Ground;
13            WallMap = Wall;
14            super();
15        }
16
17        public override function initialize():void {
18            _player = new Player(6, 3, Direction.RIGHT);
19			
20			barActive = false;
21			
22			addArrow(10, 3, 10, 11, .8, .8);
23			
24			addKey(6, 8, new FlxPoint(11, 4));
25			addKey(14, 6, new FlxPoint(9, 10));
26			
27			addForceField(9, 6, false, false);
28			addForceField(11, 8, false, false);
29			addForceField(12, 9);
30			addForceField(8, 8);
31			addForceField(12, 6);
32			
33            addStairs(14, 11);
34		}
35	}
36}
37