All right guys, 



I assume that you guys are already install correctly pygame, PGS4A, Java and Android driver (only for windows). If you haven't, check PGS4A official website and my previous posting. 


So, how we can convert / porting the app to Android app?



Step 1: 


Rename your main app python file to 'main.py'



Step 2: 


Include 'import android' into your main.py



Step 3:


Create a directory that stores your python. All necessary things (images, python files, even libraries or API if it is required). And you must create a directory inside of PGS4A directory.

Ex) In my case, I just put 'app1'



Step 4:


Configure the setting. Type 'python android.py app1 configure'


This command will help you to setup your app. 



Step 5:


Then, build & release. Type 'python android.py build app1 release'



Step 6:


Check 'bin' directory. There should be 'your_app.apk'



Once you success once, next time will be dang easy. :)


I faced a little problem. The game I developed didn't work on Android. Why? Because of input. My game was using keyboard, but it didn't work in PGS4A. 


So, I will show you guys how to change your app/games input for Android in next posting. 



'PGS4A (Pygame for Android)' 카테고리의 다른 글

How to install & setup PGS4A on Mac?  (0) 2014.04.20

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!