Difference between revisions of "Others tips to make levels"

From X-Moto
Jump to: navigation, search
Line 3: Line 3:
 
If you use a property requiring xmoto >= 0.2.1 for example, you must modify the level tag like this :
 
If you use a property requiring xmoto >= 0.2.1 for example, you must modify the level tag like this :
 
  <level id="myid" rversion="0.2.1">
 
  <level id="myid" rversion="0.2.1">
 +
 +
== Level properties ==
 +
<info>
 +
<name>Level name</name>
 +
<description></description>
 +
<author></author>
 +
<date></date>
 +
<sky>sky2</sky>
 +
<border texture="Bricks" />
 +
</info>
 +
 +
* border : border of the level [require xmoto >= 0.2.5]
  
 
== Block properties ==
 
== Block properties ==

Revision as of 18:43, 14 January 2007

Català - Español

If you use a property requiring xmoto >= 0.2.1 for example, you must modify the level tag like this :

<level id="myid" rversion="0.2.1">

Level properties

<info>
<name>Level name</name>
<description></description>
<author></author>
<date></date>
<sky>sky2</sky>
<border texture="Bricks" />
</info>
  • border : border of the level [require xmoto >= 0.2.5]

Block properties

<block id="Block1">
	<physics grip="1.0"/>
	<position x="-0.333333" y="-5.666667" dynamic="true"/>
	<usetexture id="default"/>
	<vertex x="-7.666667" y="0.666667"/>
	<vertex x="7.333333" y="2.666667"/>
	<vertex x="0.333333" y="-3.333333"/>
</block>
all the properties are not mandatory. The default value will be given in this case.
  • id : identifiant of the block ; allow to change the block via a script
  • position : initial position of the block
  • dynamic : allow this block to move via a script if set to true
  • grip : gripness of the block ; allow to simulate ice [require xmoto >= 0.2.1]
  • usetexture : texture applied on the block

Sprites properties

<entity id="Strawberry2" typeid="Strawberry">
 <size r="0.2" width="0.5" height="0.5"/>
 <position x="42" y="0.5"/>
</entity>
all the properties are not mandatory. The default value will be given in this case.
  • id : identifiant of the sprite ; allow to change the block via a script
  • typeid : type of the sprite
  • r : radius of the collision circle
  • width : width of the picture [require xmoto >= 0.2.1]
  • height : height of the picture [require xmoto >= 0.2.1]
  • x : position x of the center
  • y : position y of the center