Skip to main content

Run pygame-ce games on iPhones and iPads easily.

Project description

Disclaimer

This library is not well tested, and shouldn't be considered production ready. Most importantly, I haven't tested App Store builds yet.

There's still a lot of work to be done and I'm working on documenting what's doable and what's not.


pygame-ios

Run pygame-ce games on iPhones and iPads easily.

This package contains a simple CLI tool that downloads a template from pygame-ios-templates and adds your game files to it. After that you can run the Xcode project and see your pygame-ce game on your device or simulator of choice.

Usage

To use this package, you need macOS, and you need Xcode and Python 3 installed.

Run this to install the package:

pip install pygame-ios

This gives you a command you can run with one of the following:

pygame-ios
python -m pygame-ios

This command needs arguments. You need to provide a location for your project folder where your files will be copied from, as well as an entry point script which will be renamed to __main__.py and used as the entry point in Xcode. You must also specify the pygame-ce version.

Example usage:

pygame-ios . game.py 2.5.6 # copies files from current folder, uses game.py as the entry point script, pygame-ce v2.5.6

After running this command, an Xcode project will be downloaded. You can open this project in Xcode and run it on a device or simulator.

To update your Xcode project with new files or changes, just run the command again. The download step is skipped and your files are copied, overwriting previous files.

It's recommended that you modify the Xcode project directly if you want to change metadata like the product name and icon, and add it to source control. You cannot recover these changes if you delete the project, like you might be able to in other libraries like Briefcase or Flutter.

Not all pygame-ce versions are supported, see here for supported versions, and see the repository README for details on how to make your own.

Other Arguments

If you have a template .zip file on your machine, you can specify a path to that file instead of downloading one:

pygame-ios . game.py 2.5.6 ./template/your-template.zip

This is useful for custom templates, or if you just want to reduce network use.

It's assumed that this template has the same folder structure as a template from pygame-ios-templates. The version number is also ignored if you specify a local path.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygame_ios-0.0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygame_ios-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pygame_ios-0.0.3.tar.gz.

File metadata

  • Download URL: pygame_ios-0.0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pygame_ios-0.0.3.tar.gz
Algorithm Hash digest
SHA256 29ba2e9132b8d68f60257fe57765f304a868c33a5a6b0a3acc33b20f414122f0
MD5 e97ab54540c9bf60dfc87911fef2b264
BLAKE2b-256 e3fef5189adf868ee0a456d7a8f0a4cdb68f1833b65d886a49173577b0a13c49

See more details on using hashes here.

File details

Details for the file pygame_ios-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pygame_ios-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pygame_ios-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbb082cff9b5c7ce60c5018b7032b6eb20804761a7bdcb0a5b43cdaebb30eb5c
MD5 813f03ebf5049f29fbe1462fdb925830
BLAKE2b-256 2d5179e99e95c6ab4449113843bbe681ebf426b944a3d2ff8323437e80248151

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page