BASIC

Author Topic: Android - V10 release candidate  (Read 88539 times)

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #90 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #91 on: 2011-May-02 »

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #92 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

  • Guest
Re: Android - Beta SDK
« Reply #93 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.

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

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: Android - Beta SDK
« Reply #94 on: 2011-May-02 »

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

Hmm... works for me on my Android.

Prove it!

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #95 on: 2011-May-02 »
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 :)

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #96 on: 2011-May-02 »

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

  • Guest
Re: Android - Beta SDK
« Reply #97 on: 2011-May-02 »
And this is my tablet :)



[attachment deleted by admin]

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4148
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Android - Beta SDK
« Reply #98 on: 2011-May-02 »
It looks like all Android devices are equal - except that some are more equal than others :P ;)
I came. I saw. I played.

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #99 on: 2011-May-02 »
LOL!

MrTAToad, what tablet do you have?

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: Android - Beta SDK
« Reply #100 on: 2011-May-02 »
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

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #101 on: 2011-May-02 »
Mr.TaToad, did you pay 25$ for publishing your apps?

He has. There is no other way. ;)

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #102 on: 2011-May-02 »
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...

Quote
Mr.TaToad, did you pay 25$ for publishing your apps?
Oh yes!
« Last Edit: 2011-May-02 by MrTAToad »

Offline Xaron

  • Mr. Drawsprite
  • **
  • Posts: 50
    • View Profile
    • CodeKnitters
Re: Android - Beta SDK
« Reply #103 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

  • Guest
Re: Android - Beta SDK
« Reply #104 on: 2011-May-02 »
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.