sashman / terrain_generator

5 stars 0 forks source link

Filling cliff gaps #15

Closed sashman closed 11 years ago

sashman commented 11 years ago

Background

The new map format is still incomplete: when two corner cliffs meet, they are too small to join.

What needs to be done

The terrain_generator needs to be edited to add extra padding cliffs side by side of the corner cliffs if they have a corner cliff neighbour.

New assets need to be created and cliff types added to the spritesheet.

How to do it

When creating the map tile object in the contour file generator, check if the tile is a corner tile and then check whether it has corner cliff neighbours. Keep track of added cliff padding to make sure not have duplication.

sashman commented 11 years ago

Pseudocode

In

void add_detail_tile(FILE* stream, int t, int x, int y)

Only in corner cliff cases e.g.:

case CLIFF_SE_NS:

Use function add_detail padding: