-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevel1.as
More file actions
35 lines (30 loc) · 722 Bytes
/
Level1.as
File metadata and controls
35 lines (30 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package
{
import org.flixel.FlxText;
/**
* ...
* @author mklingen
*/
public class Level1 extends Level
{
public var text:FlxText;
public function Level1()
{
super();
}
override public function loadMap():void
{
map = new Map(new LevelData(GameAssets.Level1Tiles, LevelData.TYPE_CSV), new LevelData(GameAssets.Level1Objects, LevelData.TYPE_CSV));
map.loadLevel();
}
override public function update():void
{
if (text == null)
{
text = new FlxText(map.getBounds().width / 2 - 55, map.getBounds().height / 2 + 75, 312, "In a tutorial? We can help!\n Get the gem, go to the door!");
add(text);
}
super.update();
}
}
}