Old School Library OSLib Sprites Lib PSP: Difference between revisions
From GameBrew
More actions
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
| source = https://psp.brewology.com/downloads/download.php?id=6549&mcid=1 | | source = https://psp.brewology.com/downloads/download.php?id=6549&mcid=1 | ||
}} | }} | ||
OSLib is a C library made by Brunni that greatly simplifies coding games and apps on the PSP. It took second place in the Neo Spring Compo 2006. This library builds on top of OSLib to make animated sprites as easy as everything else in OSLib. | OSLib is a C library made by Brunni that greatly simplifies coding games and apps on the PSP. It took second place in the Neo Spring Compo 2006. This library builds on top of OSLib to make animated sprites as easy as everything else in OSLib. | ||
| Line 16: | Line 15: | ||
This is an entry from the Neo Spring Coding Compo 2007 (PSP Applications, 2nd place). | This is an entry from the Neo Spring Coding Compo 2007 (PSP Applications, 2nd place). | ||
Features | ==Features== | ||
* Create an animated sprite with only an image, height, and width. | |||
* Animation plays and loops automatically. | |||
* Control the animation framerate. | |||
* Functions to play and stop animation. | |||
* Ability to reverse animation. | |||
* Animation can be flipped vertically or horizontally. | |||
* Set start and end frames of animation. | |||
* Jump to a specific frame of the animation. | |||
* Create multiple sprites from one sprite sheet. | |||
* Create different sized sprites from one sprite sheet. | |||
==Installation== | ==Installation== | ||
| Line 43: | Line 42: | ||
Run the following commands: | Run the following commands: | ||
* <code>convert +adjoin -coalesce animated.gif frame%02d.gif<code> | * <code>convert +adjoin -coalesce animated.gif frame%02d.gif</code> | ||
* <code>montage frame0[0-9].gif -tile x1 -geometry +0+0 tile.g.if</code> | * <code>montage frame0[0-9].gif -tile x1 -geometry +0+0 tile.g.if</code> | ||