Skip to content

Commit

Permalink
ty scale x & y
Browse files Browse the repository at this point in the history
  • Loading branch information
NinSam committed Jan 13, 2025
1 parent a677510 commit 9c01de6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
Binary file modified resources/sunrise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/sunset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/EditLevelLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class $modify(EditLevelLayer) {

sunrise->setZOrder(-3);
sunrise->setAnchorPoint({0, 0});
sunrise->setScale(1.6 * relativescale);
sunrise->setScaleX(11 * relativescale);
sunrise->setScaleY(1.6 * relativescale);
sunrise->setPosition({0, 0});
sunrise->setID("sunrise"_spr);
this->addChild(sunrise);
Expand Down Expand Up @@ -105,7 +106,8 @@ class $modify(EditLevelLayer) {

sunset->setZOrder(-3);
sunset->setAnchorPoint({0, 0});
sunset->setScale(1.6 * relativescale);
sunset->setScaleX(11 * relativescale);
sunset->setScaleY(1.6 * relativescale);
sunset->setPosition({0, 0});
sunset->setID("sunset"_spr);
this->addChild(sunset);
Expand Down
6 changes: 4 additions & 2 deletions src/LevelAreaLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class $modify(LevelAreaLayer) {

sunrise->setZOrder(-3);
sunrise->setAnchorPoint({0, 0});
sunrise->setScale(1.6 * relativescale);
sunrise->setScaleX(11 * relativescale);
sunrise->setScaleY(1.6 * relativescale);
sunrise->setPosition({0, 0});
sunrise->setID("sunrise"_spr);
this->addChild(sunrise);
Expand Down Expand Up @@ -104,7 +105,8 @@ class $modify(LevelAreaLayer) {

sunset->setZOrder(-3);
sunset->setAnchorPoint({0, 0});
sunset->setScale(1.6 * relativescale);
sunset->setScaleX(11 * relativescale);
sunset->setScaleY(1.6 * relativescale);
sunset->setPosition({0, 0});
sunset->setID("sunset"_spr);
this->addChild(sunset);
Expand Down
6 changes: 4 additions & 2 deletions src/LevelSearchLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ class $modify(LevelSearchLayer) {

sunrise->setZOrder(-3);
sunrise->setAnchorPoint({0, 0});
sunrise->setScale(1.6 * relativescale);
sunrise->setScaleX(11 * relativescale);
sunrise->setScaleY(1.6 * relativescale);
sunrise->setPosition({0, 0});
sunrise->setID("sunrise"_spr);
this->addChild(sunrise);
Expand Down Expand Up @@ -126,7 +127,8 @@ class $modify(LevelSearchLayer) {

sunset->setZOrder(-3);
sunset->setAnchorPoint({0, 0});
sunset->setScale(1.6 * relativescale);
sunset->setScaleX(11 * relativescale);
sunset->setScaleY(1.6 * relativescale);
sunset->setPosition({0, 0});
sunset->setID("sunset"_spr);
this->addChild(sunset);
Expand Down
6 changes: 4 additions & 2 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ bool DayAndNightSystem::init(){
CCSprite* sunrise = CCSprite::create("sunrise.png"_spr);

sunrise->setAnchorPoint({0, 0});
sunrise->setScale(1.6 * relativescale);
sunrise->setScaleX(11 * relativescale);
sunrise->setScaleY(1.6 * relativescale);
sunrise->setPosition({0, 0});
sunrise->setID("sunrise"_spr);
this->addChild(sunrise);
Expand All @@ -70,7 +71,8 @@ bool DayAndNightSystem::init(){
CCSprite* sunset = CCSprite::create("sunset.png"_spr);

sunset->setAnchorPoint({0, 0});
sunset->setScale(1.6 * relativescale);
sunset->setScaleX(11 * relativescale);
sunset->setScaleY(1.6 * relativescale);
sunset->setPosition({0, 0});
sunset->setID("sunset"_spr);
this->addChild(sunset);
Expand Down

0 comments on commit 9c01de6

Please sign in to comment.