Skippy's libraries
Skippy's libraries
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
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.
Yay home button added to the controller code:
http://rapidshare.de/files/1770320/cont ... e.rar.html
http://rapidshare.de/files/1770320/cont ... e.rar.html
Aren't watches better suited for that task ?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)
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
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
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. >_<skippy911 wrote:Psphacker and some other sites have them mirrored so try there :)
Wish I was half as good as you guys! :D
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 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.
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.Shine wrote: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 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.
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.