0% found this document useful (0 votes)
4 views24 pages

Mealworm Clicker

this was a cool game i made im proud of it

Uploaded by

zeddong100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views24 pages

Mealworm Clicker

this was a cool game i made im proud of it

Uploaded by

zeddong100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

<html>

<head>
<title>mealworm clicker</title>
<meta name="description" content="A cookie clicker modified for geckos">
<link rel="icon" href="ballz.png">
</head>

<body onload="ez()">

<div class="ocean">
<div class="wave"></div>
<div class="wave"></div>
</div>
<div align="left" style="margin-top:0px;right:0px;">
<div id="nav" class="sidenav">
<a href="javascript:void(0)" class="closebtn"
onclick="closeNav()">&times;</a>
<div style="float: center;">
<div align="left" style="position: relative;">
<button onclick="upgrade()" id="st">mealworm box: +1 mealworm
per click: $100</button>
<br>
<button onclick="upgrade1()">small mealworm farm: +3
mealworms/s: $1000</button>
<br>
<button onclick="upgrade5()">large mealworm farm: +19
mealworms/s: $6000</button>
<br>
<button onclick="upgrade2()">mealworm mania: +57 mealworms/s:
$15,000</button>
<br>
<button onclick="upgrade3()">mealworm paradise: +135
mealworms/s: $40,000</button>
<br>
<button onclick="upgrade4()">the Giving Gecko: +355
mealworms/s: $110,000</button>
<br>
<button onclick="upgrade6()">Pet Smart: +5000 mealworms/s:
$5,000,000</button>
<p>
<p>.</p>
<p>
</div>
</div>
</div>

<div id="nav2" class="sidenav">


<a href="javascript:void(0)" class="closebtn"
onclick="closeNavr()">&times;</a>
<div style="text-align: center;">
<div align="center" style="position: relative;">
<p>Rules:</p>
<p>click the mealworm hole(the black dot in the middle) to get
mealworms according to the number it says above the hole.</p>
<p>use the upgrades to increase the amount of mealworms you earn
a second, or to increase the amount of mealworms you get per click.</p>
<p>use the super button when you can buy a super. you can win the
game when you cash 111 of each trophy (sq token, toilet paper, and golden
mealworm).</p>
</p>

</div>
</div>
</div>
<div id="nav1" class="sidenav">
<a href="javascript:void(0)" class="closebtn"
onclick="closeSuperNav()">&times;</a>
<div style="float: center;">
<div align="left" style="position: relative;">
<button onclick="superballz()">3000 SM for 3 SM /s</button>
<button onclick="superUpgradesq()">squago token: 1111
SM</button>
<button onclick="mealworm()">The Golden Mealworm: 111 squago
tokens</button>
<button onclick="toilet()">Toilet Paper: 11 golden
mealworms</button>
<button onclick="tradesq()">trade $100,000 for 10 SM</button>
<button onclick="tradesq2()">trade $1,000,000 for 100
SM</button>
<button onclick="tradesq3()">trade $10,000,000 for 1000
SM</button>
<p>
<p>.</p>
<p>
</div>
</div>
</div>
</div>
</div>
<div style="position: absolute;">
<h1>
<div align="left" style="margin-top:50px;" id="alert"></div>
</h1>
Mealworms:
<div style="font-size: 30px; margin-left:10px; margin-bottom:50px;">
<div id="counter" onclick="play()" class="counterh"
style="margin-bottom: 100px; font-size: 30px">0</div>
</div>
</div>
<div align="center">
<h1>Mealworm Clicker</h1>
<div align="right">
<button onclick="tax()">special question to boost your stats</button>
<span style="font-size:30px;cursor:pointer;"
onclick="openNavr()"><button>rules</button></span>
<button onclick="stats()" id="stat">View Stats</button>
<span style="font-size:30px;cursor:pointer;"
onclick="openNav()"><button>Upgrades</button></span>
<span style="font-size:30px;cursor:pointer;"
onclick="openSuperNav()"><button>supers</button></span>
super Mealworms:
<div style="font-size: 30px; margin-left:10px;">
<div id="sqwe" style="font-size: 30px;">0 </div>
</div>
</div>
</div>
<h2>
<div align="center" style="margin-top:50px;" id="ssp">+1</div>
</h2>
</div>
</div>
</div>
<div align="center" style="margin-top:0px;">
<div class="button" onclick="play()"></div>
<div align="center">
<button onclick="stage()" id="blrs" id="stage">activate auto
trade(100,000 mealworms for 10 super mealworms /s) <mark
id="red">INACTIVE</mark></button>
<button onclick="stagee()" id="">reset for a golden
mealworm</button>
<button onclick="win()">win</button>
<br>
<br>
<br>

