Skip to content

Conversation

@Shade-raid
Copy link

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant