Android - V10 release candidate

Previous topic - Next topic

Xaron

Quote from: Ian Price on 2011-May-02
OOOHH!!! That game looks lovely Xaron!

Any chance of sharing a demo with the community?

I love tactical games like Advance Wars, HistoryLine 1914-1918 and Battle Isle etc. That looks like it'll keep me happy for a while.

Will you only be releasing for Android devices - I don't have one of those :(

Thanks! :) It will be definitely available for iPhone and Android, thats why we use that 480x320 resolution. But this gives me headaches regarding the crude aspect ratio of Android devices. I get it stretched to fullscreen but not centered...

Kitty Hello


Xaron

Quote from: Kitty Hello on 2011-May-02
Did you try Dabz's solution:
http://www.glbasic.com/forum/index.php?topic=6163.msg48827#msg48827

Thanks yes. That's why it already scales up correctly. But it would be great to have it scaled up/down AND centered. Just a minor issue at the moment though. Is there any lower level stuff I could initialize during the startup, something like a general transformation matrix?

MrTAToad

There isn't a way of centring the screen automatically - of course, if you knew the screen resolution, you could do it yourself.

I'm testing GETDESKTOPSIZE at the moment to see if it returns the devices resolution at the current orientation.

matchy

Quote from: Xaron on 2011-May-02
Quote from: matchy on 2011-Apr-24

These are not working properly:
- drawrect/drawline; no color only white  :S

Hmm... works for me on my Android.

Prove it!

MrTAToad

It's because the device doesn't support some GL extensions (glLine - or more likely GL_LINE) being one of them.

It's the same on my tablet - its why my marketplace screenshots look awful :)

Xaron

Quote from: matchy on 2011-May-02
Quote from: Xaron on 2011-May-02
Quote from: matchy on 2011-Apr-24

These are not working properly:
- drawrect/drawline; no color only white  :S

Hmm... works for me on my Android.

Prove it!

LOL... Alright, why not.  :whistle:



Sorry for the poor photo, it's just a snapshot from my HD desire.

Code:

Code (glbasic) Select

FOR i = 1 TO 400
DRAWLINE 0, 0, 400-i, i, RGB(RND(255), RND(255), RND(255))
NEXT

MrTAToad

And this is my tablet :)



[attachment deleted by admin]

Ian Price

It looks like all Android devices are equal - except that some are more equal than others :P ;)
I came. I saw. I played.

Xaron

LOL!

MrTAToad, what tablet do you have?

ampos

Mr.TaToad, did you pay 25$ for publishing your apps?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Xaron

Quote from: ampos on 2011-May-02
Mr.TaToad, did you pay 25$ for publishing your apps?

He has. There is no other way. ;)

MrTAToad

#102
Its a WonderMedia tablet.  Whilst it does have the Android Marketplace, its not the official one :)

Its best to get  proper tablet - unfortunately they aren't that cheap...

QuoteMr.TaToad, did you pay 25$ for publishing your apps?
Oh yes!

Xaron

Quote from: MrTAToad on 2011-May-02
There isn't a way of centring the screen automatically - of course, if you knew the screen resolution, you could do it yourself.

Getting the screen resolution is not the problem but how do I shift the whole screen using GLBasic?

MrTAToad

GETDESKTOPSIZE seems to work (although I dont know yet whether the values change depending on orientation) - you would then be able to centre using that as long as you know how big your play area is.