How to Create a Game With Gywin
Type in cd projects and hit enter., Then type in mkdir helloworld and hit enter. , Type this in and after every line hit enter., Now type this in and after every line hit enter., Type this in and hit enter., Type this in and after every line hit...
Step-by-Step Guide
-
Step 1: Type in cd projects and hit enter.
// Hello World
- My First App for the PSP /* This program was created by (Your Name Here) on (Date Here) It is a simple "Hello World" Application. */ , #include #include , PSP_MODULE_INFO("Hello World"
0, 1, 1) -
Step 2: Then type in mkdir helloworld and hit enter.
#define printf pspDebugScreenPrintf , /* 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); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback 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; }
8.
Type this in and hit enter.int main() {
9.
Type this in and after ever line hit enter. pspDebugScreenInit(); SetupCallbacks();
10.
Type this in and hit enter.printf("Hello World");
11.
Type this in and hit enter.sceKernelSleepThread();
12.
Type this in hit enter.return 0;
13.
Type this in and hit enter.}
14.
Type this in and after every line hit enter.TARGET = hello OBJS = main.o CFLAGS =
-O2
-G0
-Wall CXXFLAGS = $(CFLAGS)
-fno-exceptions
-fno-rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Hello World PSPSDK=$(shell psp-config
--pspsdk-path) include $(PSPSDK)/lib/build.mak
15. , -
Step 3: Type this in and after every line hit enter.
-
Step 4: Now type this in and after every line hit enter.
-
Step 5: Type this in and hit enter.
-
Step 6: Type this in and after every line hit enter.
-
Step 7: Type this in and after every line hit enter.
-
Step 8: Then just hit enter afterwards to make an executable.
Detailed Guide
// Hello World
- My First App for the PSP /* This program was created by (Your Name Here) on (Date Here) It is a simple "Hello World" Application. */ , #include #include , PSP_MODULE_INFO("Hello World"
0, 1, 1)
#define printf pspDebugScreenPrintf , /* 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); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback 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; }
8.
Type this in and hit enter.int main() {
9.
Type this in and after ever line hit enter. pspDebugScreenInit(); SetupCallbacks();
10.
Type this in and hit enter.printf("Hello World");
11.
Type this in and hit enter.sceKernelSleepThread();
12.
Type this in hit enter.return 0;
13.
Type this in and hit enter.}
14.
Type this in and after every line hit enter.TARGET = hello OBJS = main.o CFLAGS =
-O2
-G0
-Wall CXXFLAGS = $(CFLAGS)
-fno-exceptions
-fno-rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Hello World PSPSDK=$(shell psp-config
--pspsdk-path) include $(PSPSDK)/lib/build.mak
15. ,
About the Author
Madison Gray
Creates helpful guides on hobbies to inspire and educate readers.
Rate This Guide
How helpful was this guide? Click to rate: