Skip to content

Commit aaadfc6

Browse files
committed
updated changelog, makefile, removed hardcoded name and version from setup.py
1 parent 497375d commit aaadfc6

8 files changed

+26
-151
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,4 @@ dmypy.json
127127
*.dat
128128
api.key
129129
**/.vscode/*
130+
**/release/*

BUILD.md

+2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ rm android-ndk-r19c-linux-x86_64.zip
9999
5. Download android platform and build-tools
100100
```
101101
sdkmanager "platforms;android-28"
102+
sdkmanager "platforms;android-29"
102103
sdkmanager "build-tools;28.0.2"
104+
sdkmanager "build-tools;29.0.0"
103105
```
104106

105107
6. Setup python virtual environment

CHANGELOG.md

+2-128
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,5 @@
11
# Changelog
22

3-
## [1.0.5] - 2021-06-10
4-
- changed default quit choice to No in ExitMenu
5-
- added support to hide the exit menu if ESCAPE key is pressed
6-
- code refactoring
73

8-
## [1.0.4] - 2020-05-17
9-
- added exit prompt in the game, this also acts as a game pause feature
10-
- changed size of sam missile
11-
- changed the probabity of a sam-launcher firing from 50% to 33%
12-
- changed the sam speed increase, now speed increases by 1 every 2 level instead of 1 level
13-
- changes the jet speed based on input mode; in mouse mode jet speed it slightly faster
14-
- changed the cloud and vegetation speed by increasing the vegetation's speed and reducing the cloud's speed
15-
- replaces threading in network communication with asyncio
16-
- renamed ReplayText to ReplayMenuText
17-
18-
## [1.0.3] - 2020-05-10
19-
- added support for new api
20-
- added sam launcher, they appear after level 5 and fire targeted missiles
21-
- added support to add 10 pts on each level up
22-
- added support to calulate player accuracy
23-
- added support to upload offline scores when internet connectivity is available thus so scores are lost
24-
- added common logging and serilization for both network-handler and leaderboard-handler
25-
- added ground and grass to the vegetation
26-
- added support to automatically open the update URL incase an update is available
27-
- moved all gama data files under the /data/ directory
28-
- changed log file name to game.log
29-
- changed API key handling from network-handler to main game file
30-
- changes game asset names to lowercase for UNIX comaptibity and changed name to be more meaningful
31-
- changes game asset path name for UNIX comaptibity
32-
- fixed hint text in player name input screen
33-
- fixed invalid player name input via file
34-
- fixed unwanted library imports in game classes
35-
- removed unused game assets
36-
- removed README file from final game distrubution build
37-
38-
## [1.0.2] - 2020-05-04
39-
- added support for player name, games prompts to enter the name for the 1st time and saving to file
40-
- added support for automatically loading exitsing player name from file
41-
- added support for player name to be used for submitting game result
42-
- added special hint in the input name menu
43-
- added support to save game level data along with game score
44-
- added support to boost enemy missle speed by 5% after each 10th level
45-
- changed starting missile count from 4 to 2
46-
- changed missile increase factor per level to half
47-
- changed input mode selection message in gamemenu sprite
48-
- changed jet speed from 8 to 7
49-
- changes TitleScreen enum to Screen as it has all type of screen information
50-
- changed bullet speed from 5 to 7, to avoid jet hitting its own bullet
51-
- changed game icon, shortcut icon
52-
- fixed leaderboard rendereing issue related to alignment
53-
- fixed help message
54-
- replace duplicate codes with list comprehension
55-
- removed capturing of system username
56-
57-
## [1.0.1] - 2020-05-03
58-
- added leaderboard functionality (requires internet)
59-
- added game help menu
60-
- added support to toggle between menu in game start and gameover screen
61-
- added support to upload game score and current system user to remote api
62-
- added support to check for game update at startup
63-
- added support for clouds to notify user about new game update
64-
- added support for dynamic menu spries creation instead for pre-created sprites
65-
- changed main game music
66-
- removed game sound for jet move up and move down (no more licenses)
67-
68-
## [1.0.0] - 2020-05-02
69-
- renamed game to PyBluesky
70-
- added background vegetation support
71-
- added packaging support
72-
73-
## [0.12] - 2020-05-02
74-
- updated sprite for bullet, jet
75-
- added support for flashing powerup star, flash rate is configurable in the class
76-
- added music which powerup is activated
77-
- added sprite for deactivated missiles to distinguishing between activated ones
78-
79-
## [0.11] - 2020-05-01
80-
- added powerup star which will mark all active missiles as bad
81-
- added suport for collision detection between the jet and its bullet
82-
- consuming powerup will increase game score by 100
83-
84-
## [0.10] - 2020-05-01
85-
- added ammo limit, game starts with 100 ammo and 50 is added pn every level up (max ammo can be 999)
86-
- added support for game to run in full screen by default
87-
- added support to dynamically set game resolution as the monitor resolution
88-
- channged score sprite color to dark grey
89-
- change levelup time from 10s to 20s
90-
91-
## [0.9] - 2020-05-01
92-
- added shoot functionality for the jet by clicking mouse of pressing spacebar
93-
- updated score calculation, now destroying 1 missile gives 10 pts
94-
- added game instruction in welcome screen
95-
- added sound effects for shooting and destroying missiles
96-
97-
## [0.8] - 2020-04-27
98-
- added methods to continously move text on either X or Y axis
99-
- added author sprite in the game menu
100-
101-
## [0.7] - 2020-04-26
102-
- added game title in the menu
103-
- added support for level up in the game, missile count will increase every level
104-
- added sound for level up
105-
- removed redundant condition check in jet sprite
106-
- renamed GameInputText to GameMenuText
107-
108-
## [0.6] - 2020-04-26
109-
- refactored game code into modules based on sprite
110-
- introduced game environment to maintain and share game environment data across different various modules
111-
112-
## [0.5] - 2020-04-26
113-
- added support for continous jet movement towards cursor; even on fixed mouse position
114-
115-
## [0.4] - 2020-04-26
116-
- added suport for mouse movement as game input
117-
- added input mode screen on game start
118-
- fixed replay text sprite rendering
119-
120-
## [0.3] - 2020-04-25
121-
- added support for game replay
122-
123-
## [0.2] - 2020-04-24
124-
- refactored code and added comments
125-
- changed jet image and collision sound
126-
- changed cloud image and added support for random cloud design
127-
128-
## [0.1] - 2020-04-23
129-
- first version with default game play
130-
- added gameover message during collision
131-
- added game scoring and playtime
4+
## [1.0.0] - 2021-07-09
5+
- First release

Makefile

+12-8
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,29 @@
55

66
ADB = adb
77
PYTHON = python
8-
APK_NAME = PyBluesky__armeabi-v7a-debug-1.0.0-.apk
8+
ARCHITECTURE = armeabi-v7a
9+
VERSION = 1.0.0
10+
APK_NAME = PyBluesky__${ARCHITECTURE}-debug-${VERSION}-.apk
911
PACKAGE_NAME = com.ljnath.pybluesky
1012
ACTIVITY_NAME = org.kivy.android.PythonActivity
1113

12-
all: compile uninstall install start
14+
all: compile uninstall_apk install_apk run_apk
1315

1416
compile:
1517
@echo Compiling project
1618
${PYTHON} setup.py apk
1719

1820
reinstall: uninstall install
1921

20-
uninstall:
22+
uninstall_apk:
2123
@echo Un-installing app with package name ${PACKAGE_NAME} from target device
2224
${ADB} uninstall ${PACKAGE_NAME}
2325

24-
install:
26+
install_apk:
2527
@echo Installing ${APK_NAME} in target device
2628
${ADB} install ${APK_NAME}
2729

28-
start:
30+
run_apk:
2931
@echo Starting ${APK_NAME} in target device
3032
${ADB} shell am start -n ${PACKAGE_NAME}/${ACTIVITY_NAME}
3133

@@ -48,8 +50,10 @@ help:
4850
@echo make : Default operations to compile project, uninstall apk from attached device, install new apk and start it
4951
@echo make -k : Same as default, but it will configure with the next dependency even if a dependency fails
5052
@echo make compile : Compile PyBluesky project using setup.pyc
51-
@echo make uninstall: Uninstall apk from attached android device using adb
52-
@echo make install : Install apk into attached android device using adb
53-
@echo make start : Start apk in the attached android device using adb
53+
@echo make uninstall_apk: Uninstall apk from attached android device using adb
54+
@echo make install_apk : Install apk into attached android device using adb
55+
@echo make run_apk : Start apk in the attached android device using adb
56+
@echo make reset : clean + update
5457
@echo make clean : Clean up already build apk file
58+
@echo make update : Reset local code repo and update with github
5559
@echo -------------------------------------------

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Author : Lakhya Jyoti Nath (ljnath)<br>
66
Date : June 2021<br>
77
Email : [email protected]<br>
8-
Website : https://www.ljnath.com
8+
Website : https://ljnath.com
99

1010

1111
[![GitHub license](https://img.shields.io/github/license/ljnath/PyBluesky-android)](https://github.com/ljnath/PyBluesky-android/blob/master/LICENSE)

main.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
Version: 1.0.0 (based on desktop release 1.0.5 ; changed version number for android release)
2727
Author: Lakhya Jyoti Nath (ljnath)
2828
29-
Website: https://www.ljnath.com
29+
Website: https://ljnath.com
3030
"""
3131

3232
import asyncio
@@ -209,15 +209,6 @@ def play():
209209
menu_screens = {Screen.REPLAY_MENU, Screen.GAME_MENU, Screen.EXIT_MENU}
210210
last_active_sprite = (game_env.dynamic.active_screen, active_sprite)
211211

212-
def hide_exit_menu():
213-
nonlocal game_pause, game_started, active_sprite
214-
pygame.mixer.music.unpause()
215-
game_started, game_pause = game_pause, game_started
216-
game_env.dynamic.all_sprites.remove(active_sprite)
217-
game_env.dynamic.active_screen, active_sprite = last_active_sprite
218-
if game_env.dynamic.active_screen != Screen.GAME_SCREEN:
219-
[game_env.dynamic.all_sprites.add(sprite) for sprite in (active_sprite, hint_sprite)]
220-
221212
def start_gameplay():
222213
nonlocal gameover, jet, star_shown, screen_color, game_started, ADD_MISSILE, ADD_SAM_LAUNCHER
223214
pygame.event.set_blocked(game_env.MOUSEMOTION)

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
appdirs==1.4.4
22
colorama==0.4.4
3+
Cython==0.29.23
34
importlib-metadata==4.6.0
45
Jinja2==3.0.1
56
MarkupSafe==2.0.1

setup.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@
2424
Version: 1.0.0
2525
Author: Lakhya Jyoti Nath (ljnath)
2626
27-
Website: https://www.ljnath.com
27+
Website: https://ljnath.com
2828
"""
2929

3030
from distutils.core import setup
3131
from setuptools import find_packages
3232

33+
from game.data.static import StaticData
34+
3335
setup(
34-
name="PyBluesky",
35-
version='1.0.0',
36+
name= StaticData.name,
37+
version= StaticData.version,
3638
author="Lakhya Jyoti Nath (ljnath)",
3739
author_email='[email protected]',
3840
description='A simple python game to navigate your jet and fight \
@@ -59,7 +61,7 @@
5961
'presplash': 'assets/images/presplash.png',
6062
'presplash-color': '#C4E2FF',
6163
'icon': 'assets/icon/pybluesky.png',
62-
'dist-name': 'PyBluesky',
64+
'dist-name': StaticData.name,
6365
'android-api': 29,
6466
'bootstrap': 'sdl2',
6567
'orientation': 'landscape',

0 commit comments

Comments
 (0)