DD/Map editor/Layers

From Unknown Horizons

Jump to: navigation, search
Image:Note.png

This page is part of the Unknown Horizons design document. Please discuss everything concerning this topic on the "discussion" tab of this page. If you´re not sure whether your ideas are fitting the Unknown Horizons style, either use the discussion page, talk to us, or edit the "Questions" section of this page, but please don´t directly edit the other parts.

Proposal

Summary

New proposal:

File:Uh_layers.png

Rest of article OUTDATED!!!

Note Note:
This is the idea so far. Though Nihathrael beared something in mind and left a request on FIFE board about a more comfortable way to handle layers and blockers. Let's see what happens...

--dauerflucher 20:53, 19 March 2008 (CET)

Unknown Horizons will feature only three layers on only one elevation. (FIFE would provide up to 255 layers on each elevation.)

The most likely layers will be:

  1. sea_layer
  2. land_layer
  3. main_layer


sea_layer: The open water tiles only.

land_layer: The land tiles, resource deposits and other objects beeing under the feet of land_units - like streams. Land tiles also includes shallow water tiles as transition from island to open sea.

main_layer: The build_ and movement_layer with unit sprites, buildings, other objects able to collide with units and the blockers.

Implementation related notes

To achive a correct z-odering with FIFE all objects with a faked height - like units, trees, buildings and certain terrain and resource deposits - will have to be on the same layer. It's a matter of collision.

Sea_units and land_units will need different blockers. Thus the pather code provided by FIFE will have to be extended. The different blockers are needed to make it possible to move units close to a coast line. While land_units will have their blockers on the first shallow water tile after the coast tile, sea units will have their blockers directly on the coast tiles. Consequently their will be a doubled line of blockers around an island. Otherwise wether land_units can not enter the coast line or sea_units are unable to get one tile ahead of the coast line.

Means, the pather code will need a second blocker function to divide land_units_blocking and sea_units_blocking.

Open questions

Question Open question:
Questions or annotations anyone?

--dauerflucher 01:10, 23 October 2007 (CEST)

Phasing

General

Without layers OA can't happen. Layers are fundamental and have to be part of the first milestone.

Personal tools