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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions