Skip to content

Conversation

@hiimjasmine00
Copy link
Contributor

@hiimjasmine00 hiimjasmine00 commented Dec 4, 2024

Instead of one unified fallback texture, there's one for every time you screw up.
Also, they have names attached to them, so you know exactly how you screwed up.

@hiimjasmine00 hiimjasmine00 changed the title Runtime fallback + Assign fallback to nonexistent sprite names Assign fallback to nonexistent sprite names May 3, 2025
@hiimjasmine00 hiimjasmine00 changed the title Assign fallback to nonexistent sprite names Assign fallback sprite to nonexistent sprite names May 3, 2025
@hiimjasmine00 hiimjasmine00 changed the title Assign fallback sprite to nonexistent sprite names Fallback improvements May 3, 2025
@hiimjasmine00 hiimjasmine00 marked this pull request as draft May 22, 2025 14:30
Comment on lines -37 to +66
CCSprite* sprite = CCSprite::create("fallback.png"_spr);
CCSprite* sprite = CCSprite::createWithSpriteFrame(spriteFrame);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CCSpriteFrameCache::spriteFrameByName hook will take care of that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm ok, maybe add a comment like // this will be handled by our hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants