Platform Agnostic Input Library and Love Android Tetris

A project to port LÖVE to Android handhelds
Locked
User avatar
TheAncientGoat
Prole
Posts: 9
Joined: Sat Dec 04, 2010 5:41 pm

Platform Agnostic Input Library and Love Android Tetris

Post by TheAncientGoat »

I started hacking on a general lib that can provide a gamepad for touch enabled devices, and implemented it on one of my old games.

It theoretically supports multitouch, and any amount of keys. I should actually look into making a touch version of the love joystick api, could work better than just touch areas.

Horrible code (as always), but with a bit of refactoring, it could be of use.

Library:
PAIL.love
PAIL
(17.4 KiB) Downloaded 476 times
Game:
LoAnTe.love
Love Android Tetris
(10.25 KiB) Downloaded 745 times
Last edited by TheAncientGoat on Sun Dec 04, 2011 4:34 pm, edited 2 times in total.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Platform Agnostic Input Library and Love Android Tetris

Post by TechnoCat »

I think you mean "apathetic". I see "agnostic" used in this fashion a lot, but I believe it is incorrect.
Wikipedia wrote:Agnosticism is the view that the truth value of certain claims is unknown or unknowable.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platform Agnostic Input Library and Love Android Tetris

Post by Robin »

TechnoCat wrote:I think you mean "apathetic". I see "agnostic" used in this fashion a lot, but I believe it is incorrect.
https://www.youtube.com/watch?v=5eGsjOf8_uE#t=142
Help us help you: attach a .love.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Platform Agnostic Input Library and Love Android Tetris

Post by T-Bone »

Wouldn't it be a good idea to have a simple example (like the main.lua in PAIL.love) where you actually use the library? I see no "require" there.
User avatar
TheAncientGoat
Prole
Posts: 9
Joined: Sat Dec 04, 2010 5:41 pm

Re: Platform Agnostic Input Library and Love Android Tetris

Post by TheAncientGoat »

"LoAnTe" is the tetris game where the library is implemented. The second attachment.

Also, I guess apathetic is the right term. Doesn't quite have the same ring to it :P
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Platform Agnostic Input Library and Love Android Tetris

Post by T-Bone »

TheAncientGoat wrote:"LoAnTe" is the tetris game where the library is implemented. The second attachment.

Also, I guess apathetic is the right term. Doesn't quite have the same ring to it :P
I just thought it'd be simpler to have a simpler demonstration, like the one in the first .love. That'd be easier for somebody who wants to use the library.
User avatar
TheAncientGoat
Prole
Posts: 9
Joined: Sat Dec 04, 2010 5:41 pm

Re: Platform Agnostic Input Library and Love Android Tetris

Post by TheAncientGoat »

Ah, I see. Ok, updated it to be libified.
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

Re: Platform Agnostic Input Library and Love Android Tetris

Post by hagish »

nice :)
User avatar
kraftman
Party member
Posts: 277
Joined: Sat May 14, 2011 10:18 am

Re: Platform Agnostic Input Library and Love Android Tetris

Post by kraftman »

Does this only work for certain resolutions? Here's what I get :
FsXIy.png
FsXIy.png (19.27 KiB) Viewed 2004 times
User avatar
TheAncientGoat
Prole
Posts: 9
Joined: Sat Dec 04, 2010 5:41 pm

Re: Platform Agnostic Input Library and Love Android Tetris

Post by TheAncientGoat »

Yeah, there's a problem with scaling, but if you press the buttons, it should work.
Locked

Who is online

Users browsing this forum: No registered users and 4 guests