Wednesday, April 05, 2006

Map Editor

Yea, still talking about KQ. This time, I'm just writing about what I did to update the KQ game's map editor.

At one time, Peter thought up a great idea to stick "markers" on the maps so we could dynamically call different parts of the map instead of statically. Meaning (if that didn't make sense) that we could have a marker named "entrance" somewhere on the map and just look for the marker's coordinates instead of telling the map to load coordinates (13, 77). This helps especially if we want to move things around on the map; when we do, we rarely have to even change the LUA script anymore; move the marker in the map and you're done.

So this is where we WERE. We also have something that will "grab" a tile: it basically sets the cursor to the same tile or attribute (zone, shadow, obstacle, etc.) so we can draw it elsewhere.

I added support so the map programmer can scroll to the "next instance" of the attribute in question. Not much of a functionality boost, but it's one more small thing I could work on in my spare time.

No comments:

Post a Comment