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 })
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: "
- Requires:
- Firefox 3.5.x, Safari, or Google Chrome
- See:
- Text for other properties, and styling information.