Skip to content

Commit

Permalink
change ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Llavrov committed Sep 28, 2022
1 parent d9b2bec commit 827e0e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,12 +764,14 @@ continueButton.addEventListener('click', async () => {
continueTimeout = null;

try {
tgames.gamePaused();
// Let player to continue the game by watch ads
tgames.showRewardedAd()
.then(() => {
handleTimeCounter(() => {
initializeTimers();
render();
tgames.gameResumed();
})
});
} catch (e) {
Expand Down

0 comments on commit 827e0e5

Please sign in to comment.