Verteiltesystheme/Code/Config.py

36 lines
782 B
Python
Raw Normal View History

import math
import pygame
2022-03-20 09:47:49 +01:00
class Colors:
ORANGE = (255, 140, 0)
RED = (255, 0, 0)
GREEN = (5, 112, 0)
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREY = (84, 84, 84)
class Fonts:
pygame.init()
monospace_20 = pygame.font.SysFont("monospace", 20)
monospace_80 = pygame.font.SysFont("monospace", 80)
2022-03-20 09:47:49 +01:00
class SquareConfig:
width = 10
height = 10
2022-03-20 09:47:49 +01:00
unclicked_color = Colors.BLACK
clicked_color = Colors.WHITE
2022-03-20 09:47:49 +01: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