From 227420e531ae481224410978e01c834507cc61d2 Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Sun, 17 Jan 2010 19:33:07 -0500 Subject: Tile transparency in water without overlays. In order for jpeg's waves to work on deep water as well as shallow, we need to not use partially transparent overlays to simulate an actor or an item being submerged. Now, non-flying objects on water will be drawn transparently to blend with the water below. This should mostly look the same, except it will now work on top of waves and will not require a mask for each water type. As a nice side-effect, ghosts are now transparent again and the water on top of submerged objects now animates properly. See the comments in tilebuf.cc for details. The mask tile itself can be adjusted to change the water level, but the parameters to SubmergedTileBuffer will need to be changed to compensate depending on what the new art looks like. --- crawl-ref/source/rltiles/dc-misc.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/rltiles/dc-misc.txt') diff --git a/crawl-ref/source/rltiles/dc-misc.txt b/crawl-ref/source/rltiles/dc-misc.txt index 8050483dcd..120c455fc1 100644 --- a/crawl-ref/source/rltiles/dc-misc.txt +++ b/crawl-ref/source/rltiles/dc-misc.txt @@ -65,6 +65,9 @@ mask_shallow_water_murky MASK_SHALLOW_WATER_MURKY mask_deep_water_shoals MASK_DEEP_WATER_SHOALS mask_shallow_water_shoals MASK_SHALLOW_WATER_SHOALS mask_lava MASK_LAVA +%shrink 0 +mask_submerged MASK_SUBMERGED +%shrink 1 cursor CURSOR cursor_red CURSOR2 cursor_green CURSOR3 -- cgit v1.2.3-54-g00ecf