Page 13 of 16

Re: love-android: discussion

Posted: Tue Nov 22, 2011 12:16 am
by Jasoco
Is that URL going to be the permanent link for the latest version for the foreseeable future?

Re: love-android: discussion

Posted: Tue Nov 22, 2011 6:51 am
by ghoulsblade
miko wrote:
ghoulsblade wrote:e.g. draw a compass needle, and let ball/marble roll around the screen from roll/pitch info.
There you go.
awesome, thanks =D
Jasoco wrote:Is that URL going to be the permanent link for the latest version for the foreseeable future?
the apk ? yes, i think so

Re: love-android: discussion

Posted: Tue Nov 22, 2011 12:10 pm
by miko
ghoulsblade wrote:
miko wrote:
ghoulsblade wrote:e.g. draw a compass needle, and let ball/marble roll around the screen from roll/pitch info.
There you go.
awesome, thanks =D
I have made a little helper library so I (and you) can play with love programs destined for your android device right on your PC. As for now, the sensors generate random data, but in the future it could be simulated or read back from the actual device, or play back some recorded/synthesized data. The advantage is also you can test with sensors you don't actually have.
The current sensor list I got from my HTC Desire, you can add to this list if you have more of them. I can think of supporting different phone models (and so their sensors), but that I will leave for later.

Usage:

Code: Select all

if not love.phone then require 'android' end

--in love.update:
function love.update(dt)
  if love.phone.update then
    love.phone.update(dt)
  end
end
And last but not least (from the "sensors and multitouch" thread):
slime wrote:
ghoulsblade wrote: love.phone.setRequestedOrientation(love.phone.SCREEN_ORIENTATION.SCREEN_ORIENTATION_PORTRAIT)
This should have a more lövely argument IMO, like:

Code: Select all

love.phone.setRequestedOrientation("portrait")
I agree, even if I have implemented that as it is now.

Re: love-android: discussion

Posted: Tue Nov 22, 2011 12:34 pm
by hagish
Yes, the phone api needs löveification :)

Re: love-android: discussion

Posted: Wed Nov 23, 2011 2:47 pm
by T-Bone
I'd love to see stuff like love.graphics.setScissor implemented :3 But I can tell things like this are low priority (and they should be).

Re: love-android: discussion

Posted: Fri Nov 25, 2011 9:56 am
by hagish
Scissors git implemented in master, but I did not update the package file.

Re: love-android: discussion

Posted: Fri Nov 25, 2011 11:05 am
by Reenen
While playing andro-pong... The screen went black. I guess the black out timeout went on, because nothing was being touched... Any solution to that issue?

Re: love-android: discussion

Posted: Fri Nov 25, 2011 11:26 am
by ghoulsblade
i think i've seen a command to disable the poweroff if nothing is being touched, i'll look into it this weekend

Re: love-android: discussion

Posted: Fri Nov 25, 2011 11:30 am
by miko
Reenen wrote:While playing andro-pong... The screen went black. I guess the black out timeout went on, because nothing was being touched... Any solution to that issue?
I confirm, I have seen the same. What is even stranger, when I switched to another application, and then back to the game, it was still black, yet I could press menu button and go to the loader.

Re: love-android: discussion

Posted: Fri Nov 25, 2011 2:29 pm
by T-Bone
hagish wrote:Scissors git implemented in master, but I did not update the package file.
Oh, nice! Perhaps a script could be written somewhere that automatically builds apk-files and uploads them to a single destination, to make it easy for everyone who just want to try a build close to the latest one.