Monday, 2 April 2012

Tweening


After quite an illness which was synchronised with two of my children being ill (by ill I mean vomiting an awful lot) I have returned to coding.

Continuing my my adventures with libgdx and game coding I was working on the UI and found that I needed tween some features. I looked at the universal tweening engine but thought to myself work that is a lot to write just to tween between values.

In a more dynamic language such as coffeescript tweening is very simple. This is because you can easily access variables as they are all public and you can do a dictionary style look up on them. Tweening, therefore, doesn't require any extra legwork when coding in such a language.

Once I thought for a few minutes on how I could implement tweening in Java I realised that the universal tween engine had made some good decisions. Having the accessors classes is pretty much a requirement and  I was instantly happy to use it. And once you have gone through the legwork of creating the accessor class it is very nice to use.

No comments:

Post a Comment