Skip to content

Investigate subclassing pathlib.Path to support resource handles #2235

Description

@pushfoo

Enhancement request:

What should be added/changed?

fromarcade.resourcesimportResourcePathFEMALE_PERSON_PATH=ResourcPath(":resources:/images/animated_characters/female_person")
my_sprite=arcade.Sprite(FEMALE_PERSON_PATH/"femalePerson_idle.png", 1.0)

What would it help with?

  1. Make resource handles nicer to work with
  2. Shorten example code to make it less intimidating
  3. Spare people from adding per-character resource handles

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions