Tower-Defense-Game icon indicating copy to clipboard operation
Tower-Defense-Game copied to clipboard

Update main_menu.py

Open Shade-raid opened this issue 8 months ago • 0 comments

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

Shade-raid avatar May 11 '25 13:05 Shade-raid