Open j-gynn opened 1 week ago
I would love this! I didn't particularly like putting the clan symbols in with all the cat sprite code lol, but it was convenient at the time. I think a base class to inherit from would clean things up immensely. Definitely have my approval to work on this!
/assign-me
👋 Hey @j-gynn, thanks for your interest in this issue! 🎉
âš Note that this issue will become unassigned if it isn't closed within 7 days.
🔧 A maintainer can also add the 📌 Pinned label to prevent it from being unassigned automatically.
Description This is relatively minor as far as "refactors j-gynn has got involved in" go. Since there are now multiple things pulling from
sprites.Sprites
(clan sprites and cat sprites), I would like to propose a base classSprite
and subclassesCatSprite
andClanSprite
that inherit from it.Scope of Project
Outline
Sprite
(base class)size
,images
,sprites
,blank_sprite
,spritesheets
__init__
spritesheet
make_group
CatSprite
(inherit fromSprite
)Sprite
, plus:)cat_tints
,white_patches_tints
__init__
(with super init)load_tints
load_all
load_scars
ClanSprite
(inherit fromSprite
)Sprite
, plus:)symbol_dict
,clan_symbols
(investigate to see if should/could be refactored to use basesprites
variable)__init__
(with super init)load_symbols
Relevant Links Is there a draft PR already made? Is there a forum post for it? Link them here.