Created
June 21, 2013 06:02
-
-
Save eimkasp/5829197 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fpsLabel = new createjs.Text("-- fps", "bold 18px Arial", "#000000"); | |
stage.addChild(fpsLabel); | |
fpsLabel.x = 10; | |
fpsLabel.y = 20; | |
stage.addChild(fpsLabel); | |
function tick(event) { | |
fpsLabel.text = Math.round(createjs.Ticker.getMeasuredFPS()) + " fps"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment