2022-03-27 16:43:15 +02:00
|
|
|
import math
|
|
|
|
|
2022-03-20 09:47:49 +01:00
|
|
|
|
|
|
|
class Colors:
|
2022-03-27 16:43:15 +02:00
|
|
|
ORANGE = (255, 140, 0)
|
|
|
|
RED = (255, 0, 0)
|
|
|
|
GREEN = (5, 112, 0)
|
|
|
|
BLACK = (0, 0, 0)
|
|
|
|
WHITE = (255, 255, 255)
|
|
|
|
GREY = (84, 84, 84)
|
|
|
|
|
2022-03-20 09:47:49 +01:00
|
|
|
|
|
|
|
class SquareConfig:
|
2022-03-27 16:43:15 +02:00
|
|
|
width = 10
|
|
|
|
height = 10
|
2022-03-20 09:47:49 +01:00
|
|
|
|
2022-03-27 16:43:15 +02:00
|
|
|
unclicked_color = Colors.BLACK
|
|
|
|
clicked_color = Colors.WHITE
|
2022-03-20 09:47:49 +01:00
|
|
|
|
2022-03-27 16:43:15 +02:00
|
|
|
|
|
|
|
class GeneralConfig:
|
|
|
|
width = 1000
|
|
|
|
height = 1000
|
|
|
|
fields_amount_x = math.trunc(width / SquareConfig.width)
|
|
|
|
fields_amount_y = math.trunc(height / SquareConfig.height)
|
|
|
|
fps = 150
|
|
|
|
window_caption = "GOL"
|
|
|
|
evolve_speed = 360 # ziemlich slow das updated abhänig davon wie viele mill sec das game seit dem eltzten mal gelaufen ist im schnit sind das so 60
|