Shoot hookers tweaked for android

A project to port LÖVE to Android handhelds
Locked
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Shoot hookers tweaked for android

Post by rokit boy »

u wot m8
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: Shoot hookers tweaked for android

Post by rokit boy »

Anyone?
u wot m8
Moe
Party member
Posts: 115
Joined: Thu Dec 22, 2011 10:20 pm

Re: Shoot hookers tweaked for android

Post 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?
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: Shoot hookers tweaked for android

Post 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
u wot m8
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Shoot hookers tweaked for android

Post 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. :P
Moe
Party member
Posts: 115
Joined: Thu Dec 22, 2011 10:20 pm

Re: Shoot hookers tweaked for android

Post 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. :P
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...
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: Shoot hookers tweaked for android

Post by kalle2990 »

Another dirty solution perhaps?

Check if this function is defined or not
android_onScreenSizeChanged
Locked

Who is online

Users browsing this forum: No registered users and 18 guests