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
Walter Korman
25bd81e59a
Added facilities for disabling the playing of sound without shutting down
...
the sound manager wholeheartedly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:13:36 +00:00
Michael Bayne
59c522aae5
Updated deprecated references to project.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-27 19:02:15 +00:00
Michael Bayne
4e9acda18d
Sort the mappings prior to writing the map file to enhance map file
...
stability wrt diffing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 02:08:47 +00:00
Walter Korman
fd71c2a853
Take into account the x-offset of the rectangle within which the image is
...
being rendered when drawing the right edge of the image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 21:49:53 +00:00
Michael Bayne
9acc27d3f3
Not to freak out if we can't load an image. Log an error and return a fake
...
image instead.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 07:15:16 +00:00
Michael Bayne
d675e3f970
Preserve the transparency characteristics when creating an image optimized
...
for display on screen.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:30:23 +00:00
Michael Bayne
f7e383d667
Terser toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 21:52:43 +00:00
Michael Bayne
82cd152a6f
Modified map file serialization to store things in text so that we can
...
easily see what the mappings are and properly diff mappings that are
checked into CVS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:53:01 +00:00
Michael Bayne
4d94555e09
Added a means for looking up tilesets by name (though you should know
...
which bundle they are in to avoid scanning the whole goddamned lot).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:19:57 +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
e6d5adfb96
removed unneeded import
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 21:35:32 +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
cecb5fbef5
We'll be needing the -- not the ++.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 02:19:53 +00:00
Michael Bayne
7e45b58f50
Modified tick() order to prevent unhappy business if a sprite removes
...
itself in tick().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1721 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 02:12:33 +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
6a64d45eed
bugfixes
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1704 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 21:58:25 +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
234d7d6971
Removed crack pipe, inserted call to super.clone().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1702 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 21:29:26 +00:00
Michael Bayne
80ac8a280f
Whoops, need to be a bit more careful with the tile cache.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1701 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 21:17:15 +00:00
Michael Bayne
a5bba441be
An MFI implementation that obtains its source frames from a tileset.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1699 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:39:03 +00:00
Michael Bayne
3d9eb3edac
Cache the tiles that have been fetched from this tileset.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1698 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:38:42 +00:00
Michael Bayne
369900bf1a
Formatting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:21:19 +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
Michael Bayne
963dfe16a8
Created an mechanism for more sophisticated sequencing of animation
...
frames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1695 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:07:28 +00:00
Michael Bayne
2e7fd00214
Added setLocation() and reset().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1694 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 20:06:58 +00:00
Michael Bayne
c08067ac1f
Added convenience constructor for simple single frame image sprite.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1693 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 19:14:59 +00:00
Michael Bayne
380fa50610
Moved MultiFrameImage and friends from media.sprite into media.util
...
because they'll be used for both sprites and animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1692 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 19:11:13 +00:00
Michael Bayne
88e423bdfa
Created a path for moving things along the arc of a circle or ellipse.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1691 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 04:00:37 +00:00
Michael Bayne
9ee8dde710
Added Ramanujan's formula for an approximation of the circumference of an
...
ellipse. I didn't end up using it in the ArcPath, but it will surely come
in handy eventually.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1690 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 04:00:09 +00:00
Michael Bayne
90d0503cba
Created TimedPath to factor out code common to paths that effect
...
themselves in a fixed period of time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1688 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 03:59:05 +00:00
Ray Greenwell
5e286e5bab
added TIME_SEQUENTIAL animation mode which shows frame 0 first, and
...
for the full duration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1687 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 02:34:05 +00:00
Michael Bayne
ce424d616d
Useful debugging info.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-16 23:34:55 +00:00
Michael Bayne
1c753c5816
Catch and report image decoding errors when obtaining sub-image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-13 20:27:05 +00:00
Michael Bayne
05522ebf66
Allow padding to be specified for sprite icons.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1678 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-13 04:50:31 +00:00
Michael Bayne
55e7bfcbb8
Report the bundle source file we're processing as we go.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-11 20:28:05 +00:00
Walter Korman
b5fa4d945f
Throw an informative exception if we fail to obtain a tile's image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-11 19:17:55 +00:00
Walter Korman
b3feaf0852
Catch and rethrow raster format exceptions to facilitate debugging tileset
...
trimming problems that are likely the result of a bad image file or
tileset description.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1668 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-09 20:26:52 +00:00
Walter Korman
153497686f
Added addAnimations(Animation[]).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1662 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-23 23:18:14 +00:00
Michael Bayne
ff8152ea0c
Not to reference the instance variable when we were so kindly passed it as
...
an argument.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-23 20:22:09 +00:00
Michael Bayne
615383483b
Revised use of deprecated methods.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 19:01:08 +00:00
Michael Bayne
11d84452bb
Whoops. Need the right modifiers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-19 22:58:15 +00:00
Michael Bayne
4cbd454b24
Added serialVersionUID to the various classes we serialize for
...
configuration reasons to avoid annoying "recompile and nothing works"
phenomenon. We'll opt for the "make incompatible class change and nothing
works" scenario instead.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-19 22:28:05 +00:00
Walter Korman
b4d997a8df
Perform actual rectangle intersection to determine whether a chunk is
...
still visible within the animation bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-19 21:08:51 +00:00
Walter Korman
2ed4b6e0c4
Oops; fixed incorrectly placed try/catch.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-15 20:56:08 +00:00