-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWinWorld.as
40 lines (32 loc) · 837 Bytes
/
WinWorld.as
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
36
37
38
39
40
package {
import net.flashpunk.World;
import flash.geom.Point;
import net.flashpunk.graphics.Text;
import net.flashpunk.Entity;
import net.flashpunk.utils.Input;
import net.flashpunk.utils.Key;
import net.flashpunk.FP;
import net.flashpunk.Sfx;
import net.flashpunk.graphics.Image;
/**
* @author jamescarpenter
*/
public class WinWorld extends World
{
private var waited:Boolean = false;
[Embed(source = 'graphics/win.png')] private const WIN:Class;
public var win:Image = new Image(WIN);
[Embed(source = 'audio/introwaltz.mp3')] private const WALTZ:Class;
public var waltz:Sfx = new Sfx(WALTZ);
public function WinWorld()
{
}
override public function begin():void
{
var statusentity:Entity = new Entity();
statusentity.graphic = win;
add(statusentity);
waltz.loop();
}
}
}