Commit Graph

2232 Commits

Author SHA1 Message Date
Michael Bayne 3c58a1ac26 Use the appropriate transparency when creating our prepared image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2135 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:59:55 +00:00
Michael Bayne 88cc8303fa Update cached resource files when appropriate.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:58:59 +00:00
Walter Korman 0a5104a70c Allow specifying the rate at which individual key presses are to be
repeated.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:53:38 +00:00
Michael Bayne 4e796ad5b1 Go back to having BundleUtil return null rather than throwing FNF.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2132 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:36:14 +00:00
Michael Bayne 5a51f58bdd Go ahead and support primitive mirage loading so that the editor test tile
loader will work.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2131 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:23:19 +00:00
Michael Bayne a90b9a5bd1 Let's have those decoys back and remove the debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:56:28 +00:00
Michael Bayne ed847b964d Provide the appropriate transparency when requested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2129 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:56:01 +00:00
Michael Bayne 98c2dd45db Deal with fucking stupid ass close() behavior from ImageInputStreamImpl.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2128 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:55:05 +00:00
Michael Bayne d88a358f39 We need to composite our action frames because it's possible that during
our tick we'll do something that invalidates our existing frames and we
need to composite the new ones in paint().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:54:19 +00:00
Michael Bayne 0ae21770d0 Don't draw outside the lines.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:53:34 +00:00
Michael Bayne a34a0eb1a5 Use bitmask transparency for composited character sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:53:04 +00:00
Michael Bayne a2e4c8816f Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:58:27 +00:00
Michael Bayne 7f706aa063 Updates to reflect new media architecture.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:57:46 +00:00
Michael Bayne 988cd16528 Add view width and height info.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:55:47 +00:00
Michael Bayne 340bba9956 Add general components.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:55:28 +00:00
Michael Bayne 9233719363 Modified to support tile immutability and new media architecture; auto
fringer now generates fully stamped fringe tiles rather than tiles with a
list of images to be painted every time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2120 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:55:12 +00:00
Michael Bayne b9be0aef92 Tiles are now immutable, so the DisplayMisoScene becomes the arbiter of
whether or not a traverser can traverse a tile.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2119 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:53:56 +00:00
Michael Bayne 5c055d21a6 Revamped to support new media architecture. Added tunability to in-memory
action cache.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:53:04 +00:00
Michael Bayne e400ba5be6 Resources are unpacked and cached in a temporary directory on the
filesystem. This should speed up subsequent loads as they won't have to be
decompressed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2117 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:50:36 +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 8743be2131 Enhanced which().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 18:38:05 +00:00
Michael Bayne d02a247d76 Added a which().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 18:36:18 +00:00
Walter Korman db201a29bd Moved native library compilation into a separate target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2113 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 02:15:25 +00:00
Walter Korman 7953fb0b24 Oops; use the install target as the main target so that we only rebuild
things when it's actually necessary to do so.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 02:06:10 +00:00
Walter Korman 786f6f8a63 Build the native linux keyboard library as part of the normal compilation
task and place it in dist/lib/i686-Linux.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 02:04:19 +00:00
Walter Korman 4956ed66ae Added and commented out debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 01:19:58 +00:00
Walter Korman 3bf267fc26 Fixed javadoc typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 01:19:33 +00:00
Walter Korman 494fc1a620 Ignore the dll.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 01:19:05 +00:00
Walter Korman de6c4371b9 Initial version of linux (working) and Windows (not yet working) native
libraries for enabling and disabling keyboard auto-repeat.  Restored
auto-repeating in our own KeyboardManager, and disabled the interval used
to differentiate between a "real" and "fake" key repeat since we believe
we can now do without it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 00:26:39 +00:00
Walter Korman a91061cb30 Use SwingUtil.refresh().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2106 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-11 01:03:02 +00:00
Michael Bayne 0c246fcef7 Have to call mayLeavePlace() in a couple of other places. Fixed
documentation for it in PlaceController.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2105 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-09 02:46:58 +00:00
Michael Bayne 4abcc6a87c Need that in the delegate as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2104 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-09 00:27:26 +00:00
Michael Bayne 318d16647f Added mayLeavePlace().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2103 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-09 00:26:56 +00:00
Ray Greenwell 125a0c4fef updated to reflect new home of ImageIOLoader
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2102 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-08 05:17:35 +00:00
Ray Greenwell d595a2fab8 Added a version of composeMaskedImage() that takes a Shape object to use
as the mask.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2101 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-08 04:28:13 +00:00
Michael Bayne 1ce6951cb6 Repackaged a few things in media: sounds stuff went into media.sound and
image stuff went into media.image.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-08 04:09:03 +00:00
Michael Bayne ab915c9633 Close our input stream when we're done with it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-07 07:55:58 +00:00
Michael Bayne 2807056a44 Close the InputStream instances we get from the resource manager after
we're done loading images from them.

Always load through a BufferedInputStream because that seems to fix the
bogosity with ImageIO.load() not working without a cache.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-07 07:55:24 +00:00
Michael Bayne 6bde1765d1 Don't rebuild our component bundles if they're not out of date.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2097 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-07 00:59:21 +00:00
Michael Bayne 8c3d8048a0 Need to taint username.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-06 00:24:32 +00:00
Walter Korman 3c2a65441c Make sure to clear out any previous cluster object subscription business
when we receive notice that we've successfully subscribed to a new cluster
object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-03 23:07:00 +00:00
Walter Korman 183e25307f Catch and report any exceptions game managers may throw while being
ticked.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-03 02:47:33 +00:00
Walter Korman ebd50b80f5 Tick all game managers every five seconds to allow them to engage in any
activity that isn't driven by player actions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2093 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-03 02:35:41 +00:00
Michael Bayne de0ea7b464 Dump a stack if we can't find our invocation receiver registration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2092 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-02 22:08:30 +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
Michael Bayne a8fc75ca27 Freak out in an orderly and informative manner rather than NPEing if we go
to composite a set of action frames and one of the character components
has no individual action frames for the requested action.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 20:33:19 +00:00
Michael Bayne 0ec3f9e425 Old program for testing our image loading speed. We will want to
investigate the possibility in the future of uncompressing our images into
a local cache on the client and loading from there because it is about 10
times faster to load uncompressed images.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2089 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 20:32:28 +00:00
Michael Bayne eb6ce32141 Fixed up init() call.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2088 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 19:08:57 +00:00
Michael Bayne 4c39fb3fb8 Log our low-level stack traces when we get them because I've seen at least
one instance of the nested exception failing to log anything useful when
it is reported at a higher level and we're seeing failures in the
low-level streamable decoding code which need debugging.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2087 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 00:40:39 +00:00
Michael Bayne 6c3d9fba65 More goddamned fiddling to attempt to respond gracefully to any of the
wide variety of fucked up situations that might occur:

- Client authenticates and disconnects before their client object is
  resolved.
- Client authenticates and requests to end their session before their
  client is resolved.
- Client does one of the two previous actions and then attempts to
  reestablish a session before the client object is resolved from their
  first connection attempt.
- Client establishes a session in any of the previous or a normal
  circumstance but their client object fails to resolve.

Goddamned distributed programming, race-condition cluster fuck, strange
shit happening once in a blue moon business.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2086 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-22 19:16:31 +00:00