mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
30 lines
571 B
JavaScript
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();
|
|
}
|
|
|
|
|
|
} |