From f863ae1c2f618af4afaab753772bd27a0861f184 Mon Sep 17 00:00:00 2001 From: dvorakmortonxd Date: Sat, 6 Jun 2026 22:53:54 +0200 Subject: [PATCH] slight bug fix --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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