Posted Apr 18, 2007 at 01:58AM by Karl B. Listed in: Homebrew Development Tags: Lua, Grimfate126, daaa57150
Ó

Sony PSP - Image 1


You guys remember Grimfate126's Lua animation library, animLib? Daaa (daaa57150 on our forums) has released his own mod of Grimfate's original lib over on our PSP Development forums. First of all, both this mod and the original app lets homebrew devs create animations easily using spritesheets. Perfect for those who are just starting out on Lua coding.

Here are a few examples of what daaa has added/changed in this mod:
  • No more distinction between spritesheets and multiple images animations, except during creation of course. This allows you to have tables with a mix of the 2 kinds, and calling the exact same function on all items without caring anymore.
  • Loops limitation and speed are set during construction, and not parameterized during blitting. This can be altered with setter methods on the object. So there is no more advancedBlit().
  • Blit functions require a target, usually you'll do it on the 'screen' var but you may want to blit it on an image, so it's possible now.
  • I removed garbage collection from the library, you'll have to call it when appropriate. This is so it's not called multiple times in a freeing loop for example.
  • Images used in animations are buffered, so if you have many animations based on the same images, they won't be loaded as many times as you have animations, but will be shared amongst them. There are also some memory functions to allow you to prebuffer the images you'll need, and ask them to stay in memory even if no more animation uses them. This will allow you to create an animation based on them later, without loading. By default, they are shared but will be unloaded once no animation need them anymore.
  • Animations don't start automatically, you'll have to call the start method.
This is the first release. As such, there are still a few bugs here and there. To report them, discuss this release on our PSP Development forums by clicking on the "visit" link below. Also, don't forget to read the extensive readme included in the download. You'll get a lot of answers there as it contains explanations for pretty much everything in this app.



Daaa's just released a new version of his animLib mod on our forums. This version, 0.2, now includes two more helpful functions: width() and height(). According to daaa, these new functions will help you "smoothly replace your images in your code." You can download v0.2 below.

Download: Daaa's animLib v4 mod v0.2
Download: Daaa's animLib v4 mod v0.1
Visit: PSP Development forums


Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


2 Comments


Sort by:
   by Advertising -
   by Hopper (Unregistered) - 2007-04-17
 » Hey

Excellent stuff.
I loved grimfate's animlib, it helps so much in coding.
Hope this improves.

   by daaa57150 - 2007-04-18
 » v0.2

I already made another version with 2 more functions (width and height) to help someone:
http://www.box.net/shared/3ajbmbg0ua



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!

 Username: 
 Password:
Forgot password
New user registration



Poll
Which is the greatest handheld of all time?
Categories

Emulators
Titles
Archives