This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
App template for iOS and small console-based game?
david last edited by
can I use the template to generate an App for iOS if I developed a small console-based game? how it will be the interface of the user in that case?
Note: currently do not have a Mac (Intel) to test.
dgelessus last edited by
I haven't used the template myself yet. But the template is meant for
uiscripts, so the console probably doesn't exist there. You could make a simple console yourself using
ui, and then write functions similar to
inputto write to and read from your own console. That should also work in the template, even if the normal console doesn't exist there.
(And yes, you need a Mac to build an app using the template. There's no way to make normal iOS apps without a Mac and Xcode.)
tileyon last edited by tileyon
The Pythonista app template presents the console output by default. UI elements, if included in your code, are placed atop that console within the presentation structure (sheet, full_screen, popover etc...). The "run" and "clear" buttons are included in the console and may be disabled by following instructions included in the template. You do need a Mac to use the template which is an Apple requirement and not a decision of @OMZ the Pythonista developer. That console does not seem to show in Xcode's iOS emulator but comes on when you test or install your app in an iOS device. You will have to implement your own Command Line Interface (CLI). They usually consist of multiple choices presented to the user to pick from by inputting a corresponding number.
david last edited by
The intention was to use the docopt package, but being so, I am assuming that I need to do a specific UI. The mini game aims to emulate a system admin terminal.
The case is that I will need a virtual keyboard (do I have to do it or is there any available in/for pythonista?)