Skip to content
Newer
Older
100644 28 lines (18 sloc) 465 Bytes
1bb463c @devolonter Added simple FlxText wrapper
authored Nov 11, 2011
1 Strict
2
3 Import flxobject
4
5 Import "data/default.png"
6
7 Class FlxSprite Extends FlxObject
8
9 Global CREATOR:FlxClassCreator = new FlxSpriteCreator()
10
11 Method New(x:Float = 0, y:Float = 0)
12 Super.New(x, y)
13 End Method
14
15 End Class
16
17 Private
18 Class FlxSpriteCreator Implements FlxClassCreator
19
20 Method CreateInstance:FlxBasic()
21 Return New FlxSprite()
22 End Method
23
24 Method InstanceOf:Bool(object:FlxBasic)
25 Return (FlxSprite(object) <> Null)
26 End Method
27
28 End Class
Something went wrong with that request. Please try again.