Elasto Mania LEV

From XentaxWiki
Jump to: navigation, search

LEV


Format Specifications

// Elasto Mania
// LEV file format

5 bytes (char) - magic "POT14"
2 bytes - unknown  // always similar to next integer
4 bytes (uint32) - random number linking replays with the level file
8 bytes (double) - integrity 1
8 bytes (double) - integrity 2
8 bytes (double) - integrity 3
8 bytes (double) - integrity 4 (lock)
51 bytes (char) - name of the level
16 bytes (char) - name of the LGR file to use
10 bytes (char) - name of the ground texture
10 bytes (char) - name of the sky texture

//polygons
8 bytes (double) -  number of polygons + 0.4643643
num_of_polygons *
{
   //polygon data
   4 bytes (uint32) - grass flag  // 0=normal, 1=grass polygon
   4 bytes (uint32) - number of vertices
   num_of_vertices *
   {
      8 bytes (double) - x
      8 bytes (double) - y
   }
}

//objects
8 bytes (double) - number of objects + 0.4643643
num_of_objects *
{
  //object data
  8 bytes (double) - position x
  8 bytes (double) - position y
  4 bytes (uint32) - type  // 1=flower, 2=food, 3=killer, 4=start
  4 bytes (uint32) - type of food  // 0=food, 1=gravity up, 2=gravity down, 3=gravity left, 4=gravity right
  4 bytes (uint32) - animation number-1
}

//pictures
8 bytes (double) - number of pictures + 0.2345672
num_of_pictures *
{
  //picture data
   10 bytes (char) - normal picture name
   10 bytes (char) - texture name
   10 bytes (char) - mask name
   8 bytes (double) - position x
   8 bytes (double) - position y
   4 bytes (uint32) - distance (1-999)
   4 bytes (uint32) - clipping  //0=U, 1=G, 2=S
}

4 bytes (uint32) - end_of_data marker    // "0x3A 0x10 0x67 0x00"
688 bytes - unknown
4  bytes (uint32) - end_of_file marker   // "0x52 0x5D 0x84 0x00"

MultiEx BMS Script

Not written yet.

Notes and Comments

None.

Compatible Programs

Gallery