arcade icon indicating copy to clipboard operation
arcade copied to clipboard

Investigate subclassing pathlib.Path to support resource handles

Open pushfoo opened this issue 1 year ago • 0 comments

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

pushfoo avatar Jul 10 '24 19:07 pushfoo