diff --git a/main.py b/main.py index de5ec58..fc2e046 100644 --- a/main.py +++ b/main.py @@ -36,9 +36,12 @@ def main(fps=window_fps): # the main function lastclickpos = pygame.mouse.get_pos() # sets the variable to the position you last clicked if event.type == pygame.MOUSEBUTTONUP: # what happens when you release a mouse button click = False # sets the click variable to False so level function in levels.py can see again + if level == 0: + running = False if level == 1: # what happens when the level variable is equal to 1 level = levels.level1(screen, sheet, screen_width, screen_height, lastclickpos, basicfont, pygame.mouse, click, bigfont, level, tick, slightly_smaller_than_bigfont) # runs the level1 function from levels.py - + if level == 2: + pass # THE REASON WE CALL IT LIKE THIS INSTEAD OF NORMALLY IS SO WE CAN CHANGE THE LEVEL VARIABLE elif level == 2: # what happens when the level variable is equal to 2 ofc