generated from sigonasr2/CPlusPlusProjectTemplate
Move score display slightly, remove erroneous text
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
581d0082b9
commit
36b189dc50
Binary file not shown.
10
main.cpp
10
main.cpp
@ -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…
x
Reference in New Issue
Block a user