Hi to everybody!
I managed to get an a copy of Cubic Ninja, installed the exploit and install everything. I started to program a game. The game already exists, is written in SDL, I understand that is not the same, but, I managed to copy images and do everything "like" SDL.
Now I have a strange problem, I can't control the velolicty of the game. I'm searching for examples in Internet and most games don't do frame control. If someone knows how to "delay" each frame to something near 24 fps, it will be great.
I found some funcs: svcSleepThread, svcGetSystemTick, APT_SetAppCpuTimeLimit and osGetTime, but I don't know how exactly they can helpme. I've tried svcSleepThread and SetAppCpuTime, but no luck. I know that osGetTime can meassure the time, but how do I do "microsleeps" (something like SDL_Delay).
Thanks for reading.
By the way, the game source code is at Github (https://github.com/gatuno/PaddlePuffle3DS/blob/master/source/main.c)
I managed to get an a copy of Cubic Ninja, installed the exploit and install everything. I started to program a game. The game already exists, is written in SDL, I understand that is not the same, but, I managed to copy images and do everything "like" SDL.
Now I have a strange problem, I can't control the velolicty of the game. I'm searching for examples in Internet and most games don't do frame control. If someone knows how to "delay" each frame to something near 24 fps, it will be great.
I found some funcs: svcSleepThread, svcGetSystemTick, APT_SetAppCpuTimeLimit and osGetTime, but I don't know how exactly they can helpme. I've tried svcSleepThread and SetAppCpuTime, but no luck. I know that osGetTime can meassure the time, but how do I do "microsleeps" (something like SDL_Delay).
Thanks for reading.
By the way, the game source code is at Github (https://github.com/gatuno/PaddlePuffle3DS/blob/master/source/main.c)