JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

HTML

<!DOCTYPE html>
<html>
<head>
<body>
<button onclick="vcoins()">veiw coins</button>
<button onclick="vcfoc()">veiw coins for one click</button>
<button onclick="vcps()">veiw coins per second</button>
<button onclick="vplants()">veiw plants</button>
<h1>plant clicker</h1>
<h3>by frogggeee</h3>
<p>note: this is my first big game in javascript and html.</p>
<h3>   </h3>
<p>get coins to buy plants that help you get more coins. get the final plant and upgrade it to the last level to beat the game.</p>

<button onclick="clicked()">click for coins</button>
<h2>==========</h2>
<h2>shop</h2>
<h3>buy grass plants</h3>
<button onclick="up1()">buy some grass plants</button>
<h3>buy carrot plants</h3>
<button onclick="up2()">buy some carrot plants</button>
<h3>buy tomato plants</h3>
<button onclick="up3()">buy some tomato plants</button>
<h3>buy mint plants</h3>
<button onclick="up4()">buy some mint plants</button>
<h3>buy marigold plants</h3>
<button onclick="up5()">buy some marigold plants</button>
<h3>buy bamboo plants</h3>
<button onclick="up6()">buy some bamboo plants</button>
<h3>buy some trees</h3>
<button onclick="up7()">buy some trees</button>
<h3>buy giant cactus plants</h3>
<button onclick="up6()">buy some giant cactus plants</button>


<h2>==special ability plants==</h2>
<h3>buy electric blueberry plant</h3>
<button onclick="infoelectric()">info on this plant</button>
<h3>     </h3>
<button onclick="buyelectricblueberry()">buy the electric blueberry</button>
<h3>buy the lonely moss</h3>
<button onclick="infomoss()">info on this plant</button>
<h3>     </h3>
<button onclick="buymoss()">buy the lonely moss</button>
<h3>buy the super tree (coming soon!)</h3>
<button onclick="infosupertree()">info on this plant</button>
<h3>     </h3>
<button onclick="buysupertree()">buy the super tree</button>
<h3>======</h3>
<h2>the final plant</h2>
<script type = "text/javascript">
// acheivment variables //
var firstclick = 0;
// acheivment variables //
var beatgame = false;
var...