Commit Graph

388 Commits

Author SHA1 Message Date
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
Walter Korman ec765c0258 Minor optimization and cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1645 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-15 20:53:50 +00:00
Walter Korman f0113d4916 Catch exceptions while rendering animations so that we can report the
animation at fault.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-15 20:53:24 +00:00
Walter Korman fa21a78242 Override setBounds() to capture resizing and movement rather than creating
a component listener.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:58:32 +00:00
Walter Korman c671f5a1c8 Update the panel's absolute screen coordinates whenever the component is
moved or resized, in addition to when it is laid out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:16:07 +00:00
Walter Korman 567e51f08a More hideous sound hackery. We can't determine audio file format at
runtime after launching from Java Web Start because the input streams we
obtain don't support mark()/reset(), and so we hardcode the file format we
know we're using for now.  Also commented out verbose debug logging, and
cache audio file data after initial playback.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-02 01:45:19 +00:00
Walter Korman c4943a40f8 If a time delay is specified, fade out the chunks as time elapses.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-31 23:33:46 +00:00
Michael Bayne ea5e5adbad Pay our respects to Chapter 12 of the JLS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 16:00:19 +00:00
Ray Greenwell 07d02f772a fixed it from horking repeatedly on my machine
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 00:16:47 +00:00
Walter Korman 146014344e Don't append clips to the queue if we didn't start up successfully.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-24 21:39:43 +00:00
Walter Korman f930d53cdd Initial primitive sound manager that provides facilities for >gasp<
playing sounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-24 21:28:10 +00:00
Walter Korman ffb030d40a Added temporary hack workaround to keep text input fields from rendering
themselves with an incorrect font.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 03:52:23 +00:00