Skip to content

Investigate subclassing pathlib.Path to support resource handles #2235

Open

Description

@pushfoo

Enhancement request:

What should be added/changed?

from arcade.resources import ResourcePath

FEMALE_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

Activity

  1. added this to the Future milestone on Jul 10, 2024
  2. modified the milestones: Future, 3.1 on Jul 22, 2024
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