I'm having issues understanding why my code isn't working, my teacher hasnt been here for a few weeks and I've tried assigning numbers and other things to dvdLogo Rect, but it still isnt working this is the error:
pygame 2.0.3 (SDL 2.0.16, Python 3.8.10) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "main.py", line 195, in main_menu() File "main.py", line 187, in main_menu play() File "main.py", line 76, in play dvdLogoRect = dvdLogoRect.move(dvdLogoSpeed) UnboundLocalError: local variable 'dvdLogoRect' referenced before assignment,
Please help! Thank you for your time.
[Link to my Code]https://app.codingrooms.com/w/ibSzCZEeYNfz