Tuesday, November 26, 2013

2D Tiles Games - More Algorithms to Slice Tilesets

Prior to heading out to go fishing, I came across this nice post on slicing a tileset into rows and columns.  The example uses Surface.subsurface, which I haven't been using effectively.

The author wrote a more elaborate tutorial here.

The author of bitcraft-PyTMX used the code below to handle tilesets.

I plan to review the code snippets above in more detail after the fishing trip.

No comments:

Post a Comment