Developing an editor (Part 1)

While Waaghman is working very hard on the Little Racers patches and updates (yes, he’s working full time on the online mode), I’m coding some tools and editors four our next games.

I already did some tools for another game that we started (and it probably won’t be finished) and it served me as a learning experience. One of the most annoying things of it was the different kind of things formed that part of a level. We had tiles, but also random geometry, player locations and some other things. The code was becoming a real mess that growed on each new iteration.

This time I’m making a generic level editor, and trying to keep the code clean. The idea is simple: a level has a size, and it can contain layers (just like in photoshop). So you can have a layer which represents a tilemap, and another one that shows the player positions, and all of them are independent.

Right now, the basic framework is done, and I’ve got some layers working. Of course, it has been designed to load and save the levels to XML. Most of the layers that are missing are just modifications of the ones I made, so it shouldn’t take long (but if I’ve learned something through the years is that everything takes more time than expected).

MilkEditor Work in Progress

MilkEditor Work in Progress

I want the editor to be easily customizable, so it can load external layer-types through dlls, so we’ll be able to use the editor on different games without compiling the full thing. It wasn’t a high priority feature, but in C# it was done in less than half an hour.

 I have to say that I haven’t had much problems while developing in Windows Forms. Usually, doing this kind of app is something boring, and you end up with lots of little hacks to make the layouts work as expected. But this time, there are tiny ugly things here and there, but everything is much more clean than usual, and I’m pretty proud of it. I’m actually enjoying developing this tool.

When I finish this, there are other more ‘in-depth’ tools that I have to make. But those are really small apps to simplify some specific tasks. I’ll post about them when I have some new material to show. See you later!

Tags: ,

Soy1Bonus April 21st, 2009 Development

3 Comments to Developing an editor (Part 1)

  • Soy1Bonus says:

    In fact that’s what I use at work to do level prototyping :)

    But I wanted something that could do more than tiles, and we wanted to be able to easily modify the xml input/output.

    But yeah, TileStudio does great what its intended to do!

  • I just use Tiled. I’m working on a Content Pipeline for it at the moment so I can use it pretty much exclusively. It’s really easy to use meta values on tiles to add event identifiers that the engine can check for. I honestly can’t find anything I’d want to do in a game that can’t be done easily with Tiled. I can even use Object Groups to place NPCs on the maps, which is really handy for being able to visually tell exactly where their start point is instead of having to make a bunch of calculations so you don’t place them in a wall or something.

  • Avatar Ninja Box Art

    MotorHEAT Box Art

    Little Racers Box Art

    Little Racers Box Art

    • Retro game of the week: Duke Nukem 1
      http://www.youtube.com/watch?v=c4a3_wazRPA
      2010/09/06 06:59
    • For those who didn't notice, our games Wool and MotorHEAT are finalists in 3 categories at the Hó Play International Videogame Festival!
      2010/09/02 08:27
    • Check out this nice review of MotorHEAT!
      http://fb.me/FdZoypY2
      2010/09/02 08:34
    • Our games Wool and MotorHEAT are nominees at the Hó Play International Festival!
      http://twtn.gs/bkr
      2010/08/31 09:01
    • Retro Game of the Week: Jumping Flash! by Exact and Ultra (PlayStation)
      http://www.youtube.com/watch?v=N2hukvZ0zBw
      2010/08/30 12:35
    • Retro Game of the Week: Transport Tycoon Deluxe
      http://www.youtube.com/watch?v=HluOjdtxmNU
      2010/08/23 06:05
    • Congratulations to @brenes, he's the lucky winner of the 1600MP code!
      2010/08/21 12:11
    • Check out Avatar Ninja, a highly rated Indie game for Xbox 360! - RT & Follow for a chance to win 1600MP!
      http://bit.ly/acaB7W
      2010/08/20 20:40
    • Check out Avatar Ninja, a highly rated Indie game for Xbox 360! RT & Follow for a chance to win 1600MP!
      http://bit.ly/acaB7W
      2010/08/20 13:04
    • Retro game of the week: Rise of the Triad, a First Person Shooter by Apogee
      http://www.youtube.com/watch?v=eMf4KzlbzI8
      2010/08/20 06:51