GLBasic forum

Main forum => GLBasic - en => Topic started by: Billamu on 2008-Aug-16

Title: Gp2X question
Post by: Billamu on 2008-Aug-16
I'm making a game for the gp2x, but it's 240x320, so it's played sideways.

The compiler doesn't rotate the game sideways, does it? If so, will I have to rotate my sprites etc sideways?
Also will this mean compatibility problems when put on other systems?

I also thought of rendering each frame and rotating it 90 degrees, but that would probably tax a gp2x.
Title: Re: Gp2X question
Post by: Moru on 2008-Aug-16
You have to do the rotation yourself but on a normal PC you don't need to rotate so you need to check if it's a GP2X or not

PLATFORMINFO$ is the command to look for I think :-)
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-16
Thanks. I've painstakingly turned everything sideways. I think what I'll do is develop this for gp2x and then do a full screen rotation for the PC and/or Mac adaptation.

The other thing I've noticed is that mouse response has got a lot of noise in it. Is there any way around this? I'm going to try and interpolate groups of mouse data and filter out anything extraneous.
Title: Re: Gp2X question
Post by: Moru on 2008-Aug-16
I haven't noticed any mouse noice but I haven't been using the mouse that much, can you give us an example?
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-17
The noise happens on the gp2x. I don't have that problem when running it from the PC.
Touchscreen will position the pointer but with a deviation of about +-5 pixels per screen update, this makes the positioning jitter.

The way I'm treating this is to make the bat update its position once every 10-15 frames based on the average amount of responses from the mouse. Any extremely random positions outside of that are ignored.
Title: Re: Gp2X question
Post by: Moru on 2008-Aug-17
Ah yes, I remember Gernot compaining about that, he is working on a fix for it.
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-18
That would be greatly appreciated. I'll report back on my progress with the mouse handler.
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-19
Ok I'm not the sharpest tool in the shed; took me ages to discover the Web Update manager - duhh... so I'm in the process of downloading the latest version containing improvements for the GP2X's touchscreen.

But it's taking horrifically long to load (bittersweet memories of dial-up), and then after about 400-500Kb it closes. I've tried this on two different PCs and the internet connection on both of them is working properly  :S
Title: Re: Gp2X question
Post by: Moru on 2008-Aug-19
no problems downloading here, what version of GL-Basic do you have?
Title: Re: Gp2X question
Post by: Kuron on 2008-Aug-19
Willamu:  If it is any condolence, I am usually several versions behind due to the web update.
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-19
Heh, patience is a virtue... I don't have. But I waited a wee bit, and then tried again. It's loading now.

I was on version 5.235.
Title: Re: Gp2X question
Post by: Kitty Hello on 2008-Aug-19
Might get tight when lots of users try to update simultaneously.
Title: Re: Gp2X question
Post by: Billamu on 2008-Aug-25
The touchscreen handler is way more stable with the latest update. Thankyou Gernot!
Title: Re: Gp2X question
Post by: Kitty Hello on 2008-Aug-25
The 240x320 mode on GP2X is not qorking right now. I'm implementing that one day.
PocketPC works already.
Title: Re: Gp2X question
Post by: Kuron on 2008-Aug-25
Quote from: Kuron on 2008-Aug-19
Willamu:  If it is any condolence, I am usually several versions behind due to the web update.
I should note my issues are not connection speed/drops, its just the lack of a net connection on my dev machine.