games/Games/Jump-King/Level.js

30 lines
571 B
JavaScript

class Level{
constructor() {
this.levelImage = null;
this.lines = [];
this.levelNo =0;
this.isBlizzardLevel = false;
this.isIceLevel = false;
this.coins = [];
this.hasProgressionCoins = false;
}
show(){
push();
image(this.levelImage,0,0)
if(showingLines){
for(let l of lines){
l.Show();
}
}
if(showingCoins){
for(let c of this.coins){
c.show();
}
}
pop();
}
}