LÖVE on Android?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Illidane
Prole
Posts: 12
Joined: Sat Nov 29, 2008 8:01 pm

LÖVE on Android?

Post by Illidane »

Is it possible to run love game on Android-based phone?
User avatar
Gerrit
Prole
Posts: 46
Joined: Wed Mar 25, 2009 7:40 pm

Re: LÖVE on Android?

Post by Gerrit »

From Wikipedia:
Applications written in C and other languages can be compiled to ARM native code and run, but this development path is not officially supported by Google.
[..]
ARM code can be compiled using GCC on a standard PC.[5] Running native code is complicated by the fact that Android uses a non-standard C library (known as Bionic).
[..]
3D graphics library based on OpenGL ES 1.0 specifications..
So basicly: Yes, it would be possible to get Löve to run but it would need some effort to make the changes to support OpenGL ES. Then you might want to add multi-touch too. I guess when Löve hits 1.0 in a couple of decades you can ask that question again. Until then the roadmap has other goals. If you still would like it try to do it yourself ;) But you should start smaller: Windows CE/Embedded devices (PDAs) & cellphones as an example. Or the iPhone. That shouldn't be that hard either.
User avatar
Illidane
Prole
Posts: 12
Joined: Sat Nov 29, 2008 8:01 pm

Re: LÖVE on Android?

Post by Illidane »

Am I need root rights to run native applications on android? If it, then it's not possible to run my app on all of G1 phones that not jailbreaked ( thanks to T-mobile, or Google, don't know).
Is it possible to make java port of LÖVE?
User avatar
Gerrit
Prole
Posts: 46
Joined: Wed Mar 25, 2009 7:40 pm

Re: LÖVE on Android?

Post by Gerrit »

Illidane wrote:Am I need root rights to run native applications on android? If it, then it's not possible to run my app on all of G1 phones that not jailbreaked ( thanks to T-mobile, or Google, don't know).
Seems like you really need root rights. Dunno why they only allow java execution..
Illidane wrote: Is it possible to make java port of LÖVE?
Short: No. Löve and all libs it uses are mostly written in C. So you would have to rewrite everything from scratch. There are a few engines written in java but I guess theres none (that I know of) which uses lua.
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: LÖVE on Android?

Post by farvardin »

scummvm was ported to android, and it's basicall C++ with a bit of java: http://sites.google.com/site/scummvmandroid/faq
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: LÖVE on Android?

Post by TechnoCat »

Android 1.5 NDK, Release 1
Android wrote:The Android NDK is a companion tool to the Android SDK that lets Android application developers build performance-critical portions of their apps in native code.
....
The NDK provides:
  • A set of tools and build files used to generate native code libraries from C and C++ sources
  • A way to embed the corresponding native libraries into application package files (.apks) that can be deployed on Android devices
  • A set of native system headers and libraries that will be supported in all future versions of the Android platform, starting from Android 1.5
  • Documentation, samples, and tutorials
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LÖVE on Android?

Post by Jasoco »

Would be nice. Personally, I'd löve to see the LÖVE runtime ported to all the portable consumer devices. Android, iPhone, WebOS on the Palm, the new PSP thing. Even the Xbox. Create an XNA based runtime plugin that would accept a .love file. Think of the possibilities. Your LÖVE game on a HDTV. And I'm sure the Sony will have a way for "regular people" to program their own games for the PS3. All these devices today have ways for outsider "normal folks" to write their own games and apps. All we need is the right runtimes, a few hooks for the new input methods, (Obviously. The consoles would need to accept buttons instead of keys. The touch-based devices like the iPhone, Android and Palm would need to accept multiple touches at x and y instead of a single mouse, as well as orientation detection and shake detection.) and people who know how to program for those devices who also have a lot of dedication to actually making it work.

I mentioned the iPhone in another thread. How some companies have created runtimes that you dump into Xcode that would allow you to just create apps using JavaScript, HTML and CSS that ran in WebKit. They were basically like web sites that were self-contained and required no internet, allowing for people who don't know Cocoa/C++ to use what they know. Well, we know Löve.

If I knew anything about any of those languages, I'd create the runtimes myself. But then again, if I knew anything about those languages, I wouldn't be using Löve in the first place. I could look at the source code for the OS X version, but it would be futile. As it's all Greek to me.

It's a dream right now. Personally, I'd be aiming for either the XBLA ability or the iPhone/iPod touch.

Anything can be ported. It just requires someone with the knowledge and the will to actually do it.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE on Android?

Post by bartbes »

Of course anything can be ported, but we need developer tools to do that, and, most importantly, we need the libs we use to run on the platform.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: LÖVE on Android?

Post by rude »

Android NDK? Cool! I'm not sure how much C++ it supports, though. I guess we can say good-bye to STL, among other things.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE on Android?

Post by bartbes »

It says so in the link TechnoCat provided, specifically a subsection of that: here.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests