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

Method draw

code/main/TheComputer.ts:75–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 private draw(): void{
76 // Erase everything
77 this.renderArea.resetAllButSize();
78
79 // Draw the computer
80 this.renderArea.drawArray(Database.getAscii("general/theComputer/computer"), 19, 0);
81
82 // Draw the on button
83 this.drawOnButton(69, 14);
84
85 // Draw the lines
86 this.drawLines(22, 16, 6);
87 }
88
89 private drawOnButton(x: number, y: number): void{
90 // Draw the button

Callers 2

updateMethod · 0.95
drawLinesMethod · 0.45

Calls 5

drawOnButtonMethod · 0.95
drawLinesMethod · 0.95
resetAllButSizeMethod · 0.80
drawArrayMethod · 0.80
getAsciiMethod · 0.80

Tested by

no test coverage detected