sábado, 30 de marzo de 2013

Automatic resources processing with caching in SBT

I just wrote an article on my game development blog titled Automatic texture packaging with Libgdx's TexturePacker. It talks about an SBT plugin I just published that does some automatic process and packaging of resources during the 'package' task.

I took advantage of SBT’s built in cache system. It’s possible to associate a task with a bunch of input files and cache the modification date. Same applies to the output files. That way the task only runs if something changed, otherwise it just does a no-op. This is extremely important when that task might take a long time.

I'm sure some people will find the source code useful to do something of their own and improve their sbt-fu. You can check it out here.

Please let me know what you think!