-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
71 lines (53 loc) · 1.61 KB
/
config.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import pygame
# Creating the grid class
class Grid(object):
def __init__(self):
self.yf = 90
self.noOfRows = 11
self.sHeight = self.yf * self.noOfRows
self.sWidth = 1000
# Creating the font method
def font(self):
self.fonty = "comicsans"
# Creating a color method
def color1(self):
self.colorone = (0, 0, 0)
# Creating another color method
def color2(self):
self.colortwo = (255, 255, 255)
# Creating another color method
def color3(self):
self.colorthree = (64, 224, 208)
# Creating another color method
def color4(self):
self.colorfour = (0, 200, 255)
# Creating another color method
def color5(self):
self.colorfive = (1, 10, 67)
# Creating another color method
def color6(self):
self.colorsix = (255, 255, 0)
# Creating another color method
def color7(self):
self.colorseven = (69, 5, 5)
# Creating another color method
def color8(self):
self.coloreight = (255, 194, 194)
# Creating another color method
def color9(self):
self.colornine = (255, 46, 99)
# Creating methods for my messages
def p1string(self):
self.p1 = "Player 1: "
def p2string(self):
self.p2 = "Player 2: "
def levstring(self):
self.level = "Level: "
def fstring(self):
self.f = "Press F to activate slow"
def motstring(self):
self.motion = " motion(only works twice per player): "
def p1won(self):
self.won1 = "Player 1 won! "
def p2won(self):
self.won2 = "Player 2 won! "