SDLx Betweener:Perl补间库 源码
名称 SDLx :: Betweener-SDL Perl XS补间动画库 概要 # simple linear tween use SDLx::Betweener; # if you are writting a Perl SDL program, you probably have an app object $sdlx_app = SDLx::App->new(...); # tweener is the tween factory, gets ticks from app $tweener = SDLx::Betweener->new(app => $sdlx_app); $xy = [0, 0]; # tween the position stored in this array ref # animate the position $xy for 1 second from
用户评论