Giter VIP home page Giter VIP logo

loz-map-maker's Introduction

Legend of Zelda Map Maker

Create/Edit dungeons form the Legend of Zelda Project

Directions

To save

  1. Go to the dungeon tab
  2. Make sure that the dungeon has a name specified
  • With at least some(not necessarily all) alphanumeric characters
  1. Click the Save button

To load

  1. Put file(.xml or .map) into the same directory as the jar
  2. Go to the the dungeon tab
  3. Enter file name in the "Name:" text field, with the extension
  • e.g. "Test.xml" (without quotes)
  1. Click the Load button

TODO

  • Starting items(in inventory)
  • Player stats(health, mana, skills, descriptions, ...)

Save format

xml layout

<dungeon name="..." version="...">
  <description>...</description>
  <credits>...</credits>
  <items>
    <item id="..." name="...">
      <description>...</description>
      TODO
    </item>
  </items>
  <monsters>
    <monster id="..." name="...">
      <description>...</description>
      TODO
    </monster>
  </monsters>
  <rooms>
    <room id="...">
      <description>...</description>
      <connections>
        <connection direction="..." id="..." />
      </connections>
      <items>
        <item id="..." />
      </items>
      <monsters>
        <monster id="..." />
      </monsters>
    </room>
  </rooms>
</dungeon>

map layout

  • num items(int)
  • num monsters(int)
  • num rooms(int)
  • list of longs, containing pointers to object locations(within the file)
    • pointers: number of bytes from beginning of file(use seek)
    • this is done by ids
      • item with id 0 will be the first long
    • 1 long per object
      • 3 items, 2 monsters, 8 rooms: 13 longs(104 bytes + 12 bytes for count)
  • name of map(UTF str)
  • version of map(UTF str)
  • map description(UTF str)
  • credits(UTF str)
  • item
    • name of item(UTF str)
    • flavour text/description(UTF str)
    • TODO
  • monsters
    • name of monster(UTF str)
    • description of monster(UTF str)
    • TODO
  • rooms
    • description of room(UTF str)
    • connections
      • num connections(int)
      • list of connections
        • direction(UTF str)
        • room id(int)
    • items found
      • num items(int)
      • list of items
        • item id(int)
    • monsters found
      • num monsters(int)
      • list of monster
        • monster id(int)

loz-map-maker's People

Contributors

andy29485 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.