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

Method update

code/main/Devil.ts:58–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57 // update()
58 public update(): void{
59 // Handle movement
60 this.handleUpDownMovement();
61
62 // Handle fireballs
63 this.handleFireballs();
64
65 // Handle the flames
66 this.handleFlames();
67
68 // Re draw the devil (ascii art + flames)
69 this.reDraw();
70
71 // Call the mother class update method
72 super.update();
73 }
74
75 // willDie()
76 public willDie(): void{

Callers

nothing calls this directly

Calls 4

handleUpDownMovementMethod · 0.95
handleFireballsMethod · 0.95
handleFlamesMethod · 0.95
reDrawMethod · 0.95

Tested by

no test coverage detected