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

Function init

assets/js/shooting_game.js:183–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181let particles = []
182
183function init() {
184 player = new Player(x, y, 10, 'white')
185 projectiles = []
186 enemies = []
187 specials = []
188 particles = []
189 score = 0
190 scoreEl.innerHTML = score
191 bigScoreEl.innerHTML = score
192}
193
194function spawEnemies() {
195 setInterval(() => {

Callers 1

shooting_game.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected