Skip to content

Commit

Permalink
Changing color of board and lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Clara authored and claralb2002 committed Jan 9, 2024
1 parent 1052947 commit fdffae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion environment/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ class Color:
PURPLE = (160, 0, 240)
GRAY = (240, 240, 240)
PINK = (255, 20, 147)
GREYBLUE = (204, 229, 255)

ALL = [BLACK, PURPLE, GREEN, RED, BLUE, ORANGE, CYAN, YELLOW]
ALL = [BLACK, PURPLE, GREEN, RED, BLUE, ORANGE, CYAN, YELLOW, GREYBLUE]
4 changes: 2 additions & 2 deletions environment/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def __init__(self, bg_color, grid_color, highlight_color, text_color, render_bum
self.show_ghost_piece = show_ghost_piece
self.text_color = text_color

NES_Tetris_Config = RenderConfig(Color.BLACK, Color.BLACK, Color.WHITE, Color.WHITE)
PAPER_Tetris_Config = RenderConfig(Color.GRAY, Color.WHITE, Color.PINK, Color.BLACK)
NES_Tetris_Config = RenderConfig(Color.BLACK, Color.WHITE, Color.WHITE, Color.WHITE)
PAPER_Tetris_Config = RenderConfig(Color.GREYBLUE, Color.WHITE, Color.BLACK, Color.BLACK, True, False)

class PyGameRenderer():
def __init__(self, cell_size, config=NES_Tetris_Config):
Expand Down

0 comments on commit fdffae1

Please sign in to comment.