In this small project I used kivy one of the python package use to build multi platform (windows, linux, ios, android ...) application. It still a lot to improve in this game but it is a good start point anabling bigenner to experiment the process of game building end-to-end.
- Project Structure
- Prosess
- How to run
- Generate apk file for android
- Deployment (Real world Use)
- To improve
- About Me
- ├── contains images
- step1 : Install python and virtualenv
- step2 : set virtual environment
- step3 : install and import packages
- $ git clonehttps://github.com/Rekidiang2/kv_ping_pong.git
- $ cd kv_ping_pong
- $ python -m venv kv01_venv
- $ kv01_venv\Scripts\activate (<= Activate virtual Environment)
- $ deactivate (<= Deactivate virtual Environment)
- $ pip install -r requirements.txt
- $ python app.py
- $ python3 -m venv kv01_venv
- $ source kv01_venv/bin/activate (<= Activate virtual Environment)
- $ deactivate (<= Deactivate virtual Environment)
- $ pip install -r requirements.txt
- $ python app.py
-
Verify if you have conda installed ($conda --version) if not go to anconda or miniconda to download and install it
-
$ conda create -n kv01_venv
-
$ conda activate kv01_venv (<= Activate virtual Environment)
-
$ conda deactivate (<= Deactivate virtual Environment)
-
$ pip install -r requirements.txt
-
$ python app.py
Note - If you are using Linux or Mac. Open up your terminal and directly jump to step number 4
- Signup on Digital Ocean (https://m.do.co/c/c2cf5bc2a760 - Use this link to get 100$ free)
- Create a Droplet
- Open up terminal Access Console and login using you One-Time Password
- Installing Python and Virtual Environment https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-ubuntu-16-04
- Install buildozer - https://buildozer.readthedocs.io/en/latest/installation.html#targeting-android
- Install Filezilla ( skip if Linux or Mac) - https://filezilla-project.org/download.php
- Connect Filzilla to server ( skip if Linux or Mac)
- Upload your kivy folder to enviroments folder ( in linux/mac just go to your kivy folder using terminal)
- buildozer init (spec file will be add in the project folder)
- buildozer -v android debug (the apk file can be find in the new created bin folder you can rename it as you want )
- In case you get error in step 10 reinstall cpython ($ pip install cpython)
- Using Filezilla download the apk in your bin directory
- Copy this apk file to your phone
- Run it. ( You need to enable install apk with unknown sources)
- google play
- ios app
- add color
- fix bugs
I'm a data scientist, software Engineer. data and technology passionate person, Artificial Intelligence enthusiast
My Website Click Here
Social Network
My game make with kivy