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

Class Level

Level.js:1–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Level{
2 constructor() {
3 this.levelImage = null;
4 this.lines = [];
5 this.levelNo =0;
6 this.isBlizzardLevel = false;
7 this.isIceLevel = false;
8 this.coins = [];
9 this.hasProgressionCoins = false;
10 }
11
12 show(){
13 push();
14 image(this.levelImage,0,0)
15 if(showingLines){
16 for(let l of lines){
17 l.Show();
18 }
19 }
20 if(showingCoins){
21 for(let c of this.coins){
22 c.show();
23 }
24 }
25
26 pop();
27 }
28
29
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected