MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / drawLose

Method drawLose

code/main/GalacticWars.ts:247–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 }
246
247 private drawLose(): void{
248 // Draw "you lose"
249 this.getRenderArea().drawArray(Database.getAscii("places/village/thirdHouseGames/GalacticWars/youLose"), 8, 1);
250
251 // Draw the candies we won
252 this.getRenderArea().drawString("Score : " + this.score + ".", 8, 7);
253 this.getRenderArea().drawString("You gain " + (this.score + Algo.correctIfUnderZero(this.score-1000)*30) + " candies.", 8, 8);
254
255 this.getRenderArea().drawString("Best score : " + Saving.loadNumber("galacticWarsBestScore") + ".", 8, 10);
256 }
257
258 private drawSplashScreen(): void{
259 this.getRenderArea().drawArray(Database.getAscii("places/village/thirdHouseGames/GalacticWars/splashScreen"), -87 + this.splashScreenTimer*3, 2);

Callers 1

runMethod · 0.95

Calls 4

drawArrayMethod · 0.80
getAsciiMethod · 0.80
drawStringMethod · 0.80
getRenderAreaMethod · 0.45

Tested by

no test coverage detected