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

Method update

code/main/TheArena.ts:41–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 private update(): void{
42 // Erase everything
43 this.renderArea.resetAllButSize();
44
45 // Quick explanation
46 this.renderArea.drawString("The Arena is a special area featuring additional quests written by players.", 12, 1);
47
48 // List of quests
49 this.drawQuestLogo("peacefulForest", 2, 3);
50 this.drawQuestLogo("hardcorePlatformer", 21, 3);
51 this.drawQuestLogo(null, 40, 3);
52 this.drawQuestLogo(null, 59, 3);
53 this.drawQuestLogo(null, 78, 3);
54
55 this.drawQuestLogo(null, 2, 8);
56 this.drawQuestLogo(null, 21, 8);
57 this.drawQuestLogo(null, 40, 8);
58 this.drawQuestLogo(null, 59, 8);
59 this.drawQuestLogo(null, 78, 8);
60
61 // Hardmode
62 this.renderArea.drawString("If you want more challenge, you can also play hardmode here : ", 1, 17);
63 this.renderArea.addHtmlLink(63, 17, "http://candybox2.github.io/?gamemode=hard", "http://candybox2.github.io/?gamemode=hard");
64
65 // Create your quest!
66 this.renderArea.drawString("If you're a programmer and you want to create a quest, and !", 1, 15);
67 this.renderArea.addHtmlLink(56, 15, "source_code.html", "get the source code");
68 this.renderArea.addHtmlLink(80, 15, "create_quest.html", "follow the guide");
69 }
70}

Callers 1

constructorMethod · 0.95

Calls 4

drawQuestLogoMethod · 0.95
resetAllButSizeMethod · 0.80
drawStringMethod · 0.80
addHtmlLinkMethod · 0.80

Tested by

no test coverage detected