Author Topic: iPhone Touch demo and howto compile  (Read 23455 times)

Offline Uncle

  • Mr. Drawsprite
  • **
  • Posts: 75
    • View Profile
    • www.urbaninteractive.net
iPhone Touch demo and howto compile
« on: 2009-Aug-06 »
Hello all,

I had a play around this afternoon and came up with this...

http://www.glbasic.com/showroom.php?site=games&game=iphonetouchfeatureexample&lang=en

it's basically a demo showing the touch control of the iphone programmed in GLBasic.

I also made this quick video to show how to compile to the iphone...

http://www.youtube.com/watch?v=eGdTdmCI34w

hope it helps.


Cheers


Unc
« Last Edit: 2009-Aug-06 by Uncle »

MrTAToad

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #1 on: 2009-Aug-06 »
Should be useful to everyone!

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4125
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: iPhone Touch demo and howto compile
« Reply #2 on: 2009-Aug-06 »
Quote
Should be useful to everyone!
As long as they have a Mac. And an iPhone/iPod Touch:(

I want one now.

Nice one Uncle :)
« Last Edit: 2009-Aug-06 by Ian Price »
I came. I saw. I played.

MrTAToad

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #3 on: 2009-Aug-06 »
If you need anything compiled for an iMac, I can do it for you.

Cant help with the iPhone/iPod though :)

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4125
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: iPhone Touch demo and howto compile
« Reply #4 on: 2009-Aug-06 »
Cheers MrTAToad :)
I came. I saw. I played.

MrTAToad

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #5 on: 2009-Aug-06 »
No problem!

MikeHart

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #6 on: 2009-Aug-08 »
Hi folks,

I downloaded the demo of GLBasic as I am interest in developing for the iphone. Is the demo not able to compile for the iphone?

If it is not a released feature, can you estimate when it will be available? And will GlBasic support the iphones accelerators too?
« Last Edit: 2009-Aug-08 by MikeHart »

MrTAToad

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #7 on: 2009-Aug-08 »
If the demo is V6, then it wont - you need to try the V7 RC2 version - available from the Shoutbox

Offline Uncle

  • Mr. Drawsprite
  • **
  • Posts: 75
    • View Profile
    • www.urbaninteractive.net
Re: iPhone Touch demo and howto compile
« Reply #8 on: 2009-Aug-08 »
And will GlBasic support the iphones accelerators too?

Yes it will support accelerators.  I think it treats them as joystick inputs.  If I get time I will try and make a demo of this as well.

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Touch demo and howto compile
« Reply #9 on: 2009-Aug-09 »
Nice video Uncle.

Accelo is a joystick in glbasic. Tryout joystick commands and dont forget to normalize for smoothly function

you like iPhone?
try things and let us know if its working or not and what must be added to glbasic. (not GPS, its working but hidden yet)

MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MikeHart

  • Guest
Re: iPhone Touch demo and howto compile
« Reply #10 on: 2009-Aug-09 »
Thanks for the info!

Offline Uncle

  • Mr. Drawsprite
  • **
  • Posts: 75
    • View Profile
    • www.urbaninteractive.net
Re: iPhone Touch demo and howto compile
« Reply #11 on: 2009-Aug-10 »
Nice video Uncle.

Accelo is a joystick in glbasic. Tryout joystick commands and dont forget to normalize for smoothly function

you like iPhone?
try things and let us know if its working or not and what must be added to glbasic. (not GPS, its working but hidden yet)



The accelerometers are working well.  The only thing I haven't been able to do is figure out when the orientation of the iPhone has changed i.e. landscape to portrait etc.  Well I did work out a method but it was flaky at best.  I've searched the iPhone SDK and Im still not sure how they do it.  I think its part of the UIViewController class.  But it would be good to have a get function to return the current orientation, then we can decide on how to handle the event. 

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iPhone Touch demo and howto compile
« Reply #12 on: 2009-Aug-10 »
Gernot is working for this.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10656
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iPhone Touch demo and howto compile
« Reply #13 on: 2009-Aug-11 »
To get the current orientation, just check which axis has the strongest amplitude. There's an image in the manual in uhm... "platform specific stuff" or so...

I'm working on a native landscape mode, where you can use SETSCREEN to rotate it.

Offline codegit

  • Dr. Type
  • ****
  • Posts: 270
    • View Profile
Re: iPhone Touch demo and howto compile
« Reply #14 on: 2009-Aug-12 »

I'm working on a native landscape mode, where you can use SETSCREEN to rotate it.

Yes please, Yes please, Yes please, Yes please, Yes please, ....... =D
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added