diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cd878ed..269ef5d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -58,6 +58,41 @@ jobs:
asset_name: "Space-Way-${{ needs.create-release.outputs.tag_name }}.exe"
asset_content_type: application/exe
+ build-android:
+ name: Build for Android
+ runs-on: ubuntu-latest
+ needs: create-release
+ steps:
+ - name: Setup Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.8
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ ref: android
+ - name: Configure payloads
+ run: |
+ VERSION=$(jq < spaceway/config/config.json .version -r)
+ sed -i "s/#VERSION#/$VERSION/" buildozer.spec
+ sed -i "s/#VERSION#/'$VERSION'/" setupfiles/android/p4a_recipes/spaceway/__init__.py
+ - name: Build APK
+ uses: ArtemSBulgakov/buildozer-action@v1
+ id: buildozer
+ with:
+ command: |
+ python3 setup.py sdist
+ PATH_TO_PACKAGES=$(pwd)/dist buildozer android debug
+ - name: Upload APK
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }}
+ with:
+ upload_url: ${{ needs.create-release.outputs.upload_url }}
+ asset_path: ${{ steps.buildozer.outputs.filename }}
+ asset_name: "Space-Way-${{ needs.create-release.outputs.tag_name }}.apk"
+ asset_content_type: application/vnd.android.package-archive
+
publish-pypi:
name: Publish on PyPI
runs-on: ubuntu-latest
diff --git a/README.md b/README.md
index 769dcf7..a11109d 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,8 @@
Arcade game about space, in which you must overcome the space path by flying around obstacles
-![](https://img.shields.io/pypi/v/spaceway) ![](https://img.shields.io/github/release-date/YariKartoshe4ka/Space-Way) ![](https://img.shields.io/pypi/dm/spaceway)
+![](https://img.shields.io/pypi/v/spaceway) ![](https://img.shields.io/github/release-date/YariKartoshe4ka/Space-Way) ![](https://img.shields.io/pypi/dm/spaceway)
+![](https://img.shields.io/codecov/c/github/YariKartoshe4ka/Space-Way) ![](https://img.shields.io/github/issues-raw/YariKartoshe4ka/Space-Way/help%20wanted)
@@ -13,11 +14,16 @@ Arcade game about space, in which you must overcome the space path by flying aro
### Installation
-###### Compiled (Only Windows)
+###### Compiled (Windows 10+)
-1. Download Space Way installer from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest)
-2. Launch the installer and install Space Way
-3. Launch the program with a shortcut
+1. Download Space Way binary from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest) (ends on **.exe**)
+2. Launch program and play!
+
+###### Compiled (Android 5.0+)
+
+1. Download Space Way package file from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest) (ends on **.apk**)
+2. Launch it and install Space Way
+3. Run game with shortcut and play!
###### Via pip (All platforms)
@@ -36,7 +42,6 @@ I am not a professional game developer (this is my first game), and I do not kno
1. Music and sprites update
2. Add more obstacles for different levels of difficulty
-3. Add support of Android (very far future, >100 stars on this repo)
[and many other things...](https://github.com/YariKartoshe4ka/Space-Way/blob/master/docs/TODO.md)
@@ -45,6 +50,7 @@ I am not a professional game developer (this is my first game), and I do not kno
If you want to contribute to this repo, check out [TODO.md](https://github.com/YariKartoshe4ka/Space-Way/blob/master/docs/TODO.md) and check out what you can do
I am currently looking for artists to evaluate and rework sprites
+You can also look at the issue marked as *"help wanted"* and help to solve them
I welcome information about bugs, ideas and suggestions, always open for issue and pull requests
diff --git a/docs/CODESTYLE.md b/docs/CODESTYLE.md
index 324058b..07c605e 100644
--- a/docs/CODESTYLE.md
+++ b/docs/CODESTYLE.md
@@ -33,7 +33,7 @@ General files:
- *collection.py* - file with the implementation of additional data structures, mainly the *pygame.sprite.Group* extensions
- *config.py* - file with some objects for easier configuration management
- *debug.py* - file with some objects for easier debugging game
-- *hitbox.py* - аile with implementation of hitboxes for some objects calculations
+- *hitbox.py* - file with implementation of hitboxes for some objects calculations
- *main.py* - main file, import all modules, contains the entrypoint of game and connects all the scenes together
- *mixins.py* - file with mixins which are needed for simple creation of the same type of objects (DRY principle)
- *updater.py* - file responsible for updating Space Way
diff --git a/docs/UPDATE.md b/docs/UPDATE.md
index f5c1510..eac54b4 100644
--- a/docs/UPDATE.md
+++ b/docs/UPDATE.md
@@ -5,9 +5,15 @@
###### Windows
-1. Download new Space Way binary from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest) (installer ends on **.exe**)
+1. Download new Space Way binary from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest) (ends on **.exe**)
2. Launch program and play!
+###### Android
+
+1. Download new Space Way package from [latest releases](https://github.com/YariKartoshe4ka/Space-Way/releases/latest) (ends on **.apk**)
+2. Launch, it will offer you to update Space Way, you should agree
+3. Run game with shortcut and play!
+
###### Other
1. Update Sapce Way via PIP
diff --git a/setupfiles/Space Way.desktop b/setupfiles/Space Way.desktop
index 8fcd7d8..1de3493 100755
--- a/setupfiles/Space Way.desktop
+++ b/setupfiles/Space Way.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
-Version=2.0.0
+Version=2.2.0
Type=Application
Name=Space Way
Comment=Arcade game about space, in which you must overcome the space path by flying around obstacles
diff --git a/spaceway/config/config.json b/spaceway/config/config.json
index 8978d5b..8030680 100644
--- a/spaceway/config/config.json
+++ b/spaceway/config/config.json
@@ -4,6 +4,6 @@
"FPS": 60,
"scene": "headpiece",
"sub_scene": "headpiece",
- "version": "2.1.0",
+ "version": "2.2.0",
"debug": false
}
\ No newline at end of file