-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
56 lines (50 loc) · 892 Bytes
/
main.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
52
53
54
55
56
import turtle
from game import Game
turtle.tracer(0, 0)
# changable variables
win = turtle.Screen()
win.setup(800, 700)
gravitySpeed = 1
cellWidth = 30
pieceColors = {
"O": "yellow",
"L": "orange",
"J": "blue",
"I": "cyan",
"S": "green",
"Z": "red",
"T": "purple"
}
# piece
pieceEdgeColor = "black"
pieceEdgeThickness = 3
# grid
gridColor = "grey"
gridBorderColor = "black"
gridThickness = 1
gridEdgeThickness = 5
# ghostpiece
ghostColor = "black"
ghostBorderColor = "black"
ghostBorderThickness = 3
#
scoreFont = "Arial"
scoreFontSize = 30
game = Game(
win,
gravitySpeed,
cellWidth,
pieceColors,
pieceEdgeColor,
pieceEdgeThickness,
gridColor,
gridBorderColor,
gridThickness,
gridEdgeThickness,
ghostColor,
ghostBorderColor,
ghostBorderThickness,
scoreFont,
scoreFontSize
)
game.main()