Use Pygame in Kivy to be packaged to an Android app, is this Ok?

Viewed 4973

In a perspective:

The user interface features in kivy is easier to handle, compared to pygame. But, in pygame, it is convenient to manipulate graphics with blit : do blit, then clear all graphics on the surface after finishing an event, then blit again, etc.

It is also more flexible (based on my limited exp. on this), because the pygame activity can be controlled using while and can get info of the events with one line of code.

Is it possible to package a kivy app, that uses pygame module, for Android?

Thanks in advance

1 Answers

It is also more flexible (based on my limited exp. on this), because the pygame activity can be controlled using while and can get info of the events with one line of code.

It isn't more flexible, just a different API. Kivy's drawing API is much more modern and closer to how drawing with opengl actually works.

Is it possible to package a kivy app, that uses pygame module, for Android?

Kivy used to use a modified pygame backend on Android, which is still available using --bootstrap=pygame when using python-for-android. I think at least some pygame commands worked when this was used, including drawing commands. However, use of the pygame api was never really supported, and the pygame bootstrap is nowadays deprecated in favour of SDL2 - we won't deliberately break it, but it has issues that will probably never be fixed.

Related