mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Version - 47
This commit is contained in:
@@ -1,79 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<!-- Meta -->
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="keywords" content="BRB, MrEidam, Eidam, Clicker, Button, Red, Big, Shop, Ajdam, MrAjdam, paneidam, merida, mreidam clicker, mreidam game, mreidam social">
|
|
||||||
<meta name="author" content="MrEidam">
|
|
||||||
|
|
||||||
<!-- Social -->
|
|
||||||
<meta property="og:title" content="BRB">
|
|
||||||
<meta property="og:url" content="https://www.mreidam-brb.com">
|
|
||||||
<meta property="og:site_name" content="BRB"/>
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta property="og:image" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png">
|
|
||||||
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta name="twitter:card" content="summary_large_image"/>
|
|
||||||
<meta name="twitter:title" content="BRB"/>
|
|
||||||
<meta name="twitter:url" content="https://www.mreidam-brb.com"/>
|
|
||||||
<meta property="twitter:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png"/>
|
|
||||||
|
|
||||||
<!-- Libraries -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
|
|
||||||
|
|
||||||
<title>BRB - Clicking</title>
|
|
||||||
|
|
||||||
<!-- By MrEidam && Standa Chlup -->
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../css/menu.css">
|
|
||||||
<link rel="stylesheet" href="../css/brb.css">
|
|
||||||
<link rel="icon" href="../img/brb-still.png">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="body">
|
|
||||||
<div id="jonathan"></div>
|
|
||||||
|
|
||||||
<!-- Clicks -->
|
|
||||||
<div id="logclick">
|
|
||||||
<p id="disclick">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- BRB -->
|
|
||||||
<div id="button" onclick="clicking()">
|
|
||||||
<img src="../img/brb-still.png" id="unpressed" draggable="false">
|
|
||||||
<img src="../img/brb-pressed.png" id="pressed" draggable="false">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Šmol changelog -->
|
|
||||||
<div class="changelog" onclick="change()">
|
|
||||||
<svg height="1em" viewBox="0 0 512 512"><path d="M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 11-26 26 26 26 0 0126-26zm48 226h-88a16 16 0 010-32h28v-88h-16a16 16 0 010-32h32a16 16 0 0116 16v104h28a16 16 0 010 32z" fill="currentColor"/></svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Menu -->
|
|
||||||
<div class="menu-container">
|
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a href="../Clicking/" id="brb">BRB</a></li>
|
|
||||||
<li><a href="../Shop/" id="shop"></a></li>
|
|
||||||
<li><a href="../Upgrade/" id="upg"></a></li>
|
|
||||||
<li><a href="../Settings/" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Project -->
|
|
||||||
<script src="../js/menu.js"></script>
|
|
||||||
<script src="../js/fornum.js"></script>
|
|
||||||
<script src="../js/main.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
774
Shop/index.html
774
Shop/index.html
@@ -1,774 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<!-- Meta -->
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="keywords" content="BRB, MrEidam, Eidam, Clicker, Button, Red, Big, Shop, Ajdam, MrAjdam, paneidam, merida, mreidam clicker, mreidam game, mreidam social, mreidam brb shop">
|
|
||||||
<meta name="author" content="MrEidam">
|
|
||||||
<!-- Social -->
|
|
||||||
<meta property="og:title" content="BRB">
|
|
||||||
<meta property="og:url" content="https://www.mreidam-brb.com">
|
|
||||||
<meta property="og:site_name" content="BRB"/>
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta property="og:image" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png">
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta name="twitter:card" content="summary_large_image"/>
|
|
||||||
<meta name="twitter:title" content="BRB"/>
|
|
||||||
<meta name="twitter:url" content="https://www.mreidam-brb.com"/>
|
|
||||||
<meta property="twitter:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png"/>
|
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
|
|
||||||
|
|
||||||
<title>BRB - Shop</title>
|
|
||||||
|
|
||||||
<!-- By MrEidam & Standa Chlup -->
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../css/menu.css">
|
|
||||||
<link rel="stylesheet" href="../css/shop.css">
|
|
||||||
<link rel="icon" href="../img/shop.png">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="body">
|
|
||||||
<!-- Clicks -->
|
|
||||||
<section class="joe" id="jonathan">
|
|
||||||
<div id="logclick">
|
|
||||||
<img src="../img/icons8-rest.svg" id="imgcli" draggable="false">
|
|
||||||
<p id="disclick"></p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- I T E M S -->
|
|
||||||
<main style="margin-top: 210px;">
|
|
||||||
<article class="main">
|
|
||||||
<!-- Dog -->
|
|
||||||
<div class="item" style="--color: ">
|
|
||||||
<h2 id="disdogName"></h2>
|
|
||||||
<img src="../img/dog.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: darkorange">
|
|
||||||
<button onclick="buydog()" class="buyone" id="dg1">
|
|
||||||
Buy a Dog for 100 clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxdg()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p id="disdog"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Cat -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="discatName"></h2>
|
|
||||||
<img src="../img/cat-body.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: orange">
|
|
||||||
<button onclick="buycat()" class="buyone" id="ct1">
|
|
||||||
Buy a Cat for 10 dogs
|
|
||||||
</button>
|
|
||||||
<button onclick="mxct()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: orange">
|
|
||||||
<button onclick="buyCcat()" class="buyone" id="Cct1">
|
|
||||||
Buy a Cat for 1,2 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCct()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="discat"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Fox -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disfoxName"></h2>
|
|
||||||
<img src="../img/fox.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: lightsalmon">
|
|
||||||
<button onclick="buyfox()" class="buyone" id="fx1">
|
|
||||||
Buy a Fox for 15 dogs
|
|
||||||
</button>
|
|
||||||
<button onclick="mxfx()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: lightsalmon">
|
|
||||||
<button onclick="buyCfox()" class="buyone" id="Cfx1">
|
|
||||||
Buy a Fox for 1,8 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCfx()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disfox"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Wolf -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="diswolName"></h2>
|
|
||||||
<img src="../img/wolf.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: lightgray">
|
|
||||||
<button onclick="buywol()" class="buyone" id="wl1">
|
|
||||||
Buy a Wolf for 6 dogs and 5 foxes
|
|
||||||
</button>
|
|
||||||
<button onclick="mxwl()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: lightgray">
|
|
||||||
<button onclick="buyCwol()" class="buyone" id="Cwl1">
|
|
||||||
Buy a Wolf for 10 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCwl()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="diswol"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Hamster -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dishamName"></h2>
|
|
||||||
<img src="../img/hamster.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: wheat">
|
|
||||||
<button onclick="buyham()" class="buyone" id="hm1">
|
|
||||||
Buy a Hamster for 1 wolf and 2 cats
|
|
||||||
</button>
|
|
||||||
<button onclick="mxhm()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: wheat">
|
|
||||||
<button onclick="buyCham()" class="buyone" id="Chm1">
|
|
||||||
Buy a Hamster for 13 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxChm()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disham"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Whales -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="diswhaName"></h2>
|
|
||||||
<img src="../img/whale.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: MediumAquamarine">
|
|
||||||
<button onclick="buywha()" class="buyone" id="wh1">
|
|
||||||
Buy a Whale for 2 wolfs
|
|
||||||
</button>
|
|
||||||
<button onclick="mxwh()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: MediumAquamarine">
|
|
||||||
<button onclick="buyCwha()" class="buyone" id="Cwh1">
|
|
||||||
Buy a Whale for 22 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCwh()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="diswha"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Capybara -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="discapName"></h2>
|
|
||||||
<img src="../img/capybara.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: rosybrown">
|
|
||||||
<button onclick="buycap()" class="buyone" id="cp1">
|
|
||||||
Buy a Capybara for 1 whale and 4 cats
|
|
||||||
</button>
|
|
||||||
<button onclick="mxcp()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: rosybrown">
|
|
||||||
<button onclick="buyCcap()" class="buyone" id="Ccp1">
|
|
||||||
Buy a Capybara for 28 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCcp()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="discap"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Platypus-->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="displaName"></h2>
|
|
||||||
<img src="../img/platypus.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: Sienna">
|
|
||||||
<button onclick="buypla()" class="buyone" id="pl1">
|
|
||||||
Buy a Platypus for 1 cappybarra and 1 wolf
|
|
||||||
</button>
|
|
||||||
<button onclick="mxpl()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: Sienna">
|
|
||||||
<button onclick="buyCpla()" class="buyone" id="Cpl1">
|
|
||||||
Buy a Platapuse for 420 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCpl()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="displa"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Porcupine -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disporName"></h2>
|
|
||||||
<img src="../img/porcupine.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: SaddleBrown">
|
|
||||||
<button onclick="buypor()" class="buyone" id="pr1">
|
|
||||||
Buy a Porcupine for 1 whale and 4 cats
|
|
||||||
</button>
|
|
||||||
<button onclick="mxpr()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: SaddleBrown">
|
|
||||||
<button onclick="buyCpor()" class="buyone" id="Cpr1">
|
|
||||||
Buy a Porcupine for 28 k clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCpr()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dispor"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Hippopotamus -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dishipName"></h2>
|
|
||||||
<img src="../img/hippopotamus.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: LightSlateGray">
|
|
||||||
<button onclick="buyhip()" class="buyone" id="hi1">
|
|
||||||
Buy a Hippopotamus for
|
|
||||||
</button>
|
|
||||||
<button onclick="mxhi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: LightSlateGray">
|
|
||||||
<button onclick="buyChip()" class="buyone" id="Chi1">
|
|
||||||
Buy a Hippopotamus for
|
|
||||||
</button>
|
|
||||||
<button onclick="mxChi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="diship"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Snake -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dissnaName"></h2>
|
|
||||||
<img src="../img/snake.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: green">
|
|
||||||
<button onclick="buysna()" class="buyone" id="sn1">
|
|
||||||
Buy a Snake
|
|
||||||
</button>
|
|
||||||
<button onclick="mxsn()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: green">
|
|
||||||
<button onclick="buyCsna()" class="buyone" id="Csn1">
|
|
||||||
Buy a Snake for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCsn()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dissna"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Cheetah -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="discheName"></h2>
|
|
||||||
<img src="../img/cheetah.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: GoldenRod">
|
|
||||||
<button onclick="buyche()" class="buyone" id="ch1">
|
|
||||||
Buy a Cheetah
|
|
||||||
</button>
|
|
||||||
<button onclick="mxch()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: GoldenRod">
|
|
||||||
<button onclick="buyCche()" class="buyone" id="Cch1">
|
|
||||||
Buy a Cheetah for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCch()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dische"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Pythons -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dispytName"></h2>
|
|
||||||
<img src="../img/python.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: CornflowerBlue">
|
|
||||||
<button onclick="buypyt()" class="buyone" id="py1">
|
|
||||||
Buy a Python
|
|
||||||
</button>
|
|
||||||
<button onclick="mxpy()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: CornflowerBlue">
|
|
||||||
<button onclick="buyCpyt()" class="buyone" id="Cpy1">
|
|
||||||
Buy a Python for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCpy()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dispyt"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Giraffe -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disgirName"></h2>
|
|
||||||
<img src="../img/girafe.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #ffdb4d">
|
|
||||||
<button onclick="buygir()" class="buyone" id="gi1">
|
|
||||||
Buy a Giraffe
|
|
||||||
</button>
|
|
||||||
<button onclick="mxgi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #ffdb4d">
|
|
||||||
<button onclick="buyCgir()" class="buyone" id="Cgi1">
|
|
||||||
Buy a Giraffe for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCgi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disgir"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Otter -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disottName"></h2>
|
|
||||||
<img src="../img/otter.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #bc8f8f">
|
|
||||||
<button onclick="buyoth()" class="buyone" id="ot1">
|
|
||||||
Buy a Otter
|
|
||||||
</button>
|
|
||||||
<button onclick="mxot()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #bc8f8f">
|
|
||||||
<button onclick="buyCoth()" class="buyone" id="Cot1">
|
|
||||||
Buy a Otter for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCot()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disoth"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Meerkat -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dismeeName"></h2>
|
|
||||||
<img src="../img/meerkat.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #cd853f">
|
|
||||||
<button onclick="buymee()" class="buyone" id="me1">
|
|
||||||
Buy a Meerkat
|
|
||||||
</button>
|
|
||||||
<button onclick="mxme()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #cd853f">
|
|
||||||
<button onclick="buyCmee()" class="buyone" id="Cme1">
|
|
||||||
Buy a Meerkat for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCme()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dismee"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Racoon -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disracName"></h2>
|
|
||||||
<img src="../img/racoon.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #708090">
|
|
||||||
<button onclick="buyrac()" class="buyone" id="ra1">
|
|
||||||
Buy a Racoon
|
|
||||||
</button>
|
|
||||||
<button onclick="mxra()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #708090">
|
|
||||||
<button onclick="buyCrac()" class="buyone" id="Cra1">
|
|
||||||
Buy a Racoon for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCra()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disrac"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Owl -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disowlName"></h2>
|
|
||||||
<img src="../img/owl.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #f4a460">
|
|
||||||
<button onclick="buyowl()" class="buyone" id="ow1">
|
|
||||||
Buy a Owl
|
|
||||||
</button>
|
|
||||||
<button onclick="mxow()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #f4a460">
|
|
||||||
<button onclick="buyCowl()" class="buyone" id="Cow1">
|
|
||||||
Buy a Owl for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCow()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disowl"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Badger -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disbadName"></h2>
|
|
||||||
<img src="../img/badger.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #D8D6CA">
|
|
||||||
<button onclick="buybad()" class="buyone" id="ba1">
|
|
||||||
Buy a Badger
|
|
||||||
</button>
|
|
||||||
<button onclick="mxba()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #D8D6CA">
|
|
||||||
<button onclick="buyCbad()" class="buyone" id="Cba1">
|
|
||||||
Buy a Badger for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCba()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disbad"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Squirrel -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dissquName"></h2>
|
|
||||||
<img src="../img/squirell.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #CFB190">
|
|
||||||
<button onclick="buysqu()" class="buyone" id="sq1">
|
|
||||||
Buy a Squirrel
|
|
||||||
</button>
|
|
||||||
<button onclick="mxsq()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #CFB190">
|
|
||||||
<button onclick="buyCsqu()" class="buyone" id="Csq1">
|
|
||||||
Buy a Squirrel for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCsq()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dissqu"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Chameleon -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dischaName"></h2>
|
|
||||||
<img src="../img/chameleon.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #BED15F">
|
|
||||||
<button onclick="buycha()" class="buyone" id="cha1">
|
|
||||||
Buy a Chameleon
|
|
||||||
</button>
|
|
||||||
<button onclick="mxcha()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #BED15F">
|
|
||||||
<button onclick="buyCcha()" class="buyone" id="Ccha1">
|
|
||||||
Buy a Chameleon for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCcha()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="discha"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Chicken -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dischiName"></h2>
|
|
||||||
<img src="../img/chickens.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #D1DCE6">
|
|
||||||
<button onclick="buychi()" class="buyone" id="chi1">
|
|
||||||
Buy a Chicken
|
|
||||||
</button>
|
|
||||||
<button onclick="mxchi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #D1DCE6">
|
|
||||||
<button onclick="buyCchi()" class="buyone" id="Cchi1">
|
|
||||||
Buy a Chicken for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCchi()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dischi"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Wombat -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="diswomName"></h2>
|
|
||||||
<img src="../img/wombats.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #B3B3B3">
|
|
||||||
<button onclick="buywom()" class="buyone" id="wom1">
|
|
||||||
Buy a Wombat
|
|
||||||
</button>
|
|
||||||
<button onclick="mxwom()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #B3B3B3">
|
|
||||||
<button onclick="buyCwom()" class="buyone" id="Cwom1">
|
|
||||||
Buy a Wombat for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCwom()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="diswom"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Panther -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dispanName"></h2>
|
|
||||||
<img src="../img/panther.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #000;">
|
|
||||||
<button onclick="buypan()" class="buyone" id="pan1" style="color:#fff;">
|
|
||||||
Buy a Panther
|
|
||||||
</button>
|
|
||||||
<button onclick="mxpan()" class="buymax" style="color:#fff;">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #000;">
|
|
||||||
<button onclick="buyCpan()" class="buyone" id="Cpan1" style="color:#fff;">
|
|
||||||
Buy a Panther for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCpan()" class="buymax" style="color:#fff;">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dispan"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Coyote -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="discoyName"></h2>
|
|
||||||
<img src="../img/coyote.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #E7B76B;">
|
|
||||||
<button onclick="buycoy()" class="buyone" id="coy1">
|
|
||||||
Buy a Coyote
|
|
||||||
</button>
|
|
||||||
<button onclick="mxcoy()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #E7B76B;">
|
|
||||||
<button onclick="buyCcoy()" class="buyone" id="Ccoy1">
|
|
||||||
Buy a Coyote for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCcoy()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="discoy"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Frog -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disfroName"></h2>
|
|
||||||
<img src="../img/frog.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #97BF0D;">
|
|
||||||
<button onclick="buyfro()" class="buyone" id="fro1">
|
|
||||||
Buy a Frog
|
|
||||||
</button>
|
|
||||||
<button onclick="mxfro()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #97BF0D;">
|
|
||||||
<button onclick="buyCfro()" class="buyone" id="Cfro1">
|
|
||||||
Buy a Frog for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCfro()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disfro"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Bear -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disbeaName"></h2>
|
|
||||||
<img src="../img/bear.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #7C512C;">
|
|
||||||
<button onclick="buybea()" class="buyone" id="bea1">
|
|
||||||
Buy a Bear
|
|
||||||
</button>
|
|
||||||
<button onclick="mxbea()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #7C512C;">
|
|
||||||
<button onclick="buyCbea()" class="buyone" id="Cbea1">
|
|
||||||
Buy a Bear for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCbea()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="disbea"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Pig -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dispigName"></h2>
|
|
||||||
<img src="../img/pig.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #F9CCCE;">
|
|
||||||
<button onclick="buypig()" class="buyone" id="pig1">
|
|
||||||
Buy a Pig
|
|
||||||
</button>
|
|
||||||
<button onclick="mxpig()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #F9CCCE;">
|
|
||||||
<button onclick="buyCpig()" class="buyone" id="Cpig1">
|
|
||||||
Buy a Pig for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCpig()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dispig"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Seal -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="disseaName"></h2>
|
|
||||||
<img src="../img/seal.svg">
|
|
||||||
<div class="buttons" style="--Bcolor: #7B7E87;">
|
|
||||||
<button onclick="buysea()" class="buyone" id="sea1">
|
|
||||||
Buy a Seal
|
|
||||||
</button>
|
|
||||||
<button onclick="mxsea()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="clickbtn" style="--Bcolor: #7B7E87;">
|
|
||||||
<button onclick="buyCsea()" class="buyone" id="Csea1">
|
|
||||||
Buy a Seal for clicks
|
|
||||||
</button>
|
|
||||||
<button onclick="mxCsea()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p id="dissea"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</article>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<article class="main">
|
|
||||||
<!-- Lemons -->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dislemName"></h2>
|
|
||||||
<img src="../img/lemon.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: yellow">
|
|
||||||
<button onclick="buylem()" class="buyone" id="lm1">
|
|
||||||
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>
|
|
||||||
|
|
||||||
<!-- Lemon t3-->
|
|
||||||
<div class="item">
|
|
||||||
<h2 id="dislt3Name"></h2>
|
|
||||||
<img src="../img/lemon-tree.svg" draggable="false">
|
|
||||||
<div class="buttons" style="--Bcolor: lightgoldenrodyellow">
|
|
||||||
<button onclick="buylt3()" class="buyone" id="lt1">
|
|
||||||
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>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<div class="menu-container">
|
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a href="../Clicking/" id="brb">BRB</a></li>
|
|
||||||
<li><a href="../Shop/" id="shop"></a></li>
|
|
||||||
<li><a href="../Upgrade/" id="upg"></a></li>
|
|
||||||
<li><a href="../Settings/" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<a href="#" class="upwards">
|
|
||||||
<img src="../img/arrow-up.svg" alt="">
|
|
||||||
</a>
|
|
||||||
<!-- By MrEidam -->
|
|
||||||
<script src="../js/menu.js"></script>
|
|
||||||
<script src="../js/fornum.js"></script>
|
|
||||||
<script src="../js/shop.js"></script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<!-- Meta -->
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="keywords" content="BRB, MrEidam, Eidam, Clicker, Button, Red, Big, Shop, Ajdam, MrAjdam, paneidam, merida, mreidam clicker, mreidam game, mreidam social, mreidam brb upgrade">
|
|
||||||
<meta name="author" content="MrEidam">
|
|
||||||
<!-- Social -->
|
|
||||||
<meta property="og:title" content="BRB">
|
|
||||||
<meta property="og:url" content="https://www.mreidam-brb.com">
|
|
||||||
<meta property="og:site_name" content="BRB"/>
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta property="og:image" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png">
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta name="twitter:card" content="summary_large_image"/>
|
|
||||||
<meta name="twitter:title" content="BRB"/>
|
|
||||||
<meta name="twitter:url" content="https://www.mreidam-brb.com"/>
|
|
||||||
<meta property="twitter:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
|
||||||
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png"/>
|
|
||||||
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
|
|
||||||
|
|
||||||
<title>BRB - Upgrades</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../css/menu.css">
|
|
||||||
<link rel="stylesheet" href="../css/upgr.css">
|
|
||||||
<link rel="icon" href="../img/upgrade-icon-png-12.jpg">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="body">
|
|
||||||
<!-- lemons -->
|
|
||||||
<section class="joe" id="jonathan">
|
|
||||||
<div id="loglm">
|
|
||||||
<img src="../img/lemon.svg" id="imglm" draggable="false">
|
|
||||||
<p id="dislm"></p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<main style="margin-top: 175px;">
|
|
||||||
<!-- Example -->
|
|
||||||
<div class="item">
|
|
||||||
<h2>BRB</h2>
|
|
||||||
<img src="../img/brb-still.png">
|
|
||||||
<div class="buttons" style="--Bcolor: darkred">
|
|
||||||
<button onclick="buyMcc()" class="buyone" id="Mc1">
|
|
||||||
</button><!--
|
|
||||||
<button onclick="mxMc()" class="buymax">
|
|
||||||
MAX
|
|
||||||
</button>-->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p id="disMcmake"></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="item">
|
|
||||||
<h2>Prestige</h2>
|
|
||||||
<img src="../img/angel-wings.svg">
|
|
||||||
<div>
|
|
||||||
<progress id="prog" min="0" max="1000" value="0"></progress>
|
|
||||||
</div>
|
|
||||||
<div class="buttons" style="--Bcolor: gold">
|
|
||||||
<button class="buyTone" onclick="tblb()" id="presBT1">
|
|
||||||
Buy 1 ticket
|
|
||||||
</button>
|
|
||||||
<button class="buymax" onclick="talb()" id="presBTmax">
|
|
||||||
MAX
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<button id="ItsTime" onclick="TheThing();"></button>
|
|
||||||
<p id="progva"></p>
|
|
||||||
<p id="got"></p>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<div class="menu-container">
|
|
||||||
<div class="button">Menu
|
|
||||||
<span class="fas">
|
|
||||||
<svg height="1em" viewBox="0 0 448 512"><style>svg{fill:#ffffff}</style><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><style>svg{fill:#ffffff}</style><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<ul>
|
|
||||||
<li><a href="../Clicking/" id="brb">BRB</a></li>
|
|
||||||
<li><a href="../Shop/" id="shop"></a></li>
|
|
||||||
<li><a href="../Upgrade/" id="upg"></a></li>
|
|
||||||
<li><a href="../Settings/" id="sett"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<script src="../js/menu.js"></script>
|
|
||||||
<script src="../js/fornum.js"></script>
|
|
||||||
<script src="../js/upgr.js"></script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
10
changelog
10
changelog
@@ -1,3 +1,13 @@
|
|||||||
|
v47
|
||||||
|
Added: Forced Dark/Light mode
|
||||||
|
Forced Language (depending on the language of the browser)
|
||||||
|
Shop 3.5!!!
|
||||||
|
RPG in Settings...
|
||||||
|
|
||||||
|
Fixed: Loading time
|
||||||
|
|
||||||
|
Removed: Option for changing Lang or Mode
|
||||||
|
|
||||||
v46
|
v46
|
||||||
Added: Animals - Panthers, Coyotes, Frogs, Bears, Pigs, Seals
|
Added: Animals - Panthers, Coyotes, Frogs, Bears, Pigs, Seals
|
||||||
New formating of the text and font in Clicking, Shop, Upgrades
|
New formating of the text and font in Clicking, Shop, Upgrades
|
||||||
|
|||||||
3
css/basic.css
Normal file
3
css/basic.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
}
|
||||||
28
css/brb.css
28
css/brb.css
@@ -77,4 +77,32 @@ body{
|
|||||||
}
|
}
|
||||||
.changelog:hover svg{
|
.changelog:hover svg{
|
||||||
color: #a33;
|
color: #a33;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ligt NODE */
|
||||||
|
@media (prefers-color-scheme: light){
|
||||||
|
body{
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
#jonathan{
|
||||||
|
background: radial-gradient(125% 100% at 50% 0%,#9aff9a 20%,#fff 70%);
|
||||||
|
}
|
||||||
|
#disclick{
|
||||||
|
color: #000;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DARJ MODE */
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
}
|
||||||
|
#jonathan{
|
||||||
|
background: radial-gradient(125% 100% at 50% 0%,#5add5a 20%,#333 70%);
|
||||||
|
}
|
||||||
|
#disclick{
|
||||||
|
color: #f5f5f5;
|
||||||
|
text-shadow: 2px 2px 4px #000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
51
css/sett.css
51
css/sett.css
@@ -66,7 +66,7 @@ main section button{
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
background: cornflowerblue;
|
background: var(--cls);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
@@ -83,6 +83,7 @@ main section button{
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.site img{
|
.site img{
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@@ -95,4 +96,52 @@ main section button{
|
|||||||
::-webkit-scrollbar-thumb{
|
::-webkit-scrollbar-thumb{
|
||||||
background: linear-gradient(transparent, #00ec00);
|
background: linear-gradient(transparent, #00ec00);
|
||||||
border-radius: 0 0 0.5rem 0.5rem;
|
border-radius: 0 0 0.5rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ligt NODE */
|
||||||
|
@media (prefers-color-scheme: light){
|
||||||
|
body{
|
||||||
|
background: #ddd;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #ffefd5;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.change{
|
||||||
|
background: #8fbc8f;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color: #000;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
#sites{
|
||||||
|
color: #000;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DARJ MODE */
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #666055;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.change{
|
||||||
|
background: #008b8b;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 2px 2px 4px #000;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color: #eee;
|
||||||
|
text-shadow: 2px 2px 4px #000;
|
||||||
|
}
|
||||||
|
#sites{
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 2px 2px 4px #000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
70
css/shop.css
70
css/shop.css
@@ -75,59 +75,61 @@ body {
|
|||||||
border: none;
|
border: none;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
margin: 2rem/* 1.5vw 2rem 1.5vw*/;
|
margin: 2rem/* 1.5vw 2rem 1.5vw*/;
|
||||||
padding: 1rem;
|
padding: .5rem 1rem 0 .5rem;
|
||||||
border-radius: 6.9px;
|
border-radius: 6.9px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 400px;
|
width: 300px;
|
||||||
min-height: 340px;
|
min-height: 275px;
|
||||||
filter: drop-shadow(0px 20px 14px #444);
|
filter: drop-shadow(0px 20px 14px #444);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item img{
|
.item .title{
|
||||||
width: 100px;
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item .title img{
|
||||||
|
width: 50px;
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
margin: 0.5rem;
|
margin-right: 1.25rem;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
filter: drop-shadow(10px 8px 6px #333);
|
filter: drop-shadow(10px 8px 6px #333);
|
||||||
pointer-events: none
|
pointer-events: none
|
||||||
}
|
}
|
||||||
.buttons{
|
.buttons{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
|
||||||
}
|
}
|
||||||
/* By MrEidam */
|
/* By MrEidam */
|
||||||
.buttons button{
|
.buttons button{
|
||||||
background-color: var(--Bcolor);
|
background-color: var(--Bcolor);
|
||||||
border-radius: 8px;
|
|
||||||
margin: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.buyone{
|
.buyone{
|
||||||
width: 200px;
|
width: 190px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
cursor: pointer;
|
border-radius: 8px 0 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.buymax{
|
.buymax{
|
||||||
width: 50px;
|
width: 45px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
cursor: pointer;
|
border-radius: 0 8px 8px 0;
|
||||||
|
border-left: #00000033 solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* By MrEidam */
|
/* By MrEidam */
|
||||||
|
|
||||||
.clickbtn{
|
.clickbtn{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
|
||||||
}
|
}
|
||||||
.clickbtn button{
|
.clickbtn button{
|
||||||
background-color: var(--Bcolor);
|
background-color: var(--Bcolor);
|
||||||
border-radius: 8px;
|
|
||||||
margin: 0 1rem 0.5rem 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.row{
|
.row{
|
||||||
@@ -138,6 +140,7 @@ body {
|
|||||||
button{
|
button{
|
||||||
border: none;
|
border: none;
|
||||||
filter: drop-shadow(8px 6px 4px #555);
|
filter: drop-shadow(8px 6px 4px #555);
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.upwards{
|
.upwards{
|
||||||
@@ -173,4 +176,39 @@ button{
|
|||||||
::-webkit-scrollbar-thumb{
|
::-webkit-scrollbar-thumb{
|
||||||
background: linear-gradient(transparent, #00ec00);
|
background: linear-gradient(transparent, #00ec00);
|
||||||
border-radius: 0 0 0.5rem 0.5rem;
|
border-radius: 0 0 0.5rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #666055;
|
||||||
|
}
|
||||||
|
#logclick{
|
||||||
|
background: #666055;
|
||||||
|
border: 5px dashed #006;
|
||||||
|
filter: drop-shadow(10px 8px 6px #222);
|
||||||
|
}
|
||||||
|
#disclick{
|
||||||
|
text-shadow: 2px 2px 4px #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: light){
|
||||||
|
body{
|
||||||
|
background: #ddd;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #ffefd5;
|
||||||
|
}
|
||||||
|
#logclick{
|
||||||
|
background: #ffefd5;
|
||||||
|
border: 5px dashed #00f;
|
||||||
|
filter: drop-shadow(10px 8px 6px #222);
|
||||||
|
}
|
||||||
|
#disclick{
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -26,9 +26,6 @@ header{
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 0 0 2rem 2rem;
|
border-radius: 0 0 2rem 2rem;
|
||||||
box-shadow: 0 0 50px 10px #fff;
|
box-shadow: 0 0 50px 10px #fff;
|
||||||
}
|
|
||||||
h1{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
h3{
|
h3{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -36,6 +33,8 @@ h3{
|
|||||||
}
|
}
|
||||||
img{
|
img{
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
#jonathan{
|
#jonathan{
|
||||||
z-index: -36;
|
z-index: -36;
|
||||||
@@ -136,4 +135,23 @@ footer{
|
|||||||
transform: rotate(calc(360deg/-4*var(--i)));
|
transform: rotate(calc(360deg/-4*var(--i)));
|
||||||
box-shadow: 0 3px 4px rgba(0,0,0,0.15)
|
box-shadow: 0 3px 4px rgba(0,0,0,0.15)
|
||||||
}
|
}
|
||||||
.socmenu li a img{width:1em;}
|
.socmenu li a img{width:1em;}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: light){
|
||||||
|
body{
|
||||||
|
background: #ddd;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
31
css/upgr.css
31
css/upgr.css
@@ -190,4 +190,35 @@ h2{
|
|||||||
::-webkit-scrollbar-thumb{
|
::-webkit-scrollbar-thumb{
|
||||||
background: linear-gradient(transparent, #00ec00);
|
background: linear-gradient(transparent, #00ec00);
|
||||||
border-radius: 0 0 0.5rem 0.5rem;
|
border-radius: 0 0 0.5rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Ligt NODE */
|
||||||
|
@media (prefers-color-scheme: light){
|
||||||
|
body{
|
||||||
|
background: #ddd;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
#loglm{
|
||||||
|
background: #ffefd5;
|
||||||
|
filter: drop-shadow(10px 8px 6px #222);
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #ffefd5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DARJ MODE */
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body{
|
||||||
|
background: #333;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.item{
|
||||||
|
background: #666055;
|
||||||
|
}
|
||||||
|
#loglm{
|
||||||
|
background: #666055;
|
||||||
|
filter: drop-shadow(10px 8px 6px #222);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
49
index.html
49
index.html
@@ -24,39 +24,26 @@
|
|||||||
<meta property="twitter:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
<meta property="twitter:description" content="Webová Clicker hra s Červeným tlačítkem a zvířátky!">
|
||||||
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png"/>
|
<meta name="twitter:image:src" content="https://raw.githubusercontent.com/MrEidam/bigredbutton/main/img/BRB-Version.png"/>
|
||||||
|
|
||||||
<link rel="shortcut icon" href="./img/brb-still.png" type="image/x-icon">
|
<link rel="stylesheet" href="./css/basic.css">
|
||||||
<link rel="stylesheet" href="./css/title.css">
|
|
||||||
|
<link id="icon" rel="shortcut icon" href="./img/brb-still.png" type="image/x-icon">
|
||||||
|
<link id="link" rel="stylesheet" href="./css/title.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./css/menu.css">
|
||||||
|
|
||||||
<title>BRB - Main Menu</title>
|
<title>BRB - Main Menu</title>
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1 id="tit">BRB THE GAME</h1>
|
|
||||||
</header>
|
|
||||||
<h3 id="heh"></h3>
|
|
||||||
<a href="./Clicking/">
|
|
||||||
<img src="./img/brb-still.png" draggable="false">
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<div id="jonathan"></div>
|
<script src="./js/jquery.js"></script>
|
||||||
|
<script src="./js/menu.js"></script>
|
||||||
<!-- Soc. -->
|
|
||||||
<div class="socmenu">
|
|
||||||
<li style="--i:1;--clr:#f00;">
|
|
||||||
<a href="https://www.youtube.com/@mreidam" target="_blank"><img src="./img/youtube.svg"></a>
|
|
||||||
</li>
|
|
||||||
<li style="--i:2;--clr:#FF4500;">
|
|
||||||
<a href="https://www.reddit.com/r/BRBGame/" target="_blank"><img src="./img/reddit.svg"></a>
|
|
||||||
</li>
|
|
||||||
<!-- <li style="--i:2;--clr:#00acee;">
|
|
||||||
<a href="https://twitter.com/EidamMr" target="_blank"><img src="./img/twitter.svg"></a>
|
|
||||||
</li> -->
|
|
||||||
<div class="toggle" id="soctog">
|
|
||||||
<svg height="1em" viewBox="0 0 512 512"><path d="M384 336a63.78 63.78 0 00-46.12 19.7l-148-83.27a63.85 63.85 0 000-32.86l148-83.27a63.8 63.8 0 10-15.73-27.87l-148 83.27a64 64 0 100 88.6l148 83.27A64 64 0 10384 336z" fill="currentColor"/></svg>
|
|
||||||
<svg height="1em" viewBox="0 0 384 512"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" fill="currentColor"/></svg>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<footer id="foot"></footer>
|
|
||||||
<script src="./js/title.js"></script>
|
<script src="./js/title.js"></script>
|
||||||
|
<script src="./js/fornum.js"></script>
|
||||||
|
<script src="./js/main.js"></script>
|
||||||
|
<script src="./js/shop.js"></script>
|
||||||
|
<script src="./js/upgr.js"></script>
|
||||||
|
<script src="./js/sett.js"></script>
|
||||||
|
<script src="./js/htmls.js"></script>
|
||||||
|
</head>
|
||||||
|
<body id="body">
|
||||||
|
<script>toTitle()</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
1031
js/htmls.js
Normal file
1031
js/htmls.js
Normal file
File diff suppressed because it is too large
Load Diff
2
js/jquery.js
vendored
Normal file
2
js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
202
js/main.js
202
js/main.js
@@ -1,126 +1,45 @@
|
|||||||
// Items
|
|
||||||
let items;
|
|
||||||
let cs = 0;
|
|
||||||
let anime = false;
|
let anime = false;
|
||||||
|
|
||||||
const changeEN = ` Version - 46
|
const changeEN = ` Version - 47
|
||||||
Added: Animals - Panthers, Coyotes, Frogs, Bears, Pigs, Seals
|
Added: Forced Dark/Light mode
|
||||||
New formating of the text and font in Clicking, Shop, Upgrades
|
Forced Language depending on the browser
|
||||||
Names in the window of the Animals and Upgrades
|
Shop 3.5!!!
|
||||||
Lemon Trees finally have an function
|
RPG in Settings...
|
||||||
Menu (black bar) was changed from 200 ms to 50 ms
|
|
||||||
After 5 pres. points you will get not 0.5 but 1
|
|
||||||
New cost (aka not randomised) for lemons
|
|
||||||
New Design of the tiles in the Shop
|
|
||||||
Revealed cost of Tokens
|
|
||||||
Now bugs will have their number :D
|
|
||||||
|
|
||||||
Fixed: Text for buying wombats for clicks (BRB-44)
|
Fixed: Loading time
|
||||||
|
|
||||||
Removed: ✨ Nothing ✨`
|
Removed: Option for changing Language or L/D mode`
|
||||||
|
|
||||||
const changeCZ = ` Verze - 46
|
const changeCZ = ` Verze - 47
|
||||||
Přidáno: ZVÍŘATA - Panteři, Kojoti, Žáby, Medvědi, Prasata, Tuleni
|
Přidáno: Automatické vybrání Světlého/Tmavého módu
|
||||||
Nové formátování textu a fontu všude kromě nastavení
|
Automatické vybrání jazyka
|
||||||
Jména zvířat a vylepšení
|
Obchod 3.5!!!
|
||||||
Citrónovníky mají konečně využití
|
RPG v Nastavení...
|
||||||
Rychlost menu změněna z 200 ms na 50
|
|
||||||
Po 5 pres. bodů získáte ne 0,5 ale 1
|
|
||||||
Nová cena (už ne random) pro citróny
|
|
||||||
Nový vzhled dlaždiček v Obchodě
|
|
||||||
Odkryta cena Lístků
|
|
||||||
Každý bug bude mít svoje číslo :D
|
|
||||||
|
|
||||||
Upraveno: Text pro nakupování wombatů za kliky (BRB-44)
|
Upraveno: Načítání obchodu
|
||||||
|
|
||||||
Smazáno: ✨ Nic ✨`
|
Smazáno: Možnost výběru změny jazyka a S/T módu`
|
||||||
|
|
||||||
function load(){
|
function loadClicking(){
|
||||||
if (localStorage.getItem('items')!=null){
|
if (localStorage.getItem('items')!=null){
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
items = JSON.parse(localStorage.getItem('items'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function(){
|
// updateClicking
|
||||||
items = {
|
function updateClicking(){
|
||||||
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,
|
|
||||||
otters:0,
|
|
||||||
meerkat:0,
|
|
||||||
raccoon:0,
|
|
||||||
owl:0,
|
|
||||||
badger:0,
|
|
||||||
squirrel:0,
|
|
||||||
chameleon:0,
|
|
||||||
chicken:0,
|
|
||||||
wombat:0,
|
|
||||||
panther:0,
|
|
||||||
coyote:0,
|
|
||||||
frog:0,
|
|
||||||
bear:0,
|
|
||||||
pig:0,
|
|
||||||
seal:0,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lemons:0,
|
|
||||||
lt3:0,
|
|
||||||
lang:0,
|
|
||||||
pres:1,
|
|
||||||
mode:0,
|
|
||||||
Mclick:1,
|
|
||||||
token:0,
|
|
||||||
joke:0,
|
|
||||||
}
|
|
||||||
load();
|
|
||||||
update();
|
|
||||||
for(let item in items){
|
|
||||||
if(!items[item]){
|
|
||||||
items[item] = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(items.joke==0||!items.joke){
|
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
|
||||||
items.lang = 0;
|
|
||||||
}else{
|
|
||||||
items.lang = 1;
|
|
||||||
}
|
|
||||||
items.joke = 69;
|
|
||||||
}
|
|
||||||
cash();
|
|
||||||
checklang();
|
|
||||||
LDmodes();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update
|
|
||||||
function update(){
|
|
||||||
let i = JSON.stringify(items);
|
let i = JSON.stringify(items);
|
||||||
localStorage.setItem('items', i);
|
localStorage.setItem('items', i);
|
||||||
if(items.lang == 1){
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
document.getElementById('disclick').innerHTML=`You have ${fornum(items.clicks)} clicks, and generating ${fornum(cs*items.pres)} c/s!`
|
|
||||||
}
|
|
||||||
if(items.lang == 0){
|
|
||||||
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a generuješ ${fornum(cs*items.pres)} k/s!`
|
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a generuješ ${fornum(cs*items.pres)} k/s!`
|
||||||
|
}else{
|
||||||
|
document.getElementById('disclick').innerHTML=`You have ${fornum(items.clicks)} clicks, and generating ${fornum(cs*items.pres)} c/s!`
|
||||||
}
|
}
|
||||||
checklang();
|
checklang();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upload
|
// UploadClicking
|
||||||
function upload(){update();load();}
|
function uploadClicking(){updateClicking();loadClicking();}
|
||||||
|
|
||||||
// BRB
|
// BRB
|
||||||
function beriba(){
|
function beriba(){
|
||||||
@@ -129,9 +48,31 @@ function beriba(){
|
|||||||
anime=true;
|
anime=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Languages
|
||||||
|
function checklang(){
|
||||||
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
|
shop.innerHTML = 'Obchod';
|
||||||
|
upg.innerHTML = 'Vylepšení';
|
||||||
|
sett.innerHTML = 'Nastavení';
|
||||||
|
}else{
|
||||||
|
shop.innerHTML = 'Shop';
|
||||||
|
upg.innerHTML = 'Upgrades';
|
||||||
|
sett.innerHTML = 'Settings';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// šmol change
|
||||||
|
function change(){
|
||||||
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
|
alert(changeCZ);
|
||||||
|
}else{
|
||||||
|
alert(changeEN);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function clicking(){
|
function clicking(){
|
||||||
items.clicks += 1*(items.Mclick||1)*items.pres;
|
items.clicks += 1*(items.Mclick||1)*items.pres;
|
||||||
update();
|
updateClicking();
|
||||||
|
|
||||||
document.getElementById('unpressed').style.visibility='hidden'
|
document.getElementById('unpressed').style.visibility='hidden'
|
||||||
document.getElementById('pressed').style.visibility='visible'
|
document.getElementById('pressed').style.visibility='visible'
|
||||||
@@ -140,60 +81,9 @@ function clicking(){
|
|||||||
setTimeout(beriba, 75);
|
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.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
|
|
||||||
items.clicks += cs*items.pres;
|
|
||||||
items.lemons += (items.lt3/100)*items.pres;
|
|
||||||
update();cash();
|
|
||||||
},1000)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Languages Cz || Uk
|
|
||||||
function checklang(){
|
|
||||||
if(items.lang == 0){ /* CZ */
|
|
||||||
document.documentElement.setAttribute('lang', 'cz');
|
|
||||||
document.title = 'BRB - Klikání'
|
|
||||||
shop.innerHTML = 'Obchod';
|
|
||||||
upg.innerHTML = 'Vylepšení';
|
|
||||||
sett.innerHTML = 'Nastavení';
|
|
||||||
}else if(items.lang == 1){ /* UK */
|
|
||||||
document.documentElement.setAttribute('lang', 'en');
|
|
||||||
document.title = 'BRB - Clicking'
|
|
||||||
shop.innerHTML = 'Shop';
|
|
||||||
upg.innerHTML = 'Upgrades';
|
|
||||||
sett.innerHTML = 'Settings';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dark || Light Mode
|
|
||||||
function LDmodes(){
|
|
||||||
if((items.mode||0) == 0){// Light Mode
|
|
||||||
body.style.background = '#fff';
|
|
||||||
jonathan.style.background = 'radial-gradient(125% 100% at 50% 0%,#9aff9a 20%,#fff 70%)';
|
|
||||||
disclick.style.color = '#000';
|
|
||||||
disclick.style.textShadow = "";
|
|
||||||
}else if(items.mode == 1){// Dark Mode
|
|
||||||
body.style.background = '#333';
|
|
||||||
jonathan.style.background = 'radial-gradient(125% 100% at 50% 0%,#5add5a 20%,#333 70%)';
|
|
||||||
disclick.style.color = '#f5f5f5';
|
|
||||||
disclick.style.textShadow = "2px 2px 4px #000";
|
|
||||||
}
|
|
||||||
upload();
|
|
||||||
}
|
|
||||||
|
|
||||||
// šmol change
|
|
||||||
function change(){
|
|
||||||
if(items.lang == 0){ // CZ
|
|
||||||
alert(changeCZ);
|
|
||||||
}else{
|
|
||||||
alert(changeEN);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// keybinds
|
// keybinds
|
||||||
addEventListener("keyup", (event) => {
|
addEventListener("keyup", (event) => {
|
||||||
if(event.key == ' ' || event.key == 'Enter'){
|
if((event.key == ' ' || event.key == 'Enter')&&(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking')){
|
||||||
clicking();
|
clicking();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
32
js/menu.js
32
js/menu.js
@@ -1,16 +1,18 @@
|
|||||||
$(document).ready(function(){
|
function menuStart(){
|
||||||
$('.button').click(function(){
|
$(document).ready(() => {
|
||||||
if($(this).hasClass('expand')){
|
$('.button').click(() => {
|
||||||
$('ul').slideUp(function(){
|
if($('.button').hasClass('expand')){
|
||||||
$('.button').removeClass('expand');
|
$('ul').slideUp(() => {
|
||||||
$('.fas').removeClass('expand');
|
$('.button').removeClass('expand');
|
||||||
})
|
$('.fas').removeClass('expand');
|
||||||
}else{
|
});
|
||||||
$(this).addClass('expand');
|
}else{
|
||||||
setTimeout(function(){
|
$('.button').addClass('expand');
|
||||||
$('.fas').addClass('expand');
|
setTimeout(() => {
|
||||||
$('ul').stop().slideDown();
|
$('.fas').addClass('expand');
|
||||||
},50);
|
$('ul').stop().slideDown();
|
||||||
}
|
},50);
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
225
js/sett.js
225
js/sett.js
@@ -1,132 +1,89 @@
|
|||||||
let items
|
while(document.title === 'BRB - Nastavení'||document.title === 'BRB - Settings'){
|
||||||
|
|
||||||
// Update
|
|
||||||
function update(){
|
|
||||||
let i = JSON.stringify(items);
|
|
||||||
localStorage.setItem('items', i);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load
|
// Load
|
||||||
function load(){
|
function loadSettings(){
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
items = JSON.parse(localStorage.getItem('items'));
|
||||||
LDmodes();
|
|
||||||
let Btns = document.querySelectorAll('.change');
|
let Btns = document.querySelectorAll('.change');
|
||||||
if(items.lang == 1){ // EN
|
|
||||||
document.documentElement.setAttribute('lang', 'en');
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
document.title = 'BRB - Settings';
|
|
||||||
shop.innerHTML = 'Shop';
|
|
||||||
upg.innerHTML = 'Upgrades';
|
|
||||||
sett.innerHTML = 'Settings';
|
|
||||||
if(items.mode == 0){ld.innerHTML = 'Do you want to <br> switch to Dark mode?';
|
|
||||||
}else if(items.mode == 1){ld.innerHTML = 'Do you want to <br> switch to Light mode?';}
|
|
||||||
lg.innerHTML = 'Do you want to <br> switch to Czech?';
|
|
||||||
hl.innerHTML = 'Do you want to <br> wantch a video for help?';
|
|
||||||
rs.innerHTML = 'Do you want to <br> completely reset?';
|
|
||||||
Btns.forEach((e) => {
|
|
||||||
e.innerHTML = 'Yes!';
|
|
||||||
});
|
|
||||||
sites.innerHTML = 'Other Sites';
|
|
||||||
}
|
|
||||||
if(items.lang == 0){ // CZ
|
|
||||||
document.documentElement.setAttribute('lang', 'cz');
|
|
||||||
document.title = 'BRB - Nastavení';
|
|
||||||
shop.innerHTML = 'Obchod';
|
|
||||||
upg.innerHTML = 'Vylepšení';
|
|
||||||
sett.innerHTML = 'Nastavení';
|
|
||||||
if(items.mode == 0){ld.innerHTML = 'Chceš si zapnout <br> Tmavý mód?';
|
|
||||||
}else if(items.mode == 1){ld.innerHTML = 'Chceš si zapnout <br> Světlý mód?';}
|
|
||||||
lg.innerHTML = 'Chceš si přepnout <br> jazyk do Angličtiny?';
|
|
||||||
hl.innerHTML = 'Chceš si pustit <br> video pro pomoc?';
|
hl.innerHTML = 'Chceš si pustit <br> video pro pomoc?';
|
||||||
rs.innerHTML = 'Chceš kompletně <br> resetovat postup?';
|
rs.innerHTML = 'Chceš kompletně <br> resetovat postup?';
|
||||||
Btns.forEach((e) => {
|
Btns.forEach((e) => {
|
||||||
e.innerHTML = 'Ano!';
|
e.innerHTML = 'Ano!';
|
||||||
});
|
});
|
||||||
sites.innerHTML = 'Další stránky';
|
sites.innerHTML = 'Další stránky';
|
||||||
}
|
history.innerHTML = `Historie`
|
||||||
}
|
}else{
|
||||||
load();
|
hl.innerHTML = 'Do you want to <br> wantch a video for help?';
|
||||||
|
rs.innerHTML = 'Do you want to <br> completely reset?';
|
||||||
// Upload
|
|
||||||
function upload(){update();load();}
|
|
||||||
|
|
||||||
function cash(){
|
|
||||||
setTimeout (function money(){
|
|
||||||
let cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+items.seal*1300000;
|
|
||||||
items.clicks += cs*items.pres;
|
|
||||||
items.lemons += (items.lt3/100)*items.pres;
|
|
||||||
upload();
|
|
||||||
cash();
|
|
||||||
},1000);
|
|
||||||
}
|
|
||||||
cash();
|
|
||||||
|
|
||||||
// Dark || Light Mode
|
|
||||||
function SLDmodes(){
|
|
||||||
if(items.mode==0){items.mode=1;upload();}
|
|
||||||
else if(items.mode==1){items.mode=0;upload();}
|
|
||||||
LDmodes();
|
|
||||||
}
|
|
||||||
function LDmodes(){
|
|
||||||
let Bimts = document.querySelectorAll('.item');
|
|
||||||
let Btns = document.querySelectorAll('.change');
|
|
||||||
let hhh = document.querySelectorAll('h3');
|
|
||||||
if((items.mode||0) == 0){// Light Mode
|
|
||||||
body.style.background = '#ddd';
|
|
||||||
Bimts.forEach((e) => {
|
|
||||||
e.style.background = '#ffefd5';
|
|
||||||
});
|
|
||||||
Btns.forEach((e) => {
|
Btns.forEach((e) => {
|
||||||
e.style.background = '#8FBC8F';
|
e.innerHTML = 'Yes!';
|
||||||
e.style.color = '#fff';
|
|
||||||
e.style.textShadow = "";
|
|
||||||
});
|
});
|
||||||
hhh.forEach((e) => {
|
sites.innerHTML = 'Other Sites';
|
||||||
e.style.color = '#000';
|
history.innerHTML = `History`;
|
||||||
e.style.textShadow = "";
|
|
||||||
});
|
|
||||||
document.getElementById('sites').style.color = '#000';
|
|
||||||
document.getElementById('sites').style.textShadow = '';
|
|
||||||
}else if(items.mode == 1){// Dark Mode
|
|
||||||
body.style.background = '#333';
|
|
||||||
Bimts.forEach((e) => {
|
|
||||||
e.style.background = '#666055';
|
|
||||||
e.style.color = '#000';
|
|
||||||
});
|
|
||||||
Btns.forEach((e) => {
|
|
||||||
e.style.background = '#008B8B';
|
|
||||||
e.style.color = '#fff';
|
|
||||||
e.style.textShadow = "2px 2px 4px #000";
|
|
||||||
});
|
|
||||||
hhh.forEach((e) => {
|
|
||||||
e.style.color = '#eee';
|
|
||||||
e.style.textShadow = "2px 2px 4px #000";
|
|
||||||
});
|
|
||||||
document.getElementById('sites').style.color = '#fff';
|
|
||||||
document.getElementById('sites').style.textShadow = '2px 2px 4px #000';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function language(){
|
// uploadSettings
|
||||||
if(items.lang == 0){ /* CZ */
|
function uploadSettings(){update();loadSettings();}
|
||||||
items.lang = 1;
|
|
||||||
}else if(items.lang == 1){ /* UK */
|
|
||||||
items.lang = 0;
|
|
||||||
}
|
|
||||||
upload();
|
|
||||||
}
|
|
||||||
|
|
||||||
// HELP
|
// HELP
|
||||||
function help(){
|
function help(){
|
||||||
if(items.lang == 1){ /* EN */
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ') window.open('https://youtu.be/XhmETe4MSVI');
|
||||||
window.open('https://youtu.be/G0fP-l-05dM');
|
else window.open('https://youtu.be/G0fP-l-05dM');
|
||||||
}else if(items.lang == 0){ /* CZ */
|
|
||||||
window.open('https://youtu.be/XhmETe4MSVI');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
function reset(){
|
function reset(){
|
||||||
if((items.lang == 1) && confirm('Do you really want to reset everything?') && confirm('Are you sure?')){
|
if((navigator.language == 'cs' || navigator.language == 'cs-CZ')){
|
||||||
|
if(confirm('Vážně chceš všechno resetovat?') && confirm('Seš si jistý?')){
|
||||||
|
alert('Vše resetováno');
|
||||||
|
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,
|
||||||
|
otters:0,
|
||||||
|
meerkat:0,
|
||||||
|
raccoon:0,
|
||||||
|
owl:0,
|
||||||
|
badger:0,
|
||||||
|
squirrel:0,
|
||||||
|
chameleon:0,
|
||||||
|
chicken:0,
|
||||||
|
wombat:0,
|
||||||
|
panther:0,
|
||||||
|
coyote:0,
|
||||||
|
frog:0,
|
||||||
|
bear:0,
|
||||||
|
pig:0,
|
||||||
|
seal:0,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
lemons:0,
|
||||||
|
lt3:0,
|
||||||
|
pres:1,
|
||||||
|
Mclick:1,
|
||||||
|
token:0,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if((navigator.language != 'cs' || navigator.language != 'cs-CZ')){
|
||||||
|
if(confirm('Do you really want to reset everything?') && confirm('Are you sure?')){
|
||||||
alert('Everything Reseted');
|
alert('Everything Reseted');
|
||||||
items = {
|
items = {
|
||||||
clicks:0,
|
clicks:0,
|
||||||
@@ -159,59 +116,15 @@ function reset(){
|
|||||||
frog:0,
|
frog:0,
|
||||||
bear:0,
|
bear:0,
|
||||||
pig:0,
|
pig:0,
|
||||||
|
seal:0,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lemons:0,
|
lemons:0,
|
||||||
lt3:0,
|
lt3:0,
|
||||||
lang:items.lang,
|
|
||||||
pres:1,
|
pres:1,
|
||||||
mode:items.mode,
|
|
||||||
Mclick:1,
|
Mclick:1,
|
||||||
token:0,
|
token:0,
|
||||||
}
|
}}
|
||||||
}
|
}
|
||||||
if((items.lang == 0) && confirm('Vážně chceš všechno resetovat?') && confirm('Seš si jistý?')){
|
}
|
||||||
alert('Vše resetováno');
|
|
||||||
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,
|
|
||||||
otters:0,
|
|
||||||
meerkat:0,
|
|
||||||
raccoon:0,
|
|
||||||
owl:0,
|
|
||||||
badger:0,
|
|
||||||
squirrel:0,
|
|
||||||
chameleon:0,
|
|
||||||
chicken:0,
|
|
||||||
wombat:0,
|
|
||||||
panther:0,
|
|
||||||
coyote:0,
|
|
||||||
frog:0,
|
|
||||||
bear:0,
|
|
||||||
pig:0,
|
|
||||||
|
|
||||||
lemons:0,
|
|
||||||
lt3:0,
|
|
||||||
lang:items.lang,
|
|
||||||
pres:1,
|
|
||||||
mode:items.mode,
|
|
||||||
Mclick:1,
|
|
||||||
token:0,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
628
js/shop.js
628
js/shop.js
File diff suppressed because it is too large
Load Diff
126
js/title.js
126
js/title.js
@@ -1,18 +1,112 @@
|
|||||||
// social
|
let items;
|
||||||
let toggle = document.querySelector('.toggle');
|
let cs;
|
||||||
let socmenu = document.querySelector('.socmenu');
|
|
||||||
toggle.onclick = function(){
|
|
||||||
socmenu.classList.toggle('active');
|
|
||||||
};
|
|
||||||
|
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
window.onload = function(){
|
||||||
document.title = 'BRB - Hlavní menu'
|
let socmenu = document.querySelector('.socmenu');
|
||||||
document.getElementById('tit').innerHTML = 'BRB - HRA';
|
let toggle = document.querySelector('.toggle');
|
||||||
document.getElementById('heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
|
items = {
|
||||||
document.getElementById('foot').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
clicks:0,
|
||||||
}else{
|
dogs:0,
|
||||||
document.title = 'BRB - Main Menu';
|
cats:0,
|
||||||
document.getElementById('tit').innerHTML = 'BRB THE GAME';
|
foxes:0,
|
||||||
document.getElementById('heh').innerHTML = 'Press the button to get to the game!';
|
wolfs:0,
|
||||||
document.getElementById('foot').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
hamsters:0,
|
||||||
|
whales:0,
|
||||||
|
capybaras:0,
|
||||||
|
platapuses:0,
|
||||||
|
porcupines:0,
|
||||||
|
hippos:0,
|
||||||
|
snakes:0,
|
||||||
|
cheetahs:0,
|
||||||
|
pythons:0,
|
||||||
|
girrafes:0,
|
||||||
|
lions:0,
|
||||||
|
otters:0,
|
||||||
|
meerkat:0,
|
||||||
|
raccoon:0,
|
||||||
|
owl:0,
|
||||||
|
badger:0,
|
||||||
|
squirrel:0,
|
||||||
|
chameleon:0,
|
||||||
|
chicken:0,
|
||||||
|
wombat:0,
|
||||||
|
panther:0,
|
||||||
|
coyote:0,
|
||||||
|
frog:0,
|
||||||
|
bear:0,
|
||||||
|
pig:0,
|
||||||
|
seal:0,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
lemons:0,
|
||||||
|
lt3:0,
|
||||||
|
pres:1,
|
||||||
|
Mclick:1,
|
||||||
|
token:0,
|
||||||
|
}
|
||||||
|
load();
|
||||||
|
update();
|
||||||
|
for(let item in items){
|
||||||
|
if(!items[item]){
|
||||||
|
items[item] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cash();
|
||||||
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
|
document.title = 'BRB - Hlavní menu'
|
||||||
|
document.querySelector('#tit').innerHTML = 'BRB - HRA';
|
||||||
|
document.querySelector('#heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
|
||||||
|
document.querySelector('footer').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
||||||
|
}else{
|
||||||
|
document.title = 'BRB - Main Menu';
|
||||||
|
document.querySelector('#tit').innerHTML = 'BRB THE GAME';
|
||||||
|
document.querySelector('#heh').innerHTML = 'Press the button to get to the game!';
|
||||||
|
document.querySelector('footer').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
||||||
|
}
|
||||||
|
toggle.onclick = () => {
|
||||||
|
socmenu.classList.toggle('active');
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function click(){
|
||||||
|
setTimeout(() => {
|
||||||
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
|
document.querySelector('#imgcli').src = '../img/icons8-clicked.png';
|
||||||
|
}
|
||||||
|
},750);
|
||||||
|
setTimeout(() => {
|
||||||
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
|
document.querySelector('#imgcli').src = '../img/icons8-rest.svg';
|
||||||
|
}
|
||||||
|
},1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function cash(){
|
||||||
|
setTimeout (() => {
|
||||||
|
cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
|
||||||
|
items.clicks += cs*items.pres;
|
||||||
|
items.lemons += (items.lt3/100)*items.pres;
|
||||||
|
update();cash();
|
||||||
|
if(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking'){
|
||||||
|
uploadClicking();
|
||||||
|
}
|
||||||
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
|
uploadShop();
|
||||||
|
click();
|
||||||
|
}
|
||||||
|
console.log(`Clicks: ${items.clicks}`);
|
||||||
|
},1000)
|
||||||
|
}
|
||||||
|
|
||||||
|
function load(){
|
||||||
|
if (localStorage.getItem('items')!=null){
|
||||||
|
items = JSON.parse(localStorage.getItem('items'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update
|
||||||
|
function update(){
|
||||||
|
let i = JSON.stringify(items);
|
||||||
|
localStorage.setItem('items', i);
|
||||||
}
|
}
|
||||||
230
js/upgr.js
230
js/upgr.js
@@ -1,10 +1,8 @@
|
|||||||
let items;
|
function loadUpgrades(){
|
||||||
let cs;
|
if (localStorage.getItem('items')!=null){
|
||||||
|
items = JSON.parse(localStorage.getItem('items'));
|
||||||
// Update
|
prog.max = 1000*items.pres;
|
||||||
function update(){
|
}
|
||||||
let i = JSON.stringify(items);
|
|
||||||
localStorage.setItem('items', i);
|
|
||||||
if(items.token >= 1000*items.pres){
|
if(items.token >= 1000*items.pres){
|
||||||
prog.style.display = 'none';
|
prog.style.display = 'none';
|
||||||
presBT1.style.display = 'none';
|
presBT1.style.display = 'none';
|
||||||
@@ -12,79 +10,32 @@ function update(){
|
|||||||
progva.style.display = 'none';
|
progva.style.display = 'none';
|
||||||
ItsTime.style.display = 'block';
|
ItsTime.style.display = 'block';
|
||||||
}
|
}
|
||||||
}
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){ // CZ
|
||||||
|
|
||||||
function load(){
|
|
||||||
if (localStorage.getItem('items')!=null){
|
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
|
||||||
LDmodes()
|
|
||||||
prog.max = 1000*items.pres;
|
|
||||||
|
|
||||||
}
|
|
||||||
if(items.lang == 0){ // CZ
|
|
||||||
document.documentElement.setAttribute('lang', 'cz');
|
|
||||||
document.title = 'BRB - Vylepšení'
|
|
||||||
shop.innerHTML = 'Obchod';
|
|
||||||
upg.innerHTML = 'Vylepšení';
|
|
||||||
sett.innerHTML = 'Nastavení';
|
|
||||||
dislm.innerHTML = `Máš ${fornum(items.lemons)} citrónů!`;
|
dislm.innerHTML = `Máš ${fornum(items.lemons)} citrónů!`;
|
||||||
disMcmake.innerHTML = `Každý klik ti dává ${fornum((items.Mclick||1)*items.pres)} kliků!`;
|
disMcmake.innerHTML = `Každý klik ti dává ${fornum((items.Mclick||1)*items.pres)} kliků!`;
|
||||||
Mc1.innerHTML = `Vylepšení na kliky za <br> ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} citrónů`;
|
Mc1.innerHTML = `Vylepšení na kliky za <br> ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} citrónů`;
|
||||||
progva.innerHTML = `Máš ${items.token} lístků z ${1000*items.pres}!`
|
progva.innerHTML = `Máš ${items.token} lístků z ${1000*items.pres}!`;
|
||||||
|
|
||||||
|
|
||||||
|
presBT1.innerHTML = `1 Lístek za<br>${fornum(2000)} Citrónů`;
|
||||||
|
|
||||||
presBT1.innerHTML = `1 Lístek za<br>${fornum(2000)} Citrónů`
|
|
||||||
ItsTime.innerHTML = `Pojďme jít!`;
|
ItsTime.innerHTML = `Pojďme jít!`;
|
||||||
if(items.pres > 1){
|
if(items.pres > 1) got.innerHTML = `Právě máš ${items.pres-1} Prestiž bodů`;
|
||||||
got.innerHTML = `Právě máš ${items.pres-1} Prestiž bodů`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}else if(items.lang == 1){ // En
|
}else if(items.lang == 1){ // En
|
||||||
document.documentElement.setAttribute('lang', 'en');
|
|
||||||
document.title = 'BRB - Upgrades'
|
|
||||||
shop.innerHTML = 'Shop';
|
|
||||||
upg.innerHTML = 'Upgrades';
|
|
||||||
sett.innerHTML = 'Settings';
|
|
||||||
dislm.innerHTML = `You've got ${fornum(items.lemons)} lemons!`;
|
dislm.innerHTML = `You've got ${fornum(items.lemons)} lemons!`;
|
||||||
disMcmake.innerHTML = `Every click gives you ${fornum((items.Mclick||1)*items.pres)} clicks!`;
|
disMcmake.innerHTML = `Every click gives you ${fornum((items.Mclick||1)*items.pres)} clicks!`;
|
||||||
Mc1.innerHTML = `Upgrade for your clicks<br> for ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} lemons`;
|
Mc1.innerHTML = `Upgrade for your clicks<br> for ${fornum(10+(items.Mclick||1)*(items.Mclick||1)-1)} lemons`;
|
||||||
progva.innerHTML = `You have ${items.token} tokens out of ${1000*items.pres}!`
|
progva.innerHTML = `You have ${items.token} tokens out of ${1000*items.pres}!`
|
||||||
|
|
||||||
|
|
||||||
|
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`;
|
||||||
|
|
||||||
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`
|
|
||||||
ItsTime.innerHTML = `Let's do this!`;
|
ItsTime.innerHTML = `Let's do this!`;
|
||||||
if(items.pres > 1){
|
if(items.pres > 1) got.innerHTML = `You have ${items.pres-1} Prestige points`;
|
||||||
got.innerHTML = `You have ${items.pres-1} Prestige points`
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Upload
|
|
||||||
function upload(){update();load();}
|
|
||||||
|
|
||||||
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.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
|
|
||||||
items.clicks += cs*items.pres;
|
|
||||||
items.lemons += (items.lt3/100)*items.pres;
|
|
||||||
upload();cash();
|
|
||||||
},1000)
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onload = function(){
|
|
||||||
load();cash();progress();
|
|
||||||
if((items.token != 0)&&(items.token < 1)){
|
|
||||||
items.token = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UploadUpgrades
|
||||||
|
function uploadUpgrades(){update();loadUpgrades();}
|
||||||
|
|
||||||
/* U P G R A D E S */
|
/* U P G R A D E S */
|
||||||
|
|
||||||
function buyMcc(){
|
function buyMcc(){
|
||||||
@@ -94,8 +45,7 @@ function buyMcc(){
|
|||||||
items.Mclick = 1;
|
items.Mclick = 1;
|
||||||
}
|
}
|
||||||
items.Mclick += 4;
|
items.Mclick += 4;
|
||||||
console.log(items.Mclick);
|
uploadUpgrades();
|
||||||
upload();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +55,7 @@ function tblb(){ // Token Basic Lemon Buy
|
|||||||
items.token++;
|
items.token++;
|
||||||
}
|
}
|
||||||
progress();
|
progress();
|
||||||
upload();
|
uploadUpgrades();
|
||||||
}
|
}
|
||||||
|
|
||||||
function talb(){ // Token All Lemon Buy
|
function talb(){ // Token All Lemon Buy
|
||||||
@@ -114,17 +64,17 @@ function talb(){ // Token All Lemon Buy
|
|||||||
items.lemons -= amount * 2000;
|
items.lemons -= amount * 2000;
|
||||||
items.token += amount;
|
items.token += amount;
|
||||||
progress();
|
progress();
|
||||||
upload();
|
uploadUpgrades();
|
||||||
}
|
}
|
||||||
|
|
||||||
function progress(){
|
function progress(){
|
||||||
prog.value = `${items.token}`
|
prog.value = `${items.token}`;
|
||||||
prog.title = `${items.token}/${1000*items.pres}`
|
prog.title = `${items.token}/${1000*items.pres}`;
|
||||||
upload();
|
uploadUpgrades();
|
||||||
}
|
}
|
||||||
|
|
||||||
function TheThing(){
|
function TheThing(){
|
||||||
if(items.lang == 0 && items.token >= (1000*items.pres) && confirm(`Za Prestiže budeš získávat více kliků, ale tvůj postup se vynuluje (až na Prestiž body). Chceš se 'Znovuzrodit'?`)){ // CZ
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ' && items.token >= (1000*items.pres) && confirm(`Za Prestiže budeš získávat více kliků, ale tvůj postup se vynuluje (až na Prestiž body). Chceš se 'Znovuzrodit'?`)){ // CZ
|
||||||
if(items.pres>=5){
|
if(items.pres>=5){
|
||||||
alert(`Získal jsi 1 prestiže bod!`);
|
alert(`Získal jsi 1 prestiže bod!`);
|
||||||
items.pres += 1;
|
items.pres += 1;
|
||||||
@@ -132,8 +82,8 @@ function TheThing(){
|
|||||||
alert(`Získal jsi 0.5 prestiže bodů!`);
|
alert(`Získal jsi 0.5 prestiže bodů!`);
|
||||||
items.pres += 0.5;
|
items.pres += 0.5;
|
||||||
}
|
}
|
||||||
upload();
|
uploadUpgrades();
|
||||||
items = {
|
items = {
|
||||||
clicks:0,
|
clicks:0,
|
||||||
dogs:0,
|
dogs:0,
|
||||||
cats:0,
|
cats:0,
|
||||||
@@ -165,94 +115,64 @@ function TheThing(){
|
|||||||
bear:0,
|
bear:0,
|
||||||
pig:0,
|
pig:0,
|
||||||
seal:0,
|
seal:0,
|
||||||
|
|
||||||
|
|
||||||
lemons:0,
|
lemons:0,
|
||||||
lt3:0,
|
lt3:0,
|
||||||
lang:items.lang,
|
|
||||||
pres:items.pres,
|
pres:items.pres,
|
||||||
mode:items.mode,
|
|
||||||
Mclick:1,
|
Mclick:1,
|
||||||
token:0,
|
token:0,
|
||||||
}
|
}
|
||||||
location.href = './index.html';
|
toClick();
|
||||||
|
}else{
|
||||||
|
if(items.lang == 1 && items.token >= (1000*items.pres) && confirm(`For Prestige You'll earn more clicks, but your progress resets (except prestige points). Do you wish to 'Rebirth'?`)){ // En
|
||||||
|
if(items.pres>=5){
|
||||||
}else if(items.lang == 1 && items.token >= (1000*items.pres) && confirm(`For Prestige You'll earn more clicks, but your progress resets (except prestige points). Do you wish to 'Rebirth'?`)){ // En
|
alert(`You've earn 1 prestige point!`);
|
||||||
if(items.pres>=5){
|
items.pres += 1;
|
||||||
alert(`You've earn 1 prestige point!`);
|
}else{
|
||||||
items.pres += 1;
|
alert(`You've earn 0.5 prestige points!`);
|
||||||
}else{
|
items.pres += 0.5;
|
||||||
alert(`You've earn 0.5 prestige points!`);
|
|
||||||
items.pres += 0.5;
|
|
||||||
}
|
|
||||||
upload();
|
|
||||||
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,
|
|
||||||
otters:0,
|
|
||||||
meerkat:0,
|
|
||||||
raccoon:0,
|
|
||||||
owl:0,
|
|
||||||
badger:0,
|
|
||||||
squirrel:0,
|
|
||||||
chameleon:0,
|
|
||||||
chicken:0,
|
|
||||||
wombat:0,
|
|
||||||
panther:0,
|
|
||||||
coyote:0,
|
|
||||||
frog:0,
|
|
||||||
bear:0,
|
|
||||||
pig:0,
|
|
||||||
seal:0,
|
|
||||||
|
|
||||||
|
|
||||||
lemons:0,
|
|
||||||
lt3:0,
|
|
||||||
lang:items.lang,
|
|
||||||
pres:items.pres,
|
|
||||||
mode:items.mode,
|
|
||||||
Mclick:1,
|
|
||||||
token:0,
|
|
||||||
}
|
}
|
||||||
location.href = './index.html';
|
uploadUpgrades();
|
||||||
|
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,
|
||||||
|
otters:0,
|
||||||
|
meerkat:0,
|
||||||
|
raccoon:0,
|
||||||
|
owl:0,
|
||||||
|
badger:0,
|
||||||
|
squirrel:0,
|
||||||
|
chameleon:0,
|
||||||
|
chicken:0,
|
||||||
|
wombat:0,
|
||||||
|
panther:0,
|
||||||
|
coyote:0,
|
||||||
|
frog:0,
|
||||||
|
bear:0,
|
||||||
|
pig:0,
|
||||||
|
seal:0,
|
||||||
|
|
||||||
|
lemons:0,
|
||||||
|
lt3:0,
|
||||||
|
pres:items.pres,
|
||||||
|
Mclick:1,
|
||||||
|
token:0,
|
||||||
|
}
|
||||||
|
toClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Dark || Light Mode
|
|
||||||
function LDmodes(){
|
|
||||||
let Bimts = document.querySelectorAll('.item');
|
|
||||||
if((items.mode||0) == 0){// Light Mode
|
|
||||||
body.style.background = '#ddd';
|
|
||||||
body.style.color = '#000';
|
|
||||||
Bimts.forEach((e) => {
|
|
||||||
e.style.background = '#ffefd5';
|
|
||||||
});
|
|
||||||
loglm.style.background = '#ffefd5';
|
|
||||||
loglm.style.filter = 'drop-shadow(10px 8px 6px #222)';
|
|
||||||
}else if(items.mode == 1){// Dark Mode
|
|
||||||
body.style.background = '#333';
|
|
||||||
body.style.color = '#fff';
|
|
||||||
Bimts.forEach((e) => {
|
|
||||||
e.style.background = '#666055';
|
|
||||||
});
|
|
||||||
loglm.style.background = '#666055'; // effd5f66
|
|
||||||
loglm.style.filter = 'drop-shadow(10px 8px 6px #222)';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
122
keybinds.html
122
keybinds.html
@@ -1,122 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<!-- Google tag (gtag.js) -->
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CTW2M8Q7SB"></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', 'G-CTW2M8Q7SB');
|
|
||||||
</script>
|
|
||||||
<title>Document</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
form {
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<form id="keybindForm">
|
|
||||||
<label for="moveUp">Move Up:</label>
|
|
||||||
<input type="text" id="moveUp" name="moveUp" value="ArrowUp">
|
|
||||||
|
|
||||||
<label for="moveDown">Move Down:</label>
|
|
||||||
<input type="text" id="moveDown" name="moveDown" value="ArrowDown">
|
|
||||||
|
|
||||||
<label for="moveLeft">Move Left:</label>
|
|
||||||
<input type="text" id="moveLeft" name="moveLeft" value="ArrowLeft">
|
|
||||||
|
|
||||||
<label for="moveRight">Move Right:</label>
|
|
||||||
<input type="text" id="moveRight" name="moveRight" value="ArrowRight">
|
|
||||||
|
|
||||||
<label for="openShop">Open Shop:</label>
|
|
||||||
<input type="text" id="openShop" name="openShop" value="g">
|
|
||||||
|
|
||||||
<button type="button" onclick="updateKeybindings()">Update Keybindings</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Your game logic goes here
|
|
||||||
|
|
||||||
// Default keybindings
|
|
||||||
let keybindings = {
|
|
||||||
moveUp: 'ArrowUp',
|
|
||||||
moveDown: 'ArrowDown',
|
|
||||||
moveLeft: 'ArrowLeft',
|
|
||||||
moveRight: 'ArrowRight',
|
|
||||||
openShop: 'g'
|
|
||||||
};
|
|
||||||
|
|
||||||
// Example variables
|
|
||||||
let playerX = 50;
|
|
||||||
let playerY = 50;
|
|
||||||
let playerSpeed = 5;
|
|
||||||
|
|
||||||
// Function to update game state
|
|
||||||
function update() {
|
|
||||||
// Update game logic here
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to render the game
|
|
||||||
function render() {
|
|
||||||
// Render game elements here
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to handle key presses
|
|
||||||
function handleKeyPress(event) {
|
|
||||||
// Use keybindings object to get the action associated with the pressed key
|
|
||||||
switch (event.key) {
|
|
||||||
case keybindings.moveUp:
|
|
||||||
playerY -= playerSpeed;
|
|
||||||
break;
|
|
||||||
case keybindings.moveDown:
|
|
||||||
playerY += playerSpeed;
|
|
||||||
break;
|
|
||||||
case keybindings.moveLeft:
|
|
||||||
playerX -= playerSpeed;
|
|
||||||
break;
|
|
||||||
case keybindings.moveRight:
|
|
||||||
playerX += playerSpeed;
|
|
||||||
break;
|
|
||||||
case keybindings.openShop:
|
|
||||||
// Call your shop function here
|
|
||||||
shop();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update and render the game after key press
|
|
||||||
update();
|
|
||||||
render();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to open the shop
|
|
||||||
function shop() {
|
|
||||||
// Your shop logic goes here
|
|
||||||
console.log('Opening the shop...' + ' with ' + keybindings.openShop);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Attach the key press event listener to the document
|
|
||||||
document.addEventListener('keydown', handleKeyPress);
|
|
||||||
|
|
||||||
// Function to update keybindings based on user input
|
|
||||||
function updateKeybindings() {
|
|
||||||
keybindings.moveUp = document.getElementById('moveUp').value;
|
|
||||||
keybindings.moveDown = document.getElementById('moveDown').value;
|
|
||||||
keybindings.moveLeft = document.getElementById('moveLeft').value;
|
|
||||||
keybindings.moveRight = document.getElementById('moveRight').value;
|
|
||||||
keybindings.openShop = document.getElementById('openShop').value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initial render
|
|
||||||
render();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user