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

Method Show

Population.js:69–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 }
68
69 Show() {
70
71 this.SetCurrentHighestPlayer()
72 let highestPlayer = this.players[this.currentHighestPlayerIndex];
73 let highestLevelNo = this.players[this.currentHighestPlayerIndex].currentLevelNo;
74
75 if(highestPlayer.currentLevelNo > highestPlayer.bestLevelReached && !highestPlayer.progressionCoinPickedUp){
76 highestLevelNo -=1;
77 }
78 showLevel(highestLevelNo);
79 alreadyShowingSnow = false;
80 this.showingLevelNo = highestLevelNo;
81 for (let i = 0; i < this.players.length; i++) {
82 if (this.players[i].currentLevelNo >= highestLevelNo - 1 && this.players[i].currentLevelNo <=highestLevelNo ) {
83 this.players[i].Show();
84 }
85 }
86
87 // this.ShowPopulationInfo();
88
89 }
90
91
92 ResetAllPlayers() {

Callers

nothing calls this directly

Calls 2

showLevelFunction · 0.70

Tested by

no test coverage detected