Commit Graph

39 Commits

Author SHA1 Message Date
Dave Hoover bc7fd397fb Update source headers to point to our new home.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1034 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-18 19:02:13 +00:00
Dave Hoover 082bd4399b Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1031 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-15 20:16:01 +00:00
Dave Hoover 74322e54a9 Wrong "its"
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1028 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-15 20:15:57 +00:00
Mike Thomas 6e792aab43 Fix incorrect block-buffering calculation.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1011 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-31 03:18:25 +00:00
Mike Thomas a7a4497a5f Fix potential stackoverflow.
Refreshing the scene can otherwise cascade back through loaded back through itself.  Instead, wait til all the ones on our current frame are done and then refresh.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1009 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-31 00:22:16 +00:00
Mike Thomas 26ad64ade6 Let's refresh the scene prior to the delay so that by the time we add the view to the display list, we're really ready.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1004 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-27 23:28:48 +00:00
Mike Thomas d01236928f Move the default loading progress printout to the middle of the iso view.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@998 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-25 21:12:43 +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 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
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 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 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 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 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 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 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
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
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 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
Mike Thomas c65ee0c562 Let's reorganize our scene tiles into SceneBlocks that we can load and unload as chunks as we move our view around the scene. If this sounds familiar, it's because you've been reading MisoScenePanel.java.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@943 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 23:15:20 +00:00
Mike Thomas 64bbf9f9d8 Rather than loading all the base tiles at once (or really, all the ones in an arbitrary region), we'll load only the ones on-screen. And then if we scroll around, we'll load the others we need.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@941 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:18:06 +00:00
Mike Thomas 78f64d2c66 We can just take this out entirely for now - I really don't know why it's not finding this, I guess it must not be getting exported to the as3isolib swc even though it's in the source.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@940 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:43:01 +00:00
Andrzej Kapolka 6abbcfc639 Fix the Shared Libraries build. It looks like the version of as3isolib in
extlibs needs to be updated.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@939 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:19:34 +00:00
Mike Thomas 4fba468590 Change how the Miso view handles the time when we're waiting to load the tilesets - show a loading screen of some type instead of showing the semi-transparent blocks.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@938 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 21:53:56 +00:00
Mike Thomas da88a42716 Use a new, fancy version of the Iso lib scene layout renderer that takes into account a render-priority for use in handling overlapping iso objects. This may want some additional optimization in the future, but we'll see if that's really required.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@937 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 17:05:10 +00:00
Mike Thomas 1254841995 Second pass on AS recoloring, fixed a bunch of bugs and tied to tiles/tilesets.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@936 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-07 18:04:52 +00:00
Mike Thomas e3c79a6be8 First pass at getting miso working with actual tiles and tileset data.
Still to do:
- Handle tile priorities in ISO sorting.
- Handle recoloring tiles (this may result in annoyingly significant changes to Tile/TileSet API)
- Dynamically loading sections rather than loading all the tiles of a scene.
- Better handling of the state where the scene's not yet loaded.
- Portals.
- Dynamic sizing of the MisoScenePanel



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@932 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-01 22:27:37 +00:00
Dave Hoover ca9e1aa730 That should be private.
If it's public, we try to shadow it in a subclass & wind up
still getting THIS one.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@929 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-18 23:40:17 +00:00
Mike Thomas e42ebae867 It's not drawing the real tile/art assets yet, but handles enough of the model correctly to draw boxes for each base/object tile.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@928 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-16 22:56:48 +00:00
Mike Thomas 2f634e3a60 Port of the miso scene model and related bits (so, data only, no rendering of any kind yet).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@923 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:48:12 +00:00