Skip to content

Commit

Permalink
Merge branch 'issue.1499' of https://github.com/VishnuVardhanBR/sugar…
Browse files Browse the repository at this point in the history
…izer into pr/1501
  • Loading branch information
Lionel Laské committed Jan 30, 2024
2 parents 07e4a25 + 5969eb8 commit 0f16df2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions activities/Blockrain.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,16 @@ define(["sugar-web/activity/activity","sugar-web/env", "l10n", "tutorial"], func
},
onRestart: function(){
loadHighScore(); // loads highscore when game is restarted.
gameStarted = true;
handlePausePlay();
},
onGameOver: function(score){
saveHighestScore();
gameStarted=false;
paused=true;
var playPauseButton = document.getElementById('play-button');
playPauseButton.classList.remove('pause');
playPauseButton.classList.add('play');
},

onLine: function(lines, scoreIncrement, score){
Expand Down

0 comments on commit 0f16df2

Please sign in to comment.