Programming for 4 platforms at once (including the 3DO)

Tools and projects
Post Reply
User avatar
blabla
3DO ZERO USER
Posts: 142
Joined: Wed Feb 13, 2013 3:23 am
Location: France
Contact:

Programming for 4 platforms at once (including the 3DO)

Post by blabla » 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.

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;
}
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.
Last edited by blabla on Mon Jan 26, 2015 12:51 am, edited 3 times in total.

User avatar
blabla
3DO ZERO USER
Posts: 142
Joined: Wed Feb 13, 2013 3:23 am
Location: France
Contact:

Re: Programming for 4 platforms at once (including the 3DO)

Post by blabla » Sun Jan 11, 2015 5:22 am

Hello everyone,
I know nobody here cares about that kind of stuff but i just want to
let you know i have updated my library and it is much more usable now.
GNU/Linux is now supported.

Link has changed and now redirects to my website.
It's still not Github though, i will probably do it later.

Any suggestion are welcome !

And if you are wondering, yes, music is supported and works.

User avatar
NeoGeoNinja
3DO ZERO USER
Posts: 343
Joined: Sun Apr 14, 2013 5:42 pm

Re: Programming for 4 platforms at once (including the 3DO)

Post by NeoGeoNinja » Sun Jan 11, 2015 10:20 am

blabla wrote:Hello everyone,
I know nobody here cares about that kind of stuff... but i just want to
let you know i have updated my library and it is much more usable now.
GNU/Linux is now supported.

Link has changed and now redirects to my website.
It's still not Github though, i will probably do it later.

Any suggestion are welcome !

And if you are wondering, yes, music is supported and works.
HAHAHA!

There are some people out there who will be interested, but speaking personally, I'm purely a gamer. I'm not technically inclined towards this sort of stuff whatsoever.

However, this doesn't mean that I don't recognise the work put in and, ultimately, how it progresses additional games etc for the 3DO community/fanbase etc in the long term.

So whilst the technical intricacies don't interest me, I'm still grateful 8)

Thanks blabla

Post Reply