this repo has no description
1package;
2
3import flixel.FlxG;
4import flixel.text.FlxText;
5
6/**
7 * ...
8 * @author ninjaMuffin
9 */
10class Thoughts extends FlxText
11{
12 private var lifeTimer:Float = 2.25;
13
14 public function new(X:Float = 0, Y:Float = 0, FieldWidth:Float = 0, ?Text:String, Size:Int = 8, EmbeddedFont:Bool = true)
15 {
16 super(X, Y, FieldWidth, Text, Size, EmbeddedFont);
17 }
18
19 override public function update(elapsed:Float):Void
20 {
21 super.update(elapsed);
22
23 lifeTimer -= FlxG.elapsed;
24
25 if (lifeTimer <= 0)
26 {
27 kill();
28 }
29 }
30
31 public static var likes:Array<String> = [];
32}