How to Create a Game With Gywin
Cygwin is a great program. It understands all programming languages and it's free too. You can create any program with it. Just that the problem is that cygwin is not an easy program to use but I'm going to show you how to use it.
EditSteps
-
1Type in cd projects and hit enter.Ad
-
2Then type in mkdir helloworld and hit enter.
-
3Type this in and after every line 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. */
-
4Now type this in and after every line hit enter.
- #include
- #include
-
5Type this in and hit enter.
- PSP_MODULE_INFO("Hello World", 0, 1, 1);
-
6Type this in and after every line hit enter.
- #define printf pspDebugScreenPrintf
-
7Type this in and after every line hit enter.
- /* 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.
-
8Then just hit enter afterwards to make an executable.Ad
We could really use your help!
e-commerce?
Fitbit?

product development?
sabbaticals?

About this wikiHow