MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / constructor

Method constructor

assets/js/Pacman.js:155–162  ·  view source on GitHub ↗
(className, startIndex, speed)

Source from the content-addressed store, hash-verified

153 //create ghosts using Constructors
154 class Ghost {
155 constructor(className, startIndex, speed) {
156 this.className = className
157 this.startIndex = startIndex
158 this.speed = speed
159 this.currentIndex = startIndex
160 this.isScared = false
161 this.timerId = NaN
162 }
163 }
164
165 //all my ghosts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected