Skip to content

Instantly share code, notes, and snippets.

View chrx's full-sized avatar

Chris Page chrx

View GitHub Profile
@chrx
chrx / retinafy_tmx.py
Created November 28, 2011 05:26
Adjust a TMX map file created in Tiled for use with the retina display in Cocos2d
#!/usr/bin/env python
u"""
Upscales a Tiled TMX map for use with a retina display.
Fixes tile size, object position and size, image size.
Saves the retina file as filename-hd.tmx in the same folder as the source file.
"""