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

Method load

code/main/Game.ts:291–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 }
290
291 public load(): void{
292 // Resources
293 this.candies.load();
294 this.lollipops.load();
295 this.chocolateBars.load();
296 this.painsAuChocolat.load();
297 this.candiesEaten.load();
298 this.candiesThrown.load();
299 this.candiesUsedToRequestFeatures.load();
300 this.candiesInCauldron.load();
301 this.lollipopsInCauldron.load();
302
303 // Handle inverted colors (we have to change the css now depending on the gameInvertedColors bool from the Saving module)
304 this.applyInvertedColorsToCss();
305 }
306
307 public postLoad(): void{
308 // We re calc the player hp

Callers

nothing calls this directly

Calls 2

loadMethod · 0.65

Tested by

no test coverage detected