0

Auto clicker for my clicker game

I need to get an auto clicker working ~~js alert("This game is currently under development -still works-, NEW VERSION!!!!!! V1.1.9 - More Updates Comming soon!, About this version: V1.1.9 : Click ' update history' for More info! ~~comming soon~~ bug fixes, more upgrade items (maby save/load???)") //Update this every version! var chicken = 0 var cPC = 1 var cPCPV = 50 var saveC = 1 document.getElementById("chicken").innerHTML = "Chickens: " + chicken; document.getElementById("uCPC").innerHTML = "Upgrades: " + cPC; document.getElementById("rCFCPC").innerHTML = "Costs: " + cPCPV; function add() { chicken = chicken + cPC console.log("You Have:", chicken, "chickens!") document.getElementById("chicken").innerHTML = "Chickens: " + chicken; }; function cPCF() { if (cPCPV <= chicken) { cPC = cPC + 1 chicken = chicken - cPCPV cPCPV = cPCPV + 25 console.log("Your chickens per click = ", cPC) document.getElementById("chicken").innerHTML = "Chickens: " + chicken; document.getElementById("uCPC").innerHTML = "Upgrades: " + cPC; document.getElementById("rCFCPC").innerHTML = "Costs: " + cPCPV; } else { alert("Not enough money!") } }; function Info() { alert("Click the ckicken button, and earn lots of chickens!"); } function uH() { alert("V1.0.0: Only +chicken, and upgrade slot side. V1.0.1: Added Info button, & -bug fix- other versions soon to come. V1.0.2 added Update History! V1.0.3: Start up Page shows chickens count, and upgrades for chickens per click! V1.0.4: When you click buy, it will not give you a -#. V1.1.4: Cost goes 25 chickens up for chickens per click! V1.1.5: Cost goes 50 chickens up for chickens per click! V1.1.6: Bug Fixes. V1.1.6: Chicken per click up

18th Dec 2020, 5:12 PM
Your Friendly Developer
Your Friendly Developer - avatar
3 Antworten
0
here is html <!DOCTYPE html> <html> <title>Chicken Clicker</title> <h1>Chicken Clicker<sup><small><small> V1.1.9</small></small></sup></h1> <img src="https://www.freepnglogos.com/uploads/chicken-png/cute-chicken-png-transparent-cute-chicken-images-0.png" width="300" height="298"> <meta charset="UTF-8"> <meta name="description" content="Chicken Clicker - The Game"> <meta name="keywords" content="Chicken Clicker - The Game"> <meta name="author" content="Your Friendly Developer"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <br> <button class="button" onclick="add()">+Chicken</button> <button class="button" onclick="Info()">!</button><button class="button" onclick="uH()">Update History</button> <h6 id="chicken"></h6> <div class="Design"> <h3><b><i>~UPGRADE~</i></b></h3> <h6>Chickens Per Click - </h6><h6 id="rCFCPC"></h6> <h6 id="uCPC"></h6> <button class="button" onclick="cPCF()">BUY</button> </div> </div> <iframe width="400" height="500" frameborder="1" scrolling="no" marginheight="0" marginwidth="0" allowtransparency="true" src="https://chatroll.com/embed/chat/chickenclickertalk?id=GqrrnlBEdM3&platform=html"></iframe> </html> <div id="buttonH"> <button onclick="" </div>
18th Dec 2020, 5:13 PM
Your Friendly Developer
Your Friendly Developer - avatar
0
here is css body { background-color: #ffff99; font-family:Bradley Hand, cursive; line-height: 3px; text-align: center; } #chatFrame{ position:static; } .button { text-align: center; border: 1px #ccc solid; border-radius: 15px ; background-color: #000000; border: none; padding: 15px 15px; color: white; } .button:hover{ color: Black; background-color: white; } .Design { text-align: center; border: 1px #000000 solid; border-radius: 15px ; background-color: lightblue; border: none; padding: 15px 15px; }
18th Dec 2020, 5:13 PM
Your Friendly Developer
Your Friendly Developer - avatar
0
For better handling please put your code in a file on SL Playground and show the link to it here. And use this place for some more description about your game.
18th Dec 2020, 9:26 PM
JaScript
JaScript - avatar