QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

what am i doing wrong

This is a discussion on what am i doing wrong within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; okay hers my code #include <pspkernel.h> #include <pspcallbacks.h> #include <pspctrl.h> #include "graphics.h" #define RGB(r, g, b) ((r)|((g)<<8)|((b)<<16)) PSP_MODULE_INFO("Menu Example",0,1,1); Color ...

Reply
 
LinkBack Thread Tools
Old 11-08-2008, 07:04 PM   #1
 
BlackBurd's Avatar
 
Join Date: Aug 2008
Location: thugz mansion
Posts: 875
Trader Feedback: 0
Default what am i doing wrong

okay hers my code
Quote:
#include <pspkernel.h>
#include <pspcallbacks.h>
#include <pspctrl.h>
#include "graphics.h"

#define RGB(r, g, b) ((r)|((g)<<8)|((b)<<16))

PSP_MODULE_INFO("Menu Example",0,1,1);
Color white = RGB(255,255,255), red = RGB(255,0,0), black = RGB(0,0,0);
char menuItems[10][25] = {
{"Start"},
{"Controls"},
{"Options"},
{"extras"},
{"modes"},
{"Online Play"},
{"create"},
{"Save"},
{"Credits"},
{"Exit"},
};
int timer,select,foo;
SceCtrlData pad;
int main() {
initGraphics();
SetupCallbacks();
Image* background = loadImage("Background.png ");
while(1) {
sceCtrlReadBufferPositive (&pad,1);
blitAlphaImageToScreen(0, 0,480,272,background,0,0) ;
fillScreenRect(white,0,0, 480,272);
blitAlphaImageToScreen(0, 0,480,272,background,0,0) ;
timer++;
for(foo=0;foo<10;foo++) {
printTextScreen(200,foo*1 0+70,menuItems[foo],black);
}
printTextScreen(200,selec t*10+70,menuItems[select],red);
if((pad.Buttons & PSP_CTRL_UP) && (timer > 10) && (select > 0)) {
select--;
timer = 0;
} else if ((pad.Buttons & PSP_CTRL_DOWN) && (timer > 10) && (select < 9)) {
select++;
timer = 0;
}
flipScreen();
}
return 0;
}
now how do i make the exit function functional also i have already made a game and named it game.c can i load game.c from my main.c menu and if so how do i do it.
__________________
[QUOTE=SuperBatXS]I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. [U]I swear this happened.[/U] I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)[/QUOTE]

Last edited by BlackBurd; 11-08-2008 at 07:35 PM..
BlackBurd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2008, 07:21 PM   #2
Enter Custom Title
 
Davee's Avatar
 
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
Default

Ugh. I struggle to read it. You need to space out and indent your code.
Davee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-08-2008, 07:40 PM   #3
 
BlackBurd's Avatar
 
Join Date: Aug 2008
Location: thugz mansion
Posts: 875
Trader Feedback: 0
Default

Quote:
Originally Posted by Davee View Post
Ugh. I struggle to read it. You need to space out and indent your code.
sorry i did in notepad it just came out that way ill upload the main.c

edit: uploaded.
Attached Files
File Type: txt main.txt‎ (1.2 KB, 13 views)
__________________
[QUOTE=SuperBatXS]I use my psp all the time in the plane. I was masturbating once while watching some lesbian videos when a fat lady beside me was sleeping and her really hot daughter next to her was getting ready for my dong to shove up her ding. Then, her daughter and I were about to go to the bathroom together but, the air hostess came to tell me i should stop right now. [U]I swear this happened.[/U] I am never taking my psp to the plane again. Always got my iPod though...hehe. ;)[/QUOTE]
BlackBurd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
wrong

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 12:28 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us