New C++ tweener library

Started by
-1 comments, last by j-jorge 12 years, 7 months ago
Hi,

I would like to present a module of libclaw called claw::tween, whose goal is to bring tweeners to the C++ in a clear, efficient and extensible implementation.

Long story short, this module allows to interpolate the intermediate values between two given values in a time interval. This practice is well used in animation and is widely popular in the context of ActionScript/Flash games and websites.

Here is an example video taken from Plee the Bear showing an animation made with the tweener module of libclaw. When the rabbit is hurt is this video, the movement of his various parts is the result of several tweeners. Those tweeners compute the position and the angle of each part.

This module is inspired from the ActionScript library named tweener and from its C++ port named cpptweener. Claw::tween is different from these implementation on several criteria:
  • Interpolation is done on the value of a given variable or using an user-provided callback function,
  • The interpolated values are computed using a predefined easing function or any user-provided function respecting the contract,
  • Several tweeners can easily be executed simultaneously or in a row,
  • The library has a modern C++ design.

Libclaw is available under the LGPL license. To try it by yourself, just download libclaw from its project page on SourceForge.net. There is also a documentation of the tweener module with various code examples.

C++ developper with some 2D art skills
http://www.stuff-o-matic.com

This topic is closed to new replies.

Advertisement