View Single Post
 
Old 01-17-2007, 10:54 PM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Squirrel Admin
PSP Titan
 
Join Date: Mar 2006
Posts: 9,089
PSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond repute
Default

Alright, so you downloaded and installed your PSP Dev environment that I posted in the other sticky here and you have also checked out and compiled some of the samples in your PSP SDK sample folder. Now you are ready to move onto making your own homebrew.

There is an unofficial library for the PSP called OSlib.
(You won't find it at the PSP repository via Subversion or included in any library installer. What this library does is make 2D game making very easy for everyone.)
This is an easily extensible library for doing nice 2D games, apps & demos. It brings you the power of the PSP GPU without having to learn its subtilities.

I have uploaded it for everyone to install in their current PSP Win32 environment setup. I have already precompiled all the OSlib's objects and files and have included all the header files in the link as well. I have also modified the install.bat batch file so that it will install under your new PSP Win32 environment. It was previously only installable under cygwin.
All you have to do is download the file, place the folder in your C:\pspdev folder, go into the install folder and double click the install.bat and you are done.
All the precompiled files will automatically install in the right places including all the header files. I have also included 3 samples in the samples folder with all of the sources for you all to use and check out.

Don't have windows and want to install this OSlib library under Ubuntu Linux? Not a problem. The user _prototype_ has found a nice way to install this library for Ubuntu. Check out his thread and download link here:

http://www.psp-hacks.com/forums/viewtopic.php?id=110745

So what is the big deal about this library? What is so special about it?
Well for starters, it is a complete 2D game engine already programmed for you. You really don't need to know how to program in any language to create your very own 2D homebrew game with this. (Knowing C or C++ would help). A lot of the coding that a 2D game would take has already been done for you in simple one line functions for you to implement.


Like I said, I have included 3 samples for you to all take a look at.
The first sample, called logo, shows you how to flip and rotate a full background picture with simple animation.
The second sample, called sprite, shows you how to load a background image and a sprite image to the screen. It then also shows you how to move the sprite (Mickey Mouse) on the screen, stretch the sprite, rotate the sprite, enlarge the sprite and flip the sprite.
The third sample, called maps, shows you how to load over 8 maps on top of each other to give a great 3D view and atmosphere to your game. It also shows how when you move the D-Pad left or right, the maps move along with you. It also loads background music and sound effects for your game.


Here's the download link:
http://www.mediafire.com/?63q5y0tdwsj

More Info
Explanation of Predefined functions
Screenshot of 3rd sample (maps)
Lesson #1 on using OSLib to make homebrew
Lesson #2 on using the PSP's controller inputs
Lesson #3 on Image loading and Sprite movement
Lesson #4 on Sprite Animations
Lesson #5 on creating music and sound effects for your program
Lesson #6 on creating Maps and basic border collision for your game
How to create SND0.AT3 music file for your homebrew in the GAME folder
How to create full screen size images together to make large animations
Here is a good detailed collision function in OSlib you can use to detect collisions between 2 or more images in your program.
How to install OSlib under Ununtu Linux.
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here www.psp-hacks.com/forums/viewtopic.php?id=65403
Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/view...693884#p693884
Want to learn how to program C++ ? Check out that tutorial here www.psp-hacks.com/forums/viewtopic.php?id=28694

Last edited by Blade_punk; 09-24-2008 at 09:50 PM.
Reply With Quote