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

Method drawLines

code/main/TheComputer.ts:100–105  ·  view source on GitHub ↗
(x: number, y: number, minY: number)

Source from the content-addressed store, hash-verified

98 }
99
100 private drawLines(x: number, y: number, minY: number): void{
101 for(var i = this.lines.length-1; i >= 0; i--){
102 // We add the return value to our y var because it returns the extra lines it used
103 y -= this.lines[i].draw(this.renderArea, new Pos(x, y - (this.lines.length-1 - i)), minY);
104 }
105 }
106
107 private executeCommand(commandText: string): void{
108 // Create an array from the command words

Callers 1

drawMethod · 0.95

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected