slight bug fix

This commit is contained in:
dvorakmortonxd 2026-06-06 22:53:54 +02:00
commit f863ae1c2f

View file

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