Gobligine/doc/media.html

91 lines
3.7 KiB
HTML
Raw Normal View History

2003-05-19 13:12:59 -06:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--
2011-03-26 16:40:53 -06:00
---- (c) Copyright 2003-2011 by Nehal Mistry and Pali Rohár
2003-05-19 13:12:59 -06:00
2003-07-03 10:08:07 -06:00
---- This program is free software; you can redistribute it and/or modify
2003-05-19 13:12:59 -06:00
---- it under the terms of the GNU General Public License as published by
---- the Free Software Foundation; only version 2 of the License.
2003-07-03 10:08:07 -06:00
----
---- This program is distributed in the hope that it will be useful,
2003-05-19 13:12:59 -06:00
---- but WITHOUT ANY WARRANTY; without even the implied warranty of
---- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
---- GNU General Public License for more details.
2003-07-03 10:08:07 -06:00
----
---- You should have received a copy of the GNU General Public License
---- along with this program; if not, write to the Free Software
---- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
---- 02111-1307, USA.
2003-05-19 13:12:59 -06:00
-->
<title>Stratagus Media Documentation</title>
2003-05-19 13:12:59 -06:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<pre width=80>
2012-07-24 05:54:25 -06:00
_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
2012-07-24 05:54:25 -06:00
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
2012-07-24 05:54:25 -06:00
\/ \/ \//_____/ \/
______________________ ______________________
2012-07-24 05:54:25 -06:00
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
</pre>
<hr>
<h1>Stratagus Media Documentation</h1>
2003-05-19 13:12:59 -06:00
<hr>
2003-05-19 15:50:23 -06:00
<h2>Graphics</h2>
2003-05-19 13:12:59 -06:00
2012-07-24 05:54:25 -06:00
Please take a look at <a href="graphics/palette.html">graphics/palette.html</a>
2011-03-26 16:40:53 -06:00
before working on graphics to get an idea of the palette.<p>
See also informations about <a href="graphics/tileset.html">tileset graphics format</a>.
2003-05-29 14:26:35 -06:00
<h4>Buildings</h4>
2012-07-24 05:54:25 -06:00
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.
2003-05-29 14:26:35 -06:00
Here is an example of 'farm.png'. Please also see the ccl files.<p>
2003-05-30 12:39:49 -06:00
<img src="graphics/farm.png" alt=farm><br>
2003-05-29 14:26:35 -06:00
<h4>Units</h4>
2012-07-24 05:54:25 -06:00
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
2003-05-29 14:26:35 -06:00
has 2 other graphics, one for carrying gold, another for carrying wood.<p>
2003-05-30 12:39:49 -06:00
<img src="graphics/peasant.png" alt=peasant><br>
2003-05-29 14:26:35 -06:00
2003-05-19 13:12:59 -06:00
<h2>Sounds</h2>
2012-07-24 05:54:25 -06:00
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
2003-05-19 13:12:59 -06:00
space, it is recommended that you gzip the file too.<p>
2012-07-24 05:54:25 -06:00
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<p>
2003-05-19 13:12:59 -06:00
<pre>MakeSound("farm-selected", "human/buildings/farm.wav")</pre><p>
2003-05-19 13:12:59 -06:00
2012-07-24 05:54:25 -06:00
Note how the '.gz' suffix isn't needed in the lua entry,
2003-07-03 09:35:45 -06:00
the Stratagus engine detects this automatically.<p>
2003-05-19 13:12:59 -06:00
You may look through the script files for existing media for more examples.<p>
2003-05-19 13:12:59 -06:00
<hr>
(C) Copyright 1998-2015 by The <a href="https://launchpad.net/stratagus">Stratagus</a> Project under the <a href="gpl.html">GNU General Public License</a>.<br>
2003-05-19 13:12:59 -06:00
All trademarks and copyrights on this page are owned by their respective owners.<br>
</body>
</html>