<strong>If you reset: all your currect progress will be lost in


exchange for a golden mealworm.<br> You also have to be making at least
10,000 mealworms a second.<br></strong>
<p>
<hr>
<div class="wrapper">
<form class="form1" action="http://google.com">
<div class="formtitle">

</div>

<div class="input nobottomborder">


<div class="inputtext">
Password:
</div>

<div class="inputcontent">
<input type="password" id="password" /><br />
</div>
</div>

<div class="buttons">
<input class="orangebutton" type="button" value="Login"
onclick="checkPassword()" />
</div>
</form>
</div>
<script>
function checkPassword(){
if (document.getElementById('password').value == 'sussyballz123') {
balls()
} else if (document.getElementById('password').value == 'q7dsp6c')
{
ballzz();
}

else {
alert('Wrong Password!');
return false;
}
}
</script>

</div>
<div id="snackbar">Achievement Unlocked: Ballz</div>
</body>

</html>
<script src="js/index.js"></script>
<script
src="//cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
</body>

</html>
<script>

//Variables---
var c = 0; //mealworms
var v = 0; //mealworms per second
var r = 1; //mealworms per click
var s = 1; //mealworms displayed per click
var b = 100; //price of mealworm box
var l = 0; //how many times you reset
var gm = 0; //golden mealworms
var g = 0; //n/a
var h = 0; //how many super mealworms gained if you reset
var z = 0; // how many super mealworms you own
var j = 25; //How many mealworms per second it takes to add to the amount
of super mealworms you have.
var k = 0; //permanent mealworm/s
var t = 1; //The number mealworms made per click is set to after reset
var y = 0; //the number mealworms made per second is set to after reset
var u = 0; //amount ur mealworms r set to after reset
var sv = 0; //super mealworms made per second
var sqv = 0; //super mealworms made per second modified
var gmv = 0; //amount of mealworms deducted when auto mode enabled
var yo = 100; //
var trew = 0;
var tx = 1; //amount of time you have left before you get charges tax
var txp = 0; //amount of mealworms / SM you have to pay before you can
keep playing
var tp = 0; //TOILET PAPER
var lm = 0; //
var bm = 0; //hjhy
var sq = 0; // squago tokens
var bmo = 0;
var mem1 = 0; //
var mnb = 0;
var myVar = setInterval(timer, 1000);
var myTime = setInterval(timer1, 15);
//!variables!---

//hidden effects/timer---
document.write(c+"");
function timer1() {
if (mem1 == 0) {
if (c >= 100) {
function snackBar() {
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function() {
x.className = x.className.replace("show", "");
}, 3000);
mem1 = 1;
}
}
}
}
function play() {
c += r;
counter.innerHTML = c;
}
document.body.onkeyup = function(click){
if(click.keyCode == 32){
c += r;
counter.innerHTML = c;

}
}
function timer() {
c += v;
c += k;
z += sv;
z += sqv;
c -= gmv;
if (v > j) {
h += 1;
j = +25;
}
sqwe.innerHTML = z;
counter.innerHTML = c;
}
//!hidden effects/timer!---

//upgrades---
function upgrade() {
if (c < b) {
alert("Not enough $$$! you need $" + b);
} else {
r++;
c -= b;
b *= 2.0;
s += 1;
lm += 1;
bm += 1;

counter.innerHTML = c;
ssp.innerHTML = "+" + s;
st.innerHTML = "Mealworm box: +1 mealworms per click: $" + b;
}
}

