Class Fz2D.Entity
| Defined in: | src/scene/objects/entity.coffee |
| Inherits: | Fz2D.Object |
Overview
Subclasses
Fz2D.Gui.Button, Fz2D.Gui.Checkbox, Fz2D.Gui.Mouse
Instance Method Summary
- ::active() Returns the name of the active animation.
- Fz2D.Animation ::addAnimation(tag, texture, count, delay) Adds an animation.
- ::constructor(texture, x, y, w, h) Constructor.
- ::draw(ctx) Draws entity on every frame.
- ::is(tag) Is active animation?
- ::isOutOfBounds() Returns true if the entity is out of bounds.
- Fz2D.Animation ::play(tag, looped) Plays a given animation.
- ::stop() Stops the active animation.
- ::update(timer, input) Updates entity on every frame.
Inherited Method Summary
Methods inherited from Fz2D.Object
.constructor, .kill, .reset, .show, .hide, .draw, .update
Constructor Details
::constructor(texture, x, y, w, h) Source
Instance Method Details
::active() Source
Fz2D.Animation ::addAnimation(tag, texture, count, delay) Source
::draw(ctx) Source
::is(tag) Source
::isOutOfBounds() Source
Fz2D.Animation ::play(tag, looped) Source
::stop() Source
::update(timer, input) Source