Commit Graph

943 Commits

Author SHA1 Message Date
Andrzej Kapolka 67d1ca90c4 Moved the calls to the various layer-painting methods to their own independent method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3660 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-23 01:30:35 +00:00
Ray Greenwell 84361f9f9b - Initialize our timestmap in willStart() (which postdates the original
creation of this class).
- Track when all the sparks have moved outside the bounds of the animation
  and end it then.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 01:37:34 +00:00
Ray Greenwell 8dd1890a18 - The 'jog' parameter was broken. Fixed it, added xjog and yjog.
- Added a 'fade' parameter so that you can decide if you want the
  fade-out option.
- Renamed some other parameters.
- Fixed it so that it never paints outside its bounds.
- There is wacky broken behavior with the starting x/y velocities
  that does unexpected things. It should probably be removed and handled
  by code using this class, but it's called from too many places for me
  to feel comfortable making that big a change.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3647 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-13 00:35:25 +00:00
Michael Bayne 6474d7de7e Don't assume we have an image manager or that we care about "compatible"
images.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:18:43 +00:00
Michael Bayne 7428f885cf Moved getTileHash() into TileUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3628 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 17:42:55 +00:00
Andrzej Kapolka 264d0e65d5 Handle directional wall constraints, attach only to walls, check space constraints selectively with respect to direction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-21 01:26:06 +00:00
Andrzej Kapolka 1e311871c3 Don't load tile images on server; just allow/check for null image provider.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3608 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 22:59:07 +00:00
Andrzej Kapolka bd017c0237 Added constraint fields to TrimmedObjectTileSet, fixed constraint parsing, added basic constraint handler class, added image manager to StageServer to fix NPE in tile retrieval.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 21:18:55 +00:00
Elizabeth Fong 5b3f842e44 Always throw a stack trace if an invalid tile is requested, so that we can more easily track down these errors
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-16 19:54:49 +00:00
Andrzej Kapolka 89b51beee2 Read constraints for object tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3598 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-15 18:54:24 +00:00
Michael Bayne 853e86e560 This looks suspiciously like a bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3586 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-05 16:41:10 +00:00
Michael Bayne a0363c873f Tracked down the source of non-repaintery on the Smack and added a couple
of workarounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3581 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-28 17:24:51 +00:00
Ted V ee20db4390 Added (N choose K) function.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3580 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-27 23:04:42 +00:00
Ray Greenwell fa2f528c10 Cleared just a small portion of the great clouds of crack smoke and made
the timers not invalidate _every fucking tick_, even if they're not even
showing!!!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3569 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-20 01:16:32 +00:00
Ray Greenwell 0051fcb302 shutdown() is protected in our superclass, let's not widen access.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3566 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-18 01:04:20 +00:00
Ray Greenwell 3e3dd1b840 Allow the start or end alpha levels to be outside the normal range so that
useful delays can be built into the beginning or end of the animation.
Detect bogus parameters in the constructor and throw an exception to
save developer head-scratching time when the animation doesn't actually
do any fading.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 20:16:31 +00:00
Ted V 94166728a8 Cleaner way to colorize multiframe images generated from tile sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 00:42:12 +00:00
Ted V 6acebaa55e Added multiframe image accessor for tile sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3558 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-16 23:38:35 +00:00
Andrzej Kapolka a40de2ec51 Permit changing media render order as long as we're not in a tick. Removes the need to remove and re-add sprites, which was cancelling their paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-13 22:22:56 +00:00
Michael Bayne 0f4fe33c75 Preserve the event timestamp and modifiers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-06 22:50:45 +00:00
Michael Bayne 35c3458cd1 Pulled layoutLabel() into a method so we can call it again if we want to
change our text.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3542 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-06 03:01:43 +00:00
Andrzej Kapolka e16a115575 Always invalidate media on shutdown to avoid remnants.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-02 00:57:58 +00:00
Ray Greenwell d35b074afd Changed the hourglass to animate a multiframe image for the sand rather
than move a wee dot.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-22 20:31:18 +00:00
Ray Greenwell 3fded0305b Let's lay ourselves out, if possible, when we're added to the mediapanel,
rather than relying on external initialization.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-20 17:15:36 +00:00
Andrzej Kapolka 86959a5191 Added updateBounds method to LabelSprite to allow changing the label, added methods to TrickCardGameUtil to get players left/right/opposite, changed the way CardPanel handles selections.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-13 21:09:32 +00:00
Michael Bayne 9692c7d221 Moved the main functionality of the score animation into
FloatingTextAnimation which is more sensibly named and in a place where
everyone who wants to use it can do so without creating a pointless
dependency on the puzzle code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-13 19:06:33 +00:00
Michael Bayne 9b3bd6ca3d Moved HourglassView and TimerView into Narya as they are generally useful.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-13 19:00:31 +00:00
Michael Bayne 771842edf4 Allow the current alpha value to be obtained.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 05:11:16 +00:00
Michael Bayne 5544701e5a Let our caller know if our fade level actually changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 04:50:52 +00:00
Michael Bayne d54c776527 Factored the fade effect out into a separate effect class so that it can
be used by sprites and animations. Ray is now thinking, "Why do we have
this wacky difference between sprites and animations?" but changing it now
would be a massive amount of typing that I'm not super interested in
doing. In any case factoring out the "effects" into separate classes is
still useful because frequently one wants to combine them in crazy ways
that would not be possible with a FadeSprite or FadeAnimation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 04:36:33 +00:00
Michael Bayne cd729458f4 Factored FadeAnimation into something that can be extended to fade
different things in. Created FadeImage and FadeLabel derivations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 04:18:24 +00:00
Michael Bayne 6e947f0238 Added support for antialiased label sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 02:32:04 +00:00
Michael Bayne 1da2e7cc0e Call mark() on the audio input stream because that creates some sort of
push-back buffer that prevents sounds from blarching when we reset the
stream.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-23 20:57:38 +00:00
Michael Bayne 67087dbda2 Forgot an argument.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-18 01:13:09 +00:00
Michael Bayne f00cbd2b3b Allow outline images to be created without an image manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-17 21:46:43 +00:00
Michael Bayne 8b79e57179 Moved AStarPathUtil into media from miso (it has nothing to do with
isometric rendering) and modified it to allow it to consider different
potential move sets than just moving by one in the eight cardinal
directions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-17 07:36:47 +00:00
Michael Bayne b58c1a3cf4 Added a version of distance that doesn't do the square root.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-15 07:58:06 +00:00
Ray Greenwell 8445f3c7f2 Removed extra comma.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-10 02:13:05 +00:00
Ray Greenwell fea80fdb2b Changed the tileset cache to use soft references. We want the cache
because we'd like to use the same TileSet over again when possible, but
we don't want to forevermore hold onto a TileSet if it could be gc'd.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-10 01:30:34 +00:00
Ray Greenwell bb83bacdab Rather than keep a reference to an instance of a custom anonymous class
for an error icon, just whip one up on the fly when needed (almost never).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-09 23:20:37 +00:00
Ray Greenwell b07d3821fd Use an LRU cache for our config properties files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3388 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-09 23:19:01 +00:00
Michael Bayne 44502d01e8 We need to do the property file inheritance processing when loading the
sounds.properties lest we lose the needed info specified in the parent
properties files.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3384 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-07 20:06:55 +00:00
Andrzej Kapolka e75e1918b1 Disarm buttons on mouse-release to avoid sticky buttons in spades.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3383 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-04 22:25:27 +00:00
Michael Bayne bc837ca289 The plot thickens. The resource manager prepends "rsrc/" to anything it
loads, but the sound manager wants to load things directly from the
classpath, so we need to allow it to use the classpath that the resource
manager was configured with to ensure that it did the right thing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-02 04:35:43 +00:00
Michael Bayne 91f936d147 Need to tack the .properties on by hand when we're loading in this manner.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3378 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-02 04:28:41 +00:00
Michael Bayne f4343be20d Load the sound properties via the ResourceManager which will do the right
classpath magic to work with Game Gardens.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-02 04:11:51 +00:00
Ray Greenwell ce0db63b27 Added a constructor to not specify a default sound.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-02 04:10:01 +00:00
Ray Greenwell 9733fc2303 Added support for looping sounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-28 19:29:44 +00:00
Ray Greenwell 7ec0eeca56 Added a bevy of interfaces that Sprites can implement to be recognized
by the MediaPanel as sprites that interact in some standard way with the
mouse.
Modified existing ButtonSprite to work this new way, and it now implements
CommandSprite, ArmingSprite, and DisableableSprite. One method name changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3362 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-22 04:14:44 +00:00
Ted V ebf4d7cfa2 Now throws the proper type of exception when a color name lookup fails.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3354 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-16 22:21:01 +00:00