Blog Updated To WordPress 3.0 (And Built a Map “Editor” While Waiting…)

I just update this blog to WordPress 3.0 and the core update went smoothly, but the plugin updates caused the site to pretty much freeze. I recommend doing manual updates for those plugins.

Let me know if this thing still works, thanks.

I just coded the coolest map editor ever. In simplicity, it’s “map.dat” file with “1000100100002000000000100001” stuff inside. After all, this update took only about 7 minutes…

Juuso Hietalahti


  1. I’ve often thought a lot about the idea of implementing map/level data with XML files generated with Javascript/PHP. There’s some cool things you can do with that kind of toolset. For the future I think I’ll be using HTML/Jquery/PHP to generate/create my maps and levels.

  2. Why not save to a binary file? If you open it in a hex editor and make sure you set the “text-wrapping” (for lack of a better word) to the same width as your map width, you can see the shape easily. Then you have 256 possible tile types, and loading and saving will be quicker if as you don’t have to convert to and from strings.

  3. @Fili: Yeh, there will be ends in left & right. And yeh, I was thinking after posting this that letters might be a better idea (especially if there’s more objects).

    …but then again, my game maps are not playing such important role that I believe this format will be pretty cool.

    @hermitC: hah. :)

  4. “For now.” sounds also familiar ;)

    I like the procedural approach of roguelike games, especially the possibilities in Dwarf Fortress (http://bit.ly/9bAEyJ). I just can’t stand the ASCII graphics.

  5. “1000100100002000000000100001” I hope that’s not binary, right? There was a joke with something like 11000111002 :)
    If you go with that approach, you should consider three things:
    -laying the map using new-lines instead of one looooong line so that you can see better the layout
    -most algorithms suck when they hit the map edge. So don’t allow them to reach there. Surround your map with a wall.
    -using letters instead of numbers. Use dot for space, D for doors, L for lamp-post, W for water, # for walls.
    In the end you should get something like

    (i think the image fill be fuxxored because the font isn’t monospaced…)

    Hermit’s advice should be considered. Using a more complex data structure could allow you to create multi-layered maps, switches and all sort of cool stuff. But it involves more work and could be overkill for some simple games.

  6. “lamppost nothing nothing nothing lamppost nothing nothing”… ;)
    My maps are very most likely to be very, very simple, and I feel that this is enuf good for testing. For now.

    P.S. I guess you don’t like old skool Rogue games then? :)

  7. “1000100100002000000000100001” sounds familiar to me. I went nuts decoding my tile layer data for their meaning by hand. So I implemented a XML solution. Additional work but accelerated dev and debug.

    I don’t know how you use your digits, no critique here. I just wanted to share my own hassle :)

Comments are closed.