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

Method addAsteroid

code/main/GalacticWars.ts:185–187  ·  view source on GitHub ↗
(y: number)

Source from the content-addressed store, hash-verified

183 }
184
185 private addAsteroid(y: number): void{
186 this.asteroids.push(new Pos(53, y));
187 }
188
189 private checkCollision(): boolean{
190 // If the ship is outside the screen, we return true

Callers 1

addAsteroidsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected