GP2X - is Blitz Max compatible??

Miscellaneous Forums/General Discussion/GP2X - is Blitz Max compatible??

I was just reading about the GP2X handheld in last months Edge and I wondered if anyone out there was working with it?

If so are they using Blitz Max?

The system appears to be Linux based - and I was wondering what that meant to BMax developers? Can we get in on the act for this Homebrew Handheld?

IPete2.

The system appears to be Linux based - and I was wondering what that meant to BMax developers?
Sadly nothing.

So far I've not been impressed with the machine...

See:
http://www.blitzmax.com/Community/posts.php?topic=51350

I did have a play with DevC++ and SDL to gauge how difficult the GP2X would be to program for.
What I ended up doing is wrapping some SDL functions to give the code a Blitz feel. Example:
#include <cmath>
#include "Blitz.h"

//       blitz example #1

int main(int argc, char *argv[]){
    Graphics(320, 240, 0);        // windowed screen
    SetTitle("Load/Display image");

    SDL_Surface *image=LoadBMP("testimage.bmp");
    SDL_Surface *brick=LoadBMP("brick.bmp");
    
    float v=0.0;
    int alpha=160;
    SetImageAlpha(image,alpha);
    while (!AppClosed()){
		Cls();
		ScanKeyboard();
		if(inkeys[SDLK_LEFT]){
			if (alpha>0){
				alpha-=1;
				SetImageAlpha(image,alpha);
			}
		}
		if(inkeys[SDLK_RIGHT]){
			if (alpha<255){
				alpha+=1;
				SetImageAlpha(image,alpha);
			}
		}
		TileImage(brick,int(sin(v/4)*125),int(-cos(v/4)*75));
		DrawImage(image,60+int(sin(v)*40.0),60+int(cos(v)*30.0));
		v+=0.009;
		Flip();
	}
	FreeImage(image);
	End();
}
Unfortunately, my C++ experience is limited. I gave up after getting too many 'undefined reference' errors.

Coolio thanks for the responses, disappointing from the BMax angle but worth knowing.

IPete2.

If bcc.exe was not closedsourced one could add your own compiler directives (and output code) for such a system and then 'just' rewrite all the machine-specific parts of each module... don't know how easy this particular device would be, but the PSP for example would require a rediculously small amount of real work... of course bcc.exe is the one last executable Mark will probably hold a firm grasp on for eternity ;]

Toby,

I must say that having bought a PSP this week, I am dying to know more about the homebrew side of thing, but I want that for mainstream not for just firmware 1.50.

I'd love to be able to make DVD menu driven video presentations for it too, Flash games and Blitz stuff would be grate on it.

I just got SSX on Tour today and it is really fabtastic for a handheld (although there are obviosuly things missing from the game).

Any info on developing for PSP would be gratefully received.


IPete2.