Skip to content

Commit

Permalink
fix corner flips
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Dec 17, 2023
1 parent 8c97d90 commit c5e673d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/layers/_bases/BIBaseLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,23 @@ bool BIBaseLayer::init(bool BL, bool BR, bool TL, bool TR) {

m_cornerTL = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
m_cornerTL->setPosition({0,winSize.height});
m_cornerTL->setAnchorPoint({0,0});
m_cornerTL->setRotation(90);
m_cornerTL->setAnchorPoint({0,1});
m_cornerTL->setFlipY(true);
m_cornerTL->setID("bi-corner-ul");
addChild(m_cornerTL, -1);

m_cornerTR = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
m_cornerTR->setPosition({winSize.width,winSize.height});
m_cornerTR->setAnchorPoint({0,0});
m_cornerTR->setRotation(180);
m_cornerTR->setAnchorPoint({1,1});
m_cornerTR->setFlipX(true);
m_cornerTR->setFlipY(true);
m_cornerTR->setID("bi-corner-ur");
addChild(m_cornerTR, -1);

m_cornerBR = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
m_cornerBR->setPosition({winSize.width,0});
m_cornerBR->setAnchorPoint({0,0});
m_cornerBR->setRotation(270);
m_cornerBR->setAnchorPoint({1,0});
m_cornerBR->setFlipX(true);
m_cornerBR->setID("bi-corner-br");
addChild(m_cornerBR, -1);

Expand Down

0 comments on commit c5e673d

Please sign in to comment.