Skip to content

Commit d63dac8

Browse files
authored
Added new comments and commented out some lines
1 parent 741756f commit d63dac8

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

‎games/tetrixImplementation.py‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

2-
# By Al Sweigart
3-
# Released under a "Simplified BSD" license
2+
# Original implementation by Al Sweigart
3+
# Modified by github.com/fullarray
4+
# For this game to work, you need to install pygame in windows or linux.
5+
# E.g. pip install pygame-1.9.3-cp27-cp27m-win_amd64.whl
46

57
import random, time, pygame, sys
68
from pygame.locals import *
@@ -161,15 +163,15 @@ def main():
161163
DISPLAYSURF = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT))
162164
BASICFONT = pygame.font.Font('freesansbold.ttf', 18)
163165
BIGFONT = pygame.font.Font('freesansbold.ttf', 100)
164-
pygame.display.set_caption('Tetromino')
166+
pygame.display.set_caption('Tetris Py')
165167

166-
showTextScreen('Tetromino')
168+
showTextScreen('Tetris Py')
167169
while True: # game loop
168170
if random.randint(0, 1) == 0:
169-
pygame.mixer.music.load('tetrisb.mid')
170-
else:
171-
pygame.mixer.music.load('tetrisc.mid')
172-
pygame.mixer.music.play(-1, 0.0)
171+
#pygame.mixer.music.load('tetrisb.mid')
172+
#else:
173+
#pygame.mixer.music.load('tetrisc.mid')
174+
#pygame.mixer.music.play(-1, 0.0)
173175
runGame()
174176
pygame.mixer.music.stop()
175177
showTextScreen('Game Over')
@@ -502,4 +504,4 @@ def drawNextPiece(piece):
502504

503505

504506
if __name__ == '__main__':
505-
main()
507+
main()

0 commit comments

Comments
 (0)