Commit Graph

98 Commits

Author SHA1 Message Date
Ted V f7109f64bf Was doing some debugging; opted to leave the log import checked in.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-01 23:11:42 +00:00
Ted V 66321690e6 Animation now accounts for X acceleration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3325 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-01 20:42:21 +00:00
Ted V 6206d9f71b Added construction interface for X axis acceleration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-01 20:22:09 +00:00
Ted V 81487748dc Scale animations now report when they've finished.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3319 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-28 00:07:56 +00:00
Ted V d8749a8b41 Bunch of updates to handle actual drawing of the image. Some bug fixes too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3318 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-27 23:59:39 +00:00
Ted V 4033d08113 Most of the class has been rewritten.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3317 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-27 21:17:59 +00:00
Ted V cdb7284ea2 Skeleton of a scaling animation stolen from GleamAnimation. Nothing
has been changed, except the names to protect the innocent.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3316 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-27 20:49:34 +00:00
Michael Bayne afabea71ad Big fat Bernie javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Michael Bayne 7caf2ee610 Do the right thing if we're holding onto animations while the view scrolls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3210 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-11 23:53:06 +00:00
Michael Bayne 512663e482 Properly dirty ourselves if we are relocated.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3208 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-11 23:51:40 +00:00
Eric Lundberg 9927b6a684 Cleaned up import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-05 01:08:00 +00:00
Michael Bayne afced0e56b A couple of useful animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:58:39 +00:00
Michael Bayne 1a79a676ab The default implementation works with an animation manager which is what
we want to do most of the time anyway (in cases where we don't care about
whether an animation is "interesting" with regard to puzzle action).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:56:35 +00:00
Eric Lundberg 95d4bfb80e Allow one to remove an animation observer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-10 22:16:54 +00:00
Michael Bayne 1f8c4578b7 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne d17e58a924 Added support for letting a media know when it's about to be ticked for
the first time. This is the only indication that things are really
underway and it's a fine time to do things like play sounds that are
synchronized with that media and do other fun stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3084 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-18 01:33:32 +00:00
Michael Bayne d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Michael Bayne 580fdba83b Revamped animation observation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:45:02 +00:00
Ray Greenwell 3bdeed559f - Do time math with the last timestamp rather then precomputing the next
timestamp so that we can switch frame rate on the fly.
- added setLength() to use a subset of the sequence
- added setResetOnInit() so that the sequencer can be swapped into a new
  animation without being reset if desired.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 20:36:16 +00:00
Ray Greenwell c0f4ed2777 progress towards duty feedbackers
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 17:16:23 +00:00
Michael Bayne 100aa3ace3 Major media subsystem revamp:
- All images are loaded through the image manager
- Architected to allow the use of prepared or unprepared images (and
  volatile images when the day comes that they support alpha)
- Tunable caches for images and tiles
- Resource manager caches unpacked resources on the filesystem
- Various and sundry other cleanups


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:49:47 +00:00
Michael Bayne 76abfba3c3 An animation that does nothing but hang around for a specified period of
time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-29 04:32:14 +00:00
Walter Korman 709e65f947 Moved sword spark animation here from there, and allowed specifying the
spark duration.  Spark is perhaps a bit of a misnomer as the animation is
really more of a specialized kind of explosion.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2000 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-27 01:37:14 +00:00
Michael Bayne c4591a92ef System.currentTimeMillis() begone! We use our own pluggable timer system
now (which uses System.currentTimeMillis() at the moment but eventually
won't).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-20 02:18:49 +00:00
Walter Korman 573fe5504b Fixed time-based animations to fire at the appropriate time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 07:40:05 +00:00
Michael Bayne be6645db40 Have the sprite animation start the sprite along its desired path the
first time the animation is ticked so that we don't get apparently physics
defying behavior if someone creates a sprite and sprite animation but then
doesn't activate the animation immediately.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 01:40:39 +00:00
Michael Bayne 1f44f241c3 Logging cleanups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 01:39:32 +00:00
Walter Korman 7acc400904 Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-06 00:05:16 +00:00
Michael Bayne 10c2251bdb This is tricky business; we need to be more careful about how we handle
animations triggered on the completion of previous animations so as not to
booch things if a triggered animation is queued up after all previous
animations have already been started.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1916 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 23:56:35 +00:00
Michael Bayne 562111a95d Better debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1915 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:53:56 +00:00
Michael Bayne 07ee41afef Whoops! Didn't finish the job prior to that last checkin.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:29:00 +00:00
Michael Bayne b24800922a Changed addAnimation() to startAnimation(), made it protected. Removed
getAnimationCount() because it's no longer valid.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1913 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:27:49 +00:00
Michael Bayne 913264c225 Documentation cleanup; removed vestigal _lastidx.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:23:55 +00:00
Michael Bayne f3fd0744ec Further clean up. We love helper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:17:32 +00:00
Michael Bayne da1119b61a Cleaned up and robustified. There were issues.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 21:12:55 +00:00
Michael Bayne 3eba0dcf13 Animation sequencer revamp: animations can be added incrementally;
animations can be cued on the completion of the previous animation;
runnables can be provided for invocation upon animation completion or
in place of an animation in the chain.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1907 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:53:53 +00:00
Michael Bayne 400b8ca638 Use ObserverList; provide timestamp to animation events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1905 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:51:50 +00:00
Michael Bayne 144cf2299a Provide a timestamp with animation events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1904 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 20:51:13 +00:00
Ray Greenwell a0730067ec Pulled out gobs of Sprite/Animation functionality into AbstractMedia.
Pulled out gobs of SpriteManager/AnimationManager functionality into
  AbstractMediaManager.
The big change: sprites can have their render order fine-tuned like
animations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 21:03:37 +00:00
Walter Korman 09a2f8e950 Initialize the animation starting time when the animation is first ticked
rather than requiring that it be set via setStartTime().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 04:24:34 +00:00
Walter Korman 5af9b4ac19 Initial version of an animation that allows adding animations sequentially
with a specifiable delay between each.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:30:47 +00:00
Walter Korman 03b1dbe90d Fixed the smallest typo in javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:18:46 +00:00
Ray Greenwell 0a503148df if the sequencer is an AnimationFrameSequencer, let it know about us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:37:22 +00:00
Ray Greenwell aa715a6a5a AnimationFrameSequencer is a FrameSequencer that wants to know about
the Animation it's working for.
The enclosed MultiFunciton sequencer can do all sorts of neat stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:36:53 +00:00
Ray Greenwell e790f98774 an AnimationEvent that indicates that a particular frame or frame sequence
index has been reached.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1729 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:35:11 +00:00
Michael Bayne c1667c3782 Animation manager now takes into account fine grained render order when
rendering animations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1728 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:28:20 +00:00
Michael Bayne 70b2f7f494 Slightly less expensive jockeying to ensure that we do the right thing
when starting up and being told to switch to frame zero.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 22:18:42 +00:00
Ray Greenwell bed0c21515 make sure to paint the first frame when starting an animation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 22:06:26 +00:00
Ray Greenwell 2d93950835 stop when we get to the end.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1703 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 21:58:12 +00:00
Michael Bayne fc261655b3 Created an animation that can be used to display a simple sequence of
frames.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1696 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:08:21 +00:00