|
|
@ -908,13 +908,11 @@ void Meteos::updateGame(float fElapsedTime){ |
|
|
|
int digit=tempScore%10; |
|
|
|
int digit=tempScore%10; |
|
|
|
tempScore/=10; |
|
|
|
tempScore/=10; |
|
|
|
targetScoreDigits.insert(targetScoreDigits.begin(),digit); |
|
|
|
targetScoreDigits.insert(targetScoreDigits.begin(),digit); |
|
|
|
std::cout<<digit; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
while (tempDisplayScore>0){ |
|
|
|
while (tempDisplayScore>0){ |
|
|
|
int digit=tempDisplayScore%10; |
|
|
|
int digit=tempDisplayScore%10; |
|
|
|
tempDisplayScore/=10; |
|
|
|
tempDisplayScore/=10; |
|
|
|
displayScoreDigits.insert(displayScoreDigits.begin(),digit); |
|
|
|
displayScoreDigits.insert(displayScoreDigits.begin(),digit); |
|
|
|
std::cout<<digit; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
std::cout<<std::endl; |
|
|
|
std::cout<<std::endl; |
|
|
|
int marker=0; |
|
|
|
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}); |
|
|
|
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,-24}+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},std::to_string(displayScore),WHITE,{2,2}); |
|
|
|
if (accumulatedScore>0){ |
|
|
|
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,-8}+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},"+"+std::to_string(accumulatedScore),frameTime%5>2?Pixel{224, 184, 148}:WHITE,{0.75,0.75}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|