Lua Animation Lib v4 for PSP |
Ó
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)
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]
Contact Us:
The QJ.net Network |
|
| Site | Feed |
| QJ.NET | RSS |
| Nintendo DS | RSS |
| PlayStation 3 | RSS |
| PSP Updates | RSS |
| Wii | RSS |
| Xbox 360 | RSS |
| MMORPG | RSS |
| Personal Computer Games | RSS |
| iPhone - iPod Touch | RSS |
| QJ.NET Forums | RSS |
User Favorites - December
User Favorites - December
Categories
Archives
Accessories
Add-ons
Applications
Artwork
Batteries
Cheats
Deals
Emulators
Events
Featured Articles
Firmware
Flash Applications
Flash games
Game Demos
Games
Hacks & Exploits
Homebrew Applications
Homebrew Demos
Homebrew Development
Homebrew Emulators
Homebrew Games
Homebrew Themes
How-To
Humor
Imports
Interviews
Magazines
Mods
MY QJ
News
Off Topic
On Shelves This Week
Opinions & Analysis
Podcasts
Previews
PSP Go
PSP Minis
PSP Slim & Lite
QJ How-To Series
QuickJump QuickGuide
QuickJump QuickPeek
Reviews
Rumors
Scans
Screenshots
Site News
Titles
UMD Movies
Videos
Weekend Warrior
Wi-Fi
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005

Comments [refresh]
ohoho merry christmas...
NICE VERY VERY NICE :)
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 ;)
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?
You can always do a #define ANIM SS :)
are you on crack? thats exactly what it does. lol , you didnt even look at the code. smart.