Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Old School Library OSLib Sprites Lib PSP: Difference between revisions

From GameBrew
No edit summary
No edit summary
Line 3: Line 3:
| image = https://dlhb.gamebrew.org/psphomebrew/OldSchoolLibraryOSLibSpritesLib.jpg|250px
| image = https://dlhb.gamebrew.org/psphomebrew/OldSchoolLibraryOSLibSpritesLib.jpg|250px
| type = Game engine
| type = Game engine
| version = initial
| version = initial (20 Mar 2007)
| licence = Mixed
| licence = Mixed
| author = phosphorous
| author = phosphorous
| website = https://psp.brewology.com/downloads/download.php?id=6549&mcid=1
| website = http://www.dcemu.co.uk/vbulletin/showthread.php?t=56726
| download = https://dlhb.gamebrew.org/psphomebrew/OldSchoolLibraryOSLibSpritesLib.rar
| download = https://dlhb.gamebrew.org/psphomebrew/OldSchoolLibraryOSLibSpritesLib.rar
| source = https://psp.brewology.com/downloads/download.php?id=6549&mcid=1
| source = http://www.dcemu.co.uk/vbulletin/showthread.php?t=56726
}}
}}


Line 44: Line 44:
* <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>
 
** The first command saves the individual frames of your animated gif.
The first command saves the individual frames of your animated gif.
** The second command puts the frames back together as a spritesheet.
 
The second command puts the frames back together as a spritesheet.


See the [http://www.imagemagick.org/Usage/montage official guide] for more info.
See the [http://www.imagemagick.org/Usage/montage official guide] for more info.

Revision as of 00:33, 7 August 2021

Old School Library OSLib Sprites Lib
OldSchoolLibraryOSLibSpritesLib.jpg
General
Author(s)phosphorous
TypeGame engine
Versioninitial (20 Mar 2007)
LicenceMixed
Links
Download
Website
Source
Advertisements

<htmlet>adsense</htmlet>


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.

This is an entry from the Neo Spring Coding Compo 2007 (PSP Applications, 2nd place).

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

For Firmware 1.5:

Copy the two directories in the 1.5 directory to /PSP/GAME/.

For Firmware 1.0:

Copy the directory in the 1.0 directory to /PSP/GAME/. Copy all the image assets under 1.5 to the directory you just move.

User guide

Creating spritesheets from animated GIFs:

  • Download ImageMagick.
  • Install ImageMagick and open the command line tool.

Run the following commands:

  • convert +adjoin -coalesce animated.gif frame%02d.gif
  • montage frame0[0-9].gif -tile x1 -geometry +0+0 tile.g.if
    • The first command saves the individual frames of your animated gif.
    • The second command puts the frames back together as a spritesheet.

See the official guide for more info.

Credits

Brunni for OSLib.

Ren "Foxx" Ramos for Sonic Battle rips.

Anonymous for Metal Slug rips.

Lumo for alpha sprite. http://www.go2lumo.com/?action=fonts

External links

Advertising: