love-android-sdl2 (native, 0.9.2)

A project to port LÖVE to Android handhelds
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by slime »

Ranguna259 wrote:What's the ID variable type ? Number ? If so the function wont rearrange the IDs if a finger stops touching the screen, right (if I touch the screen with two fingers and lift the first finger the ID of the second one will still be "2" or will it change to "1", I just realy need to be sure :P ) ?
Yeah numbers, and right, the ID of a finger/touch press won't change when other finger/touch events happen.
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by fysx »

slime wrote:
fysx wrote:Yes, b is the actual "finger".
When are you going to replace that with the love.touch stuff? :)
Probably within the next 24 hours. Unless you say I should wait :)
Bird thing: @fysxdotorg Blog thing: fysx.org
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: love-android-sdl2 (native, 0.9.0)

Post by jjmafiae »

Everything seems to work from here when i test it, no bugs, no errors. ITS AMAZING!!!

im working on a game called Mech offensive it's in early alpha (designed for android of course).

Image

Image

Image

Davidobot helped me with some resolution related stuff
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by Davidobot »

What I meant by Card and Main, is not where you install the application itself, but where you put the lovegame folder. It only seems to work when I make a lovegame folder inside the Main phone storage.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by slime »

fysx: to make things easier for both of us (and any future person), I've created this branch: https://bitbucket.org/bartbes/love-expe ... ile-common which right now is just a combination of the GLES and love.touch branches of love-experiments.
User avatar
Kingdaro
Party member
Posts: 395
Joined: Sun Jul 18, 2010 3:08 am

Re: love-android-sdl2 (native, 0.9.0)

Post by Kingdaro »

So how would motion sensing work?
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by slime »

I don't think there's an API for that (accelerometer support) in SDL, unless it's detected through the Joystick API.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: love-android-sdl2 (native, 0.9.0)

Post by jjmafiae »

Aren't there extensions or something?
Joemag
Prole
Posts: 24
Joined: Sun Apr 14, 2013 5:42 pm

Re: love-android-sdl2 (native, 0.9.0)

Post by Joemag »

slime wrote:I don't think there's an API for that (accelerometer support) in SDL, unless it's detected through the Joystick API.
I tried

Code: Select all

function love.draw()
    local joysticks = love.joystick.getJoysticks()
    for i, joystick in ipairs(joysticks) do
        love.graphics.print(joystick:getName(), 10, i * 20)
    end
end
It prints "Android Accelerometer " on screen. So it's detected through the Joystick API.
User avatar
clofresh
Citizen
Posts: 87
Joined: Sun Jul 26, 2009 4:21 pm
Contact:

Re: love-android-sdl2 (native, 0.9.0)

Post by clofresh »

Yay, I'm so glad this is moving forward! I've tested it with my puzzle fighter clone on the ouya and it works great! Had to explicitly define the ouya controller though since the gamepad api wasn't pick it up.
----------------------------------------
Sluicer Games
Locked

Who is online

Users browsing this forum: No registered users and 0 guests