PSP Hacks - Forums

Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2007, 10:54 PM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Lop-sided Testicule Admin
PSP Titan
 

Join Date: Dec 2005
Posts: 9,406
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/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
Reply With Quote
  #2  
Old 09-18-2008, 03:44 AM
undefeated undefeated is offline
PSP Ninja
 

Join Date: Nov 2007
Location: Brooklyn, NY
Posts: 685
undefeated is on a distinguished road
Default

Links don't work....
__________________
Upcoming prospect.
"From PSP Hacks!"
www.myspace.com/e_n_j
Reply With Quote
  #3  
Old 09-18-2008, 06:27 PM
thehman thehman is offline
PSP Veteran
 

Join Date: Mar 2007
Posts: 1,084
thehman Has a Beginner Reputation
Default

Quote:
Originally Posted by undefeated View Post
Links don't work....
Every thread with internal links needs to be updated since the forum change,
__________________

ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Reply With Quote
  #4  
Old 09-21-2008, 06:22 AM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

I'll fix the first post when I get a moment
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #5  
Old 09-21-2008, 08:22 AM
thehman thehman is offline
PSP Veteran
 

Join Date: Mar 2007
Posts: 1,084
thehman Has a Beginner Reputation
Default

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™
Reply With Quote
  #6  
Old 09-24-2008, 09:51 PM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Programmer
PSP Monk
 

Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,741
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

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
__________________

-Rock Station-
PSN: Xsjado7

Reply With Quote
  #7  
Old 12-03-2008, 03:35 PM
zanif zanif is offline
PSP Newbie
 

Join Date: Jun 2008
Posts: 14
zanif Has a Beginner Reputation
Default

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?
Reply With Quote
  #8  
Old 12-03-2008, 04:06 PM
pirata nervo pirata nervo is offline
Moderator
PSP Titan
 

Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,556
pirata nervo is on a distinguished road
Default

You don't need those in your makefile.
__________________

Reply With Quote
  #9  
Old 12-03-2008, 04:27 PM
Gblo6689 Gblo6689 is offline
PSP Newbie
 

Join Date: Nov 2008
Location: Tampa, Florida, USA
Posts: 21
Gblo6689 Has a Beginner Reputation
Default Compiler issue?

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
Reply With Quote
  #10  
Old 12-03-2008, 04:31 PM
zanif zanif is offline
PSP Newbie
 

Join Date: Jun 2008
Posts: 14
zanif Has a Beginner Reputation
Default

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
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©