Skip to content

Make pymunk an optional dependency #1058

Description

@einarf

It seems we don't even use pymunk for simple hitboxes. Only when doing detailed ones the texture initialization will use pymunk.autogeometry.

Browsing around the code it seems that we could split out the pymunk related code into separate modules and dynamically import if pymunk is present. Dummy methods can be created in the module that raises an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions