From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23293 invoked by alias); 18 Jul 2004 20:20:40 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 23283 invoked from network); 18 Jul 2004 20:20:39 -0000 Received: from unknown (HELO av11-1-sn4.m-sp.skanova.net) (81.228.10.106) by sourceware.org with SMTP; 18 Jul 2004 20:20:39 -0000 Received: by av11-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 585CD37E44; Sun, 18 Jul 2004 22:20:39 +0200 (CEST) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av11-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 4884637E42 for ; Sun, 18 Jul 2004 22:20:39 +0200 (CEST) Received: from [212.181.162.155] (h155n1fls24o1048.bredband.comhem.se [212.181.162.155]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id C842237E4A for ; Sun, 18 Jul 2004 22:20:38 +0200 (CEST) X-Sender: u22611592@m1.226.comhem.se Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 18 Jul 2004 21:02:00 -0000 To: xconq7@sources.redhat.com From: Hans Ronne Subject: More flexible unit image use X-SW-Source: 2004/txt/msg00762.txt.bz2 I have checked in two major changes to how Xconq handles unit images. 1. Every unit can now have it own image, which is unique for that unit and its associated views. To define a specific image for a given unit, just include the image-name in the unit definition. For example, in the Intro game, change the definition for Jinod to: (town 12 10 1 (n "Jinod")(image-name "ancient-city")) This will cause Jinod, but no other towns in the game, to use the town image from the Advances game. This is particularly useful if you have a number of units of similar type that you want to distinguish from each other. For example, the Lord of the Rings game defines a unique unit type for each hobbit in order to provide them with unique images. It is now possible to use only one unit type for all hobbits and still give them their own images. 2. The second change is that it is now possible to define a list of images that should be used for a particular unit type. The game will then pick an image at random from that list each time a new unit is created. Thus, to use more town images in the Intro game, add this line: (add town image-name ("ancient-blue-city" "ancient-green-city" "ancient-small-city")) The first image in the list (ancient-blue-city) is the default image, which is the image that is shown in the unit list and the help window. Units that have their own images defined (e.g. Jinod) are still drawn using those unique images instead. This is useful in games where you have a large number of similar units and want to provide some variety for the eye. It may also help the player to keep track of units if they have somewhat different images. Hans