PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/levels/WispTest.as

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