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

Method update

code/main/FourthHouse.ts:162–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 private update(): void{
163 // Erase everything
164 this.renderArea.resetAllButSize();
165
166 // Back to the map button
167 this.addBackToTheVillageButton(this.renderArea, "fourthHouseBackToTheVillageButton");
168
169 // Draw the house
170 this.renderArea.drawArray(Database.getAscii("places/village/fourthHouse"), 0, 3);
171
172 // Draw stuff about the lollipop on the cupboard
173 this.drawLollipopOnCupboardStuff(35, 11);
174
175 // Draw stuff about opening the cupboard
176 this.drawOpenCupboardStuff(35, 14);
177
178 // Draw stuff about the lollipop under the carpet
179 this.drawCarpetStuff(41, 32);
180 }
181}

Callers 6

constructorMethod · 0.95
clickOnCarpetMethod · 0.95
openCupboardMethod · 0.95
pickCarpetLollipopMethod · 0.95

Calls 7

drawOpenCupboardStuffMethod · 0.95
drawCarpetStuffMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected