Page 1 of 1
Shoot hookers tweaked for android
Posted: Sat Jun 16, 2012 8:56 pm
by rokit boy
Re: Shoot hookers tweaked for android
Posted: Sat Jun 23, 2012 11:09 am
by rokit boy
Anyone?
Re: Shoot hookers tweaked for android
Posted: Sun Jun 24, 2012 12:12 pm
by Moe
Looks nice, but it does not work on my device, it says that I should run the love file on an Android device. How do you do the Android check? Did you test it with the latest native-port release I did about 2 weeks ago?
Re: Shoot hookers tweaked for android
Posted: Sun Jun 24, 2012 12:37 pm
by rokit boy
Moe wrote:Looks nice, but it does not work on my device, it says that I should run the love file on an Android device. How do you do the Android check? Did you test it with the latest native-port release I did about 2 weeks ago?
Code: Select all
if love.phone then
--bull
else
--shit
end
Re: Shoot hookers tweaked for android
Posted: Sun Jun 24, 2012 12:57 pm
by T-Bone
What? There's no such thing as love.phone in love-native-android. There was in the old java version but that version is an old and dead project.
Moe: is there a good way to check if it runs on a phone or computer? Currently, my game checks if the resolution is 800x600, which feels like a dirty solution.
Re: Shoot hookers tweaked for android
Posted: Sun Jun 24, 2012 1:24 pm
by Moe
T-Bone wrote:Moe: is there a good way to check if it runs on a phone or computer? Currently, my game checks if the resolution is 800x600, which feels like a dirty solution.
I always did something like this:
http://stackoverflow.com/questions/2950 ... lua-script
I am not sure if this will result in Linux or Android...
Re: Shoot hookers tweaked for android
Posted: Sun Jun 24, 2012 3:31 pm
by kalle2990
Another dirty solution perhaps?
Check if this function is defined or not
android_onScreenSizeChanged