*UPDATED TO v0.2* Daaa’s animLib v4 mod v0.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
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