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 » Sat Jun 16, 2012 8:56 pm

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 » Sat Jun 23, 2012 11:09 am

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 » Sun Jun 24, 2012 12:12 pm

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 » Sun Jun 24, 2012 12:37 pm

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 » Sun Jun 24, 2012 12:57 pm

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 » Sun Jun 24, 2012 1:24 pm

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 » Sun Jun 24, 2012 3:31 pm

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 4 guests