_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Stratagus Media Documentation
Graphics
Please take a look at graphics/palette.html
before working on graphics to get an idea of the palette.
See also informations about tileset graphics format.
Buildings
Buildings are simple to do. Each graphic consists of a .png file using
the palette format specified in the link above. The top half of the graphic
is used for the main image, and the bottom half is for the construction.
Here is an example of 'farm.png'. Please also see the ccl files.
Units
Units are a little more complex as there are more sections per graphic.
The 5 columns represent the directions. The rows are varied among
different type of graphics, see the ccl files for more info. Here is
an example of 'peasant.png'. First 5 rows are used for movement,
next 5 for chopping, and the next 3 for dieing. Note that the peasant
has 2 other graphics, one for carrying gold, another for carrying wood.
Sounds
Any format of sound will work with Stratagus, although to save space it is
recommended that you use 16 bit, 22050 kHz, mono format. To save more
space, it is recommended that you gzip the file too.
All the sound entry data is in data/scripts/sound.lua,
Here is an example lua entry for: data/sounds/human/buildings/farm.wav.gz
MakeSound("farm-selected", "human/buildings/farm.wav")
Note how the '.gz' suffix isn't needed in the lua entry,
the Stratagus engine detects this automatically.
You may look through the script files for existing media for more examples.
(C) Copyright 1998-2015 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.