Skippy's libraries

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Skippy's libraries

Post by skippy911 »

Instead of keep making a new topic I will post all my new little libs here. Today I present: TIME.

Ok so it isn't perfect, cant get the days to calculate correctly, but it should be enough to get us started:

Another useful one is colors. Basically instead of figuring out which color to pick for you text you can just include colors.h and say:

pgPrint(1,7,red,"I am RED");

There is also Japanese which is a japanese fonts library representing all of the hiragana and katakana letters.

Lastly there is the controller library which allows you to control almost all of the psp buttons.

anyways enjoy.

http://rapidshare.de/files/1729767/psplib.zip.html
Last edited by skippy911 on Fri May 13, 2005 2:38 pm, edited 2 times in total.
User avatar
sq377
Posts: 87
Joined: Mon Apr 11, 2005 3:30 am

Post by sq377 »

Excelent! I was planning on making some sort of alarm program. My school has different hours on different days (we have homeroom on tues and thurs) so i wanted to write a program for when im out to lunch tell me how much time i have left.

(japanese psp 1.0 on the way still :D)
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

Yay home button added to the controller code:

http://rapidshare.de/files/1770320/cont ... e.rar.html
Guest

Post by Guest »

sq377 wrote:Excelent! I was planning on making some sort of alarm program. My school has different hours on different days (we have homeroom on tues and thurs) so i wanted to write a program for when im out to lunch tell me how much time i have left.

(japanese psp 1.0 on the way still :D)
Aren't watches better suited for that task ?
subbie
Posts: 122
Joined: Thu May 05, 2005 4:14 am

Post by subbie »

skippy911,

You have any luck with getting the analog working? Every time I try it I get nothing.
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

nothing as of yet sorry
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

Another quick point. If you use my libs please post any modifications you have done to the source. I know for a fact the psp cal .1 uses the libs. It would be a great help to the dev community if new information is made available to everyone :)
Energy
Posts: 133
Joined: Sat Mar 26, 2005 4:13 pm
Location: uk/beds/flitwick
Contact:

Post by Energy »

Hey skippy
could u be so kind to throw up the libs again. Rapid share seems to of deleted the file. Sad as it seems I've just managed to start coding and I got text displaying, seem to be having issues clearing the screen, but apart from that all is good.

Would love help with the controller as I hope to have a go and make a very simple pong game tonight! :D
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

Psphacker and some other sites have them mirrored so try there :)
Energy
Posts: 133
Joined: Sat Mar 26, 2005 4:13 pm
Location: uk/beds/flitwick
Contact:

Post by Energy »

skippy911 wrote:Psphacker and some other sites have them mirrored so try there :)
thanks man - kinda avoid psphacker for dev stuff - but will look for them. Next challenge (for me at least) is to load a BMP. I know NEM's helloworld code does it, so I'll have a go at that aswell. >_<

Wish I was half as good as you guys! :D
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

Energy wrote:Next challenge (for me at least) is to load a BMP. I know NEM's helloworld code does it, so I'll have a go at that aswell.
The code doesn't load BMPs, they are integrated as a C array. I've enhanced this concept by an alpha flag, because with unsigned short you have 16 bits, but you need only 15 bits for the colors, so if bit 16 is set, the pixel is transparent, which are useful, if you want to use it in games. And I've written a small Java program, which converts GIF, JPG, PNG and all other formats, which the Java ImageIO-library recognizes to this C format. You can download it and a small game, which demonstrates the usage.
Energy
Posts: 133
Joined: Sat Mar 26, 2005 4:13 pm
Location: uk/beds/flitwick
Contact:

Post by Energy »

Shine wrote:
Energy wrote:Next challenge (for me at least) is to load a BMP. I know NEM's helloworld code does it, so I'll have a go at that aswell.
The code doesn't load BMPs, they are integrated as a C array. I've enhanced this concept by an alpha flag, because with unsigned short you have 16 bits, but you need only 15 bits for the colors, so if bit 16 is set, the pixel is transparent, which are useful, if you want to use it in games. And I've written a small Java program, which converts GIF, JPG, PNG and all other formats, which the Java ImageIO-library recognizes to this C format. You can download it and a small game, which demonstrates the usage.
Thanks Shine, I was looking at your snake clone. The code could be very useful. Can't wait to get home and start playing now. I was wondering on the transparent issue.

I'll work on this pong clone tonight (simple game), then I might make a simple Chip8 VM (get used to using files), then a little homebrew game (testing what I've learnt!).

I'm not going to contenplait sound just yet -- tho I've noticed one or two programs using wav files.
Post Reply