Posted Dec 23, 2006 at 08:58AM by Alaric S. Listed in: PSP Tags: Lua, Christmas, Grimfate126
Ó

Lua Animation Lib


It's two nights before Christmas and all through the house not a homebrew developer was stirring except Grimfate126. The generous guy has released the fourth installment of his Lua Animation Lib as his present for all Lua developers. This app helps users understand the ins and outs of Lua animations for the PSP.

According to Grimfate126 Lua Animation Lib v4 not only supports ALL spite sheets, he swears "Loading sprite sheets with this version is SOOOOOOOOO easy. I cannot emphasize this enough. Actually i can. ITS REALLLLY EASY!"

Aside from being easy it also has the following new functions:
  • function SS.new(header, extension, nWidth, nHeight, where) - loads a new animation, REALLY EASY.
  • function SS:blit(x, y, delay) - blits a current sprite sheet. EVEN EASIER.
  • function SS:advancedBlit(x, y, delay, numLoops) - same as SS:blit() but adds a loop functionality
  • function SS:pause() - pauses the sprite sheet
  • function SS:resume() - resumes the sprite sheet
  • function SS:reset() - resets the sprite sheet
  • function SS:free() - frees the sprite sheet from memory
  • function SS:resetLoop() - resets loop number, you should call this every time after you use the SS:advancedBLit() function
  • function SS:getTime() - returns the current timer time
  • function SS:getRow() - returns the current row of the animation (not really needed)
  • function SS:getColumn() - returns the current column of the animation (not really needed)
  • function SS:getLoops() - returns the number of lops the animation has made. (only if you're using the advancedBLit function)
Here's a couple of important notes from the enthusiastic developer. When loading a sprite sheet, you have to call it blah = SS.new(whatever) and not blah = ANIM.new(whatever).

He recommends reading the tutorial in the readme file before using this lib. We couldn't have said it better.

Download: [Lua Animation Lib v4]
Discuss: [Forum Release Thread]


Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


5 Comments


Sort by:
   by Dr4iNLiF3 (Unregistered) - 2006-12-23
 » WOW

ohoho merry christmas...

NICE VERY VERY NICE :)

   by youresam (Unregistered) - 2006-12-23
 » again...

this is REALLY complicated and unnessisary.

do it like this:

myanim = Anim.load("frame",5,".png")
while true do
screen:clear()
myanim:blit(100,100)
screen.flip()
end

and you could have myanim:time() and myanim:reset() as usual, but seriously everything else is just more complications. this library is for people new at lua and dont know how to do animations on their own, so make it simple ;)


   Re: Advertising -


   Re: youresam - 2006-12-23
 » whoops...

I forgot delay....
myanim + Anim.load("frame",5,".png",100)

so that would be the begining of the file name, number of files, the extension, and the delay.
simple enough, eh?

   Re: dude_joe (Unregistered) - 2006-12-23
 » ??

are you on crack? thats exactly what it does. lol , you didnt even look at the code. smart.
   by Arthas (Unregistered) - 2006-12-23
 » ANIM vs SS

You can always do a #define ANIM SS :)



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
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!