| 1489 | } |
| 1490 | |
| 1491 | void SpriteFlip::flipSprites(float dt) |
| 1492 | { |
| 1493 | auto sprite1 = static_cast<Sprite*>(getChildByTag(kTagSprite1)); |
| 1494 | auto sprite2 = static_cast<Sprite*>(getChildByTag(kTagSprite2)); |
| 1495 | |
| 1496 | bool x = sprite1->isFlippedX(); |
| 1497 | bool y = sprite2->isFlippedY(); |
| 1498 | |
| 1499 | AXLOGD("Pre: {}", sprite1->getContentSize().height); |
| 1500 | sprite1->setFlippedX(!x); |
| 1501 | sprite2->setFlippedY(!y); |
| 1502 | AXLOGD("Post: {}", sprite1->getContentSize().height); |
| 1503 | } |
| 1504 | |
| 1505 | std::string SpriteFlip::title() const |
| 1506 | { |
nothing calls this directly
no test coverage detected