lordmauve / wasabi2d

Cutting-edge 2D game framework for Python
https://wasabi2d.readthedocs.io/
GNU Lesser General Public License v3.0
156 stars 24 forks source link

How hard is it to get this working on Android/iOS #5

Open ntoll opened 5 years ago

ntoll commented 5 years ago

Then I can build PyperCard on top of it... ;-)

lordmauve commented 5 years ago

I don't know anything about iOS but it isn't out of the question for Android.

Kivy's python-for-android has (unmaintained) support for Pygame on Android, which could probably be picked up and made to work with Pygame 2.0.

ModernGL I think can work with OpenGL ES. I'm not sure if there are any extra steps, like new python-for-android recipes, to make it work on Android.

numpy should just work when compiled for Android, because it's just a maths library; it doesn't interact with the Android system. But that said numpy can use crazy fast maths stuff like BLAS and LAPACK so that's an extra complexity.

Then it's just a case of tweaking the wasabi2d code down to OpenGL ES, which probably involves tweaking some of the shaders and doing without an OpenGL feature I'm using here and there.

Altogether though, that's a load of work, and I personally know very little about Android. I'd rather spend my time building a good game framework and hope that someone else can help with mobile.

ntoll commented 5 years ago

@lordmauve 'twas but an idle thought an I quite understand about the work involved. Even using Kivy, the story of getting something to work on Android is involved/painful. BTW, this project looks great..!