Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Refined the lives section in startGame() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningInfern0 authored Jan 2, 2022
1 parent aee0867 commit 227da2f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions player.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ def startGame(systemName, startLevel, proLevel):
# checks if lives are 0, breaks if true
if lives == 0:
print("You are out of lives. Game over!")
print('-1 Level')
if startLevel == 0:
break
if startLevel == 1:
print('A level has not been taken.')
else:
startLevel -= 1
editSystemSave(systemname2, startLevel)
break
print('-1 Level')
editSystemSave(systemName, startLevel)
lives = 3
sleep(3)
clear()

# randomly chooses a segment and loads art
seg = random.randint(0, 5)
Expand Down Expand Up @@ -236,7 +238,7 @@ def startGame(systemName, startLevel, proLevel):

if catch == "credits":
clear()
print('ProgressCLI95 0.2.1 Development Build 3')
print('ProgressCLI95 0.2.1 Development Build 4')
print('Original code (0.1) by Setapdede')
print('Improved code (0.2+) by BurningInfern0')
print('Made for use with Sparrow Assistant by pivinx1')
Expand Down

0 comments on commit 227da2f

Please sign in to comment.