MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / constructor

Method constructor

Coin.js:2–8  ·  view source on GitHub ↗
(x,y, type = "reward")

Source from the content-addressed store, hash-verified

1class Coin{
2 constructor(x,y, type = "reward") {
3 this.levelNo = 0;
4 this.x = x;
5 this.y= y;
6 this.radius = 50;
7 this.type = type;
8 }
9
10
11 collidesWithPlayer(playerToCheck){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected