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

Method drawBackground

code/main/CastleTower.ts:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 }
80
81 private drawBackground(): void{
82 // Calculate the gap
83 var gap: number = (this.cutSceneMaxTimer - this.cutSceneTimer);
84 if(gap > 60) gap = 60;
85
86 // Draw the background ascii art
87 this.renderArea.drawArray(Database.getAscii("places/castle/tower/castleTower"), 5, 3 - gap);
88 }
89
90 private drawTalkingCandy(): void{
91 // If all the stones are in the tower AND we didn't already take the talking candy, we draw the key

Callers 1

updateMethod · 0.95

Calls 2

drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected