Skip to content

Commit

Permalink
B
Browse files Browse the repository at this point in the history
  • Loading branch information
Zcr1 committed Nov 6, 2011
1 parent 72111b8 commit a4829c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Main.py
Expand Up @@ -333,6 +333,7 @@ def main():
if(enemyList[count].Hit(enemyList,count,5)):
exploList.append(Explo(enx, eny, False))
x = random.randint(0,100)
#print x
if x <= 25:
tmp = PowerUp(enx,eny)
PowerUpList.append(tmp)
Expand Down Expand Up @@ -534,7 +535,7 @@ def gameOver(points, windowSurfaceObj,fpsClock, desertBackground):
headSurfaceObj = pygame.image.load('dead.png')
soundObjBounce = pygame.mixer.Sound("select.wav")
soundObjectSelect = pygame.mixer.Sound("click.wav")
menubkg = pygame.image.load(os.path.join(os.path.curdir, braveheart.jpg)).convert_alpha()
menubkg = pygame.image.load(os.path.join(os.path.curdir, 'braveheart.jpg')).convert_alpha()
fontObj = pygame.font.Font('freesansbold.ttf', 110)
fontObj1 = pygame.font.Font('freesansbold.ttf', 40)
fontObj2 = pygame.font.Font('freesansbold.ttf', 32)
Expand Down Expand Up @@ -606,7 +607,7 @@ def enemyGenerator(enemyList, maxEnemies,points):
speed += random.randint(0, 4)
if random.randint(0, 100) < 50: # 50% chance enemy will be flying
e = Enemyflying(right,speed)
if random.randint(0,10) < 3 * math.ceil(points/100):
if random.randint(0,20) < 2 * math.ceil(points/100):
e.boss = True
e.speed = 8
else:
Expand Down

0 comments on commit a4829c3

Please sign in to comment.