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

Method drawFire

code/main/CastleRoom2.ts:91–99  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

89 }
90
91 private drawFire(x: number, y: number): void{
92 // Draw the fire ascii art
93 this.renderArea.drawArray(Database.getAscii("places/castle/room2/fire"), x, y);
94
95 // Draw the smokes
96 for(var i = 0; i < this.smokes.length; i++){
97 this.smokes[i].draw(this.renderArea);
98 }
99 }
100
101 private drawFireButton(x: number, y: number): void{
102 // Add the button

Callers 1

updateMethod · 0.95

Calls 3

drawArrayMethod · 0.80
getAsciiMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected