Sep-22-2019, 10:56 AM
You really don't need that 'color' thing. You could also just do it like that:
WHITE = (255, 255, 255) BLACK = (0, 0, 0) DARKGREY = (40, 40, 40) LIGHTGREY = (100, 100, 100) GREEN = (0, 255, 0) RED = (255, 0, 0) YELLOW = (255, 255, 0) BROWN = (106, 55, 5) DARKGREEN = (0, 100, 0, 255) ORANGE = (255,100,10)Then if you want to use the colour somewhere, e.g.
BGCOLOR = DARKGREEN screen.fill(BGCOLOR)That's the way I am doing it in my game.