1
Fork 0

debugging shooting and generating

This commit is contained in:
Jake Howard 2015-05-09 23:54:31 +01:00
parent 038aacb383
commit afcd0a29a7

View file

@ -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)