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

Method update

code/main/ThirdHouse.ts:119–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 private update(): void{
120 // Erase everything
121 this.renderArea.resetAllButSize();
122
123 // Back to the village button
124 this.addBackToTheVillageButton(this.renderArea, "thirdHouseBackToTheVillageButton");
125
126 // Draw the house
127 this.renderArea.drawArray(Database.getAscii("places/village/thirdHouse"), 0, 3);
128
129 // Add the buttons to insert candies
130 this.addInsertCandiesButtons(25, 28);
131
132 // Add the buttons to control the game
133 this.addControls(29, 24);
134 }
135}

Callers 2

constructorMethod · 0.95
runGameMethod · 0.95

Calls 6

addControlsMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected