Move score display slightly, remove erroneous text

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 581d0082b9
commit 36b189dc50
  1. BIN
      C++ProjectTemplate
  2. 10
      main.cpp

Binary file not shown.

@ -908,13 +908,11 @@ void Meteos::updateGame(float fElapsedTime){
int digit=tempScore%10;
tempScore/=10;
targetScoreDigits.insert(targetScoreDigits.begin(),digit);
std::cout<<digit;
}
while (tempDisplayScore>0){
int digit=tempDisplayScore%10;
tempDisplayScore/=10;
displayScoreDigits.insert(displayScoreDigits.begin(),digit);
std::cout<<digit;
}
std::cout<<std::endl;
int marker=0;
@ -971,11 +969,11 @@ void Meteos::drawGame(float fElapsedTime,bool debugView){
DrawStringPropDecal(c.pos+gameBoard.drawOffset,"x"+std::to_string(c.combo),(c.lifetime%6>=3)?Pixel{207,103,0}:Pixel{255,255,255,180},{0.8,0.6});
}
DrawStringDecal(gameBoard.drawOffset+vi2d{-8,-16}+vi2d{1,1},std::to_string(displayScore),BLACK,{2,2});
DrawStringDecal(gameBoard.drawOffset+vi2d{-8,-16},std::to_string(displayScore),WHITE,{2,2});
DrawStringDecal(gameBoard.drawOffset+vi2d{-8,-24}+vi2d{1,1},std::to_string(displayScore),BLACK,{2,2});
DrawStringDecal(gameBoard.drawOffset+vi2d{-8,-24},std::to_string(displayScore),WHITE,{2,2});
if (accumulatedScore>0){
DrawStringDecal(gameBoard.drawOffset+vi2d{0,0}+vi2d{1,1},"+"+std::to_string(accumulatedScore),BLACK,{0.75,0.75});
DrawStringDecal(gameBoard.drawOffset+vi2d{0,0},"+"+std::to_string(accumulatedScore),frameTime%5>2?Pixel{224, 184, 148}:WHITE,{0.75,0.75});
DrawStringDecal(gameBoard.drawOffset+vi2d{0,-8}+vi2d{1,1},"+"+std::to_string(accumulatedScore),BLACK,{0.75,0.75});
DrawStringDecal(gameBoard.drawOffset+vi2d{0,-8},"+"+std::to_string(accumulatedScore),frameTime%5>2?Pixel{224, 184, 148}:WHITE,{0.75,0.75});
}
}

Loading…
Cancel
Save