Class Index | File Index

Classes


Class FPS


Extends Text.
This Content simply prints out the current frames per second.
Defined in: FPS.js.

// Creates a new FPS object
FPS({ x: 10, y: 16 })
Class Summary
Constructor Attributes Constructor Name and Description
 
FPS(_details)
Fields borrowed from class SceneContent:
details
Methods borrowed from class Text:
setText
Methods borrowed from class SceneContent:
draw, extend, getBounds, getName, getParent, getScene, getStage, isActive, isVisible, load, loadBase, moveBy, moveTo, setActive, setSize, setVisible, update, updateBase
Class Detail
FPS(_details)
Parameters:
{Object} _details
A JSON object. This content has the same properties as the Text object.
Property Required Default
text no "FPS: "
"text" is prepended to the actual FPS value: "[text][FPS]"
Requires:
Firefox 3.5.x, Safari, or Google Chrome
See:
Text for other properties, and styling information.

Documentation generated by JsDoc Toolkit 2.3.0 on Fri Oct 30 2009 09:09:10 GMT-0700 (PDT)