Tasks:Mapengine: Difference between revisions
Jump to navigation
Jump to search
m more details added |
m →Requirements: Update pathfinding status |
||
Line 27: | Line 27: | ||
* <span style="text-decoration:line-through">Speed of movement can vary between characters or the same character (running, walking, sneaking)</span> (done) | * <span style="text-decoration:line-through">Speed of movement can vary between characters or the same character (running, walking, sneaking)</span> (done) | ||
* <span style="text-decoration:line-through">Characters can walk, climb, jump and fall.</span> (done) | * <span style="text-decoration:line-through">Characters can walk, climb, jump and fall.</span> (done) | ||
* Pathfinding for computer controlled characters. | * <span style="text-decoration:line-through">Pathfinding for computer controlled characters.</span> (being done) | ||
* [[Architecture:Rpg Module#Items and Inventories|Items]] can be placed on the 'ground' or other objects (table, shelf). | * [[Architecture:Rpg Module#Items and Inventories|Items]] can be placed on the 'ground' or other objects (table, shelf). | ||
* Multiple items can share the same location | * Multiple items can share the same location |
Revision as of 21:19, 27 February 2009
Back to Task List
Overview
The mapengine is responsible for providing a model of the game world, including the environment, locations of characters and items. This data is kept in files and must be loaded and saved at need.
The map engine data is visualized by the Map View.
Dependencies
- Graphics implementation
- Object Model implementation
- Collision Detection implementation
Requirements
The mapengine needs the following features:
- The map is seamless, i.e. there are no transitions between different 'areas'. Transitions may occur when entering buildings or caverns.
- Only parts of the graphical map representation need to be kept in memory. Loading of map areas happens in the background.
- The complete physical map is kept in memory, to allow NPCs wandering over long distances.
- Map can be loaded and saved with possibly different files for static and dynamic content.
- The map model is 3-Dimensional, allowing different height levels. The camera is fixed to provide a top-down view. (done)
- Objects displayed are 2-Dimensional, drawn according to the underlying 3D model of the world. (done)
- Movement of characters through the world is pixel-based. Moving is at least possible in 8 directions. (done)
- Speed of movement can vary between characters or the same character (running, walking, sneaking) (done)
- Characters can walk, climb, jump and fall. (done)
- Pathfinding for computer controlled characters. (being done)
- Items can be placed on the 'ground' or other objects (table, shelf).
- Multiple items can share the same location
- Map events are triggered when characters enter or leave certain locations.
References
- Initial version of map engine in CVS
- Primitive map engine in CVS
- Map Object Format specification (preliminary)
- Seamless map (see the whole thread)
- Idea for weather effects