Tower-Defense-Game
Tower-Defense-Game copied to clipboard
Update main_menu.py
Refactor MainMenu class for clarity and structure
- Replaced manual button hitbox logic with pygame.Rect for better readability
- Moved event handling to a separate method (handle_events)
- Used integer division for pixel alignment
- Improved variable naming and code organization
- Maintained all original functionality