If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Build-A-Bear: Trick Shot

From The Cutting Room Floor
Jump to navigation Jump to search
Build-A-Bear: Trick Shot

Publisher: Build-A-Bear Workshop
Platform: HTML5
Released internationally: 2015


CodeIcon.png This game has unused code.
GraphicsIcon.png This game has unused graphics.
TextIcon.png This game has unused text.


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.

Build-A-Bear-Trick Shot-btnFacebook.png Build-A-Bear-Trick Shot-btnGoogle.png Build-A-Bear-Trick Shot-btnTwitter.png

//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;
	// }