diff --git a/add.txt b/add.txt index cba1b4f..b9d7342 100644 --- a/add.txt +++ b/add.txt @@ -2,20 +2,20 @@ 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 = 650 c/s = 44 500 | 1 pussy + 1 whale (Dikobraz) -1 hippo = 950 c/s = 64 700 | 1 porcupine + 2 hamters -1 snake = 1 000 c/s = 72 800 | 2 whales + 4 hamsters +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 = 650 c/s = 44 500 | 1 pussy + 1 whale (Dikobraz) +1 hippo = 950 c/s = 64 700 | 1 porcupine + 2 hamsters +1 snake = 1 000 c/s = 72 800 | 2 whales + 4 hamsters 1 cheetah = 3 000 c/s = 202 200 | 2 snakes + 2 pussy -1 python = -1 girrafe = 1 000 000 c/s +1 python = 7 800 c/s = 525 700 | 1 cheetah + 5 hippo +1 girrafe = 8 400 c/s = 555 700 | 1 python + 20 foxes 1 otter 1 meerkat 1 raccoon diff --git a/changelog b/changelog index e106e2f..35abc3e 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,22 @@ + v39 + Added: Pythons + Giraffes + New Nav. bar for Shop + New Navigation bar for BRB + Setting in the nav bar (mostly in BRB) + + Removed: From BRB: + Go to Shop btn + Flag for lang + Reset + Help + From Shop: + Go to BRB + Go to Shop + + Fixed: Clicks number in Shop + + Note: please add Dark mode and into Wall. eng + v38 Added: Snakes + Cheetas new UI design for Shop Goer buttons and click displayer diff --git a/css/brb.css b/css/brb.css index 827a9cc..53bc287 100644 --- a/css/brb.css +++ b/css/brb.css @@ -1,9 +1,10 @@ +@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap'); body { - font-size: 15pt; user-select: none; padding: 0; margin: 0; background-color: #fff; + box-sizing: border-box; } #LANGMISS{ position: absolute; @@ -18,23 +19,7 @@ body { width: 100%; height: 200px; background: radial-gradient(125% 100% at 50% 0%,#9aff9a 20%,#fff 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,#fff);*/ + font-size: 15pt; } #logclick{ position: absolute; @@ -43,6 +28,7 @@ body { left: 50%; text-align: center; transform: translate(-50%,0); + font-size: 15pt; } #disclick{ position: absolute; @@ -72,41 +58,93 @@ body { border-radius: 150px; } /* Other BTNS */ -.reset{ - position: absolute; - user-select: none; - width: 69px; - height: 50px; - bottom: 5px; - right: 5px; - background-color: #f00; - color: #fff; -} -.help{ - position: absolute; - user-select: none; - width: 69px; - height: 50px; - bottom: 60px; - right: 5px; - background-color: darkgoldenrod; - color: #fff; -} .Yt{ position: absolute; bottom: 0px; margin: 0.5rem; left: 0; } -.flag{ + +.menu-container{ position: absolute; - user-select: none; - width: 69px; - height: 50px; - border-radius: 1rem; - bottom: 50px; - left: 0%; - margin: 0.5rem; - color: #000; - filter: drop-shadow(10px 8px 6px #333); + top: 30px; + left: 50%; + transform: translate(-50%, -50%); + width: 300px; + display: flex; + align-items: center; + justify-content: center; + font-family: 'Poppins'; +} +.button{ + position: relative; + background: #1b1b1b; + color: #fff; + font-size: 20px; + padding: 8px 20px; + width: 150px;/* 100% */ + line-height: 30px; + display: flex; + align-items: center; + justify-content: space-between; + border-radius: 25px; + cursor: pointer; + transition: width .4s; +} +.button.expand{ + width: 100%; +} +.fas.expand:before{ + content: '\f00d'; +} +ul{ + list-style: none; + position: absolute; + top: 65px; + display: block; + background: #1b1b1b; + width: 100%; + text-align: center; + border-radius: 5px; + display: none; + box-shadow: 0 3px 6px rgba(0,0,0,.3); + padding-inline-start: 0px; +} +ul:before{ + position: absolute; + content: ''; + width: 20px; + height: 20px; + background: #1b1b1b; + top: -10px; + right: 15px; + transform: rotate(45deg); + z-index: -1; +} +ul li{ + line-height: 35px; + padding: 8px 20px; + cursor: pointer; + border-bottom: 1px solid rgba(255,255,255,.1); +} +ul li:hover:first-child{ + border-radius: 5px 5px 0 0; +} +ul li:hover:last-child{ + border-radius: 0 0 5px 5px; +} +ul li:hover{ + box-shadow: inset 0 0 5px #33ff33, + inset 0 0 10px #66ff66; +} +ul li:last-child{ + border-bottom: none; +} +ul li a{ + color: #fff; + font-size: 18px; + text-decoration: none; +} +ul li:hover a{ + color: #44dd44; } \ No newline at end of file diff --git a/css/shop.css b/css/shop.css index 8772f0b..4aaa972 100644 --- a/css/shop.css +++ b/css/shop.css @@ -13,7 +13,22 @@ body { } /* Clisks */ +.joe{ + position: fixed; + z-index: 1; + display: flex; + justify-content: center; + align-items: center; + height: 200px; + width: 100%; + margin: 0; + top: 0; + border-radius: 0 0 90px 90px; + background: linear-gradient(#11ABFF, #ccccccab); + +} #logclick{ + position: relative; background-color: papayawhip; display: flex; align-items: center; @@ -25,6 +40,7 @@ body { border-radius: 1rem; z-index: 69; width: auto; + top: 30px; height: 85px; filter: drop-shadow(10px 8px 6px #333); } @@ -40,28 +56,6 @@ body { pointer-events: none } -#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); - min-width: 200px; - height: 50px; - margin: 1rem auto; - border: 3.69px none #333333; - filter: drop-shadow(10px 8px 6px #333); - border-radius: 69px; -} - .backtop{ height: 230px; max-width: auto; @@ -148,17 +142,6 @@ main{ flex-direction: row; justify-content: center; } - -/*@media only screen and (max-width: 1100px){ - .row .item{ - display: flex; - flex-direction: column; - justify-content: center; - left: 50%; - transform: translateXyy(-50%); - } -}*/ - button{ border: none; filter: drop-shadow(8px 6px 4px #555); @@ -176,4 +159,90 @@ button{ width: auto; margin: 2rem 10vw 2rem 10vw; } +} + + +.menu-container{ + position: fixed; + top: 50px; + left: 50%; + transform: translate(-50%, -50%); + width: 300px; + display: flex; + align-items: center; + justify-content: center; + font-family: 'Poppins'; + z-index: 500; +} +.button{ + position: relative; + background: #1b1b1b; + color: #fff; + font-size: 20px; + padding: 8px 20px; + width: 150px;/* 100% */ + line-height: 30px; + display: flex; + align-items: center; + justify-content: space-between; + border-radius: 25px; + cursor: pointer; + transition: width .4s; +} +.button.expand{ + width: 100%; +} +.fas.expand:before{ + content: '\f00d'; +} +ul{ + list-style: none; + position: absolute; + top: 65px; + display: block; + background: #1b1b1b; + width: 100%; + text-align: center; + border-radius: 5px; + display: none; + box-shadow: 0 3px 6px rgba(0,0,0,.3); + padding-inline-start: 0px; +} +ul:before{ + position: absolute; + content: ''; + width: 20px; + height: 20px; + background: #1b1b1b; + top: -10px; + right: 15px; + transform: rotate(45deg); + z-index: -1; +} +ul li{ + line-height: 35px; + padding: 8px 20px; + cursor: pointer; + border-bottom: 1px solid rgba(255,255,255,.1); +} +ul li:hover:first-child{ + border-radius: 5px 5px 0 0; +} +ul li:hover:last-child{ + border-radius: 0 0 5px 5px; +} +ul li:hover{ + box-shadow: inset 0 0 5px #33ff33, + inset 0 0 10px #66ff66; +} +ul li:last-child{ + border-bottom: none; +} +ul li a{ + color: #fff; + font-size: 18px; + text-decoration: none; +} +ul li:hover a{ + color: #44dd44; } \ No newline at end of file diff --git a/img/girafe.svg b/img/girafe.svg new file mode 100644 index 0000000..82a0d8a --- /dev/null +++ b/img/girafe.svg @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/python.svg b/img/python.svg new file mode 100644 index 0000000..141be08 --- /dev/null +++ b/img/python.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 5135e32..7b478be 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,8 @@ - + + BRB - Clicking @@ -19,7 +20,7 @@
-

