debugging shooting and generating
This commit is contained in:
parent
038aacb383
commit
afcd0a29a7
1 changed files with 2 additions and 1 deletions
|
@ -31,12 +31,13 @@ class Textures():
|
||||||
|
|
||||||
Level_Template = namedtuple('Level_Template', ("rows", "padding", "firebacks", "powerups"))
|
Level_Template = namedtuple('Level_Template', ("rows", "padding", "firebacks", "powerups"))
|
||||||
Levels = [
|
Levels = [
|
||||||
Level_Template(2, 30, 0, 0),
|
Level_Template(4, 30, 3, 0),
|
||||||
Level_Template(3, 15, 0, 1),
|
Level_Template(3, 15, 0, 1),
|
||||||
Level_Template(3, 20, 2, 1)
|
Level_Template(3, 20, 2, 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
def generate_random_level():
|
def generate_random_level():
|
||||||
|
logging.info("Generating a random level!")
|
||||||
rows = randint(0, 12)
|
rows = randint(0, 12)
|
||||||
padding = randint(5, 75)
|
padding = randint(5, 75)
|
||||||
firebacks = randint(0, 15)
|
firebacks = randint(0, 15)
|
||||||
|
|
Reference in a new issue