Skip to content

Commit

Permalink
Add available sample (id:480) achievement to nw.js
Browse files Browse the repository at this point in the history
Add available sample (id:480) achievement to nw.js, so that achievement function call will work with sample game.
  • Loading branch information
MikalDev authored May 29, 2019
1 parent 043e6b9 commit 6989c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/nw.js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function testSteamAPI() {
function(quota, used) { log('Getting cloud quota successfully: '+used+' of '+quota) },
function(err) { log('Failed on getting cloud quota.') });

greenworks.activateAchievement('achievement',
// The ACH_WIN_ONE_GAME achievement is available for the sample (id:480) game
greenworks.activateAchievement('ACH_WIN_ONE_GAME',
function() { log('Activating achievement successfully'); },
function(err) { log('Failed on activating achievement.'); });

Expand Down

0 comments on commit 6989c82

Please sign in to comment.