Class Fz2D.Gui.Countdown
| Defined in: | src/scene/objects/gui/countdown.coffee |
| Inherits: | Fz2D.Object |
Overview
Public: Countdown
Instance Method Summary
- ::constructor(count, x, y, font) Constructor
- ::draw(ctx) Draw counter on every frame.
- ::onend(countdown) On end(ed) callback.
- ::reset() Resets the counter.
- ::update(timer, input) Updates counter on every frame.
Inherited Method Summary
Methods inherited from Fz2D.Object
.constructor, .kill, .reset, .show, .hide, .draw, .update
Constructor Details
Instance Method Details
::draw(ctx) Source
Public: Draw counter on every frame.
ctx - Fz2D.Canvas
::onend(countdown) Source
Public: On end(ed) callback.
countdown - Fz2D.Gui.Countdown
::reset() Source
Public: Resets the counter.
::update(timer, input) Source
Public: Updates counter on every frame.
timer - Fz2D.Timer
input - Fz2D.Input