Sounds good ... Spacefractal
Is it easy to implement with Androidextras?
Is it easy to implement with Androidextras?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: spacefractal on 2014-Jan-02
Im have answear in comply of posts about this one. its a bug in glbasic, which dosent DEFINE ANDROID when compile on Android, so you need doing that your self. Just uncomment ?DEFINE ANDROID, and its should compile on Windows.
If you wont doing that each time between Windows and Android, do something like this (and for other platforms you might uses?):
?DEFINE ANDROID
?IFDEF WIN32
?UNDEF ANDROID
?ENDIF
?IFDEF IPHONE
?UNDEF ANDROID
?ENDIF
?IFDEF OSXUNI
?UNDEF ANDROID
?ENDIF
Then the example should work. Im fix that in one of the next versions.
//within getmousecount loop
IF BOXCOLL(10,shipy+60,70,60,mxx,myy,5,5) AND mb1=1
shipdir# = -(2.0*speed*extraspeed)
ELSEIF BOXCOLL(90,shipy+60,70,60,mxx,myy,5,5) AND mb1=1
shipdir# = 2.0*speed*extraspeed
ENDIF