From be3e2ee9426b85f6799afe62a0c0f4d636dbb7e7 Mon Sep 17 00:00:00 2001 From: JakubR Date: Sat, 27 Mar 2021 18:30:46 +0100 Subject: [PATCH] did minor code refactoring --- project_constants.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project_constants.py b/project_constants.py index b6e666c..68b2b03 100644 --- a/project_constants.py +++ b/project_constants.py @@ -36,14 +36,18 @@ SCREEN = pygame.display.set_mode( # # NORMAL STRUCTS # # USED BY JSON GENERATOR + # used to generate random tile colors STRUCT_TILE_COLORS = ["BLUE", "GREEN", "ORANGE", "PURPLE", "RED", "WHITE", "YELLOW"] + # used to generate random mines and create not random mines STRUCT_MINE_TYPES = ["standard", "chained", "time"] STRUCT_MINE_ASSET_TYPES = ['A', 'B', 'F', 'K'] + # values that are predefined for certain mine types and can't be changed by changing any parameters # put here all dict keys that have hardcoded values and are not supposed to be editable HARDCODED_VALUES = ["asset", "mine_type"] + # default values and key-value pairs for JsonGenerator class # when defining a new mine it's dict template must be put here STRUCT_MINE_ATTRIBUTES = { @@ -62,6 +66,7 @@ STRUCT_MINE_ATTRIBUTES = { "timer": None } } + # types of attributes the mines have # used for random mine generation # int - integral number