summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop/VillageArt.fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LivingVillage.Desktop/VillageArt.fs')
-rw-r--r--src/LivingVillage.Desktop/VillageArt.fs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/LivingVillage.Desktop/VillageArt.fs b/src/LivingVillage.Desktop/VillageArt.fs
index 2b2b0e7..0f176aa 100644
--- a/src/LivingVillage.Desktop/VillageArt.fs
+++ b/src/LivingVillage.Desktop/VillageArt.fs
@@ -970,18 +970,26 @@ module VillageArt =
for (rect, color) in lanternGlowLayers centerX centerY radiusPixels 8 255 214 150 peakAlpha do
spriteBatch.Draw(pixel, rect, color)
+ let cc0BoatNightTintScale = 0.7f
+
let drawCc0BoatOverlay
(spriteBatch: SpriteBatch)
(textures: ArtTextures)
(camera: XnaVector2)
(map: MapGen.Result)
(tint: XnaColor) =
+ let night =
+ XnaColor(
+ int (float32 tint.R * cc0BoatNightTintScale),
+ int (float32 tint.G * cc0BoatNightTintScale),
+ int (float32 tint.B * cc0BoatNightTintScale),
+ int tint.A)
match textures.Cc0TileAtlas with
| Some cc0 ->
match cc0BoatTile map with
| Some (boatX, boatY) ->
- drawCc0Tile spriteBatch cc0 tint (cc0TileRect cc0TileIndexBoatLeft) (boatX * Sim.tilePixels - int camera.X) (boatY * Sim.tilePixels - int camera.Y)
- drawCc0Tile spriteBatch cc0 tint (cc0TileRect cc0TileIndexBoatRight) ((boatX + 1) * Sim.tilePixels - int camera.X) (boatY * Sim.tilePixels - int camera.Y)
+ drawCc0Tile spriteBatch cc0 night (cc0TileRect cc0TileIndexBoatLeft) (boatX * Sim.tilePixels - int camera.X) (boatY * Sim.tilePixels - int camera.Y)
+ drawCc0Tile spriteBatch cc0 night (cc0TileRect cc0TileIndexBoatRight) ((boatX + 1) * Sim.tilePixels - int camera.X) (boatY * Sim.tilePixels - int camera.Y)
| None -> ()
| None -> ()