-
Notifications
You must be signed in to change notification settings - Fork 23
Fallback improvements #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| CCSprite* sprite = CCSprite::create("fallback.png"_spr); | ||
| CCSprite* sprite = CCSprite::createWithSpriteFrame(spriteFrame); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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.