Announcing XTiled - XNA Library for Tiled (TMX) Map

A few moments ago I posted the first binary release of XTiled, making it officially ready for use!

XTiled is an XNA library reading and rendering TMX maps created in Tiled Map Editor.  The library supports orthogonal and isometric map formats as well as all TMX 0.8.1 map features and has runtime components for PC and Xbox 360.

There are a few TMX libraries available, so why create another?  The main reason is Nick Gravelyn of TiledLib (the library I did use) announced going forward the project won't provide the runtime components.  The XNA map loader project by Kevin Gadd doesn't use the XNA content pipeline features and loads the maps at runtime.  I wanted to have runtime components and use the content pipeline.

Since we were looking at starting a new project, there were a few things I wanted to change in TiledLib.  I didn't want object names to be required, since they are optional in the Tiled Map Editor, and I wanted access to all custom properties for all the supported types.  The big difference though is in my approach - I front load all the tile position calculations at build time and just use a lookup tables at runtime.  This hides a lot of the intricacies of the TMX map format from the game logic.

The work doesn't stop here though.  Tiled is close to a 0.9.0 release that will add support for object property sheets making it easier to put metadata into a map.  We also want to expand on the runtime features with more helper methods.  Our isometric support is possibly not as helpful as it could be; I've never made a game that used isometric perspective, so I'm only guessing at what I think would be desirable.

We've setup a discussion list at Google Groups, have documentation in the Wiki, and will be using the Issues section of BitBucket to track bugs and features.  If you use XTiled, let us know how it worked for you and if you release a game using it tell us that too, I've love to keep a page on the Wiki of games released using XTiled!

Posted By Mike On Sunday, September 16, 2012
Filed under xna xblig tiled | No Comments

Submit this story to DotNetKicks   

Leave a comment

All comments are moderated manually.

Your name:

Your email (not shown):
Will display your Gravatar image.

Your website (optional):

About Michael

Michael C. Neel, born 1976 in Houston, TX and now live in Knoxvile, TN. Software developer, currently .Net focused. Board member of ETNUG and organizes CodeStock, East Tennessee's annual developers conference. .Net speaker, a Microsoft ASP.NET MVP and ASPInsider. Co-Founder of FuncWorks, LLC and GameMarx.

Proud father of two amazing girls, Rachel and Hannah, and loving husband to Cicelie who inflates and pops his ego as necessary.

 Subscribe to |  Comments

Follow me on Twitter | Contact Me

Related Posts

Creating the Parallax and Scrolling Background

This article is cross-posted from  Draco Wing is a new XNA based game for the Xbox 360 I am working on, and I will be keeping a “diary” ... Read more

Anime (and Indie Game) Fans Give Back to Japan

On the afternoon of March 11 Japan was hit by a massive 9.0-magnitude earthquake which triggered a massive tsunami hitting just minutes after.  Over ... Read more

Is XNA good for Indie Games?

This post is cross posted from This morning I read a blog post from an Indie game developer on The Perils of XNA and the Death of an Indie.  ... Read more

Xbox Indies: Come Play With Us

When I last posted on Xbox Live Indie Games, things looked pretty dire.  In the weeks since, the #SaveXBLIG rally has been a success – we got Microsoft’s ... Read more

Microsoft Slowly Euthanizes Xbox Indie Games

The title may be overly dramatic, but make no mistake, Microsoft is quietly holding a pillow over Xbox Live Indie Games, hoping to smother the service ... Read more

XNA 3D Primer by Michael C. Neel

XNA 3D Primer by Michael C. Neel
Buy Now: [ Amazon ] [ Wrox ]



ASPInsiders Member

ETNUG Member