Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Run Lua on Android?

A topic by Evoleo created Feb 28, 2021 Views: 466 Replies: 1
Viewing posts 1 to 2

I know Apollo is Windows/Linux/Mac only, but is there any way to run Lua snippets on Android?

I'm currently trying to run my card game on mobile (I'm not too serious about it, but it would be very cool)

So, is there a way to port Apollo to Android? Or do I have to write an entire new extension in Java from scratch?

I heard  C++ code can be run on Android, so maybe you can somehow recompile the code to mobile-compatible binaries instead of .dll? Apparently there're ways to run Lua on Android (for example the LuaJ library for Java), so in theory it could be possible.

Basically all I'm asking is: "is it not too time consuming for you to do it, or in case it is, where can I start researching on the subject to potentially write an extension similar to Apollo, but for Android?"

Thanks in advance

Developer

You can see this contribution on one of the C++ extensions I made for the process that goes into making a C++ extension work on Android - basically there’s a lot of boilerplate. I include the source code for anyone willing to mess with it, but using TXR can be easier for something that needs to be highly cross-platform.