Gobligine/doc/media.html
2003-05-19 21:50:23 +00:00

50 lines
1.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--
---- $Id$
---- (c) Copyright 2003 by Nehal Mistry
---- FreeCraft is free software; you can redistribute it and/or modify
---- it under the terms of the GNU General Public License as published by
---- the Free Software Foundation; only version 2 of the License.
---- FreeCraft is distributed in the hope that it will be useful,
---- 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.
-->
<title>FreeCraft 1.18 Media Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>FreeCraft 1.18 Media Documentation</h1>
<hr>
<h2>Graphics</h2>
<h2>Sounds</h2>
Any format of sound will work with FreeCraft, 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.<p>
All the sound entry data is in data/ccl/sound.ccl,
Here is an example ccl entry for: data/sounds/human/buildings/farm.wav.gz<p>
<pre>(make-sound "farm-selected" "human/buildings/farm.wav")</pre><p>
Note how the '.gz' suffix isn't needed in the ccl entry,
the FreeCraft engine detects this automatically.<p>
You may look through the ccl file for more examples.<p>
<hr>
(C) Copyright 1998-2003 by The <a href="http://freecraft.sf.net">FreeCraft</a> Project
under the <a href="gpl.html">GNU General Public License</a>.<br>
All trademarks and copyrights on this page are owned by their respective owners.<br>
</body>
</html>