Walter Korman
a99829818f
Changed exit to portal. Limit tile bounds to something reasonable
...
when invalidating the scene view.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@270 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-16 18:05:17 +00:00
Walter Korman
cff9a1fbef
Renamed IsoSceneModel to IsoSceneViewModel to reflect reality.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 22:16:43 +00:00
Walter Korman
affc3e82b7
Fixed up path-finding, path-following, and tile coordinate drawing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 22:06:21 +00:00
Walter Korman
c701da25e4
Fixed initial minor bugs in path-finding.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@256 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 03:13:06 +00:00
Walter Korman
0616f0f464
Moved AmbulatorySprite around and made it implement the Traverser
...
interface. Initial version of AStarPathUtil and hooked it in to
SceneView.getPath(). Not yet tested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@255 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:30:28 +00:00
Michael Bayne
ce7869c279
Change the way we instantiate the resource manager.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@254 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:13:51 +00:00
Michael Bayne
a84eadb351
Use File.separator rather than fetching the system property ourself.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@253 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:13:36 +00:00
Michael Bayne
2cbed37cac
Whirled Scene ids are ints. Need to bust the upgrade from shorts.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@250 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 01:10:09 +00:00
Michael Bayne
a07f5d4d13
Changed Scene to MisoScene. Made MisoScene implement Whirled's Scene
...
interface.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@249 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 01:08:49 +00:00
Michael Bayne
8d017e268f
Because only the editor and viewer even care about the scene repository,
...
we're eliminating the concept entirely from the MISO runtime stuff and
having the editor and viewer just talk directly to the XML file scene
repository.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 00:10:59 +00:00
Michael Bayne
d26dc0372e
Helped the scene manager to depart from the scene. The viewer and editor
...
applications really need to deal directly with the scene repository. The
display part of the MISO code doesn't need a scene manager, per se,
because it is simply told to visualize a particular scene and scene
management happens entirely externally. This is in preparation for making
the MISO code work and place nicely with the Whirled code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@246 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 00:00:52 +00:00
Michael Bayne
3eea4dcaad
Moved sprite stuff into media package, removed coupling between miso stuff
...
and sprite stuff by added some interfaces in the sprite stuff and
implementing them with the miso stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@245 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 23:35:22 +00:00
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
9f4d4e3ac0
Fixed reference to old exit member data.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@215 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:01:40 +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
01f0d88213
Removed verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-27 17:52:07 +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
0be5c2f654
Added mnemonics and accelerators to menus. Fixed log message syntax
...
in XMLSceneWriter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@119 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-07-24 20:12:18 +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