|
@@ -31,13 +31,15 @@ class Tetris:
|
31
|
31
|
self.colors = [
|
32
|
32
|
(251, 72, 196), # camp23 pink
|
33
|
33
|
(63, 255, 33), # camp23 green
|
34
|
|
- (255, 0, 0),
|
35
|
|
- #(0, 255, 0),
|
36
|
|
- (0, 0, 255),
|
37
|
|
- (255, 255, 0),
|
38
|
|
- (0, 255, 255),
|
39
|
|
- (255, 0, 255),
|
|
34
|
+ (255, 0, 0), # red
|
|
35
|
+ #(0, 255, 0), # green
|
|
36
|
+ (0, 0, 255), # blue
|
|
37
|
+ (255, 255, 0), # yellow
|
|
38
|
+ (0, 255, 255), # cyan
|
|
39
|
+ #(255, 0, 255),
|
40
|
40
|
#(255, 255, 255),
|
|
41
|
+ (255, 127, 0), # orange
|
|
42
|
+ (127, 127, 127), # grey
|
41
|
43
|
]
|
42
|
44
|
|
43
|
45
|
DrawText = util.getTextDrawer()
|
|
@@ -415,7 +417,7 @@ class Tetris:
|
415
|
417
|
# draw play area and border
|
416
|
418
|
for x in range(-1, self.width + 1):
|
417
|
419
|
for y in range(-1, self.height + 1):
|
418
|
|
- c = self.colors[1] # border color
|
|
420
|
+ c = self.colors[7] # border color
|
419
|
421
|
if (x >= 0) and (y >= 0) and (x < self.width) and (y < self.height):
|
420
|
422
|
c = self.data[x][y]
|
421
|
423
|
|
|
@@ -430,7 +432,7 @@ class Tetris:
|
430
|
432
|
# draw next piece and border
|
431
|
433
|
for x in range(-1, self.max_width + 1):
|
432
|
434
|
for y in range(-1, self.max_height + 1):
|
433
|
|
- c = self.colors[0] # border color
|
|
435
|
+ c = self.colors[7] # border color
|
434
|
436
|
if (x >= 0) and (y >= 0) and (x < self.max_width) and (y < self.max_height):
|
435
|
437
|
if self.next_piece == None:
|
436
|
438
|
c = (0, 0, 0)
|