Posted May 13, 2007 at 12:51AM by Victor B. Listed in: Homebrew Applications, Homebrew Development Tags: Lua, Grimfate126, daaa57150
Ó

One of Grimfate126's test pngs. - Image 1If you're a coder, then you've probably spent some time tinkering with Daaa57150's AnimLib modifications in an attempt to animate sprites for your own purposes. Why not go back to the original, however, with this new update for Lua Animation Lib by Grimfate126?

Grimfate126 has released Lua Animation Lib version 4.5 (AnimLib v4.5), which fixes some persistent problems in the previous version. There are also a couple of changes that will definitely help coders out and speed up their work. Let's see what Grimfate126 himself has to say about the release via his changelog:

Fixed:

  • Found a major flaw in sprite sheet animation blitting. The problem was, the lib calculated the width to height ratio in the blit function, when it should have been done in the loading function. It works both ways, but doing it the the blitting function meant that the lib was dividing (with is a costly calculation) every frame unnecessarily. I fixed it so that it calculates only once, in the loading function. This should provide a MASSIVE speed-up when using sprite sheets.
Changed:
  • Ive gotten rid of advanceBlit, since it was just taking up stack memory, and added the loop functionality in the normal blit function. The new blit functions is like this:
    • Code: function ANIM:blit(x, y, delay, numLoops)
          so just add the number of loops at the end. If the space is left blank, then the animation will continue
          forever.
  • The anim loading function has also been modified. Just the order of arguments, since the order in v4 was rather peculiar. The loading function is now:
    • Code: function ANIM.new(header, extension, frames, where)
Responses on our forums seem to be quite positive so give it a try, alright? Enjoy!

Download: AnimLib v4.5
Visit: PSP Development Forums


Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


1 Comments


Sort by:
   by Advertising -
   by wow (Unregistered) - 2007-05-13
 » tight

COOL



Featured Content
QJ.NET Blog Network RSS Feeds
MyQJ Feed / PDA
MyQJ RSS / PDA
Blog of Blogs Feed / PDA
QJ.NET RSS / PDA
Gaming Consoles Feed / PDA
Nintendo DS RSS / PDA
PlayStation 3 RSS / PDA
PSP Updates RSS / PDA
Wii RSS / PDA
Xbox 360 RSS / PDA
PC Gaming Feed / PDA
Age of Conan RSS / PDA
Games for Windows RSS / PDA
MMORPG RSS / PDA
Tabula Rasa RSS / PDA
World of Warcraft RSS / PDA
Science Feed / PDA
Science RSS / PDA
Technology Feed / PDA
Apple RSS / PDA
Gadgets RSS / PDA
iPhone RSS / PDA
Mobile RSS / PDA
Photography RSS / PDA
Tech RSS / PDA
Add QJ.NET
Add to My Yahoo!
Google Reader Subscribe with Bloglines
Add  to your Kinja digest Subscribe in NewsGator Online
Subscribe with Pluck RSS reader Add 'www.qj.net' to Newsburst from CNET News.com
Subscribe with SearchFox RSS del.icio.us www.qj.net
Add to Technorati Favorite! Add to My AOL
furl! it Stumble for Treehugger!

 Username: 
 Password:
Forgot password
New user registration



Poll
Which is the greatest handheld of all time?
Categories

Emulators
Titles
Archives