Commit Graph

55 Commits

Author SHA1 Message Date
Walter Korman 1502dcaa06 Moved scene util classes into a separate package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@243 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 21:29:40 +00:00
Walter Korman d54d562992 Updated comments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@230 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-13 15:00:24 +00:00
Walter Korman 546e39b0bb Added support for creating and editing exits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@229 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-13 05:42:36 +00:00
Walter Korman 60b47ff298 Reworked location placement so that the editor knows only about
Location objects and needn't muck about with full coordinates.
Beginning work on exit placement.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@214 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:00:13 +00:00
Walter Korman 356f15595e Draw locations such that orientation is apparent. Added support for
editing existing location information.
 CVS: ----------------------------------------------------------------------


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@213 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-10 23:07:04 +00:00
Walter Korman 8d7c2fc4e9 Fixed bug in saving clusters to XML. Added checkbox to editor to
allow display of locations and cluster indexes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@212 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-10 21:17:07 +00:00
Walter Korman ff101fb4ef Renamed Spot to Cluster, replaced SpotGroup with ClusterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@211 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-10 01:31:25 +00:00
Walter Korman 9df1deef66 More work on editor support for location creation and editing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-10 00:47:34 +00:00
Walter Korman 593d17aeb5 Reworking exits and locations en route to editor support for placement
within a scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@208 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-09 21:17:06 +00:00
Walter Korman 506623be27 Fixed positioning bug in fineToPixel(), minor clean-up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@207 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-09 17:04:56 +00:00
Walter Korman 0f6f771636 Highlight the fine coordinate on mouse-over when placing a location.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@206 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-09 06:26:52 +00:00
Walter Korman 6e7c8e29c5 Implemented tile deletion from the scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@205 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-09 05:44:07 +00:00
Walter Korman c38123f3e2 Fixed up scene loading/saving to use paths relative to the scene root
directory.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-09 00:01:58 +00:00
Walter Korman 5770a15d3c Added more support for full and fine coordinates. Constrain path
destinations to full coordinates.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-08 22:29:39 +00:00
Walter Korman 3cbd25edf9 Draw top-to-bottom, left-to-right to preserve proper image overlaying.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@195 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-08 21:24:20 +00:00
Walter Korman 49764d7b79 Use an array to mark dirty tiles. Added double-buffering to the
SceneViewPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@194 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-08 03:19:39 +00:00
Walter Korman 91d5813b37 Altered animation manager to draw directly to the target's graphics
context.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-08 00:10:50 +00:00
Walter Korman b3e7f12f08 Work on dirty-tile rendering optimization. Added placeholder panels
to the viewer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@187 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-07 18:29:18 +00:00
Walter Korman c09986bab0 Altered animation manager to separate construction from the start of
actual animation so that animating components can call
AnimationManager.start() when they know they're fully laid out and
ready to be regularly re-painted.  Return desired dimensions based on
requested scene bounds in SceneViewPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@186 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-06 18:57:39 +00:00
Walter Korman 42967815e1 Created base SceneViewPanel that the editor and viewer apps extend.
Added fringe layer to scenes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@176 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 01:41:02 +00:00
Walter Korman 31d1aa1edb Cleaned up editor user interface layout.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@168 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-04 00:22:19 +00:00
Walter Korman 17e402121c Determine proper compass direction to assign path nodes. Added
conversion routines for fine and full coordinates, and moved
iso-related utility functions to IsoUtil.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@167 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-03 22:23:47 +00:00
Walter Korman c41c097cd4 Create and have the sprite follow a path rather than explicitly
setting the sprite destination.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@152 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 20:43:03 +00:00
Walter Korman efb1881507 Use a polygon to determine whether a sprite is within a particular
tile.  Updated scene/tile dimensions and default scene to use 64x48
tiles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@151 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 18:59:00 +00:00
Walter Korman 499646fe94 Fixed axis slope calculation to be based on tile width/height as it
should be.  Made tile coordinate painting be centered within tile and
spaced based on actual font dimensions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@146 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 05:08:23 +00:00
Walter Korman 343eb1b38f Added default tileset and tile id to the editor properties. Added
more sample tiles with ingenious "daniel"-based naming scheme for
testing purposes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 01:19:47 +00:00
Walter Korman 1032b8f325 Moved much of the IsoSceneView data into the IsoSceneModel. More work
on sprites and animation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-02 00:42:02 +00:00
Walter Korman 82831f3baf Work on rendering a character in the scene and moving them about with
mouse-click events.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-31 01:38:28 +00:00
Walter Korman 11800e8a43 Added simple test character sprite to viewer application, and render
any involved sprites in IsoSceneView after each set of tiles is drawn.
Exit the viewer and editor applications on window close.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-30 15:38:52 +00:00
Walter Korman 92e46c6eae Added row-based tile width, image offset, and image row/column gap
distance parameters to tile sets.  Removed constant tile width/height
references except, for now, for isometric tile rendering which still
requires tiles that are 32x16.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-28 01:31:51 +00:00
Walter Korman a82e5f656d Added tileToScreen() and moved drawing of highlighted tile out of the
main tile-drawing loop now that we can.  Added comments.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@128 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-27 17:54:08 +00:00
Walter Korman 9eba46d700 Initial version of viewer application to allow playtesting of scenes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-25 17:38:15 +00:00
Walter Korman 9bec86fe87 Completed parsing of multi-layer scene XML files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-25 01:38:08 +00:00
Walter Korman 15bb149600 More work on parsing scene XML files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@120 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-24 22:52:02 +00:00
Walter Korman f31efe3a32 Added sparse layer tile format in XML output for layers other than BASE.
Refresh the scene view when coordinates are toggled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-24 19:15:51 +00:00
Walter Korman 05f3a6aa25 Altered persistent storage of scenes to be handled by the
SceneRepository.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@117 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-24 16:10:19 +00:00
Walter Korman b4d5f76c70 Fixed to conform to the updated SceneParser interface.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 22:47:03 +00:00
Walter Korman 98e19f8fac Initial versions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 22:45:04 +00:00
Walter Korman f02475b4c2 Initial work on reading and writing scenes to XML files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@113 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 22:31:48 +00:00
Walter Korman 2572535f95 General updating per initial code review. Created EditableSceneView
to separate scene display from editing functionality.  Load and
initialize managers in a fashion that more appropriately hides the
implementation details.  Tidied comments up a bit.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@103 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-23 18:52:51 +00:00
Walter Korman db91329aff Moved tile edge length into IsoSceneView since it's specific to
rendering the tiles from an isometric perspective.  Added comments and
minor clean-up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@88 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 08:17:10 +00:00
Walter Korman 3e82036691 Created XMLUtil to centralize our XML machinations and allow for
code-sharing between the tileset and scene XML antics.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@87 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 08:08:59 +00:00
Walter Korman 274fd01cef Altered scene width/height and positioning to completely fill the
scene view in the editor.  Fixed IsoSceneView.screenToTile() to work
correctly again.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@85 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 07:09:56 +00:00
Walter Korman b5d45abd2a Render all layers in the scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@84 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 03:50:35 +00:00
Walter Korman 1da63af67f Added checkbox to toggle display of tile coordinates in scene view.
Made separate scene panel for layer selection and coords toggle,
renamed previous ScenePanel to SceneViewPanel for posterity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@81 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-20 00:35:09 +00:00
Walter Korman 7d101b08f4 Revamped iso scene rendering to draw the entire scene-space. Still
need to fix screen-to-tile coords mapping, position scene display
correctly, and perhaps allow asymmetric scene dimensions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@79 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 23:11:27 +00:00
Walter Korman e6c33e727d Don't double-buffer since Swing components already do so and we're not
doing anything special as of yet relating to the color depth of the
target component or its other pecularities.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@64 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-19 00:22:02 +00:00
Walter Korman f91e1b41d1 Fixed up image loading to use the now-non-static ImageManager class.
Modified TileManager to store the height of a tile in the Tile
object's member data when the tile is initially created since we
would like to be able to reference it speedily.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@63 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-18 22:45:35 +00:00
Walter Korman c4654e2a11 Repackage classes from com.threerings.cocktail.miso to
com.threerings.miso.  Moved ImageManager to com.threerings.media.
Removed unused StripImage.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@62 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-18 21:45:42 +00:00
Walter Korman 9abae9810b Comments and minor debugging additions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@61 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-18 21:19:00 +00:00