love-android: discussion

A project to port LÖVE to Android handhelds
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android: discussion

Post by T-Bone »

ghoulsblade wrote:since it depends on device and current orientation, the best would be to set in conf.lua the t.android_native_screen = true var, then you'll get whatever resolution is native, and can check using love.graphics.getWidth() and getHeight() if you want to use the resolution.

you'll prolly want to call
love.phone.setRequestedOrientation("portrait")
too, unless you want to allow and handle orientation changes depending on how the user is holding his device.
to handle them check love.graphics.getWidth() and getHeight() for the current resolution in regular intervals
Thanks! Great! Where's the suggested place to get such wonderful information?

Also, is Source:setPitch() coming? I'd love to use it in a future project. But no rush :)
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

Re: love-android: discussion

Post by hagish »

The code :) but at the moment you should ask here or try the love irc channel. We try to be there (posting names can cause irc client blinking ;) ). Starting a "official" documentation is far to early imho.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android: discussion

Post by T-Bone »

hagish wrote:The code :) but at the moment you should ask here or try the love irc channel. We try to be there (posting names can cause irc client blinking ;) ). Starting a "official" documentation is far to early imho.
Yeah, I guess it'd be a lot of work since the API may change. Still, love-android can already be quite usable if you work around its weaknesses.

And another unrelated thing: Would it be hard to make the print() function make Toasts?
cezzadenz
Prole
Posts: 1
Joined: Sat May 05, 2012 5:16 am

Re: love-android: discussion

Post by cezzadenz »

I am an android users froyo version but now I upgraded to version 234 gingerbread, but there is a problem with his compass, is there any suggestions? thank you very much forum :huh:
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: love-android: discussion

Post by T-Bone »

cezzadenz wrote:I am an android users froyo version but now I upgraded to version 234 gingerbread, but there is a problem with his compass, is there any suggestions? thank you very much forum :huh:
I don't really understand what you mean, but no matter what, you are posting in the wrong thread.

If you're talking about your phone generally started having issues with the compass, you can ask either in the "General" section, or preferably on some Android forums.

If you are talking about issues with the compass inside love-android, you should know that love-android is an abandoned project. The new project that has taken its place, love-native-android (or LÖVE-FAP as some of us like to call it) does not have compass support (yet?).
Softology
Prole
Posts: 1
Joined: Mon May 07, 2012 12:02 pm
Contact:

Re: love-android: discussion

Post by Softology »

Seems interesting. Can I know what exactly are you guys upto?
Don't follow the path, leave a trail for others to follow.

Crane Training Courses | Payroll Outsourcing Solutions
PaulPheonix123
Prole
Posts: 1
Joined: Thu May 10, 2012 11:43 am

Re: love-android: discussion

Post by PaulPheonix123 »

ghoulsblade wrote:hmm, if you use the mousepressed etc, the coordinates should match the ingame coordinates, e.g. pc default 800x600 screen.
but if you enabled and use the love.phone api multitouch callback, those coordinates are raw in native phone screen resolution, maybe that's the problem ?
thanks I tried adjusting the screen resolution and it worked out fine :vamp:
figgycity50
Prole
Posts: 1
Joined: Wed Apr 16, 2014 5:21 pm

Re: love-android: discussion

Post by figgycity50 »

For me, the love apk won't install on android 4.4. Can someone give me the latest apk just in case mine is outdated?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: love-android: discussion

Post by Nixola »

lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
TurtleP
Party member
Posts: 147
Joined: Thu Mar 22, 2012 9:20 pm
Contact:

Re: love-android: discussion

Post by TurtleP »

Sorry for the bump, but I was wondering if there were any conf.lua variants specified for Android. I read on another thread about it but I am not sure if it works in the 0.9.1b build.
Locked

Who is online

Users browsing this forum: No registered users and 1 guest