Commit Graph

1137 Commits

Author SHA1 Message Date
Mike Thomas 2e8818e3b5 Allow access to getComponent through the character manager rather than having to go through the repository.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@994 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-19 22:44:09 +00:00
Mike Thomas 753bcb229e Fix bug in indexing the color classes map.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@993 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-19 22:43:29 +00:00
Mike Thomas 52ca22c53a Fix some wacky assumptions about the similarity of types being compared.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@992 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-19 21:07:46 +00:00
Mike Thomas 1e1c8a47fc Turn off the debug printouts here since it was pretty spammy.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@991 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-18 20:22:43 +00:00
Mike Thomas 98a09e8d75 Fix some reversed logic.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@990 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-18 18:31:23 +00:00
Ray Greenwell e054edeab7 Chasecutting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@989 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-17 22:51:06 +00:00
Mike Thomas 3c789a8bd2 We can't actually share a MultiFrameBitmap across characters since it's a displayobject and can only be in the display tree once. So, let's clone it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@988 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-17 22:41:27 +00:00
Mike Thomas 66931468ee We should just test the bitmap itself, not the source frames.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@987 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-17 17:15:09 +00:00
Mike Thomas 8f337e26d9 Wire up for hit-testing just like object tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@986 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-17 17:06:54 +00:00
Mike Thomas 815b5d7be7 Add a bunch of hooks to handle finding the object the mouse is over.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@985 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-14 05:10:02 +00:00
Mike Thomas 7a72ac8fb2 Do some smooth centering a la the java version of MisoScenePanel
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@984 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-13 23:29:37 +00:00
Mike Thomas 954619820e Fix NPE when the user clicks an untraversable square.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@983 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-13 21:03:19 +00:00
Mike Thomas 3b0b6038dc Port Paths to AS from java. Also, port (with modifications) AStarPathUtil -> AStarPathSearch which is no longer a singleton and has fewer hidden dependencies (e.g. the restriction on the "longest" arg to getPath). Also, make MisoScenePanel actually create paths now that we have them.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@982 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-13 20:28:48 +00:00
Andrzej Kapolka d8cda89ab3 Provide a means of overriding the base gain at the group level.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@981 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 22:01:08 +00:00
Andrzej Kapolka 1be717f362 Notify sounds (via their groups) when the base gain changes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@980 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 20:54:12 +00:00
Andrzej Kapolka 29ab63e86f Be consistent in how we apply the base gain.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@979 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 20:25:26 +00:00
Mike Thomas c0a25ad407 Let's move the new Ticker to media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@978 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-11 22:05:56 +00:00
Mike Thomas 78391781ab Rather than having each bitmap register its own enterFrame callback, let's just set these guys up as tickable and let the central Ticker handle it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@977 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-11 20:10:25 +00:00
Mike Thomas 407af70322 Let's remember our previous lessons and attempt to use the less-vulnerable version of getting the time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@976 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-11 18:46:33 +00:00
Mike Thomas 98619ae443 Setup a Ticker to fill in for the parts of java's FrameParticipant we might want.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@975 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-11 18:39:32 +00:00
Mike Thomas e4bb6ac088 Character sprite's location should take into account the origin of the action sequence it's set to.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@974 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 23:44:21 +00:00
Mike Thomas 85aca29ae6 Actually, those behaviors are so much alike, let's group it into a handy interface to ensure they stay that way.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@973 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 22:54:49 +00:00
Mike Thomas 469d356609 Mimic TrimmedObjectTileSet's functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@972 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 22:49:46 +00:00
Mike Thomas 4a60bbe64a Helps if our screen to iso-space transformation is accurate.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@971 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 22:48:27 +00:00
Mike Thomas 57f020afb8 Enough AS cast implementation to render a basic character sprite from component bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@970 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 20:28:25 +00:00
Mike Thomas 4b09709590 Various improvements to the AS tile code to prepare for component tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@969 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 20:27:42 +00:00
Mike Thomas ba76a845e0 Make tiles work like tilesets - if you ask to be notified and it's already loaded, notify immediately.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@968 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 20:27:06 +00:00
Mike Thomas b7da2fa190 Fix bug in getting colorizations by name.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@967 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 20:25:56 +00:00
Mike Thomas 839ac301cb Bring over the options from TileSetBundler to ComponentBundler so we can get jars with uncompressed, untrimmed pngs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@966 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 17:23:38 +00:00
Mike Thomas cdec138fcb Checkpoint commit wiring up a CrowdStageScenePanel that handles Occupant locations and making a sprite for them on the screen. Lots of TODOs still in this stuff, esp. related to Pathing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@965 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-06 05:23:48 +00:00
Mike Thomas 44355a27c8 First checkpoint bit of cast ported to AS.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@964 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-29 04:01:57 +00:00
Ray Greenwell 27657d0c2c Isn't NanoTimer a replacement for this?
Also, let's see if we can suppress the compile warnings...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@963 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-26 19:30:46 +00:00
Ray Greenwell c795f1482a Prefer StringBuilder where possible.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@962 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-22 01:20:32 +00:00
Mike Thomas 03416cf4d2 In order to facilitate the most common form of moving around the scene relatively quickly, we'll prefetch the blocks within half a screen of visible.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@961 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 18:35:45 +00:00
Mike Thomas 96cf235838 Make a few bits in the AS MisoScenePanel more extensible...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@960 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 05:53:24 +00:00
Mike Thomas 0b55ca7817 This is kinda a magical number anyway but it appears I need a little more buffer for some of the taller sprites in question.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@959 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 00:24:24 +00:00
Mike Thomas 665ed38c30 Allow tile set bundles to be created uncompressed - this probably will go hand-in-hand with the keepRawPngs parameter, but I can imagine the two being used separately so I won't overload the single parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@958 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 00:13:44 +00:00
Mike Thomas a462e54e46 Fix a bug where we were finishing resolution of the entire scene multiple times if some blocks were basically already resolved.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@957 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 21:30:20 +00:00
Mike Thomas c26ce87830 When we move the scene, we need to wait a tick for the blocks to get in place before we move ourselves. Otherwise we get exciting blank regions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@956 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 20:44:12 +00:00
Mike Thomas 7e88fb825b If we're in the middle of trying to load up one of our files, don't go and do it again, instead wait til it's done and just hear about it then.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@955 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 20:37:54 +00:00
Mike Thomas 3d70c731a5 Get AS fringing actually working. We end up with a double-layer of sprites on the base tiles for the background as one and all the fringing as another. This is definitely pretty slow in the debug player, so still need to track down what's spending all that time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@954 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-15 19:03:55 +00:00
Ray Greenwell 6a064af9dc Declare the return type for these functions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@953 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:38:01 +00:00
Ray Greenwell 83157e579b Prefer guava to samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@952 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:36:08 +00:00
Ray Greenwell f8df2c1b3a Misc. formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@951 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:35:59 +00:00
Mike Thomas f7befa1fae Working with the callbacks to be able to translate images is way more exciting than I really appreciate. But hey, this theoretically should be happier now.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@950 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 23:43:41 +00:00
Mike Thomas 6987d008e2 Let the tile data pack cache images so we aren't reloading them for various individual tiles within the image. Also, a couple minor efficiency improvements elsewhere.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@949 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 22:40:07 +00:00
Dave Hoover faa16baed2 StringUtil.replace is deprecated
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@948 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 21:45:54 +00:00
Mike Thomas 263cc28f99 First checkpoint commit of fringing in AS. This still needs testing and some callback-wrangling related to getting tile images.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@947 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 06:08:25 +00:00
Mike Thomas 13b74c92a1 Colorization's range makes far more sense as inclusive rather than exclusive. In particular, it means if you have a color-class with a range of 0.0,0.0,0.0 it will match exactly the target color, which is surely what you meant for it to do.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@946 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-12 21:10:52 +00:00
Mike Thomas c483d58683 If we have tiles just off the bottom they can stick up into our screen.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@945 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-10 00:58:02 +00:00