Skip to content

[Enhancement] Support for Android using Termux (1013) #643

Open
@GalacticEmperor1

Description

@GalacticEmperor1

Issue №1013 opened by MikeTheWatchGuy at 2019-05-01 12:04:50

I have recently integrated pygame into PySimpleGUI and PySimpleGUIWeb. I'm able to run a pygame window inside of my GUI window.

I am able to run PySimpleGUIWeb code on Android and show my GUI through a browser window. I recently was able to get the pymunk physics package up and running on Termux which allows for this interesting test where the same screen is shown on 2 devices, perhaps the beginning of a 2-player game.

PSG On Android

Here is pygame running in a browser on my PC

Mario In Browser

When I try and pip install pygame using termux, I get an error saying the sdl-dev pacakge needs to be installed.

When I posted an Issue on the Termux GitHub, I received this response which may provide some clues as to whether or not I'll be successful:

Unfortunately, we do not package python modules.

I get errors that a development version of SDL is required.

Such version of SDL exists in x11-packages repository.

And note that OpenGL is unsupported.

My goal is to make it really easy for people to write games that run on their phone / tablet, while also providing the capability to share the accomplishment by allowing friends to connect to their phone through the browser to see the game on the friend's phone.


Comments

# # s33wagz commented at 2019-08-02 18:28:47

if you check out the image I posted in # 1163 you will see the only missing dependencies are mixer and portmidi


# # robertpfeiffer commented at 2019-11-04 15:12:56

FYI, OP and @s33wagz, I have recently started working on an android port of pygame based on the official NDK. That also requires portmidi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions