Skip to content

Commit

Permalink
bit-jumper: do not submit the highest score for leaderboards
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Aug 23, 2024
1 parent 05f0949 commit 821003f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/games/bit-jumper/src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export enum StorageKey {
MUTE = 'mute-sound',
}

export const VERSION = 'v1.0.3';
export const VERSION = 'v1.0.4';
6 changes: 1 addition & 5 deletions apps/games/bit-jumper/src/lib/scenes/end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ export class End extends Phaser.Scene {
enemies.spawn(width * Phaser.Math.FloatBetween(0.2, 0.8), height * 0.9);

this.server.storage.save();
this.submitScore(highScore);
this.server.leaderboard.submit(this.payload.score);
this.submitAchievements(highScore);
}

submitScore(score: number) {
this.server.leaderboard.submit(score);
}

submitAchievements(score: number) {
const achievements: string[] = [];
const { death, powerUps, smashed } = this.payload;
Expand Down

0 comments on commit 821003f

Please sign in to comment.