I have plans to write a game in Python and probably some SQL. I'm concerned about how versatile my program will be when I finish it, ideally I'd like it to run on Windows, Mac, Android, and iPhone... however I have a feeling the phones would be off-limits for this sort of thing. How would I go about writing a program that runs on multiple platforms? Is this even feasible for a beginner programmer?
feedback
|
Python is pretty portable in itself (runs on many platforms), but you have to take into account the following:
Overall, Python is not an easy fit for mobile platforms, because of lack of support. Here are three workable alternatives:
| ||||
feedback
|
PyGame says this in their About page:
Python itself is extremely portable, and easy enough to port to new platforms (assuming someone hasn't already done it for you). Things will get "interesting" whenever you need to access some platform-specific bits, which is where PyGame can help you, if it supports the platforms you're looking at, or you can port it. A semi-related issue is that some distribution methods (app stores) might not allow applications that can run unknown third party code. You'll have to lock down your Python and its scripts so they can't access anything outside of the application, and possibly prevent it from running scripts that you didn't provide as part of the game. | ||||
feedback
|
I'm not sure about Android, but Python can't run on iPhone. Currently the best tools for deploying a game on Windows, Mac, Android, and iPhone would be to use HTML5 or Unity3D. There are a bunch of other tools that are lesser known and thus less vouched for, like Ideaworks Gamestudio. | |||
feedback
|