Verfasst: 18.02.2006 13:22
Wenn wir kompatibel bleiben/sind zum MAP-Format, dann brauchen wir u.U. auch keinen eigenen Editor zu schreiben, ein simpler Konverter langt dann vollauf.
Code: Alles auswählen
<?xml version="1.0"?>
<mapinfo>
<name>Meine erste Map</name>
<creator>Pascal 'hardfalcon' Ernster</creator>
<email>hardfalcon -AT- gpfclan . de</email>
<website>http://hardfalcon.gpfclan.de/</website>
</mapinfo>
<ressources>
<texture src="sprite.jpg">meinetextur1</texture>
<texture src="alpha.png">textur_mit_alphachannel</texture>
<music src="bgmusic.mod">Hintergrundmusik</music>
<sound scr="expl1.ogg">explosion</sound>
<mesh scr="mymesh.mesh">mesh1</mesh>
<!--
<manualmesh data="">mymesh2</manualmesh>
-->.
</ressources>
<materials>
<material texture="meinetextur1">
material1
<layer texture="textur_mit_alphachannel" mode="AlphaBlend"></layer>
</material>
</materials>
<world>
<terrain src="terrain.png">Terrain</terrain>
<entity mesh="mesh1" texture="material1" position="12.3;45.6;7.89" health="75" diesound="explosion">object1</entity>
<gravity>9.82</gravity>
<skybox>stevecube.zip</skybox>
<skydome curvature="30">clouds.jpg</skydome>
<bgmusic>Hintergrundmusik</bgmusic>
</world>
Code: Alles auswählen
<information>
<name>NAME OF THE MAP</name>
<creator>NAME OF THE MAPCREATOR</creator>
<email domain="DOMAIN.XYZ">EMAIL</email>
<date>YEAR/MONTH/DAY</date>
</information>
<ressources>
<scripts type="PAK">\textures\materials.zip</scripts>
<meshes type="PATH">\modells\</meshes>
<texture type="PATH">\textures\</texture>
<music type="PATH">\audio\music\</music>
<sounds type="PAK">\audio\sound\sounds.zip</sounds>
</ressources>
<world>
<shadows>ADD/MOD</shadows>
<gravity>[GRAVITY]</gravity>
<terrain scale="[X];[Y];[Z]" accuracy="[VALUE]">HEIGHTMAP.PNG</terrain>
<skybox>SKYBOX.PNG</skybox>
<skydome curve="[VALUE]">SKYDOME.PNG</skydome>
<backgroundmusic volume="[VALUE]">BACKGROUNDMUSIC.OGG</backgroundmusic>
</world>
<mlayer>
<layer texture="TEXTURE.PNG" mode="ADD/REPLACE/ALPHA/MOD">LAYERNAME</layer>
</malayer>
<materials>
<material texture="TEXTURE.PNG" layer="LAYERNAME1" layer="LAYERNAME2" layer="LAYERNAME3" ambient="[COLOR]" blending="ADD/ALPHA/COLOR" diffuse="[COLOR]" filtering="NONE/BI/TRI" shading="FLAT/GOURAUD/PHONG" specular="[COLOR]">MATERIALNAME</material>
</materials>
<entities>
<entity mesh="FILE.MESH" material="MATERIALNAME/SCRIPTFILE.MATERIAL" position="[X];[Y];[Z]" scale="[X];[Y];[Z]" friction="[VALUE]" mass="[VALUE]">ENTITYNAME</entity>
</entities>
<particles>
<emitter scale="[X];[Y];[Z]" type="POINT/BOX" position="[X];[Y];[Z]" material="MATERIALNAME" direction="[X];[Y];[Z]" psize="[W];[H]" rate="[VALUE]" time="[MIN];[MAX]" velocity="[MIN];[MAX]" cfade="[R];[G];[B]" crange="[START];[END]">EMITTERNAME</emitter>
</particles>