Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] (PR#2058) eye candy and varied tile blending
Home

[Freeciv-Dev] (PR#2058) eye candy and varied tile blending

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: dspeyer@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#2058) eye candy and varied tile blending
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Mar 2004 12:25:38 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=2058 >

I believe this patch is now obsolete.  You can achieve a similar effect
using matching sprites and multiple layers.  For instance in iso-view
currently desert is done as

  [terrain_desert]
  is_blended = 1
  is_layered = 0
  match_type = 0
  mine_sprite = "tx.oil_mine"

I would change it to

  [terrain_desert]
  is_blended = 1
  is_layered = 1
  ; match_type is some unique number
  match_type = 34985
  mine_sprite = "tx.oil_mine"

Now when desert is drawn:

- t.desert1 is drawn as the base terrain and blended (dithered) with
adjacent terrains.
- On top of this is drawn t.desert_n1s0e1w1, a matched sprite.  This
sprite can be mostly transparent and simply contain a bit of eye candy.

The 16 new t.desert_n*s*e*w* sprites will have to be added to the
tileset, of course.

jason



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2058) eye candy and varied tile blending, Jason Short <=