Version - 1 - 1-38
61
Version - 35/add.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
click.offline.make
|
||||
max 5 hour
|
||||
|
||||
name gen com.cost cost
|
||||
1 dog = 1 clicks/s = 100 | 100 clicks
|
||||
1 cat = 12 c/s = 1 000 | 10 dogs
|
||||
1 fox = 18 c/s = 1 500 | 15 dogs
|
||||
1 wolf = 100 c/s = 8 100 | 5 foxes + 6 dogs
|
||||
1 hamster = 130 c/s = 10 100 | 1 wolf + 2 cats
|
||||
1 whale = 220 c/s = 16 200 | 2 wolfs
|
||||
1 cappibara = 280 c/s = 20 200 | 1 whale + 4 cats
|
||||
1 platapus = 400 c/s = 28 300 | 1 cappy + 1 wolf
|
||||
1 porcupine = ≈ 40 000
|
||||
1 hippo = ≈ 50 000
|
||||
1 snake = ≈ 60 000
|
||||
1 cheetah = ≈ 69 000
|
||||
1 python =
|
||||
1 girrafe = 1 000 000 c/s
|
||||
|
||||
1 citronovník = 30 lemons/h
|
||||
|
||||
36,7% k 10 citronum že vyroste citronovník
|
||||
|
||||
compile to .exe and add it to the play store
|
||||
|
||||
add complete history of clicks, dogs, cats, lemons, ...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Upgrades!
|
||||
|
||||
Button
|
||||
Green button - 2.5 clicks per clicks
|
||||
Yellow button - 4 clicks/click + random Chance for a lemon
|
||||
Purple button - 6 c/c
|
||||
Cyan button - 10 c/c + random chance for ______
|
||||
|
||||
Dog
|
||||
R collar - 1.5 cs
|
||||
G collar - 2 cs
|
||||
Y collar - 5 cs
|
||||
P collar - 8.2 cs
|
||||
C collar - 15 cs
|
||||
|
||||
Cat
|
||||
R collar - 150 cs
|
||||
G collar - 200 cs
|
||||
Y collar - 500 cs
|
||||
P collar - 750 cs
|
||||
C collar - 1 000 cs
|
||||
|
||||
Fox
|
||||
R fur - 225 cs
|
||||
G fur - 300 cs
|
||||
Y fur - 666 cs
|
||||
P fur - 1 125 cs
|
||||
C fur - 1 500 cs
|
||||
|
||||
lemon
|
||||
27
Version - 35/changelog
Normal file
@@ -0,0 +1,27 @@
|
||||
v31
|
||||
undefined and NaN fix for adding new animals
|
||||
|
||||
v32 /* 18.4. 2023 */
|
||||
Added: max value shop for wolfs, whales, hamsters, capybaras
|
||||
icons for said animals
|
||||
new interface for BRB clicking
|
||||
|
||||
Removed: scrolling in BRB clicking
|
||||
|
||||
Fixed: button to get to the shop was updated
|
||||
|
||||
v33
|
||||
Added: New UI for shop
|
||||
|
||||
v34
|
||||
Added: New Button to Upgrades menu
|
||||
Shop UI
|
||||
|
||||
Fixed: Finally fixed NaN, Undefined, Null error
|
||||
|
||||
v35
|
||||
Added: Platapuses
|
||||
Better Ui
|
||||
Now Czech Version
|
||||
|
||||
Fixed: Items not loading propebly
|
||||
101
Version - 35/css/brb.css
Normal file
@@ -0,0 +1,101 @@
|
||||
body {
|
||||
font-size: 15pt;
|
||||
user-select: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
#tycoon{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
background: radial-gradient(125% 100% at 50% 0%,#9aff9a 20%,#ffffff 70%);
|
||||
}
|
||||
#shop{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 20%;
|
||||
text-align: center;
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
#cool{
|
||||
position: absolute;
|
||||
top: 98px;
|
||||
left: 0%;
|
||||
width: 100%;
|
||||
height: 25%;
|
||||
/*background: radial-gradient(#9aff9a,#ffffff);*/
|
||||
}
|
||||
#logclick{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 40px;
|
||||
left: 50%;
|
||||
text-align: center;
|
||||
transform: translate(-50%,0);
|
||||
}
|
||||
#disclick{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*BRB*/
|
||||
#unpressed{
|
||||
position: absolute;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
border-radius: 150px;
|
||||
}
|
||||
#pressed{
|
||||
position: absolute;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
visibility: hidden;
|
||||
border-radius: 150px;
|
||||
}
|
||||
#button{
|
||||
user-select: none;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -150px 0 0 -150px;
|
||||
border-radius: 150px;
|
||||
}
|
||||
|
||||
.reset{
|
||||
position: absolute;
|
||||
user-select: none;
|
||||
width: 69px;
|
||||
height: 50px;
|
||||
bottom: 0%;
|
||||
right: 0%;
|
||||
background-color: #ff0000;
|
||||
color: #ffffff;
|
||||
}
|
||||
.help{
|
||||
position: absolute;
|
||||
user-select: none;
|
||||
width: 69px;
|
||||
height: 50px;
|
||||
bottom: 50px;
|
||||
right: 0%;
|
||||
background-color: darkgoldenrod;
|
||||
color: #ffffff;
|
||||
}
|
||||
.Yt{
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0;
|
||||
}
|
||||
.cz{
|
||||
position: absolute;
|
||||
user-select: none;
|
||||
width: 69px;
|
||||
height: 50px;
|
||||
border:#000000 solid 1px;
|
||||
bottom: 45px;
|
||||
left: 0%;
|
||||
background-color: darkgoldenrod;
|
||||
color: #ffffff;
|
||||
}
|
||||
98
Version - 35/css/shop.css
Normal file
@@ -0,0 +1,98 @@
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
user-select: none;
|
||||
box-sizing: border-box;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 15pt;
|
||||
/*background: linear-gradient(#009000, black);*/
|
||||
background-color: #ccc;
|
||||
}
|
||||
#links{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin: 1rem auto;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.link{
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: var(--color);
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
margin: 1rem auto;
|
||||
border: 3.69px solid #333333;
|
||||
border-radius: 69px;
|
||||
}
|
||||
|
||||
/* By MrEidam */
|
||||
.item{
|
||||
background-color: papayawhip/*var(--color)*/;
|
||||
border: 2px solid #333;
|
||||
top: 5px;
|
||||
margin: 2rem 10vw 2rem 10vw;
|
||||
padding: 0.5rem;
|
||||
border-radius: 6.9px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-evenly;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.item img{
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 0.5rem;
|
||||
pointer-events: none
|
||||
}
|
||||
.buttons{
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
/* By MrEidam */
|
||||
.buttons button{
|
||||
background-color: var(--Bcolor);
|
||||
border-radius: 8px;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.buyone{
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.buymax{
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
main{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Clisks */
|
||||
#logclick{
|
||||
background-color: papayawhip;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5ch;
|
||||
margin: 0 5vw 0 5vw;
|
||||
padding: 1rem;
|
||||
border: 5px dashed blue;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
#imgcli{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: 0.1rem;
|
||||
}
|
||||
/* By MrEidam */
|
||||
53
Version - 35/css/upgr.css
Normal file
@@ -0,0 +1,53 @@
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
user-select: none;
|
||||
box-sizing: border-box;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 15pt;
|
||||
/*background: linear-gradient(#009000, black);*/
|
||||
background-color: #ccc;
|
||||
}
|
||||
#links{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin: 1rem auto;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.link {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
background-color: var(--color);
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
margin: 1rem auto;
|
||||
padding: 10px;
|
||||
border: 3.69px solid #333333;
|
||||
border-radius: 69px;
|
||||
}
|
||||
/* By MrEidam */
|
||||
|
||||
/* Clisks */
|
||||
#loglm{
|
||||
background-color: papayawhip;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5ch;
|
||||
margin: 0 5vw 0 5vw;
|
||||
padding: 1rem;
|
||||
border: 5px dashed #effd5f66;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
#imglm{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: 0.1rem;
|
||||
}
|
||||
/* By MrEidam */
|
||||
BIN
Version - 35/img/Cat.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
Version - 35/img/Click.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Version - 35/img/Dog.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
Version - 35/img/Flag_of_the_Czech_Republic.svg.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
Version - 35/img/Fox.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
Version - 35/img/Hamsta.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
Version - 35/img/Lemons.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Version - 35/img/Lemt3.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Version - 35/img/Wolf.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
Version - 35/img/YT.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
Version - 35/img/capy.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
Version - 35/img/platapus.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
Version - 35/img/shop.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
Version - 35/img/upgrade-icon-png-12.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
Version - 35/img/wha.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
57
Version - 35/index.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>BRB - Clicking</title>
|
||||
|
||||
<!-- By MrEidam && Standa Chlup -->
|
||||
|
||||
|
||||
<!-- Custom Styles -->
|
||||
<link rel="stylesheet" href="./css/brb.css">
|
||||
<link rel="icon" href="https://i.postimg.cc/9Rs0vWFF/Nezm-kl.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Shop -->
|
||||
<div id="tycoon">
|
||||
<a href="shop.html" id="shop"><p>Click me to get to the Shop!</p></a>
|
||||
</div>
|
||||
|
||||
<!-- Clicks -->
|
||||
<div id="logclick">
|
||||
<p id="disclick">
|
||||
</div>
|
||||
|
||||
<!-- BRB -->
|
||||
<div id="button" onclick="clicking()">
|
||||
<img src = 'https://i.postimg.cc/9Rs0vWFF/Nezm-kl.png' id="unpressed" draggable="false">
|
||||
<img src = "https://i.postimg.cc/NLr5Rrpy/Zm-kl.png" id="pressed" draggable="false">
|
||||
</div>
|
||||
|
||||
|
||||
<section class="btns">
|
||||
<button class="reset" onclick="reset()"><!-- RESET -->
|
||||
RESET
|
||||
</button>
|
||||
|
||||
<button class="help" onclick="help()"><!-- Tutorial -->
|
||||
HELP
|
||||
</button>
|
||||
</section>
|
||||
|
||||
<a href="https://brb-mreidam-cz.netlify.com"><img src="img\Flag_of_the_Czech_Republic.svg.png" alt="" class="cz"></a>
|
||||
|
||||
<!-- YouTube -->
|
||||
<div class="Yt" style="position:absolute;width:110px;height:40px;overflow:hidden;background:linear-gradient(#d44,#722);border:2px solid #333;border-radius:1rem;">
|
||||
<img style="position:absolute;width:100%;height:100%;" src="./img/YT.png" title="Můj YT kanál">
|
||||
<a style="position:absolute;width:100%;height:100%;" href="https://www.youtube.com/@mreidam" title="Můj YT kanál"></a>
|
||||
</div>
|
||||
|
||||
<!-- Project -->
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
125
Version - 35/main.js
Normal file
@@ -0,0 +1,125 @@
|
||||
// Items
|
||||
let items;
|
||||
var cs = 0;
|
||||
let e = 0;
|
||||
var anime = false;
|
||||
|
||||
function load(){
|
||||
if (localStorage.getItem('items')!=null){
|
||||
items = JSON.parse(localStorage.getItem('items'));
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function(){
|
||||
items = {
|
||||
clicks:0,
|
||||
dogs:0,
|
||||
cats:0,
|
||||
foxes:0,
|
||||
wolfs:0,
|
||||
hamsters:0,
|
||||
whales:0,
|
||||
capybaras:0,
|
||||
platapuses:0,
|
||||
porcupines:0,
|
||||
hippos:0,
|
||||
snakes:0,
|
||||
cheetahs:0,
|
||||
pythons:0,
|
||||
girrafes:0,
|
||||
lions:0,
|
||||
|
||||
lemons:0,
|
||||
lt3:0,
|
||||
}
|
||||
load();
|
||||
update();
|
||||
for(let item in items){
|
||||
if(!items.item) items.item = 0;
|
||||
}
|
||||
cash();
|
||||
}
|
||||
|
||||
// Reset
|
||||
function reset(){
|
||||
if(confirm('Do you really want to reset everything?')){
|
||||
if(confirm('Are you sure?')){
|
||||
alert('Everyting Reseted');
|
||||
items = {
|
||||
clicks:0,
|
||||
dogs:0,
|
||||
cats:0,
|
||||
foxes:0,
|
||||
wolfs:0,
|
||||
hamsters:0,
|
||||
whales:0,
|
||||
capybaras:0,
|
||||
platapuses:0,
|
||||
porcupines:0,
|
||||
hippos:0,
|
||||
snakes:0,
|
||||
cheetahs:0,
|
||||
pythons:0,
|
||||
girrafes:0,
|
||||
lions:0,
|
||||
|
||||
lemons:0,
|
||||
lt3:0,
|
||||
}
|
||||
upg = {
|
||||
mememode: false,
|
||||
autobuydog: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update
|
||||
function update(){
|
||||
let i = JSON.stringify(items);
|
||||
localStorage.setItem('items', i);
|
||||
document.getElementById('disclick').innerHTML=`You've got ${items.clicks} clicks, and generating ${cs} c/s!`
|
||||
}
|
||||
|
||||
// BRB
|
||||
function beriba(){
|
||||
document.getElementById('unpressed').style.visibility='visible'
|
||||
document.getElementById('pressed').style.visibility='hidden'
|
||||
anime=true;
|
||||
}
|
||||
|
||||
function clicking(){
|
||||
items.clicks += 1;
|
||||
update();
|
||||
|
||||
document.getElementById('unpressed').style.visibility='hidden'
|
||||
document.getElementById('pressed').style.visibility='visible'
|
||||
anime=false;
|
||||
|
||||
setTimeout(beriba, 75)
|
||||
}
|
||||
|
||||
function cash(){
|
||||
setTimeout (function money(){
|
||||
cs = items.dogs + items.cats*12 + items.foxes*18 + items.wolfs*100 + items.hamsters*130 + items.whales*220 + items.capybaras*280;
|
||||
items.clicks += cs;
|
||||
update();cash();
|
||||
},1000)
|
||||
}
|
||||
|
||||
// HELP
|
||||
function help(){
|
||||
e++
|
||||
if(e==1){
|
||||
alert('Click the button to earn clicks!');
|
||||
alert('Click on me for more...');
|
||||
}
|
||||
if(e==2){
|
||||
alert('After 100 clicks, click the link above to take you to the shop!');
|
||||
alert('Click on me for more. .');
|
||||
}
|
||||
if(e==3){
|
||||
alert('In the shop click on the buy dog button to buy a dog');
|
||||
e=0;
|
||||
}
|
||||
}
|
||||
205
Version - 35/shop.html
Normal file
@@ -0,0 +1,205 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>BRB - Shop</title>
|
||||
|
||||
<!-- By MrEidam & Standa Chlup -->
|
||||
|
||||
|
||||
<link rel="stylesheet" href="./css/shop.css">
|
||||
<link rel="icon" href="./img/shop.png">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- BRB -->
|
||||
<header>
|
||||
<div id="links">
|
||||
<p class="link" style="--color:#ff6655">
|
||||
<a href="index.html">Go to BRB!</a>
|
||||
</p>
|
||||
<p class="link" style="--color:yellow">
|
||||
<a href="upgrade.html">Go to Upgrades!</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Clicks -->
|
||||
<div id="logclick">
|
||||
<img src="./img/Click.png" id="imgcli" draggable="false">
|
||||
<p id="disclick"></p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<!-- I T E M S -->
|
||||
<main>
|
||||
<!-- Dog -->
|
||||
<div class="item" style="--color: papayawhip">
|
||||
<img src="./img/Dog.png">
|
||||
|
||||
<div class="buttons" style="--Bcolor: darkorange">
|
||||
<button onclick="buydog()" class="buyone">
|
||||
Buy a Dog for 100 clicks
|
||||
</button>
|
||||
<button onclick="mxdg()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<p id="disdog"></p>
|
||||
<p id="disdgmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Cat -->
|
||||
<div class="item">
|
||||
<img src="./img/Cat.png">
|
||||
<div class="buttons" style="--Bcolor: orange">
|
||||
<button onclick="buycat()" class="buyone">
|
||||
Buy a Cat for 10 dogs
|
||||
</button>
|
||||
<button onclick="mxct()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="discat"></p>
|
||||
<p id="disctmake"></p>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Fox -->
|
||||
<div class="item">
|
||||
<img src="./img/Fox.png">
|
||||
<div class="buttons" style="--Bcolor: lightsalmon">
|
||||
<button onclick="buyfox()" class="buyone">
|
||||
Buy a Fox for 15 dogs
|
||||
</button>
|
||||
<button onclick="mxfx()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="disfox"></p>
|
||||
<p id="disfxmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Wolf -->
|
||||
<div class="item">
|
||||
<img src="./img/Wolf.png">
|
||||
<div class="buttons" style="--Bcolor: lightgray">
|
||||
<button onclick="buywol()" class="buyone">
|
||||
Buy a Wolf for 6 dogs and 5 foxes
|
||||
</button>
|
||||
<button onclick="mxwl()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="diswol"></p>
|
||||
<p id="diswlmake"></p>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Hamster -->
|
||||
<div class="item">
|
||||
<img src="./img/Hamsta.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: wheat">
|
||||
<button onclick="buyham()" class="buyone">
|
||||
Buy a Hamster for 1 wolf and 2 cats
|
||||
</button>
|
||||
<button onclick="mxhm()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="disham"></p>
|
||||
<p id="dishmmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Whales -->
|
||||
<div class="item">
|
||||
<img src="./img/wha.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: MediumAquamarine">
|
||||
<button onclick="buywha()" class="buyone">
|
||||
Buy a Whale for 2 wolfs
|
||||
</button>
|
||||
<button onclick="mxwh()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="diswha"></p>
|
||||
<p id="diswhmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Cappybarra -->
|
||||
<div class="item">
|
||||
<img src="./img/capy.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: rosybrown">
|
||||
<button onclick="buycap()" class="buyone">
|
||||
Buy a Cappybarra for 1 whale and 4 cats
|
||||
</button>
|
||||
<button onclick="mxcp()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="discap"></p>
|
||||
<p id="discpmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Platapuses-->
|
||||
<div class="item">
|
||||
<img src="./img/platapus.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: Sienna">
|
||||
<button onclick="buypla()" class="buyone">
|
||||
Buy a Platypus for 1 cappybarra and 1 wolf
|
||||
</button>
|
||||
<button onclick="mxpl()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="displa"></p>
|
||||
<p id="displmake"></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Lemons -->
|
||||
<div class="item">
|
||||
<img src="./img/Lemons.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: yellow">
|
||||
<button onclick="buylem()" class="buyone">
|
||||
Buy a Lemon for <b style="font-weight: 1000;">some</b> cats
|
||||
</button>
|
||||
<button onclick="mxlm()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="dislem"></p>
|
||||
<p id="dislmmake"></p>
|
||||
</div>
|
||||
|
||||
<!-- Lemn t3-->
|
||||
<div class="item">
|
||||
<img src="./img/Lemt3.png" draggable="false">
|
||||
<div class="buttons" style="--Bcolor: lightgoldenrodyellow">
|
||||
<button onclick="buylt3()" class="buyone">
|
||||
Buy a Lemon Tree for 5 lemons
|
||||
</button>
|
||||
<button onclick="mxlt()" class="buymax">
|
||||
MAX
|
||||
</button>
|
||||
</div>
|
||||
<p id="dislt3"></p>
|
||||
<p id="disltmake"></p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- By MrEidam -->
|
||||
<script src="shop.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
264
Version - 35/shop.js
Normal file
@@ -0,0 +1,264 @@
|
||||
let cs
|
||||
// Update
|
||||
function update(){
|
||||
let i = JSON.stringify(items);
|
||||
localStorage.setItem('items', i);
|
||||
cs = items.dogs + items.cats*12 + items.foxes*18 + items.wolfs*100 + items.hamsters*130 + items.whales*220 + items.capybaras*280;
|
||||
}
|
||||
function c(x){
|
||||
items.clicks += x;
|
||||
console.log(x + ' clicks added!');
|
||||
upload();
|
||||
}
|
||||
|
||||
// Load
|
||||
function load(){
|
||||
items = JSON.parse(localStorage.getItem('items'));
|
||||
|
||||
document.getElementById('disclick').innerHTML=`You've got ${items.clicks} clicks, and making ${cs} c/s!`
|
||||
document.getElementById('disdog').innerHTML=`You've got ${items.dogs} dogs!`
|
||||
document.getElementById('discat').innerHTML=`You've got ${items.cats} cats!`
|
||||
document.getElementById('disfox').innerHTML=`You've got ${items.foxes} foxes!`
|
||||
document.getElementById('diswol').innerHTML=`You've got ${items.wolfs} wolfs!`
|
||||
document.getElementById('disham').innerHTML=`You've got ${items.hamsters} hamsters!`
|
||||
document.getElementById('diswha').innerHTML=`You've got ${items.whales} whales!`
|
||||
document.getElementById('discap').innerHTML=`You've got ${items.capybaras} capybaras!`
|
||||
document.getElementById('displa').innerHTML=`You've got ${items.platapuses} platypuses!`
|
||||
|
||||
|
||||
|
||||
|
||||
document.getElementById('dislem').innerHTML=`You've got ${items.lemons} lemons!`
|
||||
document.getElementById('dislt3').innerHTML=`You've got ${items.lt3} lemon trees!`
|
||||
|
||||
cs = items.dogs + items.cats*12 + items.foxes*18 + items.wolfs*100 + items.hamsters*130 + items.whales*220 + items.capybaras*280;
|
||||
|
||||
document.getElementById('disdgmake').innerHTML=`They're generating ${items.dogs*1} clicks per second!`
|
||||
document.getElementById('disctmake').innerHTML=`They're generating ${items.cats*12} clicks per second!`
|
||||
document.getElementById('disfxmake').innerHTML=`They're generating ${items.foxes*18} clicks per second!`
|
||||
document.getElementById('diswlmake').innerHTML=`They're generating ${items.wolfs*100} clicks per second!`
|
||||
document.getElementById('dishmmake').innerHTML=`They're generating ${items.hamsters*130} clicks per second!`
|
||||
document.getElementById('diswhmake').innerHTML=`They're generating ${items.whales*220} clicks per second!`
|
||||
document.getElementById('discpmake').innerHTML=`They're generating ${items.capybaras*280} clicks per second!`
|
||||
document.getElementById('displmake').innerHTML=`They're generating ${items.platapuses*400} clicks per second!`
|
||||
}
|
||||
load();
|
||||
|
||||
function upload(){
|
||||
update();
|
||||
load();
|
||||
}
|
||||
|
||||
function cash(){
|
||||
setTimeout (function money(){
|
||||
items.clicks += cs;
|
||||
upload();
|
||||
cash();
|
||||
},1000)
|
||||
}
|
||||
cash();
|
||||
|
||||
// Nákupy
|
||||
function buydog(){
|
||||
if (items.clicks>=100){
|
||||
items.clicks -= 100;
|
||||
items.dogs += 1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buycat(){
|
||||
if(items.dogs>=10){
|
||||
items.dogs-=10;
|
||||
items.cats+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buyfox(){
|
||||
if(items.dogs>=15){
|
||||
items.dogs-=15;
|
||||
items.foxes+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buywol(){
|
||||
if(items.dogs>=6 && items.foxes>=5){
|
||||
items.dogs-=6;
|
||||
items.foxes-=5;
|
||||
items.wolfs+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buyham(){
|
||||
if(items.wolfs>=1 && items.cats>=2){
|
||||
items.wolfs-=1;
|
||||
items.cats-=2;
|
||||
items.hamsters+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buywha(){
|
||||
if(items.wolfs>=2){
|
||||
items.wolfs-=2;
|
||||
items.whales+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buycap(){
|
||||
if(items.whales>=1 && items.cats>=4){
|
||||
items.whales-=1;
|
||||
items.cats-=4;
|
||||
items.capybaras+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buypla(){
|
||||
if(items.capybaras>=1 && items.wolfs>=1){
|
||||
items.capybaras-=1;
|
||||
items.wolfs-=1;
|
||||
items.platapuses+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function buylem(){
|
||||
if(items.cats>=10){
|
||||
items.cats-=10;
|
||||
items.lemons+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function buylt3(){
|
||||
if (items.lemons>=5) {
|
||||
items.lemons-=5;
|
||||
items.lt3+=1;
|
||||
}
|
||||
upload();
|
||||
}
|
||||
/* Max Shop */
|
||||
function mxdg(){
|
||||
one = Math.floor(items.clicks / 100)
|
||||
|
||||
items.clicks -= one * 100
|
||||
items.dogs += one
|
||||
upload();
|
||||
}
|
||||
function mxct(){
|
||||
one = Math.floor(items.dogs / 10)
|
||||
|
||||
items.dogs -= one * 10
|
||||
items.cats += one
|
||||
upload();
|
||||
}
|
||||
function mxfx(){
|
||||
one = Math.floor(items.dogs/15)
|
||||
|
||||
items.dogs -= one*15
|
||||
items.foxes += one
|
||||
upload();
|
||||
}
|
||||
/*
|
||||
function lemmvalue(){
|
||||
mdog = items.cats/20;
|
||||
maxdog = Math.floor(mdog);
|
||||
floordog = maxdog*20
|
||||
items.cats -= floordog
|
||||
items.lemons += maxdog
|
||||
upload();
|
||||
}*/
|
||||
function mxlm(){
|
||||
one = Math.floor(items.cats/20)
|
||||
|
||||
items.cats -= one*20
|
||||
items.lemons += one
|
||||
upload();
|
||||
}
|
||||
function mxlt(){
|
||||
one = Math.floor(items.lemons/5)
|
||||
|
||||
items.lemons -= one*5
|
||||
items.lt3 += one
|
||||
upload()
|
||||
}
|
||||
function mxwh(){
|
||||
one = Math.floor(items.wolfs/2)
|
||||
|
||||
items.wolfs -= one*2
|
||||
items.whales += one
|
||||
upload()
|
||||
}
|
||||
let one,two,val
|
||||
|
||||
// Max Wolf
|
||||
|
||||
function mxwl(){
|
||||
one = Math.floor(items.foxes/5)
|
||||
two = Math.floor(items.dogs/6)
|
||||
|
||||
if(one<=two){
|
||||
items.foxes -= one*5
|
||||
items.dogs -= one*6
|
||||
items.wolfs += one
|
||||
}else if(one>=two){
|
||||
items.foxes -= two*5
|
||||
items.dogs -= two*6
|
||||
items.wolfs += two
|
||||
}else{
|
||||
console.log('You fucked up you stupid bitch')
|
||||
}
|
||||
upload();
|
||||
}
|
||||
|
||||
function mxhm(){
|
||||
one = Math.floor(items.wolfs/1)
|
||||
two = Math.floor(items.cats/2)
|
||||
|
||||
if(one<=two){
|
||||
items.wolfs -= one*1
|
||||
items.cats -= one*2
|
||||
items.hamsters += one
|
||||
}else if(one>=two){
|
||||
items.wolfs -= two*1
|
||||
items.cats -= two*2
|
||||
items.hamsters += two
|
||||
}else{
|
||||
console.log('You fucked up you stupid bitch')
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function mxcp(){
|
||||
one = Math.floor(items.whales/1)
|
||||
two = Math.floor(items.cats/4)
|
||||
|
||||
if(one<=two){
|
||||
items.whales -= one*1
|
||||
items.cats -= one*4
|
||||
items.capybaras += one
|
||||
}else if(one>=two){
|
||||
items.whales -= two*1
|
||||
items.cats -= two*4
|
||||
items.capybaras += two
|
||||
}else{
|
||||
console.log('You fucked up you stupid bitch')
|
||||
}
|
||||
upload();
|
||||
}
|
||||
function mxpl(){
|
||||
one = Math.floor(items.capybaras/1)
|
||||
two = Math.floor(items.wolfs/1)
|
||||
|
||||
if(one<=two){
|
||||
items.capybaras -= one*1
|
||||
items.wolfs -= one*1
|
||||
items.platapuses += one
|
||||
}else if(one>=two){
|
||||
items.capybaras -= two*1
|
||||
items.wolfs -= two*1
|
||||
items.platapuses += two
|
||||
}else{
|
||||
console.log('You fucked up you stupid bitch')
|
||||
}
|
||||
upload();
|
||||
}
|
||||
44
Version - 35/upgr.js
Normal file
@@ -0,0 +1,44 @@
|
||||
let items;
|
||||
let cs;
|
||||
|
||||
// Update
|
||||
function update(){
|
||||
let i = JSON.stringify(items);
|
||||
localStorage.setItem('items', i);
|
||||
}
|
||||
|
||||
function load(){
|
||||
if (localStorage.getItem('items')!=null){
|
||||
items = JSON.parse(localStorage.getItem('items'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cs = items.dogs + items.cats*12 + items.foxes*18 + items.wolfs*100 + items.hamsters*130 + items.whales*220 + items.capybaras*280;
|
||||
|
||||
document.getElementById('dislm').innerHTML = `You've got ${items.lemons} lemons!`
|
||||
}
|
||||
|
||||
function upload(){
|
||||
update();
|
||||
load();
|
||||
}
|
||||
|
||||
function cash(){
|
||||
setTimeout (function money(){
|
||||
items.clicks += cs;
|
||||
upload();cash();
|
||||
if(upg.autobuydog === true){
|
||||
items.clicks -= Math.floor(items.clicks / 100) * 100
|
||||
items.dogs += Math.floor(items.clicks / 100)
|
||||
upload();
|
||||
}
|
||||
},1000)
|
||||
}
|
||||
|
||||
|
||||
window.onload = function(){
|
||||
load();cash();
|
||||
}
|
||||
37
Version - 35/upgrade.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>BRB - Upgrades</title>
|
||||
|
||||
<link rel="stylesheet" href="./css/upgr.css">
|
||||
<link rel="icon" href="./img/upgrade-icon-png-12.jpg">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- BRB -->
|
||||
<header>
|
||||
<div id="links">
|
||||
<p class="link" style="--color:#ff6655">
|
||||
<a href="index.html">Go to BRB!</a>
|
||||
</p>
|
||||
<p class="link" style="--color:darkorange">
|
||||
<a href="shop.html" id="clickbrb">Go back to Shop!</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- lemons -->
|
||||
<div id="loglm">
|
||||
<img src="./img/Lemons.png" id="imglm" draggable="false">
|
||||
<p id="dislm"></p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<script src="upgr.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||