Announcing Cocograph, a cocos2d tile map editor

This is still very alpha, but I wanted to get a release out for pyweek for people to use if they're interested. Cocograph is a tile map editor for cocos2d that uses kytten for the gui. Cocograph includes pencil, eraser, zoom, and move tools and can create new maps and tilesets without writing any xml. Ctrl clicking on a tile or cell will allow you to edit, add or delete the properties and these changes will be saved back to the orginal tileset when you okay them for tiles and will not be saved until you save the map for cells.

download includes cocos 0.3, and kytten, also a version with pyglet so you don't need to install anything else. map examples from cocos and threads of fate are included (and include your license, Richard :) )
http://code.google.com/p/devdev-python/downloads/list

screenshots and documentation here:
http://code.google.com/p/devdev-python/wiki/Cocograph

There's still a number of bugs and a few planned features that are not implemented yet.

-Currently clicking outside of the map when you create a new one will mess up the event handling for on_drag (I think..) which affects the tools, but this doesn't happen when opening a map for some reason...

-Saving a map will change all property types to unicode and change any requires filenames to absolute paths in the xml. I believe these are both issues with the tiles library and reported a bug about the property types.

-I tried using the latest revision of cocos tonight but it gave me a batchnode error about too many arguments for set_child or something so I just included cocos 0.3

Features planned for the next release:
-flood fill
-layers
-drag selection clone tool to easily clone large tile patterns
-possibly loading maps as brushes, but I think clone might be enough
-possibly creating tilesets out of an imageatlas instead of a directory of images

If anybody uses this and/or has feedback or suggestions please let me know! This is my first cocos, pyglet, and kytten project :)

Devon

p.s. Thanks to Richard and Lynx for the cocos tiles and kytten gui libraries that got me excited to spend way too many late nights working on this!

(log in to comment)

Comments

look very good.. your hard work is quite clearly visible in the way the editor looks.
Great work..
fixed the example map dungeon-level-1.xml to get rid of the absolute path. This is definitely a problem as saving a map will add an absolute path to the xml and other users will not be able to load the map. For now you will have to manually change in any maps you create to I believe this is a problem with cocos but I'll see if I can override the save function in cocos before sunday.
should read, manually change requires file="c:\map_path\tileset_path\" to requires file="tileset_path\" in the map xml
Bugfix release that should fix most issues.  No more filename mangling on map and tileset saves, but make sure tilesets are in the same directory as the map (easiest) OR that the directories are in the pyglet.resource.path.

http://devdev-python.googlecode.com/files/cocograph0.1.1.zip
(I changed my mind about the versioning pattern)
Great stuff!
argh, looks like there was still a bug for new maps in that map height and width were reversed (note to self: never test only square maps).

http://devdev-python.googlecode.com/files/cocograph0.1.2.zip