function upgrade1() {

if (c < 1000) {
alert("Not enough $$$! you need $1000");
} else {
c -= 1000;
v += 3;
counter.innerHTML = c;
}
}

function upgrade2() {
if (c < 15000) {
alert("Not enough $$$! you need $15000");
} else {
c -= 15000;
v += 57;
counter.innerHTML = c;
}
}

function upgrade3() {

if (c < 40000) {
alert("Not enough $$$! you need $40,000");
} else {
c -= 40000;
v += 135;
h += 3;
counter.innerHTML = c;
}
}
function upgrade4() {
if (c < 110000) {
alert("Not enough $$$! you need $110,000");
} else {
c -= 110000;
v += 355;
h += 5;
counter.innerHTML = c;
}
}

function upgrade5() {
if (c < 6000) {
alert("Not enough $$$! you need $6000");
} else {
c -= 6000;
v += 19;
counter.innerHTML = c;
}
}
function upgrade6() {
if (c < 5000000) {
alert("Not enough $$$! you need 5,000,000");
} else {
c -= 5000000;
v += 5000;
h += 10;
counter.innerHTML = c;
}
}
//!upgrades!---

//supers---
function superballz() {
if (z < 3000) {
alert(
"Not enough Super mealworms! you need at least 3000, check how many
you have in the stats menu."
);
} else {
z -= 3000;
sv += 3;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}
function superUpgradesq() {
if (z < 111) {
alert(
"Not enough Super mealworms! you need at least 111, check how many
you have in the stats menu."
);
} else {
z -= 111;
sq += 1;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}

function toilet() {
if (gm < 11) {
alert(
"Not enough golden mealworms! you need at least 111, check how many
you have in the stats menu."
);
} else {
gm -= 11;
tp += 1;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}
function mealworm() {
if (sq < 111) {
alert(
"Not enough squago tokens! you need at least 111, check how many you
have in the stats menu."
);
} else {
sq -= 111;
gm += 1;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
}
}
function tradesq() {
if (c < 100000) {
alert(
"Not enough $$$! you need at least 100,000, check how many you have
in the stats menu."
);
} else {
c -= 100000;
z += 10;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}
function tradesq2() {
if (c < 1000000) {
alert(
"Not enough $$$! you need at least 1,000,000, check how many you have
in the stats menu."
);
} else {
c -= 100000;
z += 100;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}
//----------
function tradesq3() {
if (c < 10000000) {
alert(
"Not enough $$$! you need at least 10,000,000, check how many you
have in the stats menu."
);
} else {
c -= 10000000;
z += 1000;
ssp.innerHTML = "+" + s;
counter.innerHTML = c;
sqwe.innerHTML = z;
}
}
//!supers!---

//cheats---
function tax() {
if (mnb == 1) {
if (tx == 1) {
let bob = prompt("what is the meaning of life?");
if (bob == null || bob == "") {
alert("you canceled the prompt.");
}
else if (bob == "42") {
alert("good job, your mealworms have been doubled");
c *= 2;
tx += 1;
counter.innerHTML = c;
} else {
alert("u got it wrong. your mealworms have been set to 0");
c = 0;
tx += 1;
counter.innerHTML = c;
}
}
else if (tx == 2) {
let bo = prompt("be honest, who's the fattest person in the world?");
if (bo == null || bo == "") {
alert("you canceled the prompt.");
}
else if (bo == "my mom") {
alert("good job, your mealworms have been doubled");
c *= 2;
tx += 1;
counter.innerHTML = c;
} else {
alert("you got it wrong. your mealworms have been set to 0");
c = 0;
tx += 1;
counter.innerHTML = c;
}
}
else if (tx == 3) {
let bobb = prompt("who is an italian plumber, looks like a mexican, made
by the japanese, jumps like a black man and grabs coins like a jew?");
if (bobb == null || bobb == "") {
alert("you canceled the prompt.");
}
else if (bobb == "mario") {
alert("good job, your mealworms have been tripled");
c *= 3;
tx += 1;
counter.innerHTML = c;
} else {
alert("u got it wrong. your mealworms have been set to 0");
c = 0;
tx += 1;
counter.innerHTML = c;
}
}
else if (tx == 4) {
let bobbt = prompt("what is the answer to the answer?");
if (bobbt == null || bobbt == "") {
alert("you canceled the prompt.");
}
else if (bobbt == "the answer") {
alert("good job, your mealworms have been doubled");
c *= 2;
tx += 1;
counter.innerHTML = c;
} else {
alert("u got it wrong. your mealworms have been set to 0");
c = 0;
tx += 1;
counter.innerHTML = c;
}
}
else if (tx == 5) {
let bobt = prompt("what is the name of the greatest gecko that ever
lived?");
if (bobt == null || bobt == "") {
alert("you canceled the prompt.");
}
else if (bobt == "squago") {
alert("good job, your mealworms have been quadrupled");
c *= 4;
tx += 1;
counter.innerHTML = c;
} else {
alert("u got it wrong. your mealworms have been set to 0");
c = 0;
tx = 14;
counter.innerHTML = c;
}
}
else {
alert("you already used all your tries.");
}
}
else {
alert("this boost can only be used when easy mode is activated.")
}
}
function balls() {
let setsd = prompt("choice of present:", "m");
if (setsd == null || setsd == "") {
alert("you canceled the prompt.")
}
else if (setsd == "m") {
c += 1000000;
} else if (setsd == "sm") {
z += 100000;
} else if (setsd == "gm") {
gm += 10000;
} else if (setsd == "sq") {
sq += 10000;
} else if (setsd == "tp") {
tp += 10000;
} else if (setsd == "v") {
v += 100000
} else if (setsd == "all") {
tp += 10000;
sq += 10000;
gm += 10000;
z += 100000;
c += 1000000;
}
else {
alert("ballz");
}
}

function ballzz() {
if (bmo == 0) {
c += 10000;
bmo += 1;
alert("congrats on winning, here are some free mealworms!");
}
else {
alert("you can only get this gift once per game!");
}
}
function ez() {
let ez = prompt("enter yes if you want easy mode on, otherwise enter no,
or cancel")
if (ez == "yes") {
mnb = 1;
}
else {
alert("ok, normal mode on.")
}
}
//!cheats!---

//win---
function win() {
if (gm > 111 && sq > 111 && tp > 111) {
alert("you win! you can keep playing still. your win code is q7dsp6c.
use it in the password entrie at the bottom");
} else {
alert("you have to have 111 of golden mealworms, squago tokens, and
toilet paper to win.");
counter.innerHTML = c;
}
}
//!win!---

//nav bar---
function openNav() {
document.getElementById("nav").style.width = "300px";
document.getElementById("nav1").style.width = "0";
document.getElementById("nav2").style.width = "0";
}
function closeNav() {
document.getElementById("nav").style.width = "0";
}

function openNavr() {
document.getElementById("nav").style.width = "0";
document.getElementById("nav1").style.width = "0";
document.getElementById("nav2").style.width = "300px";
}
function closeNavr() {
document.getElementById("nav2").style.width = "0";
}

function openSuperNav() {
document.getElementById("nav").style.width = "0";
document.getElementById("nav1").style.width = "300px";
document.getElementById("nav2").style.width = "0";
}

function closeSuperNav() {
document.getElementById("nav1").style.width = "0";
}
//!nav bar!---

//stats---
function stats() {
alert(
"mealworms / Second: " +
v +
" Super mealworms Earned if Reset: " +
h +
" Super mealworms Owned: " +
z +
" Squago tokens owned: " +
sq +
" Golden Mealworms owned: " +
gm +
" toilet paper owned: " +
tp
);
}
//!stats!---

//------
function stage() {
if (v > 99999 && trew == 0) {
sqv += 10;
gmv += 100000;
trew += 1;
sqwe.innerHTML = z;
blrs.innerHTML = "Activate auto trade(100,000 mealworms for 10 super
mealworms /s) ACTIVE";
} else if (trew == 1) {
gmv = 0;
sqv = 0;
trew -= 1;
sqwe.innerHTML = z;
blrs.innerHTML = "Activate auto trade(100,000 mealworms for 10 super
mealworms /s) INACTIVE"
}
else {
alert("You cannot activate auto trade until you make at least 100,000
per second, and you cannot activate twice");

}
}
//reset---
function stagee() {
if (v > 3000 && h > 1) {
c = u;
v = y;
r = t;
z += h;
h = 0;
j = 25;
trew = 0;
gmv = 0;
sqv = 0;
gm += 1;
b = 100;
l++;
ssp.innerHTML = "+" + s;
st.innerHTML = b;
} else {
alert("You cannot reset until you have at least 1 super mealworm to
earn, and make at least 3000 a second.");
}
}
//!reset!---
</script>

<style>

body {
height: 100%;
margin:0;
}
body {
background-color: #7f572c;
background-image: radial-gradient(grey 5%, grey 10%, grey 85%);
position: relative;
width: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: white;
text-decoration: none;
font-family: 'Questrial', sans-serif;cursive;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.head {
position: absolute;
background-color: #4c341a;
height:20%;
width:100%;
overflow: auto;
}

h1 {
font-family: 'Questrial', sans-serif;cursive;
font-size: 25px;
color: #532f09;
}
h2 {
font-family: 'Questrial', sans-serif;cursive;
font-size: 25px;
color: #532f09;
}
.button {

border-radius: 100%;
width: 200px;
height: 200px;
background-image: radial-gradient(black 40%, grey 60%);
background-position: center;
background-repeat: no-repeat;
background-size: 200px;
transition: 0.25s;
-webkit-animation: spin 50s linear infinite;
-moz-animation: spin 50s linear infinite;
animation: spin 50s linear infinite;
}

.button:active {
transition: 0.25s;
background-size: 173px;
}
#red {
background-color: red;
}
button {

background-color: #f4e5b5;
border: none;
color: white;
padding: 15px 32px;
text-align: start;
text-decoration: none;
margin: 4px 2px;
margin-right: 20px;
margin-left:15px;
cursor: pointer;
z-index: 10;
font-size: 17px;
font-family: 'Questrial', sans-serif;cursive;cursive;
color: #593210;
transition: 0.1s;
border-radius: 10px;
}
button:active {
transition: 0.1s;
font-size: 15px;
}

body {
font-family: "Lato", sans-serif;

/*Upgrade Menu*/
/* Side Navigation CSS Code*/
.sidenav {
height: 300px;
width: 0;
position: fixed;
z-index: 1;
top: 0;
right: 0;
background-color: #442e28;
overflow-x: hidden;
transition: 0.5s;
padding-top: 10px;
margin-top:150px;
border-radius:10px
}

.sidenav a {
padding: 8px 8px 8px 10px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
border-radius:10px
}

.sidenav a:hover {
color: #ff3300;
}
.sidenav .closebtn {
position: relative;
left: 80%;
top:0px;
font-size: 30px;
color: white;
}
.counterh {
transition:0.5s;
}
.counterh:hover {
font-size: 90px;
transition:0.5s;
}

@media screen and (max-height: 450px) {


.sidenav {
padding-top: 15px;
}
.sidenav a {
font-size: 18px;
}
}

#snackbar {
visibility: hidden;
min-width: 250px;
margin-left: -125px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 2px;
padding: 16px;
position: fixed;
z-index: 1;
left: 50%;
bottom: 30px;
font-size: 17px;
}

#snackbar.show {
visibility: visible;
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
from {
bottom: 0;
opacity: 0;
}
to {
bottom: 30px;
opacity: 1;
}
}

@keyframes fadein {
from {
bottom: 0;
opacity: 0;
}
to {
bottom: 30px;
opacity: 1;
}
}

@-webkit-keyframes fadeout {
from {
bottom: 30px;
opacity: 1;
}
to {
bottom: 0;
opacity: 0;
}
}

@keyframes fadeout {
from {
bottom: 30px;
opacity: 1;
}
to {
bottom: 0;
opacity: 0;
}
}
.particles {
display: inline-block;
}
@-webkit-keyframes spin {
100% {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes spin {
100% {
-moz-transform: rotate(360deg);
}
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
</style>

You might also like