MOM, GET THE CAMERA!!
Cut Sharing Feature#
There are unused button graphics for sharing your score onto Facebook, Google+, or Twitter. The code for it can be found dummied out in game.js.
//var shareText ='SHARE ON'; //text for share instruction
//Social share, [SCORE] will replace with game score
//var shareTitle = 'Highscore on Trick Shot Ball is [SCORE]';//social share score title
//var shareMessage = '[SCORE] is mine new highscore on Trick Shot Ball! Try it now!'; //social share score message
// btnFb.cursor = "pointer";
// btnFb.addEventListener("mousedown", function(evt) {
// share('facebook');
// });
// btnTwitter.cursor = "pointer";
// btnTwitter.addEventListener("mousedown", function(evt) {
// share('twitter');
// });
// btnGoogle.cursor = "pointer";
// btnGoogle.addEventListener("mousedown", function(evt) {
// share('google');
// });
// var loc = location.href
// loc = loc.substring(0, loc.lastIndexOf("/") + 1);
// var title = shareTitle.replace("[SCORE]", playerData[0].gameScore);
// var text = shareMessage.replace("[SCORE]", playerData[0].gameScore);
// var shareurl = '';
// if( action == 'twitter' ) {
// shareurl = 'https://twitter.com/intent/tweet?url='+loc+'&text='+text;
// }else if( action == 'facebook' ){
// shareurl = 'http://www.facebook.com/sharer.php?u='+encodeURIComponent(loc+'share.php?desc='+text+'&title='+title+'&url='+loc+'&thumb='+loc+'share.jpg');
// }else if( action == 'google' ){
// shareurl = 'https://plus.google.com/share?url='+loc;
// }
|
The Build-A-Bear series | |
|---|---|
|
HTML5 |
Build-A-Bear: Trick Shot • Build-A-Bear: Catch the Pig • Build-A-Bear Adventures Board Game |