Click me to get to the Shop!

+
@@ -29,31 +30,49 @@
- - -
+ + + - -
- - - -
- - - Error with da flag + + -
- - -
+
+ + +
- + \ No newline at end of file diff --git a/main.js b/js/main.js similarity index 52% rename from main.js rename to js/main.js index 832ef00..e31de88 100644 --- a/main.js +++ b/js/main.js @@ -59,7 +59,9 @@ window.onload = function(){ load(); update(); for(let item in items){ - if(!items.item) items.item = 0; + if(!items.item){ + items.item = 0; + } } cash(); checklang() @@ -68,96 +70,88 @@ window.onload = function(){ // Reset function reset(){ - if(items.lang == 1){ - if(confirm('Do you really want to reset everything?')){ - if(confirm('Are you sure?')){ - alert('Everything 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, - 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, + if((items.lang == 1) && confirm('Do you really want to reset everything?') && confirm('Are you sure?')){ + alert('Everything 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, + 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, - } - } + lemons:0, + lt3:0, + lang:items.lang, + pres:items.pres, } } - if(items.lang == 0){ - if(confirm('Vážně chceš všechno resetovat?')){ - if(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, + 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, - } - } + lemons:0, + lt3:0, + lang:items.lang, + pres:items.pres, } } } @@ -168,11 +162,9 @@ function update(){ localStorage.setItem('items', i); if(items.lang == 1){ document.getElementById('disclick').innerHTML=`You've got ${fornum(items.clicks)} clicks, and generating ${fornum(cs)} c/s!` - flag.src = './img/fg-cz.png' } if(items.lang == 0){ document.getElementById('disclick').innerHTML=`Právě máš ${fornum(items.clicks)} kliků a generuješ ${fornum(cs)} k/s!` - flag.src = './img/fg-uk.png' } checklang(); } @@ -197,7 +189,7 @@ function clicking(){ 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; + 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.clicks += cs; update();cash(); },1000) @@ -207,15 +199,15 @@ function cash(){ function help(){ e++ if(e==1){ - alert('Click the button to earn clicks!'); - alert('Click on me for more...'); + alert(`Click the button to earn clicks! +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. .'); + alert(`After 100 clicks, click the link above to take you to the shop! +Click on me for more. .`); } if(e==3){ - alert('In the shop click on the buy dog button to buy a dog'); + alert(`In the shop click on the buy dog button to buy a dog`); e=0; } } @@ -223,30 +215,46 @@ function language(){ if(items.lang == 0){ /* CZ */ items.lang = 1; console.log(items.lang); - del.innerHTML = 'RESET' - sos.innerHTML = 'POMOC' - shop.innerHTML = 'Klikni na mě aby ses dostal do Obchodu!' + document.documentElement.setAttribute('lang', 'cz'); + del.innerHTML = 'Reset'; + sos.innerHTML = 'Pomoc'; + shop.innerHTML = 'Obchod'; + upg.innerHTML = 'Vylepšení'; + modes.innerHTML = 'Změn do Temného módu'; + langs.innerHTML = 'Switch into English'; }else if(items.lang == 1){ /* UK */ items.lang = 0; console.log(items.lang); - del.innerHTML = 'RESET' - sos.innerHTML = 'HELP' - shop.innerHTML = 'Click me to get to the Shop!' + document.documentElement.setAttribute('lang', 'en'); + del.innerHTML = 'Reset'; + sos.innerHTML = 'Help'; + shop.innerHTML = 'Shop'; + upg.innerHTML = 'Upgrades'; + modes.innerHTML = 'Switch into Dark Mode'; + langs.innerHTML = 'Změň si jazyk do Češtiny'; } } function checklang(){ if(items.lang == 0){ /* CZ */ - del.innerHTML = 'RESET' - sos.innerHTML = 'POMOC' - shop.innerHTML = 'Klikni na mě aby ses dostal do Obchodu!' + document.documentElement.setAttribute('lang', 'cz'); + del.innerHTML = 'RESET'; + sos.innerHTML = 'POMOC'; + shop.innerHTML = 'Obchod'; + upg.innerHTML = 'Vylepšení'; + modes.innerHTML = 'Změn do Temného módu'; + langs.innerHTML = 'Switch into English'; }else if(items.lang == 1){ /* UK */ - del.innerHTML = 'RESET' - sos.innerHTML = 'HELP' - shop.innerHTML = 'Click me to get to the Shop!' + document.documentElement.setAttribute('lang', 'en'); + del.innerHTML = 'RESET'; + sos.innerHTML = 'HELP'; + shop.innerHTML = 'Shop'; + upg.innerHTML = 'Upgrades'; + modes.innerHTML = 'Switch into Dark Mode'; + langs.innerHTML = 'Změň si jazyk do Češtiny'; } } diff --git a/shop.js b/js/shop.js similarity index 82% rename from shop.js rename to js/shop.js index 9ed56cf..10d6fb8 100644 --- a/shop.js +++ b/js/shop.js @@ -1,28 +1,10 @@ let cs -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') -let = document.getElementById('') - // 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 + items.platapuses*400 + items.porcupines*650 + items.hippos*950 + items.snakes*1000 + items.cheetahs*3000; + 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; } function c(x){ items.clicks += x; @@ -33,10 +15,11 @@ function c(x){ // Load function load(){ 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 + items.platapuses*400 + items.porcupines*650 + items.hippos*950; + 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; if(items.lang == 1){ - disclick.innerHTML=`You've got ${fornum(items.clicks)} clicks, and making ${fornum(cs)} c/s!` + document.documentElement.setAttribute('lang', 'en'); + disclick.innerHTML=`You've got ${fornum(items.clicks)} clicks, and making ${fornum(cs)} each second!` disdog.innerHTML=`You've got ${fornum(items.dogs)} dogs!` discat.innerHTML=`You've got ${fornum(items.cats)} cats!` disfox.innerHTML=`You've got ${fornum(items.foxes)} foxes!` @@ -49,6 +32,8 @@ function load(){ diship.innerHTML=`You've got ${fornum(items.hippos)} hippopotamuses!` dissna.innerHTML=`You've got ${fornum(items.snakes)} snakes!` dische.innerHTML=`You've got ${fornum(items.cheetahs)} cheetahs!` + dispyt.innerHTML=`You've got ${fornum(items.pythons)} pythons!` + disgir.innerHTML=`You've got ${fornum(items.girrafes)} giraffes!` @@ -69,9 +54,9 @@ function load(){ dishimake.innerHTML=`They're generating ${fornum(items.hippos*950)} clicks per second!` dissnmake.innerHTML=`They're generating ${fornum(items.snakes*1000)} clicks per second!` dischmake.innerHTML=`They're generating ${fornum(items.cheetahs*3000)} clicks per second!` + dispymake.innerHTML=`They're generating ${fornum(items.pythons*7800)} clicks per second!` + disgimake.innerHTML=`They're generating ${fornum(items.girrafes*8400)} clicks per second!` - brb.innerHTML = 'Go to BRB!' - upg.innerHTML = 'Go to Upgrades!' dg1.innerHTML = 'Buy a Dog for 100 clicks' ct1.innerHTML = 'Buy a Cat for 10 dogs' fx1.innerHTML = 'Buy a Fox for 15 dogs' @@ -84,6 +69,8 @@ function load(){ hi1.innerHTML = 'Buy a Hippopotamus for
1 porcupine and 2 hamsters' sn1.innerHTML = 'Buy a Snake for
2 whales and 4 hamsters' ch1.innerHTML = 'Buy a Cheetah for
2 snakes and 2 platypuses' + py1.innerHTML = 'Buy a Python for
1 cheetah and 5 hippos' + gi1.innerHTML = 'Buy a Giraffe for
1 python and 20 foxes' lm1.innerHTML = 'Buy a Lemon for some cats' lt1.innerHTML = 'Buy a Lemon Tree for 5 lemons' @@ -100,9 +87,12 @@ function load(){ Chi1.innerHTML = 'Buy a Hippopotamus for
100 k clicks' Csn1.innerHTML = 'Buy a Snake for
150 k clicks' Cch1.innerHTML = 'Buy a Cheetah for
350 k clicks' + Cpy1.innerHTML = 'Buy a Python for
820 k clicks' + Cgi1.innerHTML = 'Buy a Giraffe for
880 k clicks' } if(items.lang == 0){ - document.getElementById('disclick').innerHTML=`Právě máš ${fornum(items.clicks)} kliků a děláš ${fornum(cs)} k/s!` + document.documentElement.setAttribute('lang', 'cz'); + document.getElementById('disclick').innerHTML=`Právě máš ${fornum(items.clicks)} kliků a děláš ${fornum(cs)} každou sekundu!` document.getElementById('disdog').innerHTML=`Právě máš ${fornum(items.dogs)} psů!` document.getElementById('discat').innerHTML=`Právě máš ${fornum(items.cats)} koček!` document.getElementById('disfox').innerHTML=`Právě máš ${fornum(items.foxes)} lišek!` @@ -115,6 +105,8 @@ function load(){ document.getElementById('diship').innerHTML=`Právě máš ${fornum(items.hippos)} hrochů!` document.getElementById('dissna').innerHTML=`Právě máš ${fornum(items.snakes)} hadů!` document.getElementById('dische').innerHTML=`Právě máš ${fornum(items.cheetahs)} gepardů!` + document.getElementById('dispyt').innerHTML=`Právě máš ${fornum(items.pythons)} kober!` + document.getElementById('disgir').innerHTML=`Právě máš ${fornum(items.girrafes)} gepardů!` @@ -135,10 +127,9 @@ function load(){ document.getElementById('dishimake').innerHTML=`Generují ${fornum(items.hippos*950)} kliků za sekundu!` document.getElementById('dissnmake').innerHTML=`Generují ${fornum(items.snakes*1000)} kliků za sekundu!` document.getElementById('dischmake').innerHTML=`Generují ${fornum(items.cheetahs*3000)} kliků za sekundu!` + document.getElementById('dispymake').innerHTML=`Generují ${fornum(items.pythons*7800)} kliků za sekundu!` + document.getElementById('disgimake').innerHTML=`Generují ${fornum(items.girrafes*8400)} kliků za sekundu!` - - brb.innerHTML = 'B.R.B.' - upg.innerHTML = 'Vylepšení' dg1.innerHTML = 'Kup Psa za 100 kliků' ct1.innerHTML = 'Kup Kočku za 10 psů' fx1.innerHTML = 'Kup Lišku za 15 psů' @@ -151,6 +142,8 @@ function load(){ hi1.innerHTML = 'Kup Hrocha za
1 dikobraza a 2 křečků' sn1.innerHTML = 'Kup Hada za
2 velryby a 4 křečky' ch1.innerHTML = 'Kup Geparda za
2 hady a 2 ptakopysky' + py1.innerHTML = 'Kup Kobru za
1 geparda a 5 hrochů' + gi1.innerHTML = 'Kup Žirafu za
1 kobru a 20 lišek' lm1.innerHTML = 'Kup Citrón za pár koček' lt1.innerHTML = 'Kup Citrónovník za 5 citrónů' @@ -167,6 +160,8 @@ function load(){ Chi1.innerHTML = 'Kup Hrocha za
100 k kliků' Csn1.innerHTML = 'Kup Hada za
150 k kliků' Cch1.innerHTML = 'Kup Geparda za
350 k kliků' + Cpy1.innerHTML = 'Kup Kobru za
820 k kliků' + Cgi1.innerHTML = 'Kup Žirafu za
880 k kliků' } } load(); @@ -178,7 +173,7 @@ function cash(){ setTimeout (function money(){ items.clicks += cs; upload(); - cash();click() + cash();click(); },1000) } cash(); @@ -286,6 +281,23 @@ function buyche(){ } upload(); } +function buypyt(){ + if(items.cheetahs>=1 && items.hippos>=5){ + items.cheetahs-=1; + items.hippos-=5; + items.pythons++; + } + upload(); +} +function buygir(){ + if(items.pythons>=1 && items.foxes>=20){ + items.pythons-=1; + items.foxes-=20; + items.girrafes++; + } + upload(); +} + @@ -505,6 +517,41 @@ function mxch(){ } upload(); } +function mxpy(){ + one = Math.floor(items.cheetahs/1); + two = Math.floor(items.hippos/5); + + if(one<=two){ + items.cheetahs -= one*1; + items.hippos -= one*5; + items.pythons += one; + }else if(one>=two){ + items.cheetahs -= two*1; + items.hippos -= two*5; + items.pythons += two; + }else{ + console.log('You fucked up you stupid bitch') + } + upload(); +} +function mxgi(){ + one = Math.floor(items.pythons/1); + two = Math.floor(items.foxes/20); + + if(one<=two){ + items.pythons -= one*1; + items.foxes -= one*20; + items.girrafes += one; + }else if(one>=two){ + items.pythons -= two*1; + items.foxes -= two*20; + items.girrafes += two; + }else{ + console.log('You fucked up you stupid bitch') + } + upload(); +} + @@ -682,3 +729,67 @@ function mxChi(){ upload(); } +// Snuk +function buyCsna(){ + if(items.clicks >= 150000){ + items.snakes++; + items.clicks -= 150000; + upload(); + } +} +function mxCsn(){ + one = Math.floor(items.clicks / 150000) + + items.clicks -= one * 150000 + items.snakes += one + upload(); +} + +// Chetuch +function buyCche(){ + if(items.clicks >= 350000){ + items.cheetahs++; + items.clicks -= 350000; + upload(); + } +} +function mxCch(){ + one = Math.floor(items.clicks / 350000) + + items.clicks -= one * 350000 + items.cheetahs += one + upload(); +} + +// .py +function buyCpyt(){ + if(items.clicks >= 820000){ + items.pythons++; + items.clicks -= 820000; + upload(); + } +} +function mxCpy(){ + one = Math.floor(items.clicks / 820000) + + items.clicks -= one * 820000 + items.pythons += one + upload(); +} + +// Gurllaf +function buyCgir(){ + if(items.clicks >= 880000){ + items.girrafes++; + items.clicks -= 880000; + upload(); + } +} +function mxCgi(){ + one = Math.floor(items.clicks / 880000) + + items.clicks -= one * 880000 + items.girrafes += one + upload(); +} + diff --git a/upgr.js b/js/upgr.js similarity index 100% rename from upgr.js rename to js/upgr.js diff --git a/shop.html b/shop.html index 8a3b376..cef4bbd 100644 --- a/shop.html +++ b/shop.html @@ -5,6 +5,8 @@ + + BRB - Shop @@ -16,26 +18,13 @@ - - -
-
- - - -
- -

-
+ +
+
+ +

-
+ @@ -311,6 +300,52 @@

+ +
+ +
+ + +
+
+ + +
+

+

+
+ + +
+ +
+ + +
+
+ + +
+

+

+
+ @@ -348,8 +383,39 @@ + + + - + \ No newline at end of file diff --git a/upgrade.html b/upgrade.html index bc8a175..605afae 100644 --- a/upgrade.html +++ b/upgrade.html @@ -33,7 +33,7 @@

COMING SOON...

- + \ No newline at end of file diff --git a/upgrades.json b/upgrades.json deleted file mode 100644 index e69de29..0000000