10 lines
248 B
Plaintext
10 lines
248 B
Plaintext
(prop &mut :FlxButton playButton null)
|
|
|
|
(method &override :Void create []
|
|
(set playButton (new FlxButton 0 0 "Play" clickPlay))
|
|
(playButton.screenCenter)
|
|
(add playButton))
|
|
|
|
(function clickPlay []
|
|
(FlxG.switchState (new PlayState)))
|