diff options
author | Mateu Batle <mateu.batle@collabora.co.uk> | 2010-11-11 04:20:21 (GMT) |
---|---|---|
committer | Mateu Batle <mateu.batle@collabora.co.uk> | 2010-11-11 04:20:21 (GMT) |
commit | 4c4108e32e3d6cc0d73fb6ebeeb43ef4cc755f22 (patch) | |
tree | 9f4e66c19704687fc452fac53a60a9bb3657a912 /game2 | |
parent | a9248dbeb514f9b2cdcaf933c9da5aa353e551ae (diff) |
Removed debug prints
Diffstat (limited to 'game2')
-rwxr-xr-x | game2/game2.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/game2/game2.py b/game2/game2.py index 152bcf3..91a248e 100755 --- a/game2/game2.py +++ b/game2/game2.py @@ -195,7 +195,7 @@ class Game2(usmpgames.ApplicationState): result=number1+number2 elif(GAMEMODE==2): - print('n: '+str(n)) + #print('n: '+str(n)) #random.randint(max(result-4,1), min(99,result+4)) number1 = random.randint(max(n-15,0),n) + 1 number2 = random.randint(max(n-15,0),n) @@ -211,7 +211,7 @@ class Game2(usmpgames.ApplicationState): result=number1-number2 result=number1-number2 elif(GAMEMODE==3): - print('n: '+str(n)) + #print('n: '+str(n)) #random.randint(max(result-4,1), min(99,result+4)) number1 = random.randint(max(n-5,0),n+1)+1 number2 = random.randint(max(n-5,0),n+1)+1 @@ -221,7 +221,7 @@ class Game2(usmpgames.ApplicationState): result=number1*number2 result=number1*number2 elif(GAMEMODE==4): - print('n: '+str(n)) + #print('n: '+str(n)) #random.randint(max(result-4,1), min(99,result+4)) number1 = random.randint(1,9) #number1=9 @@ -231,7 +231,7 @@ class Game2(usmpgames.ApplicationState): putImagesToList() - print ('number1: '+str(number1)+' number2: '+str(number2)+' result: '+str(result)) + #print ('number1: '+str(number1)+' number2: '+str(number2)+' result: '+str(result)) while True: # Score loop #score += 1 # increase score @@ -369,7 +369,7 @@ class Game2(usmpgames.ApplicationState): medC=0 i=0 while(i<number1): - print('Iteracion: '+str(i)) + #print('Iteracion: '+str(i)) surface.blit(imageList2[i], (10+medC,60) ) medC=medC+65 i=i+1 @@ -379,7 +379,7 @@ class Game2(usmpgames.ApplicationState): bunnyImageF.rect=rectBunny if bunnyEatsCarrot(bunnyImage, carrots): - print ('bunnyEatsCarrot(before): MaxScore'+str(maxScore)+' score: '+str(maxScore)) + #print ('bunnyEatsCarrot(before): MaxScore'+str(maxScore)+' score: '+str(maxScore)) #print 'if bunnyEatsCarrot(bunnyImage, carrots): score: '+str(score) if checkResult(result): @@ -391,7 +391,7 @@ class Game2(usmpgames.ApplicationState): n=n+1 else: n=n+5 - print ('n cambio a :'+str(n)) + #print ('n cambio a :'+str(n)) drawText(_('PRESS ANY KEY'), font, surface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 2.25) + 50,TEXTCOLOR) musicSound.stop() @@ -410,7 +410,7 @@ class Game2(usmpgames.ApplicationState): drawText(_('PRESS ANY KEY'), font, surface, (WINDOWWIDTH / 3), (WINDOWHEIGHT / 2.25) + 100, TEXTCOLOR) musicSound.stop() gameOverSound.play() - print ('bunnyEatsCarrot(after): MaxScore'+str(maxScore)+' score: '+str(maxScore)) + #print ('bunnyEatsCarrot(after): MaxScore'+str(maxScore)+' score: '+str(maxScore)) break else: # Draw playerpygame.time.wait(2000) rectangle @@ -505,7 +505,7 @@ def checkResult(result): global resultChosen global score global a - print ('resultChosen: '+str(resultChosen)+ ' and result: '+str(result)) + #print ('resultChosen: '+str(resultChosen)+ ' and result: '+str(result)) if result==resultChosen: score=score+20 #print('score: '+str(score)) @@ -515,7 +515,7 @@ def checkResult(result): if score>0: score=score-5 a=score - print('score: '+str(score)) + #print('score: '+str(score)) return False @@ -540,7 +540,7 @@ def putImagesToList(): while(i<number1): randomImage=imageList[random.randint(0,len(imageList)-1)] imageList2.append(randomImage) - print(imageList2[i]) + #print(imageList2[i]) i=i+1 ########################################## classes @@ -564,7 +564,7 @@ class Carrots(MBSprite) : self.velocity = random.randint(CARROTMINVEL, CARROTMAXVEL) self.number =random.randint(max(result-3,1), min(99,result+3)) - print ('fruit result: '+str(self.number)) + #print ('fruit result: '+str(self.number)) class Cuy(MBSprite) : def __init__(self, image): |