java.js
// Used to load the game from the browsers cookies
Used to load the game from the browsers cookies
Used to load the game from the browsers cookies
function loadGame() {
	function calculateSizes(numberBought, cost) {
		let newsize = cost;
		for (let count = 0; count < numberBought;) {
			newsize = newsize * 1.15;
			count++;
		}
		return newsize;
	}
	sizefromclicking = loadCvar("sizefromclickingsaved");
	size = loadCvar("sizec");
	sps = loadCvar("spsaved");
	extraspsps = loadCvar("extraspspersecond");
	clickbonus = loadCvar("clickbonusaved");
	spc = loadCvar("sizeperclicksaved");
	clickcount = loadCvar("clickcountsaved");
	playedseconds = loadCvar("playedsecondsaved");
	clicksbonus = loadCvar("clicksbonusaved");
	addedclicks = loadCvar("addedclicksaved");
	spscost = loadCvar("spscostsaved");
	catcost = loadCvar("catcostsaved");
	holdcost = loadCvar("holdcostsaved");
	macrocost = loadCvar("macrocostsaved");
	fingercost = loadCvar("fingercostsaved");
	keycost = loadCvar("keycostsaved");
	seencookies = loadCvar("seencookiesaved");
	colabcost = loadCvar("collabcostsaved");
	macrobuttoncost = loadCvar("macrobutcostsaved");
	upgradesbought = loadCvar("upsboughtsaved");
	autoupgradesbought = loadCvar("autoupsaved");
	clickupgradesbought = loadCvar("clicksboughtsaved");
	spentonupgrades = loadCvar("spentupsaved");
	spentonautoupgrades = loadCvar("spentautosaved");
	spentonclickupgrades = loadCvar("spentclicksaved");
	copypastecost = loadCvar("copypastecostsaved");
	refreshAll();
	updateAllDisplays();
	displaySnackbar(3000, 'Game data loaded!');
}
function loadGame ( ) { function calculateSizes ( numberBought , cost ) { let newsize = cost ; for ( let count = 0 ; count < numberBought ; ) { newsize = newsize * 1.15 ; count ++ ; } return newsize ; } sizefromclicking = loadCvar ( "sizefromclickingsaved" ) ; size = loadCvar ( "sizec" ) ; sps = loadCvar ( "spsaved" ) ; extraspsps = loadCvar ( "extraspspersecond" ) ; clickbonus = loadCvar ( "clickbonusaved" ) ; spc = loadCvar ( "sizeperclicksaved" ) ; clickcount = loadCvar ( "clickcountsaved" ) ; playedseconds = loadCvar ( "playedsecondsaved" ) ; clicksbonus = loadCvar ( "clicksbonusaved" ) ; addedclicks = loadCvar ( "addedclicksaved" ) ; spscost = loadCvar ( "spscostsaved" ) ; catcost = loadCvar ( "catcostsaved" ) ; holdcost = loadCvar ( "holdcostsaved" ) ; macrocost = loadCvar ( "macrocostsaved" ) ; fingercost = loadCvar ( "fingercostsaved" ) ; keycost = loadCvar ( "keycostsaved" ) ; seencookies = loadCvar ( "seencookiesaved" ) ; colabcost = loadCvar ( "collabcostsaved" ) ; macrobuttoncost = loadCvar ( "macrobutcostsaved" ) ; upgradesbought = loadCvar ( "upsboughtsaved" ) ; autoupgradesbought = loadCvar ( "autoupsaved" ) ; clickupgradesbought = loadCvar ( "clicksboughtsaved" ) ; spentonupgrades = loadCvar ( "spentupsaved" ) ; spentonautoupgrades = loadCvar ( "spentautosaved" ) ; spentonclickupgrades = loadCvar ( "spentclicksaved" ) ; copypastecost = loadCvar ( "copypastecostsaved" ) ; refreshAll ( ) ; updateAllDisplays ( ) ; displaySnackbar ( 3000 , 'Game data loaded!' ) ; }
Used to load the game from the browsers cookies
Used to load the game from the browsers cookies
// Calculates the prices of everything // Loads all of the variables // Updates all of the displays // Shows a snackbar confirming that the data has successfully been loaded.