mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-30 15:31:07 +00:00
6279e83f26
* Simple 2048 GUI tkinter game in Python3 * added contributor to readme file
50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
GRID_COLOR = "#a39489"
|
|
EMPTY_CELL_COLOR = "#c2b3a9"
|
|
SCORE_LABEL_FONT = ("Verdana", 20)
|
|
SCORE_FONT = ("Helvetica", 32, "bold")
|
|
GAME_OVER_FONT = ("Helvetica", 48, "bold")
|
|
GAME_OVER_FONT_COLOR = "#ffffff"
|
|
WINNER_BG = "#ffcc00"
|
|
LOSER_BG = "#a39489"
|
|
|
|
CELL_COLORS = {
|
|
2: "#fcefe6",
|
|
4: "#f2e8cb",
|
|
8: "#f5b682",
|
|
16: "#f29446",
|
|
32: "#ff775c",
|
|
64: "#e64c2e",
|
|
128: "#ede291",
|
|
256: "#fce130",
|
|
512: "#ffdb4a",
|
|
1024: "#f0b922",
|
|
2048: "#fad74d"
|
|
}
|
|
|
|
CELL_NUMBER_COLORS = {
|
|
2: "#695c57",
|
|
4: "#695c57",
|
|
8: "#ffffff",
|
|
16: "#ffffff",
|
|
32: "#ffffff",
|
|
64: "#ffffff",
|
|
128: "#ffffff",
|
|
256: "#ffffff",
|
|
512: "#ffffff",
|
|
1024: "#ffffff",
|
|
2048: "#ffffff"
|
|
}
|
|
|
|
CELL_NUMBER_FONTS = {
|
|
2: ("Helvetica", 55, "bold"),
|
|
4: ("Helvetica", 55, "bold"),
|
|
8: ("Helvetica", 55, "bold"),
|
|
16: ("Helvetica", 50, "bold"),
|
|
32: ("Helvetica", 50, "bold"),
|
|
64: ("Helvetica", 50, "bold"),
|
|
128: ("Helvetica", 45, "bold"),
|
|
256: ("Helvetica", 45, "bold"),
|
|
512: ("Helvetica", 45, "bold"),
|
|
1024: ("Helvetica", 40, "bold"),
|
|
2048: ("Helvetica", 40, "bold")
|
|
} |