v1.4.0: improved locked exit visuals by properly overlapping the hero

This commit is contained in:
Evan Debenham
2022-08-09 12:57:32 -04:00
parent 35b1fed388
commit 800a5076d7
7 changed files with 7 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -344,6 +344,9 @@ public class DungeonTileSheet {
public static final int HIGH_GRASS_OVERHANG_ALT = WALL_OVERHANG+38;
public static final int FURROWED_OVERHANG_ALT = WALL_OVERHANG+39;
//exit visuals are rendered flat atm, so they actually underhand
public static final int EXIT_UNDERHANG = WALL_OVERHANG+41;
/**********************************************************************
* Logic for the selection of tile visuals
**********************************************************************/

View File

@@ -62,7 +62,10 @@ public class DungeonWallsTilemap extends DungeonTilemap {
}
if (pos + mapWidth < size && DungeonTileSheet.wallStitcheable(map[pos+mapWidth])) {
if (map[pos] == Terrain.LOCKED_EXIT || map[pos] == Terrain.UNLOCKED_EXIT){
return DungeonTileSheet.EXIT_UNDERHANG;
} else if (pos + mapWidth < size && DungeonTileSheet.wallStitcheable(map[pos+mapWidth])) {
return DungeonTileSheet.stitchWallOverhangTile(
tile,