did minor code refactoring
This commit is contained in:
parent
c020d2277a
commit
be3e2ee942
@ -36,14 +36,18 @@ SCREEN = pygame.display.set_mode(
|
|||||||
# # NORMAL STRUCTS
|
# # NORMAL STRUCTS
|
||||||
|
|
||||||
# # USED BY JSON GENERATOR
|
# # USED BY JSON GENERATOR
|
||||||
|
|
||||||
# used to generate random tile colors
|
# used to generate random tile colors
|
||||||
STRUCT_TILE_COLORS = ["BLUE", "GREEN", "ORANGE", "PURPLE", "RED", "WHITE", "YELLOW"]
|
STRUCT_TILE_COLORS = ["BLUE", "GREEN", "ORANGE", "PURPLE", "RED", "WHITE", "YELLOW"]
|
||||||
|
|
||||||
# used to generate random mines and create not random mines
|
# used to generate random mines and create not random mines
|
||||||
STRUCT_MINE_TYPES = ["standard", "chained", "time"]
|
STRUCT_MINE_TYPES = ["standard", "chained", "time"]
|
||||||
STRUCT_MINE_ASSET_TYPES = ['A', 'B', 'F', 'K']
|
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
|
# 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
|
# put here all dict keys that have hardcoded values and are not supposed to be editable
|
||||||
HARDCODED_VALUES = ["asset", "mine_type"]
|
HARDCODED_VALUES = ["asset", "mine_type"]
|
||||||
|
|
||||||
# default values and key-value pairs for JsonGenerator class
|
# default values and key-value pairs for JsonGenerator class
|
||||||
# when defining a new mine it's dict template must be put here
|
# when defining a new mine it's dict template must be put here
|
||||||
STRUCT_MINE_ATTRIBUTES = {
|
STRUCT_MINE_ATTRIBUTES = {
|
||||||
@ -62,6 +66,7 @@ STRUCT_MINE_ATTRIBUTES = {
|
|||||||
"timer": None
|
"timer": None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# types of attributes the mines have
|
# types of attributes the mines have
|
||||||
# used for random mine generation
|
# used for random mine generation
|
||||||
# int - integral number
|
# int - integral number
|
||||||
|
Loading…
Reference in New Issue
Block a user