Code: Select all
// DeathCore v1.0 homebrew app by Rangu2057
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
PSP_MODULE_INFO("DeathCore v1,0,1,1);
// Exit callback
int exit_callback(int arg1, int arg2, void *common){
sceKernelExitGame();
return 0;
}
// Callback Thread
int CallbackThread(SceSize args, void *argp){
int cbid;
cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCallbck(cbid);
sceKernelSleepThreadCB();
return 0;
}
// Sets up callack thread and returns its thread id
int SetupCallbacks(void){
int thid = 0;
thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0){
sceKernelStartThread(thid, 0, 0);
}
return thid;
}
#define printf pspDebugScreenPrintf // simplifies the way text is printed to the screen
#define RGB(r, g, b) ((r)|((g)<<8)|((b)<<16)) // simplifies the RGB macros
Black = RGB(0, 0, 0); // color of menus BG color
White = RGB(255, 255, 255); // color of the unhighlighted text
Green = RGB(0, 255, 0); // color of highlighted text
#define New_Game 1 // menu map number for new game
#define Load_Game 2 // menu map number for load game
#define Delete_Data 3 // menu map number for deleting save data
#define Credits 4 // menu map number for viewing program credits
#define Exit 5 // menu map number for exiting the game
char cursor[5] = ]-->; // What to use as our cursor for the main menu
main()
{
int MAX = 5; // Maximum # of menu options
int map_start = 1; // the map mark for controls
if you wanna help me out with this project just let me know. if you find any ideas on ship powerups or want me to add a sudden twist to it or a awesome intro or something like that just let me know and ill put it in. Oh btw for anyone who helps me with this your names will be in the credits as i plan this to be a community-based game
i kno i talk to much but i still plan to release a WEP cracker but im not sure if that would be very wise to do so let me know and a DDR game too. i have many projects that i plan to do so if you want something done for personal use let me know
Oh if anyone knows of a sample code of a basic scroller please let me know
(does my code look ok so far?)
cheers
Rangu2057 :)