-
Notifications
You must be signed in to change notification settings - Fork 2
/
tetris.py
51 lines (44 loc) · 1002 Bytes
/
tetris.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Eric Pai
# Spring 2014
"""
INSRT TETRIS LOGO HERE
INSERT CREDITS HERE
"""
from __Main__ import *
#### TO DO LIST ####
# ---Game Mechanics---
# - wall kicking XX
# - line completion (sort of)
# - "levels" and associated falling speeds (YES!)
# - score (sort of)
# - "next piece" box (YES!)
# - "retry" option, after losing (YES!)
# - ghosting
# ---Extras/Aesthetics---
# - home page (YES!)
# - "lose" mechanism (YES!)
# - "quit" mechanism" (YES!)
# - "clear line" animations (Maybe later...)
# - adjust layout/make more clean (YES!)
# - add "juciness" (nope)
# - make screen adjustable? (nope)
# - high score system
# ---Other---
# - get tested and advice from other people
# - show andrew as a going-away present!
####################
###### Special Thanks #######
# - carlos caballero
# - jordon wing
m = Main()
try:
m.doWelcome()
m.gameLoop()
except ZeroDivisionError as e:
pass
except KeyboardInterrupt as e:
pass
except Exception as e:
raise e
finally:
m.doFinish()