Skip to content
← Back to Community
Clicker!
Profile icon
adsarebbbad

click to see the score go up, buy upgrades, and utterly fail try to get the highest score possible. DON'T PLAY IT IN THAT SILLY LITTLE WINDOW OPEN IT IN A NEW TAB or else

Voters
Profile icon
dabs364
Profile icon
adsarebbbad
Comments
hotnewtop
Profile icon
DynamicSquid

Cool! Just a tip though, that's not really how functions work.. you can just have one function:

function upgradeClicked(cost, cps) { if (clickCount >= cost) { clickCount -= cost; clicksPerClick += cps; document.getElementById('clicks').innerText = 'Number of clicks: ' + clickCount; document.getElementById('clicksPerClick').innerText = 'Clicks per click ' + clicksPerClick; } }
Profile icon
DynamicSquid

Also the green and blue don't really look good...

Profile icon
adsarebbbad

welp, i dont really know how to implement that so i wont make
a change @DynamicSquid

Profile icon
adsarebbbad

what whats cps @DynamicSquid

Profile icon
DynamicSquid

@adsarebbbad cps - clicks per second

also you should learn what functions are. they can really come in handy

Profile icon
adsarebbbad

ok but i dont know how to do clicks per second @DynamicSquid

Profile icon
DynamicSquid

@adsarebbbad try to learn what functions are, then you can greatly reduce the lines of code in this program :)

Profile icon
adsarebbbad
Profile icon
DynamicSquid

@adsarebbbad yay well done!

Profile icon
adsarebbbad

yay thanks! @DynamicSquid