You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patchwork should provide a RenderWindow class that encapsulates Pygame setup logic and manages the window, surface, event loop, and frame rate.
The class should be designed for composition, not inheritance, so that clients like Apex can use it as a container for rendering rather than subclassing it.
Key Features
Initialize Pygame with title and window size
Expose get_surface(), tick(fps), and should_continue() methods
Allow registration of custom event handlers with register_event_handler(handler)
Call each handler on events, while handling QUIT internally
This enables modular, flexible use in multiple projects.