love-android: discussion

A project to port LÖVE to Android handhelds
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: love-android: discussion

Post by Jasoco »

Is that URL going to be the permanent link for the latest version for the foreseeable future?
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android: discussion

Post 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
love-android - gamejams
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: love-android: discussion

Post 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.
Attachments
Compass.love
(4.86 KiB) Downloaded 317 times
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

Re: love-android: discussion

Post by hagish »

Yes, the phone api needs löveification :)
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 »

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).
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

Re: love-android: discussion

Post by hagish »

Scissors git implemented in master, but I did not update the package file.
User avatar
Reenen
Prole
Posts: 44
Joined: Tue Nov 08, 2011 9:44 am

Re: love-android: discussion

Post 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?
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: love-android: discussion

Post 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
love-android - gamejams
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: love-android: discussion

Post 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.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
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: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.
Locked

Who is online

Users browsing this forum: No registered users and 2 guests