Monday, April 22, 2013

On to something different...Timers

Having spent dozens of hours programming in Codea I 'm getting the handle on how versatile tables in LUA are.

They are fast flexible and best of all can be created on the fly. I have to create a timer class to assist with animating texture mapped quads. The animation system is in and based on the animate class and I need to merge it with an timer class found here: http://twolivesleft.com/Codea/Talk/discussion/2585/timer.

animationName=Animation(id,{vec2(x,y),id,{vec2(x,y)...,duration})

I will need to register the newly created animation with the animHolder {} -- list
after the animation is created then send the animation name to AnimHolder

No comments:

Post a Comment