Commit Graph

784 Commits

Author SHA1 Message Date
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 7b4aaa099f Handy functions for computing a value that smoothly progresses as a
function of time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:57:08 +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
Ray Greenwell c314d304ec Added the interface RecolorableTileSet which indicates that a TileSet
has colorizations and implements the "String[] getColorizations()" method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:09:29 +00:00
Ray Greenwell 9470ab69bd Color classes can have a default color.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:07:33 +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 1311dafb1f Don't let freaky derived classes ruffle our feathers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-24 22:37:47 +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 b7d43b786f Pulled tile calculations out into a handy utility method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3082 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-17 00:48:40 +00:00
Michael Bayne 1da753e14d Brought things up to date with the latest Jakarta Commons world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-13 16:34:49 +00:00
Michael Bayne 55df96a644 Throw an informative exception in this circumstance. The NPE that would
follow doesn't tell us anything about the hosed tileset.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3053 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-09 04:00:20 +00:00
Michael Bayne 685f989dc9 A one shot component for tiling an area with a background tiler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3011 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-21 07:36:17 +00:00
Michael Bayne 1dc8070910 Checking these in for Ray so that things will compile.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-06 03:53:26 +00:00
Ray Greenwell 15b1d7137c Dead code pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-28 00:36:39 +00:00
Ray Greenwell df0cf0cf98 Go back to only logging verbose sound events when the runtime adjust in on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-26 18:42:51 +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
Ray Greenwell 7ac816f12c - Trashed any reference to line.drain(), we're not going back.
- Removed the RuntimeAdjust for tweaking the Line's buffer size.
- Feed data to the Line in chunks the same size as its buffer.
- Rather than sleeping 3 seconds, calculate how long it would take to play
  the line's entire buffer and sleep that long. It turns out that with
  the buffer size I'm using and the sample rates our sounds are encoded at,
  this is less than 400 ms.
- Went ahead and increased the maximum number of simultaneous line spoolers
  to 12.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-24 08:08:25 +00:00
Ray Greenwell 796c953c89 Window.show() is deprecated in jdk 1.5, replaced with setVisible(true).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:55:26 +00:00
Ray Greenwell 3ae08bc60d Never drain(), it's just buggy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-12 04:14:21 +00:00
Eric Lundberg 596f55e315 Adding in ye' old McHack until I can figure out what is actually booched with the macs copyarea. This lets the game play all happy like.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 18:53:00 +00:00
Ray Greenwell ecb6c5a005 Added some logging to track down people who lose sounds after a while
in Windows.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-04 19:04:46 +00:00
Ray Greenwell 15e11bd9ef Maybe a fix for the mac booch?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-03 07:32:41 +00:00
Michael Bayne ddeadbcff1 Let's get jiggy with the verbosity in hopes of shedding some light on this
ever-repeating sound situation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-22 22:25:34 +00:00
Michael Bayne 07dfb982d7 No indication of time wickosity, so we can can this call.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-19 18:31:11 +00:00
Michael Bayne e213827ee9 Let's just warn and cope rather than sticking a fork in things.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 20:06:09 +00:00
Michael Bayne 3e466530f6 We call RunAnywhere.currentTimeMillis() so that we can find out as soon as
possible if time has leaped into the past. This is primarily useful so
that we can correlate such happenings with other strangeness that may be
caused by time bogosity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-13 02:59:05 +00:00
Michael Bayne 104763ac88 Moved SoundCodes into Narya because it's a reasonable basic set of sound
types and the puzzle stuff wants to classify the sounds it produces.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2878 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-26 01:43:31 +00:00
Michael Bayne da03a2b775 No need to log here, sometimes it happens every frame.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2874 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-25 19:42:54 +00:00
Michael Bayne 97a9b91531 Cancel any path on a sprite if it's removed while in the middle of
execution.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2873 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 21:58:36 +00:00
Michael Bayne 7056f6dfac Log a warning and return null.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2862 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-22 19:57:16 +00:00
Michael Bayne 2e69e6770e Log a stack trace when this happens.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2861 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-22 19:57:03 +00:00
Michael Bayne e3b2930778 Added getNaturalWidth() and getNaturalHeight().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2860 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-19 18:27:10 +00:00
Ray Greenwell 515e5a293e Instead of drawing thousands of little pieces of the background tiled,
draw but 9 images, with the non-corner ones being scaled as appropriate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2856 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-14 19:39:52 +00:00
Ray Greenwell 708008b65f Changed so that to follow a pathable you pass in the pathable and one of the
public follow mode constants, instead of having a different method for
enabling each different follow mode.
Added a new follow mode: track, which aligns the upper-left coordinate of the
view with the hotspot of the pathable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-12 21:47:09 +00:00
Michael Bayne 342cce503e Added isRegisteredFrameParticipant().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2849 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-03 22:19:51 +00:00
Ray Greenwell 969008a6b8 Added a method for playing sounds after a specified delay.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-16 01:01:51 +00:00
Michael Bayne e6ae375c00 Not to freak out if somehow we don't have a current path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-25 21:07:20 +00:00
Michael Bayne 748db4d5d7 Failing to locate a class is apparently a RuntimeException even if you do
it through Class.forName().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 23:55:06 +00:00
Michael Bayne 6cf90dcddd Not so fast, we need to jigger this differently.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:43:05 +00:00
Michael Bayne dbd2422bd4 Added another note about the ills of System.currentTimeMillis().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:41:28 +00:00
Michael Bayne 6cccd396e6 Two fixes: use the high-performance timer if it's available and make our
frame tick interval 10ms on Windows because any non-multiple of 10 causes
the big fat fuckola in the form of heinously accelerated clock drift.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:41:10 +00:00
Michael Bayne a5eaa52a8e In 1.4.2 Sun introduced an interface to the Windows high performance timer
in sun.misc.Perf. If we can use that, we do.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:40:22 +00:00
Michael Bayne cfe7f19669 Was clearing out the wrong business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:39:29 +00:00
Michael Bayne 6928f9aa96 We need to handle this in the frame manager because all we can do in
SystemMediaTimer is make time stop while we're in the past, whereas in the
FrameManager we can just note that strangeness is afoot and keep on
tickin'.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2736 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-29 00:41:40 +00:00
Michael Bayne 28bdcd942d Added a workaround to the time fluctuation WinXP bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2735 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-29 00:27:32 +00:00
Ray Greenwell 1b9c9dac62 Decreased the maximum number of sound spoolers to 10. What was I smoking
when I set it to 24? Let's try it like this for a spell.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2734 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 05:32:04 +00:00
Michael Bayne 7961683cb0 Added support for dumping a bundle metadata file directly in addition to
extracting it from a bundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:07:30 +00:00
Michael Bayne fbd52c2be3 Tone down cache performance reporting; upped image cache size by a meg.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:06:14 +00:00
Michael Bayne 13ded21e51 Added summarizeState().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2704 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 03:59:54 +00:00