Tuesday, 11 December 2012

Blueprint and Maze file format

Blueprint and Maze file format

The original PoP use a specific file format for save/load the dungeon rooms, it's a format made for the original MAC II version.

Some Pop fans have created some visual editor for modify the orginal PoP levels in their original "blueprint" format. (apoplex and other..)

I wish to ask if any of their authors who want to create the ability to save in PoP.net xml format or ask the original source for make an extra save type.

Yes i will use a simple XML format for build the maze by class reflection, like this.

---


<?xml version="1.0" encoding="utf-8"?>
<Level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <levelName>dungeon_prison</levelName>
  <rows>
    <RoomRow>
      <columns>
        <RoomColumn>
          <RoomStart>true</RoomStart>
          <RoomIndex>1</RoomIndex>
          <FilePath>MAP_dungeon_prison_1.xml</FilePath>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
      </columns>
    </RoomRow>
    <RoomRow>
      <columns>
        <RoomColumn>
          <RoomIndex>2</RoomIndex>
          <FilePath>MAP_dungeon_prison_2.xml</FilePath>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>3</RoomIndex>
          <FilePath>MAP_dungeon_prison_3.xml</FilePath>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
        <RoomColumn>
          <RoomIndex>0</RoomIndex>
        </RoomColumn>
      </columns>
    </RoomRow>
  </rows>
</Level>


---


This open format can be simple edited by hand for build own dungeon.

Now i'm working on this file format for give to kid ability to move through the rooms...

No comments:

Post a Comment