Cytopia icon indicating copy to clipboard operation
Cytopia copied to clipboard

Add Edge Frames for Buildings or Objects Placed on Slopes

Open KINGTUT10101 opened this issue 4 years ago • 2 comments

Edge frames are type of decorative object that is placed under buildings when their tiles are above sloped terrain. Here is an example of a spritesheet containing edge frames: image

When a building is built on a slope, these edge frames will be built underneath the building automatically. image

There will be multiple variations of edge frames. Some examples include sheet metal, concrete, and wood. These edge frames will need to go on a separate layer from ground deco. As shown in the previous picture, ground deco should be rendered on top of the edge frame, but below the building. If the building does not have ground deco, then the game should automatically switch to the terrain tile instead. image

In a building's definition, we should be able to choose which edge frames can be used when the game automatically places them under a building. This could be defined in a fashion similar to ground deco. For example:

"edge frames":[
"EdgeFrames_Wood",
"EdgeFrames_SheetMetal"]

Adding this to the building would mean that only these two edge frame types would be automatically placed under the building. This is NOT meant to restrict what edge frame types can be placed under a building manually.

KINGTUT10101 avatar Apr 11 '20 17:04 KINGTUT10101

I recall that we couldn't place building on slopes, is this changed ?

Mograbi avatar Apr 12 '20 13:04 Mograbi

That's what this idea is meant to address. No, buildings can't be placed on slopes right now, but that's only because we didn't have edge frames implemented yet.

KINGTUT10101 avatar Apr 12 '20 15:04 KINGTUT10101