Pyglet Level Editor


Hey Everyone,

Sorry I’ve been away for a bit, work and trips and writing for Python Magazine had me pretty busy and I wasn’t able to reply to everyone’s comments on the simple Python game engine. I really do appreciate the comments though so please keep them coming.

I have been thinking about the simple game engine quite a bit though and wondering where to start on it all, and whether or not it makes sense to start on it at all! After some thinking I decided that what I would want most (for a variety of reasons) would be an easy to use level editor. So with a day off from work and life yesterday I started to do some hacking with PyGTK and pyglet to see if I couldn’t get a simple level editor going.

The results are still quite crude, but the basics are starting to get in there:

Python Game pyglet editor

As you can see it’s a PyGTK application with an OpenGL window that displays pyglet sprites. There is a properties list, where you can add and edit properties or the sprite. There is also a “content” list that displays all of the graphics in your project’s “content” directory. Then you can add any of those images to your level. You can also select sprites and move them around, or edit their properties (notice the monster with the yellow border around it?).

The idea is that eventually this will save the information out into a human readable file type (yaml, xml, whatever) that games (your game?) will then read in for their levels. The properties will be saved with each sprite and then applied when you load the level. That way you can add specific properties to specific sprites.

This is still very much a work in progress, but when it gets a little bit more stable and if people are interested I think I’ll create a project on sourceforge or google code so the other people can start working with it or hacking it.

So…ideas? Comments? Thoughts?

selsine

del.icio.us del.icio.us

5 Responses to “Pyglet Level Editor”

  1. Gregg
    Says:

    That’s a good idea! I’ll wait for beta version!

  2. Arne Babenhauserheide
    Says:

    I’ll have a look, but the next two weeks will be busy…

  3. Gocho
    Says:

    It’s GameMaker in Python! :D
    http://en.wikipedia.org/wiki/Game_Maker

  4. selsine

    selsine
    Says:

    Hi Everyone,

    Thanks for the kind words.

    Gocho – While I don’t intend for this to be like Game Maker, in many respects I would like to incorporate many of the level editing tools and options that it uses.

  5. Markus
    Says:

    Hi, that’s exactly what I’m thinking about today. A Game Engine for 2d scrolling games like Jump&Run or 2d scrolling shooter, for example good old C64 or Amiga games like Uridium or R-Type, or 2d mace adventures.

    I’m also think about using Python. I’m not sure that I’m the right one to help you, but I’m interested in this, because I want to bring some good old Games to the 21st Century.

    I don’t want to clone them, but I want to use the Idea.

Leave a Reply

 

Popular Posts