![]() |
|
|
|
#1
|
||||
|
||||
|
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/f141...buntu-t189682/ 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 http://www.psp-hacks.com/forums/f141...orial-t152466/ Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/f141...-your-t153653/ Want to learn how to program C++ ? Check out that tutorial here http://www.psp-hacks.com/forums/f124...ram-c-t122337/ Last edited by Oyabun; 06-23-2009 at 04:36 PM. Reason: Updated broken links |
|
#2
|
|||
|
|||
|
Links don't work....
|
|
#3
|
|||
|
|||
|
Every thread with internal links needs to be updated since the forum change,
__________________
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™ |
|
#4
|
||||
|
||||
|
I'll fix the first post when I get a moment
__________________
|
|
#5
|
|||
|
|||
|
The links in "The PSP Programming and Development Mega Thread" also needs fixing and the link to it in your sig, lol
Most of the threads that it linked to don't seem to exist any more anyway,
__________________
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™ |
|
#6
|
||||
|
||||
|
I've updated the first post and now all the links work except for How to create full screen size images together to make large animations. I havent come across the post yet
Time to spend an eternity fixing the Mega Thread links
__________________
|
|
#7
|
|||
|
|||
|
i just started learning c++ so im a little confused about adding libraries to the makefile. If i was using the libraries "ctime" and "cstdlib" how would i put that into the makefile?
|
|
#8
|
|||
|
|||
|
You don't need those in your makefile.
|
|
#9
|
|||
|
|||
|
So I went about making a "test game", basically expanding on what psp_donkey's source code does.
My problem is that for some unknown reason when my eboot is run, i get a black screen with the amber light telling me that the psp is reading my memstick and a few seconds later the psp shuts down. psp_donkey's eboot runs perfectly well, however mine, which is pretty much copy pasted at this point (checking to make sure of no typos), won't run. Any ideas? PS. I also recompiled psp_donkey's source code and now I'm getting the same problem with his, the splash screen appears, and then I get a black screen then the psp shuts off |
|
#10
|
|||
|
|||
|
hhmm my compiler is giving me these errors
main.c(2) :17: error: ctime: No such file or directory main.c(3) :19: error: cstdlib: No such file or directory what am i doing wrong? i just have #include <ctime> #include <cstdlib> at the beginning of the code |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|