Programming for 4 platforms at once (including the 3DO)
Posted: Sat Nov 29, 2014 3:58 am
I worked on this for a while and i intended to use it for myself to write cross-platform games
so that i don't have to rewrite my game again and again for each platform.
Seeing how sad the 3DO homebrew scene is (i'm all alone) , i decided to share my work.
In its current state, it already supports Images , input and sound and this on al the supported platforms.
The code above will run on all the supported platforms (3DO, PC, PSP, NSPIRE, GCW etc...) thanks to the Gameblabla's Wrapper.
It's nothing extroartinary really...
All it does is just providing a common API for all the supported platforms.
It makes it easier to program for multiple platforms for thanks to high level functions.
You can give it a try here and I'll put it on Github if there's enough demand.
Tell me what do you think about it.
so that i don't have to rewrite my game again and again for each platform.
Seeing how sad the 3DO homebrew scene is (i'm all alone) , i decided to share my work.
In its current state, it already supports Images , input and sound and this on al the supported platforms.
Code: Select all
#include "WRAPPER/API.h"
#include "WRAPPER/INPUT.h"
int main ( int argc, char** argv )
{
short x, y;
x = 50;
y = 50;
Init_video();
#if threeDO
Load_Image(1,"myimage.cel");
#elseifdef nspire
Load_Image(1,"/documents/test/myimage.bmp");
#else
Load_Image(1,"myimage.bmp");
#endif
while (!done)
{
Clear_screen();
Controls();
Put_image(1, x,y);
if (BUTTON.UP) y = y - 1;
if (BUTTON.DOWN) y = y + 1;
if (BUTTON.LEFT) x = x - 1;
if (BUTTON.RIGHT) x = x + 1;
Update_video();
}
Clearing();
return 0;
}
It's nothing extroartinary really...
All it does is just providing a common API for all the supported platforms.
It makes it easier to program for multiple platforms for thanks to high level functions.
You can give it a try here and I'll put it on Github if there's enough demand.
Tell me what do you think about it.