TalonBraveInfo / OpenHoW

Open-source reimplementation of Gremlin's Hogs of War (PC/PSX).
http://talonbrave.info
GNU General Public License v3.0
166 stars 12 forks source link

76 terrain generation #119

Closed hogsy closed 5 years ago

hogsy commented 5 years ago

Introduces fundamental changes to ensure that new maps can be created and height-map data can be interpreted in such a way as to generate the terrain.

At the moment the red channel is dedicated to height and green is for tile index.

Importing a terrain image will require a path to be typed in for the image you want to load.

Textures are now all loaded in by incrementing through 0 to 256 under the <mapname>/tiles/ directory. Being done this way purely for the sake of allowing for editor functionality in the future (e.g. drawing tile textures etc.)

Might need to consider providing a tilePath variable to manifest so maps can share tile sets. Needs more thought...

Related ticket is #76