Elapsed time propagation #120

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants

lachie commented Mar 5, 2012

Propagate Ticker's elapsed time and paused state into the display list.

This is essentially bringing the display list's _tick and custom tick functions in line with the Ticker listener interface. I've left the advance parameter as is.

All the examples work as normal with this change.

We'd really find it useful to have this info available in our tick functions.

Owner

gskinner commented Aug 7, 2012

Definitely putting some thought into this. I don't want to tie the framework too tightly to Ticker, in case people want to use their own heartbeat mechanisms, but there is definitely a lot of value in having this data available.

Owner

gskinner commented Aug 15, 2012

I have implemented this in a fairly abstract way. Now anything you pass in as params to stage.update() will be passed forward to onTick(). Let me know if it addresses what you need.

gskinner closed this Aug 15, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment