mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
remove /js/all.js console spam, small mods to cookie clicker
This commit is contained in:
parent
65735383be
commit
b8aeb5ef56
@ -150,8 +150,6 @@ var App=typeof App==='undefined'?0:App;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="sectionRight" class="inset">
|
<div id="sectionRight" class="inset">
|
||||||
<!-- ad -->
|
|
||||||
<!-- /ad -->
|
|
||||||
<div id="store">
|
<div id="store">
|
||||||
<div id="storeTitle" class="inset title zoneTitle">Store</div>
|
<div id="storeTitle" class="inset title zoneTitle">Store</div>
|
||||||
<div id="toggleUpgrades" class="storeSection upgradeBox"></div>
|
<div id="toggleUpgrades" class="storeSection upgradeBox"></div>
|
||||||
@ -160,8 +158,6 @@ var App=typeof App==='undefined'?0:App;
|
|||||||
<div id="upgrades" class="storeSection upgradeBox"></div>
|
<div id="upgrades" class="storeSection upgradeBox"></div>
|
||||||
<div id="products" class="storeSection"></div>
|
<div id="products" class="storeSection"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- ad -->
|
|
||||||
<!-- /ad -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tooltipAnchor"><div id="tooltip" class="framed" onMouseOut="Game.tooltip.hide();"></div></div>
|
<div id="tooltipAnchor"><div id="tooltip" class="framed" onMouseOut="Game.tooltip.hide();"></div></div>
|
||||||
|
@ -6621,6 +6621,8 @@ Game.Launch=function()
|
|||||||
'<br>'+
|
'<br>'+
|
||||||
(App?Game.WritePrefButton('bgMusic','bgMusicButton',loc("Music in background")+ON,loc("Music in background")+OFF,'')+'<label>('+loc("music will keep playing even when the game window isn't focused")+')</label><br>':'')+
|
(App?Game.WritePrefButton('bgMusic','bgMusicButton',loc("Music in background")+ON,loc("Music in background")+OFF,'')+'<label>('+loc("music will keep playing even when the game window isn't focused")+')</label><br>':'')+
|
||||||
(App?Game.WritePrefButton('fullscreen','fullscreenButton',loc("Fullscreen")+ON,loc("Fullscreen")+OFF,'Game.ToggleFullscreen();')+'<br>':'')+
|
(App?Game.WritePrefButton('fullscreen','fullscreenButton',loc("Fullscreen")+ON,loc("Fullscreen")+OFF,'Game.ToggleFullscreen();')+'<br>':'')+
|
||||||
|
Game.WritePrefButton('cheat','cheatToggle',loc("Cheat menu")+ON,loc("Cheat menu")+OFF,'Game.OpenSesame();')+'<label>('+loc("enable the cheat menu that you usually get by adding saysopensesame to your name, only way to turn it off is by refreshing :D")+')</label><br>'+
|
||||||
|
Game.WritePrefButton('mod','modMenu',loc("Mod Menu"),loc("Mod Menu"),'Game.ModMenu();')+'<label>('+loc("wip, will be a menu to add a bunch of mods")+')</label><br>'+
|
||||||
Game.WritePrefButton('fancy','fancyButton',loc("Fancy graphics")+ON,loc("Fancy graphics")+OFF,'Game.ToggleFancy();')+'<label>('+loc("visual improvements; disabling may improve performance")+')</label><br>'+
|
Game.WritePrefButton('fancy','fancyButton',loc("Fancy graphics")+ON,loc("Fancy graphics")+OFF,'Game.ToggleFancy();')+'<label>('+loc("visual improvements; disabling may improve performance")+')</label><br>'+
|
||||||
Game.WritePrefButton('filters','filtersButton',loc("CSS filters")+ON,loc("CSS filters")+OFF,'Game.ToggleFilters();')+'<label>('+(EN?'cutting-edge visual improvements; disabling may improve performance':loc("visual improvements; disabling may improve performance"))+')</label><br>'+
|
Game.WritePrefButton('filters','filtersButton',loc("CSS filters")+ON,loc("CSS filters")+OFF,'Game.ToggleFilters();')+'<label>('+(EN?'cutting-edge visual improvements; disabling may improve performance':loc("visual improvements; disabling may improve performance"))+')</label><br>'+
|
||||||
Game.WritePrefButton('particles','particlesButton',loc("Particles")+ON,loc("Particles")+OFF)+(EN?'<label>(cookies falling down, etc; disabling may improve performance)</label>':'')+'<br>'+
|
Game.WritePrefButton('particles','particlesButton',loc("Particles")+ON,loc("Particles")+OFF)+(EN?'<label>(cookies falling down, etc; disabling may improve performance)</label>':'')+'<br>'+
|
||||||
@ -16025,7 +16027,17 @@ Game.Launch=function()
|
|||||||
Game.Achievements['Cheated cookies taste awful'].won=1;
|
Game.Achievements['Cheated cookies taste awful'].won=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Game.ModMenu=function()
|
||||||
|
{
|
||||||
|
Game.modURL = ["https://klattmose.github.io/CookieClicker/KlattmoseUtilities.js?v=2.16"]
|
||||||
|
Game.Prompt('<id ModMenu><h3>'+loc("Select a mod!")+'</h3><div class="block">'+loc("Here are a list of mods built into Selenite's Cookie Clicker. If you're curious about a mod, just look it up.")+'</div>' +
|
||||||
|
Game.WritePrefButton('mod0','mod',loc("Mod Menu"),loc("Mod Menu"),'Game.LoadMod(Game.modURL[0]);')+'<br>'+
|
||||||
|
Game.WritePrefButton('mod1','mod1',loc("Mod Menu"),loc("Mod Menu"),'Game.ModMenu();')+'<br>'+
|
||||||
|
Game.WritePrefButton('mod2','mod2',loc("Mod Menu"),loc("Mod Menu"),'Game.ModMenu();')+'<br>'+
|
||||||
|
Game.WritePrefButton('mod3','mod3',loc("Mod Menu"),loc("Mod Menu"),'Game.ModMenu();')+'<br>'
|
||||||
|
,[loc("All done!")
|
||||||
|
]);//prompt('Copy this text and keep it somewhere safe!',Game.WriteSave(1));
|
||||||
|
}
|
||||||
Game.loadAscendCalibrator=function()
|
Game.loadAscendCalibrator=function()
|
||||||
{
|
{
|
||||||
Game.loadAscendCalibrator=0;
|
Game.loadAscendCalibrator=0;
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
function UnityProgress(progress) {
|
|
||||||
var progressBarFull = document.querySelector("#progressBar");
|
|
||||||
progressBarFull.style.width = (100 * progress) + "%";
|
|
||||||
|
|
||||||
var spinner = document.querySelector("#spinner");
|
|
||||||
|
|
||||||
var loadInfo = document.querySelector("#loadingInfo");
|
|
||||||
var loadPercent = document.querySelector("#loadingPercent");
|
|
||||||
|
|
||||||
if (progress < 0.9 && loadPercent.className != "in-final-stage") {
|
|
||||||
loadInfo.textContent = "Loading... ";
|
|
||||||
loadPercent.textContent = Math.round(progress * 100) + "%";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (progress == 0.9 && loadPercent.className != "in-final-stage") {
|
|
||||||
loadPercent.className = "in-final-stage";
|
|
||||||
progressBarFull.className = "in-final-stage";
|
|
||||||
loadPercent.textContent = "";
|
|
||||||
}
|
|
||||||
if (progress == 1) {
|
|
||||||
var loadingBox = document.querySelector("#loadingBox");
|
|
||||||
loadingBox.style.display = "none";
|
|
||||||
var bg = document.querySelector("#bg");
|
|
||||||
bg.style.display = "none";
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.8 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 176 KiB |
@ -1,411 +0,0 @@
|
|||||||
@font-face { font-family: 'Odin Rounded'; src: url("odinRounded-bold.otf"); font-weight: 400; font-style: normal; font-stretch: normal; unicode-range: U+0020-00FE; }
|
|
||||||
|
|
||||||
body { font-family: "Odin Rounded", sans-serif; background-color: #5B5B5B; line-height: 1; font-size: 17px !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding:0px; margin: 0px; }
|
|
||||||
|
|
||||||
.webgl-content * {border: 0; margin: 0; padding: 0}
|
|
||||||
.webgl-content {position: absolute; width:100%; height:100%; bottom: 0px; left: 0px; border: 0; }
|
|
||||||
|
|
||||||
#bg {
|
|
||||||
position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
|
|
||||||
background: url('roadbg64.jpg') no-repeat center / contain; min-height:100%; width: 100%; height: 100%; background-size:cover;
|
|
||||||
background-image: url('roadbg64.jpg');
|
|
||||||
}
|
|
||||||
|
|
||||||
#gameContainer {
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
div#loadingBox {
|
|
||||||
width: 400px;
|
|
||||||
height: 31px;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
/* margin-top: -10px; */
|
|
||||||
margin-left: -200px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Progress bar */
|
|
||||||
|
|
||||||
div#bgBar {
|
|
||||||
position: absolute;
|
|
||||||
width: 400px;
|
|
||||||
margin-left: -50%;
|
|
||||||
left: 50%;
|
|
||||||
height: 100%;
|
|
||||||
display: inline-block;
|
|
||||||
background: url('loading_bar_bg400.png') no-repeat right / cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
div#progressBar {
|
|
||||||
left: 50%;
|
|
||||||
position: absolute;
|
|
||||||
margin-left: -49%;
|
|
||||||
margin-top: 3px;
|
|
||||||
width: 0px;
|
|
||||||
height: 73%;
|
|
||||||
display: inline-block;
|
|
||||||
background: url('loading_bar400.png') no-repeat left / cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
#spinner {
|
|
||||||
left: 0%;
|
|
||||||
position: absolute;
|
|
||||||
width: 20px;
|
|
||||||
margin-top: 4px;
|
|
||||||
margin-left: 5px;
|
|
||||||
/* height: 40px; */
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rotate {
|
|
||||||
animation: rotate 0.75s infinite linear;
|
|
||||||
-webkit-animation: rotate 0.75s infinite linear;
|
|
||||||
}
|
|
||||||
.paused {
|
|
||||||
animation-play-state: paused;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes rotate {
|
|
||||||
100% {
|
|
||||||
transform: rotate(-360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@-webkit-keyframes rotate {
|
|
||||||
100% {
|
|
||||||
-webkit-transform: rotate(-360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-webkit-keyframes loading-percent-final
|
|
||||||
{
|
|
||||||
0%{content:'90';}
|
|
||||||
10%{content:'91';}
|
|
||||||
20%{content:'92';}
|
|
||||||
30%{content:'93';}
|
|
||||||
40%{content:'94';}50%{content:'95';}60%{content:'96';}70%{content:'97';}80%{content:'98';}90%{content:'99';}
|
|
||||||
100%{content:'100';}
|
|
||||||
}
|
|
||||||
@keyframes loading-percent-final
|
|
||||||
{0%{content:'90';}10%{content:'91';}20%{content:'92';}30%{content:'93';}40%{content:'94';}50%{content:'95';}60%{content:'96';}70%{content:'97';}80%{content:'98';}90%{content:'99';}100%{content:'100';}}
|
|
||||||
|
|
||||||
@-webkit-keyframes loading-bar-final{0%{-webkit-width:90%;}100%{-webkit-width:100%;}}
|
|
||||||
@keyframes loading-bar-final{0%{width:90%;}100%{width:100%;}}
|
|
||||||
|
|
||||||
|
|
||||||
#loadingInfo {
|
|
||||||
color: #ffffff;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
left: 0%;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
font-family: "Odin Rounded", sans-serif;
|
|
||||||
text-transform: uppercase;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 20px;
|
|
||||||
margin-top: 5px;
|
|
||||||
display: block;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
#loadingPercent {
|
|
||||||
color: #ffffff;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
left: 0%;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
font-family: "Odin Rounded", sans-serif;
|
|
||||||
text-transform: uppercase;
|
|
||||||
text-align: right;
|
|
||||||
font-size: 20px;
|
|
||||||
margin-top: 5px;
|
|
||||||
display: block;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
#loadingPercent.in-final-stage:before
|
|
||||||
{
|
|
||||||
content:'90';
|
|
||||||
-webkit-animation:loading-percent-final 10s linear;
|
|
||||||
animation:loading-percent-final 10s linear;
|
|
||||||
-webkit-animation-fill-mode:forwards;
|
|
||||||
animation-fill-mode:forwards
|
|
||||||
}
|
|
||||||
|
|
||||||
#loadingPercent.in-final-stage:after
|
|
||||||
{
|
|
||||||
content:'%';
|
|
||||||
}
|
|
||||||
|
|
||||||
#progressBar.in-final-stage
|
|
||||||
{
|
|
||||||
-webkit-animation:loading-bar-final 10s linear;
|
|
||||||
animation:loading-bar-final 10s linear;
|
|
||||||
-webkit-animation-fill-mode:forwards;
|
|
||||||
animation-fill-mode:forwards
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#links {
|
|
||||||
position: absolute; right: 0px; bottom: 0px;
|
|
||||||
padding: 8px;
|
|
||||||
list-style: none; background-color: #fff; border-top-left-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links ul {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links ul li {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links ul li a {
|
|
||||||
color: #000;
|
|
||||||
display: inline-block; margin-right: 10px;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
#links ul li a.visited {
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links ul li a:hover {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#ads {
|
|
||||||
position: absolute; left: 0px; bottom: 0px;
|
|
||||||
padding: 8px; background-color: #fff; border-top-right-radius: 5px;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#gdads {
|
|
||||||
position: absolute; left: 0px; bottom: 0px; width: 346px; height: 290px;
|
|
||||||
padding: 0px; margin: 0px;
|
|
||||||
display: none;
|
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
|
||||||
#gddisplayad {
|
|
||||||
display:block;
|
|
||||||
padding: 0; margin: 0;
|
|
||||||
width: 336px; height: 280px;
|
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
#shares {
|
|
||||||
position: absolute; left: 0px; top: 0px;
|
|
||||||
color: #FFFFFF;
|
|
||||||
font-size: 22px;
|
|
||||||
padding: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#shares p
|
|
||||||
{
|
|
||||||
padding: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#shares a {
|
|
||||||
display: inline-block; margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#popup-about {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#leaderboard
|
|
||||||
{
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
right: 0px;
|
|
||||||
width: 230px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #fff;
|
|
||||||
border-top-left-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#banner {
|
|
||||||
position: absolute;
|
|
||||||
top: 460px;
|
|
||||||
right: 20px;
|
|
||||||
}
|
|
||||||
#banner img {
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#killBoard {
|
|
||||||
color: #404040; width: 100%;font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#scoreBoard {
|
|
||||||
color: #404040; width: 100%;font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#switchBoard {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 4px;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#switchBoard a {
|
|
||||||
color: #000000;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
#switchBoard a.visited {
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
#switchBoard a:hover {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
.leaderboardHeading {
|
|
||||||
color:#000000; background-color: #959595; border-top-left-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ideaBlock
|
|
||||||
{
|
|
||||||
position: absolute;
|
|
||||||
top: 416px;
|
|
||||||
right: 0px;
|
|
||||||
width: 230px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #fff;
|
|
||||||
border-top-left-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
}
|
|
||||||
#ideaLink {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 4px;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ideaLink a {
|
|
||||||
color: #1f40e2;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
#ideaLink a.visited {
|
|
||||||
color: #1f40e2;
|
|
||||||
}
|
|
||||||
#ideaLink a:hover {
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
|
||||||
|
|
||||||
#preroll {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#rl1 {
|
|
||||||
position: absolute;
|
|
||||||
right: 34px;
|
|
||||||
top: 594px;
|
|
||||||
width: 160px;
|
|
||||||
text-align: center;
|
|
||||||
background: white;
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
#rl1 a {
|
|
||||||
color: black;
|
|
||||||
font-size: 24px;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
#rl1 a:visited {
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#rl2 {
|
|
||||||
position: absolute;
|
|
||||||
right: 34px;
|
|
||||||
top: 640px;
|
|
||||||
height: 30px;
|
|
||||||
width: 160px;
|
|
||||||
text-align: center;
|
|
||||||
background: white;
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
#rl2 a {
|
|
||||||
color: black;
|
|
||||||
font-size: 24px;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
#rl2 a:visited {
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#popup-howtoplay {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#popup-tipsandtricks {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#popup-shop {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#discord {
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
top: 8px;
|
|
||||||
z-index: 3;
|
|
||||||
margin-left: -100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discordgd {
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
top: 8px;
|
|
||||||
z-index: 3;
|
|
||||||
margin-left: -100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discord a img {
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discordgd a img {
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#discord img {
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
#discordgd img {
|
|
||||||
border-radius: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#aip_gdpr {
|
|
||||||
pointer-events: all!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tshirtshop {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.webgl-content78 * {border: 0; margin: 0; padding: 0}
|
|
||||||
.webgl-content78 {position: absolute; width:100%; padding-left: 300px; height:100%; bottom: 0px; left: 0px; border: 0; }
|
|
||||||
|
|
||||||
.ads78 {position: absolute; width:300px; height: 100%; top:0; border: 0; }
|
|
||||||
|
|
||||||
#gameContainer78 {
|
|
||||||
width: 100%;
|
|
||||||
height: 100vh;
|
|
||||||
display: block;
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,995 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"Key": "InitialChallenges",
|
|
||||||
"Value": {
|
|
||||||
"entries": [
|
|
||||||
{
|
|
||||||
"Key": "EAT_30_HORSES_FARM",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_30_HORSES_FARM": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 30,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_30_HORSES_FARM",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "HORSE",
|
|
||||||
"level": "Farm"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_15_TRACTORS_INDUSTRIAL",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_15_TRACTORS_INDUSTRIAL": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 15,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_15_TRACTORS_INDUSTRIAL",
|
|
||||||
"reward": 10,
|
|
||||||
"objectType": "TRACTOR",
|
|
||||||
"level": "Industrial"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "BATTLE_1_PLACE_3_TIMES",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"BATTLE_1_PLACE_3_TIMES": {
|
|
||||||
"FirstPlaceGameModeType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "BATTLE_1_PLACE_3_TIMES",
|
|
||||||
"reward": 10,
|
|
||||||
"gameMode": "BATTLE_ROYALE"
|
|
||||||
},
|
|
||||||
"$type": "FirstPlaceGameModeType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_50_CARS_CITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_50_CARS_CITY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 50,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_50_CARS_CITY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "CAR",
|
|
||||||
"level": "City"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_CITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_CITY": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_CITY",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "City"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_20_TRAFFIC_LIGHTS_CITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_20_TRAFFIC_LIGHTS_CITY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 20,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_20_TRAFFIC_LIGHTS_CITY",
|
|
||||||
"reward": 10,
|
|
||||||
"objectType": "TRAFFIC_LIGHT",
|
|
||||||
"level": "City"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "SCORE_2000_CLASSIC",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"SCORE_2000_CLASSIC": {
|
|
||||||
"ClassicGameModeType": {
|
|
||||||
"_data": {
|
|
||||||
"id": null,
|
|
||||||
"description": "SCORE_2000_CLASSIC",
|
|
||||||
"reward": 10,
|
|
||||||
"count": 1,
|
|
||||||
"score": 2000
|
|
||||||
},
|
|
||||||
"$type": "ClassicGameModeType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_KNIGHTS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_KNIGHTS": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_KNIGHTS",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Knights"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_30_BAMBOO_JAPAN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_30_BAMBOO_JAPAN": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 30,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_30_BAMBOO_JAPAN",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BAMBOO",
|
|
||||||
"level": "Japan"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "BEST_IN_TEAMS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"BEST_IN_TEAMS": {
|
|
||||||
"BestInTeamType": {
|
|
||||||
"_data": {
|
|
||||||
"id": null,
|
|
||||||
"description": "BEST_IN_TEAMS",
|
|
||||||
"reward": 5,
|
|
||||||
"count": 1
|
|
||||||
},
|
|
||||||
"$type": "BestInTeamType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_250_OBJECTS_SIZE_1",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_250_OBJECTS_SIZE_1": {
|
|
||||||
"EatSpecificSizeObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 250,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_250_OBJECTS_SIZE_1",
|
|
||||||
"reward": 20,
|
|
||||||
"points": 1
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificSizeObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_WESTERN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_WESTERN": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_WESTERN",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Western"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_100_TREES",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_100_TREES": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 100,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_100_TREES",
|
|
||||||
"reward": 10,
|
|
||||||
"objectType": "TREE_HALF_POINTS,TREE,SAKURA,BAMBOO,PALM,TREE_WITH_FRUITS,ALL_TREES",
|
|
||||||
"level": "ANY"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_JAPAN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_JAPAN": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_JAPAN",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Japan"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "TEAMS_1_PLACE_3_TIMES",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"TEAMS_1_PLACE_3_TIMES": {
|
|
||||||
"FirstPlaceGameModeType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "TEAMS_1_PLACE_3_TIMES",
|
|
||||||
"reward": 10,
|
|
||||||
"gameMode": "TEAMS"
|
|
||||||
},
|
|
||||||
"$type": "FirstPlaceGameModeType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_25_SAKURA_JAPAN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_25_SAKURA_JAPAN": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 25,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_25_SAKURA_JAPAN",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "SAKURA",
|
|
||||||
"level": "Japan"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_100_HUMAN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_100_HUMAN": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 100,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_100_HUMAN",
|
|
||||||
"reward": 10,
|
|
||||||
"objectType": "HUMAN,POLICEMAN,ANDROID,ALL_HUMAN",
|
|
||||||
"level": "ANY"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_SCIFI",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_SCIFI": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_SCIFI",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "SciFi"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_25_CHICKEN_CARTOON",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_25_CHICKEN_CARTOON": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 25,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_25_CHICKEN_CARTOON",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "CHICKEN",
|
|
||||||
"level": "CartoonTown"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_PIRATES",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_PIRATES": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_PIRATES",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Pirates"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_75_BUILDINGS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_75_BUILDINGS": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 75,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_75_BUILDINGS",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BUILDING",
|
|
||||||
"level": "ANY"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_APOCCITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_APOCCITY": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_APOCCITY",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "ApocCity"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_25_PALMS_PIRATES",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_25_PALMS_PIRATES": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 25,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_25_PALMS_PIRATES",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "PALM",
|
|
||||||
"level": "Pirates"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_YELLOW_POLES_CITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_YELLOW_POLES_CITY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 50,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_YELLOW_POLES_CITY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "YELLOW_POLE",
|
|
||||||
"level": "City"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_20_TENTS_KNIGHTS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_20_TENTS_KNIGHTS": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 20,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_20_TENTS_KNIGHTS",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "TENT",
|
|
||||||
"level": "Knights"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_FARM",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_FARM": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_FARM",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Farm"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_15_TRACTORS_FARM",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_15_TRACTORS_FARM": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 15,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_15_TRACTORS_FARM",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "TRACTOR",
|
|
||||||
"level": "Farm"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_20_TRAINS_INDUSTRIAL",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_20_TRAINS_INDUSTRIAL": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 20,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_20_TRAINS_INDUSTRIAL",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "TRAIN",
|
|
||||||
"level": "Industrial"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_CARTOON_TOWN",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_CARTOON_TOWN": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_CARTOON_TOWN",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "CartoonTown"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_80_BARRELS_INDUSTRIAL",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_80_BARRELS_INDUSTRIAL": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 80,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_80_BARRELS_INDUSTRIAL",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BARREL",
|
|
||||||
"level": "Industrial"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_CACTI_WILD_WEST",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_CACTI_WILD_WEST": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 50,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_CACTI_WILD_WEST",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "CACTOO",
|
|
||||||
"level": "Western"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_VIKINGS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_VIKINGS": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_VIKINGS",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Vikings"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_HORSES_WILD_WEST",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_HORSES_WILD_WEST": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 40,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_HORSES_WILD_WEST",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "HORSE",
|
|
||||||
"level": "Western"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_DRAKKARS_VIKINGS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_DRAKKARS_VIKINGS": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 30,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_DRAKKARS_VIKINGS",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "DRAKKAR",
|
|
||||||
"level": "Vikings"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_FIRE_BARRELS_APOCCITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_FIRE_BARRELS_APOCCITY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 10,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_FIRE_BARRELS_APOCCITY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BARREL_WITH_FIRE",
|
|
||||||
"level": "ApocCity"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_TRAFFIC_CONES_CITY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_TRAFFIC_CONES_CITY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 25,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_TRAFFIC_CONES_CITY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "TRAFFIC_CONE",
|
|
||||||
"level": "City"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_INDUSTRIAL",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_INDUSTRIAL": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_INDUSTRIAL",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Industrial"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_200_BUILDINGS_CANDY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_200_BUILDINGS_CANDY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 200,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_200_BUILDINGS_CANDY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BUILDING",
|
|
||||||
"level": "Candy"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_MILITARY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_MILITARY": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_MILITARY",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Military"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_300_BOXES_MARS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_300_BOXES_MARS": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 300,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_300_BOXES_MARS",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BOX",
|
|
||||||
"level": "Mars"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_STREETRACING",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_STREETRACING": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_STREETRACING",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "StreetRacingPort"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_50_PALMS_MILITARY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_50_PALMS_MILITARY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 50,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_50_PALMS_MILITARY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "PALM",
|
|
||||||
"level": "Military"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_FANTASY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_FANTASY": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_FANTASY",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Fantasy"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_1000_TRAFFIC_CONES_STREETRACING",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_1000_TRAFFIC_CONES_STREETRACING": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 1000,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_1000_TRAFFIC_CONES_STREETRACING",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "TRAFFIC_CONE",
|
|
||||||
"level": "StreetRacingPort"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_MARS",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_MARS": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_MARS",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Mars"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_100_BARRELS_MILITARY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_100_BARRELS_MILITARY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 100,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_100_BARRELS_MILITARY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BARREL",
|
|
||||||
"level": "Military"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "PLAY_LEVEL_CANDY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"PLAY_LEVEL_CANDY": {
|
|
||||||
"PlaySpecificLevelType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 3,
|
|
||||||
"id": null,
|
|
||||||
"description": "PLAY_LEVEL_CANDY",
|
|
||||||
"reward": 5,
|
|
||||||
"level": "Candy"
|
|
||||||
},
|
|
||||||
"$type": "PlaySpecificLevelType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Key": "EAT_300_BOXES_FANTASY",
|
|
||||||
"Value": {
|
|
||||||
"selected": false,
|
|
||||||
"data": {
|
|
||||||
"EAT_300_BOXES_FANTASY": {
|
|
||||||
"EatSpecificObjectsType": {
|
|
||||||
"_data": {
|
|
||||||
"count": 300,
|
|
||||||
"id": null,
|
|
||||||
"description": "EAT_300_BOXES_FANTASY",
|
|
||||||
"reward": 5,
|
|
||||||
"objectType": "BOX",
|
|
||||||
"level": "Fantasy"
|
|
||||||
},
|
|
||||||
"$type": "EatSpecificObjectsType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{"m_buildTarget":"WebGL","m_SettingsHash":"b63f50f72170fed41293c054fe2ce379","m_CatalogLocations":[{"m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.bundle","m_Provider":"UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","m_ClassName":"UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData"},"SerializedData":[]}],"m_ProfileEvents":false,"m_LogResourceManagerExceptions":true,"m_ExtraInitializationData":[],"m_DisableCatalogUpdateOnStart":false,"m_IsLocalCatalogInBundle":true,"m_CertificateHandlerType":{"m_AssemblyName":"","m_ClassName":""},"m_AddressablesVersion":"1.21.1","m_maxConcurrentWebRequests":500,"m_CatalogRequestsTimeout":0}
|
|
@ -1,221 +0,0 @@
|
|||||||
var currentScriptPath = function () {
|
|
||||||
|
|
||||||
var currentScript = document.currentScript.src;
|
|
||||||
var currentScriptChunks = currentScript.split( '/' );
|
|
||||||
var currentScriptFile = currentScriptChunks[ currentScriptChunks.length - 1 ];
|
|
||||||
|
|
||||||
return currentScript.replace( currentScriptFile, '' );
|
|
||||||
}
|
|
||||||
|
|
||||||
function waitForElement(selector) {
|
|
||||||
return new Promise(function(resolve, reject) {
|
|
||||||
var element = document.querySelector(selector);
|
|
||||||
|
|
||||||
if(element) {
|
|
||||||
resolve(element);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var observer = new MutationObserver(function(mutations) {
|
|
||||||
mutations.forEach(function(mutation) {
|
|
||||||
var nodes = Array.from(mutation.addedNodes);
|
|
||||||
for(var node of nodes) {
|
|
||||||
if(node.matches && node.matches(selector)) {
|
|
||||||
observer.disconnect();
|
|
||||||
resolve(node);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
observer.observe(document.documentElement, { childList: true, subtree: true });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
var container = document.querySelector("#webgl-content");
|
|
||||||
var canvas = document.querySelector("#gameContainer");
|
|
||||||
var buildUrl = currentScriptPath();
|
|
||||||
var loaderUrl = buildUrl + "Builds.loader.js";
|
|
||||||
|
|
||||||
var config = {
|
|
||||||
dataUrl: buildUrl + "Builds.data.unityweb",
|
|
||||||
frameworkUrl: buildUrl + "Builds.framework.js.unityweb",
|
|
||||||
codeUrl: buildUrl + "Builds.wasm.unityweb",
|
|
||||||
streamingAssetsUrl: buildUrl + "StreamingAssets",
|
|
||||||
companyName: "DRA.RU",
|
|
||||||
productName: "HOLE.io",
|
|
||||||
productVersion: "3.0",
|
|
||||||
};
|
|
||||||
|
|
||||||
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
|
||||||
// Mobile device style: fill the whole browser client area with the game canvas:
|
|
||||||
|
|
||||||
var meta = document.createElement('meta');
|
|
||||||
meta.name = 'viewport';
|
|
||||||
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
|
|
||||||
document.getElementsByTagName('head')[0].appendChild(meta);
|
|
||||||
//container.className = "unity-mobile";
|
|
||||||
|
|
||||||
// To lower canvas resolution on mobile devices to gain some
|
|
||||||
// performance, uncomment the following line:
|
|
||||||
// config.devicePixelRatio = 1;
|
|
||||||
|
|
||||||
canvas.style.width = window.innerWidth + 'px';
|
|
||||||
canvas.style.height = window.innerHeight + 'px';
|
|
||||||
|
|
||||||
window.onresize = function () {
|
|
||||||
console.log("window.innerWidth=" + window.innerWidth);
|
|
||||||
canvas.style.width = window.innerWidth + 'px';
|
|
||||||
canvas.style.height = window.innerHeight + 'px';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var script = document.createElement("script");
|
|
||||||
script.src = loaderUrl;
|
|
||||||
var gameInstance = {};
|
|
||||||
|
|
||||||
//var canvas = document.querySelector("#gameContainer");
|
|
||||||
waitForElement("#gameContainer").then(
|
|
||||||
function(gameContainerCanvas) {
|
|
||||||
script.onload = () => {
|
|
||||||
createUnityInstance(gameContainerCanvas, config, (progress) => {
|
|
||||||
UnityProgress(progress);
|
|
||||||
}).then((unityInstance) => {
|
|
||||||
console.log("Unity Instance created");
|
|
||||||
gameInstance = unityInstance;
|
|
||||||
CallParameterless = gameInstance.Module.cwrap('call_cb_v', null, []);
|
|
||||||
SendMessageInt = gameInstance.Module.cwrap('call_cb_vi', null, ['number']);
|
|
||||||
SendMessageFloat = gameInstance.Module.cwrap('call_cb_vf', null, ['number']);
|
|
||||||
SendMessageString = gameInstance.Module.cwrap('call_cb_vs', null, ['string']);
|
|
||||||
SendMessageByteArray = gameInstance.Module.cwrap('call_cb_vb', null, ['number', 'number']);
|
|
||||||
SendMessageVector3 = gameInstance.Module.cwrap('call_cb_vv3', null, ['number']);
|
|
||||||
c_vv3json = gameInstance.Module.cwrap('call_cb_vv3json', null, ['string']);
|
|
||||||
c_vx = gameInstance.Module.cwrap('call_cb_vx', null, ['number', 'number', 'number', 'number']);
|
|
||||||
c_vxjson = gameInstance.Module.cwrap('call_cb_vxjson', null, ['string']);
|
|
||||||
c_i = gameInstance.Module.cwrap('call_cb_i', 'number', []);
|
|
||||||
c_f = gameInstance.Module.cwrap('call_cb_f', 'number', []);
|
|
||||||
c_s = gameInstance.Module.cwrap('call_cb_s', 'string', []);
|
|
||||||
|
|
||||||
gameInstance.SendMessage = function (param) {
|
|
||||||
//console.log("gameInstance.SendMessage: " + param);
|
|
||||||
if (param === undefined) {
|
|
||||||
if (typeof this.SendMessage_vss != 'function')
|
|
||||||
this.SendMessage_vss = CallParameterless;
|
|
||||||
this.SendMessage_vss();
|
|
||||||
} else if (typeof param === "string") {
|
|
||||||
//console.log("SendMessage string ");
|
|
||||||
|
|
||||||
if (typeof this.SendMessage_vsss != 'function')
|
|
||||||
this.SendMessage_vsss = SendMessageString;
|
|
||||||
this.SendMessage_vsss(param);
|
|
||||||
} else if (typeof param === "number") {
|
|
||||||
if (typeof this.SendMessage_vssn != 'function')
|
|
||||||
this.SendMessage_vssn = SendMessageFloat;
|
|
||||||
this.SendMessage_vssn(param);
|
|
||||||
} else if (param instanceof Uint8Array) {
|
|
||||||
if (typeof this.SendMessage_vb != 'function')
|
|
||||||
this.SendMessage_vb = SendMessageByteArray;
|
|
||||||
var ptr = gameInstance.Module._malloc(param.byteLength);
|
|
||||||
var dataHeap = new Uint8Array(gameInstance.Module.HEAPU8.buffer, ptr, param.byteLength);
|
|
||||||
dataHeap.set(param);
|
|
||||||
|
|
||||||
this.SendMessage_vb(ptr, param.length);
|
|
||||||
} else
|
|
||||||
throw "" + param + " is does not have a type which is supported by SendMessage.";
|
|
||||||
};
|
|
||||||
var getPlayerIdObj = {
|
|
||||||
eventName : "getPlayerId",
|
|
||||||
data : {
|
|
||||||
playerId : window.player_id
|
|
||||||
}
|
|
||||||
};
|
|
||||||
gameInstance.SendMessage(JSON.stringify(getPlayerIdObj));
|
|
||||||
}).catch((message) => {
|
|
||||||
alert(message);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
document.body.appendChild(script);
|
|
||||||
|
|
||||||
// this function is called from page to send data to Unity
|
|
||||||
window.sendMessageToUnity = function (data) {
|
|
||||||
|
|
||||||
if (!(data instanceof Uint8Array)) {
|
|
||||||
//data = msgpack.encode(data)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.gameInstance.SendMessage === undefined) {
|
|
||||||
console.log("Undefined SendMessage function");
|
|
||||||
} else {
|
|
||||||
//console.log("gameInstance 2 == " + gameInstance.SendMessage);
|
|
||||||
gameInstance.SendMessage(data);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
async function fetchAsync (url) {
|
|
||||||
let response = await fetch(url);
|
|
||||||
let data = await response.json();
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getUserGeneratedSkins() {
|
|
||||||
fetchAsync("https://skins.hole-io.com/skins/getAll").then(function(result) {
|
|
||||||
//console.log( result );
|
|
||||||
var struct = {
|
|
||||||
eventName : "userGeneratedSkins",
|
|
||||||
data : {
|
|
||||||
list : {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
struct.data.list = result;
|
|
||||||
sendMessageToUnity(JSON.stringify(struct));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSkin(id){
|
|
||||||
fetchAsync("https://skins.hole-io.com/skins/" + id).then(function(result) {
|
|
||||||
//console.log( result );
|
|
||||||
var struct = {
|
|
||||||
eventName : "getUserGeneratedSkin",
|
|
||||||
data : {
|
|
||||||
skin : {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
struct.data.skin = result;
|
|
||||||
sendMessageToUnity(JSON.stringify(struct));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSkinPreview(id){
|
|
||||||
fetchAsync("https://skins.hole-io.com/skins/" + id + "/activePreview").then(function(result) {
|
|
||||||
console.log( result );
|
|
||||||
var struct = {
|
|
||||||
eventName : "userGeneratedSkinPreview",
|
|
||||||
data : {
|
|
||||||
preview : {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
struct.data.preview = result;
|
|
||||||
sendMessageToUnity(JSON.stringify(struct));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// this function is called from Unity to send data to server
|
|
||||||
function sendMessageToServer(bytes) {
|
|
||||||
//gameWebSocket.send(bytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
// this function is called by Unity when game is loaded
|
|
||||||
function gameReady() {
|
|
||||||
window.gameStart();
|
|
||||||
// hide web and show webGL unity div
|
|
||||||
}
|
|
||||||
// this function is called by Unity when game is over and score is sent to server
|
|
||||||
function gameOver() {
|
|
||||||
window.gameOverParent();
|
|
||||||
// hide webGL unity div and show web div
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 70 KiB |
Binary file not shown.
Before Width: | Height: | Size: 305 KiB |
@ -1,416 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en-us">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<script src="/js/all.js"></script>
|
|
||||||
<script>
|
|
||||||
alert("if ur seeing this outside of the ui test, i pushed wip code to the main repo :skull: make a bug report\nanyways rn the game is fucked by a piracy check which i gotta remove")
|
|
||||||
</script>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
<title>Hole.io</title>
|
|
||||||
<meta name="description" content="Absorb everyone into your black hole in the new game - Hole.io! Play for free online." />
|
|
||||||
<meta name="keywords" content="Hole.io, holeio" />
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<meta property="og:image" content="images/hole-share.jpg">
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
|
||||||
<meta name="twitter:site" content="https://hole-io.com">
|
|
||||||
<meta name="twitter:title" content="Hole.io">
|
|
||||||
<meta name="twitter:description" content="Absorb everyone into your black hole in the new game - Hole.io! Play for free online.">
|
|
||||||
<meta name="twitter:image:src" content="https://hole-io.com/images/hole-share.jpg">
|
|
||||||
<link rel="shortcut icon" href="favicon.png">
|
|
||||||
<link rel="stylesheet" href="TemplateData/style64.css?v236">
|
|
||||||
<link rel="stylesheet" href="libs/tingle.min.css">
|
|
||||||
<script type="text/javascript"> var CONFIG = {}; CONFIG.BuildPath = "/b/96"</script>
|
|
||||||
<script src="ads.js?v1"></script>
|
|
||||||
<script src="TemplateData/UnityProgress64.js"></script>
|
|
||||||
<script src="b/96/gameWebGL.js" async></script>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="webgl-content">
|
|
||||||
<canvas id="gameContainer"></canvas>
|
|
||||||
<div id="bg"></div>
|
|
||||||
<div id="loadingBox">
|
|
||||||
<div id="loadingInfo">Loading...</div><div id="loadingPercent"></div>
|
|
||||||
<div id="bgBar"></div>
|
|
||||||
<div id="progressBar"></div>
|
|
||||||
<img id="spinner" class="rotate" src="TemplateData/loading_rotate_white.png"/>
|
|
||||||
</div>
|
|
||||||
<div id="ads">
|
|
||||||
<div id="hole-io-com_300x250"> </div>
|
|
||||||
</div>
|
|
||||||
<div id="links">
|
|
||||||
<ul>
|
|
||||||
<li><a onclick="showAboutGameModal();" href="#popup-about">About Game</a></li>
|
|
||||||
<li><a href="https://kevin.games/discord/?game=hole" target="_blank">Discord</a></li>
|
|
||||||
<li><a href="https://hole-io.com/faq/" target="_blank">Faq</a></li>
|
|
||||||
<li><a href="https://hole-io.com/privacy/" target="_blank">Privacy</a></li>
|
|
||||||
<li><a href="https://hole-io.com/partners/" target="_blank">Partners</a></li>
|
|
||||||
<li><a href="https://kevin.games/?referer=hole-io.com" target="_blank">More Games</a></li></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="leaderboard">
|
|
||||||
<div id="fullBoardScore">
|
|
||||||
<h2 class="leaderboardHeading">Today's top scores:</h2>
|
|
||||||
<table id="scoreBoard" cellpadding="0" cellspacing="0">
|
|
||||||
<tbody id="boardScore">
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="fullBoardKills">
|
|
||||||
<h2 class="leaderboardHeading">Today's top killers:</h2>
|
|
||||||
<table id="killBoard" cellpadding="0" cellspacing="0">
|
|
||||||
<tbody id="boardKills">
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="switchBoard">
|
|
||||||
<a id="switchLeaderbBtn" onclick="window.switchLeaderboard();" href="#">Switch</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="ideaBlock">
|
|
||||||
<div id="ideaLink">
|
|
||||||
<a href="https://forms.gle/ixQYUBHzvBHALS4Z9" target="blank">Make Hole.io better!</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="banner">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="popup-about">
|
|
||||||
<h1>Hole.io</h1>
|
|
||||||
<p>Control your black hole, eating up everything on your way. The bigger you get, the larger structures you are able to suck in. Keep an eye on the opponents’ size, too. They can eat you.</p>
|
|
||||||
<h2>Hole.io play online</h2>
|
|
||||||
<p>Absorb everyone into your black hole in the new game - Hole.io</p>
|
|
||||||
<p>Control your round hole and consume everything on your path: cars, houses, people! Engage in battles with other
|
|
||||||
holes in the same city. Grow bigger and more powerful but beware of other players & their holes may be bigger than
|
|
||||||
yours and pull you in.</p>
|
|
||||||
<p>This game literally sucks you in! Try to become the biggest in the city.</p>
|
|
||||||
<p><img style="float: center; margin-right: 10px; margin-top: 3px;" width="150" src="images/hole-io.png" alt="Hole.io" /></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="popup-howtoplay">
|
|
||||||
<h2>How play Hole.io</h2>
|
|
||||||
<p>The gameplay is very easy to get into: all you need to do is move the hole around and let various objects drop into it and disappear into the unknown. The trick is to only go under the objects that can fit inside: start with consuming pedestrians, poles and bushes, move on to cars and ultimately to large buildings. You can also eat other black holes if they are smaller than you.</p>
|
|
||||||
<p>The game takes place in a city area, so the map is comprised of office buildings, apartment complexes, parking lots, roads parks and many other areas usually associated with urban environment. The surroundings are instantly familiar to anyone who has ever seen a big city, so they are pretty easy to navigate. The best game strategy is to plan your way around the areas in advance: think of the most efficient route that will give you enough smaller objects in the beginning and will eventually introduce something bigger and bigger to chew on.</p>
|
|
||||||
<p>Each round only takes a couple of minutes, so don’t get discouraged if you don’t win right away: once you’ve familiarized yourself with the level and the mechanics you will become the master of Hole.io in no-time!</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="popup-tipsandtricks">
|
|
||||||
<h2>Hole.io Tips & Tricks</h2>
|
|
||||||
<p>In this rather unique combination of arcade and puzzle there are lots of little things you can do to outsmart the competition and best every single one of your opponents. Here’s a basic list of effective moves and helpful tips.</p>
|
|
||||||
<p>Since the main mechanic is physics-based it is important to adjust your movement when trying to consume an object. Let’s say you want to eat some traffic lights: sometimes sliding under a vertical pole makes it fall in an unwanted direction and ultimately drop flat on the floor horizontally, thus preventing you from being able to eat it. To prevent that from happening you might want to slow down just a bit or move slightly backwards once the pole start moving in an unwanted direction.</p>
|
|
||||||
<p>It is possible to get larger objects and buildings fall in even if your hole is not big enough: simply place yourself under one of the edges of the object for it to start leaning into the singularity and then move slowly towards its other end gradually consuming the rest.</p>
|
|
||||||
<p>It may be more important to swallow more smaller stuff than fewer big structures. It is common to feel inclined to try and consume huge buildings once the hole gets big enough, however it is a bit of a risk because it’s possible to underestimate the size of an object. If it won’t fit inside, you will end up wasting your time. Instead spend some time adjusting to your new size by going for smaller prey.</p>
|
|
||||||
<p>If you have been having trouble making it to the top of the score board and besting other players, these tips will hopefully help you overcome some of the major difficulties. Ultimately, we tend to produce best results after entering that focused meditative flow state of mind, but you need to become really comfortable and familiar with the game in order to achieve it. Good luck becoming the best at Hole.io!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="rl1"><a href="#popup-howtoplay" onclick="showHowToPlayModal();">How to play</a></div>
|
|
||||||
<div id="rl2"><a href="#popup-tipsandtricks" onclick="showTipsAndTricksModal();">Tips & tricks</a></div>
|
|
||||||
|
|
||||||
<div id="preroll"></div>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.player_id = 1948950085;
|
|
||||||
|
|
||||||
function inIframe () {
|
|
||||||
try {
|
|
||||||
return window.self !== window.top;
|
|
||||||
} catch (e) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
} var ResizeCompleted = 0;
|
|
||||||
function resize() {
|
|
||||||
//if( inIframe && (ResizeCompleted == 1) ) return;
|
|
||||||
var gc = document.getElementById("gameContainer");
|
|
||||||
var h = document.documentElement.clientHeight - 3;
|
|
||||||
gc.style.height = h + "px";
|
|
||||||
gc.style.position = "relative";
|
|
||||||
if( inIframe() )
|
|
||||||
{
|
|
||||||
var ldr = document.getElementById('leaderboard');
|
|
||||||
ldr.style.right = '15px';
|
|
||||||
ldr.style.width = '220px';
|
|
||||||
//var lnks = document.getElementById('links');
|
|
||||||
//lnks.style.right='10px';
|
|
||||||
console.log('resize in iframe');
|
|
||||||
}
|
|
||||||
//ResizeCompleted = 1;
|
|
||||||
}
|
|
||||||
resize();
|
|
||||||
window.onresize = function () {
|
|
||||||
//resize();
|
|
||||||
};
|
|
||||||
function PageIsLoaded()
|
|
||||||
{
|
|
||||||
console.log('PageIsLoaded start');
|
|
||||||
var aipW = document.documentElement.clientWidth+20;
|
|
||||||
var aipH = document.documentElement.clientHeight-29;
|
|
||||||
aiptag.cmd.player.push(function() {
|
|
||||||
try
|
|
||||||
{
|
|
||||||
adplayer = new aipPlayer({
|
|
||||||
AD_WIDTH: aipW,
|
|
||||||
AD_HEIGHT: aipH,
|
|
||||||
AD_FULLSCREEN: false,
|
|
||||||
AD_CENTERPLAYER: false,
|
|
||||||
LOADING_TEXT: 'loading advertisement',
|
|
||||||
DESCRIPTION_URL: 'https://hole-io.com/info.php',
|
|
||||||
PREROLL_ELEM: function(){return document.getElementById('preroll')},
|
|
||||||
AIP_COMPLETE: function () {
|
|
||||||
/*******************
|
|
||||||
***** WARNING *****
|
|
||||||
*******************
|
|
||||||
Please do not remove the PREROLL_ELEM
|
|
||||||
from the page, it will be hidden automaticly.
|
|
||||||
If you do want to remove it use the AIP_REMOVE callback.
|
|
||||||
*/
|
|
||||||
$("#preroll").hide();
|
|
||||||
document.activeElement.blur();
|
|
||||||
document.body.focus();
|
|
||||||
window.sendMessageToUnity("{\"eventName\": \"adsComplete\",\"data\": {\"allow\": \"true\"}}");
|
|
||||||
//alert("Ad Completed");
|
|
||||||
},
|
|
||||||
AIP_REMOVE: function () {
|
|
||||||
// Here it's save to remove the PREROLL_ELEM from the page.
|
|
||||||
// But it's not necessary.
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} catch(err3)
|
|
||||||
{
|
|
||||||
console.log("Error preroll " + e.name + ":" + e.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
console.log('PageIsLoaded end');
|
|
||||||
}
|
|
||||||
var aiptag = aiptag || {};
|
|
||||||
aiptag.cmd = aiptag.cmd || [];
|
|
||||||
aiptag.cmd.display = aiptag.cmd.display || []; aiptag.cmd.player = aiptag.cmd.player || [];
|
|
||||||
// Settings
|
|
||||||
aiptag.consented = true; // GDPR setting, please set this value to false if an EU user has declined or not yet accepted marketing cookies, for users outside the EU please use true and for users accepted the GDPR also use true
|
|
||||||
aiptag.gdprShowConsentTool = true;
|
|
||||||
document.addEventListener("DOMContentLoaded", PageIsLoaded);
|
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
window.HasAdBlock = false;
|
|
||||||
window.adBlockFunction = function(){
|
|
||||||
window.HasAdBlock = true;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script src="libs/jquery-3.3.1.min.js"></script>
|
|
||||||
<script src="libs/tingle.min.js"></script>
|
|
||||||
<script>
|
|
||||||
window.gameLoaded = function () {
|
|
||||||
window.sendMessageToUnity("{\"eventName\": \"setBundlesPath\",\"data\": {\"path\": \"" + CONFIG.BuildPath +"\"}}");
|
|
||||||
$("#ads").show();
|
|
||||||
console.log("getting ads");
|
|
||||||
try
|
|
||||||
{
|
|
||||||
aiptag.cmd.display.push(function() { try{ console.log('adinplay push start'); aipDisplayTag.display('hole-io-com_300x250'); console.log('adinplay push end'); } catch(err2) { console.log('adinplay err'); } });
|
|
||||||
} catch(err) {
|
|
||||||
console.log("Error " + e.name + ":" + e.message);
|
|
||||||
}
|
|
||||||
console.log("got ads.");
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onGamePlayPressed = function () {
|
|
||||||
$("#ads").hide();
|
|
||||||
$("#shares").hide();
|
|
||||||
$("#links").hide();
|
|
||||||
$("#leaderboard").hide();
|
|
||||||
$("#ideaBlock").hide();
|
|
||||||
$("#banner").hide();
|
|
||||||
$("#rl1").hide();
|
|
||||||
$("#rl2").hide();
|
|
||||||
gtag('event', 'GAplay');
|
|
||||||
$("#preroll").show();
|
|
||||||
if( typeof adplayer ==='undefined' )
|
|
||||||
{
|
|
||||||
$("#preroll").hide();
|
|
||||||
document.activeElement.blur();
|
|
||||||
document.body.focus();
|
|
||||||
window.sendMessageToUnity("{\"eventName\": \"adsComplete\",\"data\": {\"allow\": \"true\"}}");
|
|
||||||
} else {
|
|
||||||
aiptag.cmd.player.push(function() { adplayer.startPreRoll(); });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
window.gameStart = function () {
|
|
||||||
}
|
|
||||||
|
|
||||||
window.gameOverParent = function () {
|
|
||||||
$("#shares").show();
|
|
||||||
$("#links").show();
|
|
||||||
$("#leaderboard").show();
|
|
||||||
$("#ideaBlock").show();
|
|
||||||
$("#banner").show();
|
|
||||||
$("#rl1").show();
|
|
||||||
$("#rl2").show();
|
|
||||||
GameAdsRenew("banner");
|
|
||||||
gtag('event', 'GAgameOver');
|
|
||||||
aiptag.cmd.display.push(function() { aipDisplayTag.display('hole-io-com_300x250'); });
|
|
||||||
}
|
|
||||||
|
|
||||||
window.mapsOpen = function(){
|
|
||||||
$("#ads").hide();
|
|
||||||
$("#shares").hide();
|
|
||||||
$("#links").hide();
|
|
||||||
$("#leaderboard").hide();
|
|
||||||
$("#ideaBlock").hide();
|
|
||||||
$("#banner").hide();
|
|
||||||
$("#rl1").hide();
|
|
||||||
$("#rl2").hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.mapsClose = function(){
|
|
||||||
$("#shares").show();
|
|
||||||
$("#links").show();
|
|
||||||
$("#leaderboard").show();
|
|
||||||
$("#ideaBlock").show();
|
|
||||||
$("#banner").show();
|
|
||||||
$("#rl1").show();
|
|
||||||
$("#rl2").show();
|
|
||||||
}
|
|
||||||
|
|
||||||
function showAboutGameModal() {
|
|
||||||
var modal = new tingle.modal({
|
|
||||||
footer: false,
|
|
||||||
stickyFooter: false,
|
|
||||||
closeMethods: ['overlay', 'button', 'escape'],
|
|
||||||
closeLabel: "Close",
|
|
||||||
cssClass: ['custom-class-1', 'custom-class-2'],
|
|
||||||
onOpen: function () {
|
|
||||||
console.log('modal open');
|
|
||||||
},
|
|
||||||
onClose: function () {
|
|
||||||
console.log('modal closed');
|
|
||||||
},
|
|
||||||
beforeClose: function () {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
modal.setContent($("#popup-about").html());
|
|
||||||
modal.open();
|
|
||||||
}
|
|
||||||
function showHowToPlayModal() {
|
|
||||||
var modal = new tingle.modal({
|
|
||||||
footer: false,
|
|
||||||
stickyFooter: false,
|
|
||||||
closeMethods: ['overlay', 'button', 'escape'],
|
|
||||||
closeLabel: "Close",
|
|
||||||
cssClass: ['custom-class-1', 'custom-class-2'],
|
|
||||||
onOpen: function () {
|
|
||||||
console.log('modal open');
|
|
||||||
},
|
|
||||||
onClose: function () {
|
|
||||||
console.log('modal closed');
|
|
||||||
},
|
|
||||||
beforeClose: function () {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
modal.setContent($("#popup-howtoplay").html());
|
|
||||||
modal.open();
|
|
||||||
}
|
|
||||||
|
|
||||||
function showTipsAndTricksModal() {
|
|
||||||
var modal = new tingle.modal({
|
|
||||||
footer: false,
|
|
||||||
stickyFooter: false,
|
|
||||||
closeMethods: ['overlay', 'button', 'escape'],
|
|
||||||
closeLabel: "Close",
|
|
||||||
cssClass: ['custom-class-1', 'custom-class-2'],
|
|
||||||
onOpen: function () {
|
|
||||||
console.log('modal open');
|
|
||||||
},
|
|
||||||
onClose: function () {
|
|
||||||
console.log('modal closed');
|
|
||||||
},
|
|
||||||
beforeClose: function () {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
modal.setContent($("#popup-tipsandtricks").html());
|
|
||||||
modal.open();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.switchBoard = 'Score';
|
|
||||||
|
|
||||||
window.updateLeaderboards = function () {
|
|
||||||
if (window.switchBoard === 'Score') {
|
|
||||||
$("#fullBoardKills").hide();
|
|
||||||
$("#fullBoardScore").show();
|
|
||||||
$("#switchLeaderbBtn").html("Switch to kills");
|
|
||||||
} else if (window.switchBoard === 'Kills') {
|
|
||||||
$("#fullBoardKills").show();
|
|
||||||
$("#fullBoardScore").hide();
|
|
||||||
$("#switchLeaderbBtn").html("Switch to score");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.switchLeaderboard = function () {
|
|
||||||
if (window.switchBoard === 'Score') {
|
|
||||||
window.switchBoard = 'Kills';
|
|
||||||
} else if (window.switchBoard === 'Kills') {
|
|
||||||
window.switchBoard = 'Score';
|
|
||||||
}
|
|
||||||
window.updateLeaderboards();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.checkGameOverScreenOn = function () {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.makeLeaderBoard = function (id, ar, colName, fontSize) {
|
|
||||||
console.log('makeLeaderboard - '.concat(id));
|
|
||||||
var table = document.getElementById(id);
|
|
||||||
if (table === null)
|
|
||||||
return;
|
|
||||||
table.innerHTML = "";
|
|
||||||
table.innerHTML += '<th><tr style="background-color: #959595; font-size: 22px; height: 30px "><td>' + "Rank" +
|
|
||||||
'</td><td style="width:50%;">' + "Name" + '</td><td style="font-size: ' + fontSize + 'px;" valign="middle">' + colName + '</td></tr></th>'
|
|
||||||
let counterIncrement = 1;
|
|
||||||
var top10 = ar.slice(0,10);
|
|
||||||
top10.forEach(function (e) {
|
|
||||||
var userName = e.userName;
|
|
||||||
if( userName.length > 11 ) userName = userName.substring(0,11);
|
|
||||||
table.innerHTML += '<tr><td>' + counterIncrement + '</td><td style="width:50%; height: 30px">' + userName +
|
|
||||||
'</td><td>' + e.leaderboardValue + '</td></tr>';
|
|
||||||
counterIncrement++;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
window.sendToApi = function () {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.fetchApi = function () {
|
|
||||||
console.log('received from api');
|
|
||||||
fetch('https://topgamedata.com/json/hole_kills_1.json')
|
|
||||||
.then(function (response) {
|
|
||||||
return response.json();
|
|
||||||
})
|
|
||||||
.then(function (myJson) {
|
|
||||||
console.log("kills:");
|
|
||||||
window.makeLeaderBoard('boardKills', myJson, 'Kills', '22');
|
|
||||||
});
|
|
||||||
fetch('https://topgamedata.com/json/hole_score_1.json')
|
|
||||||
.then(function (response) {
|
|
||||||
return response.json();
|
|
||||||
})
|
|
||||||
.then(function (myJson) {
|
|
||||||
console.log("score:");
|
|
||||||
window.makeLeaderBoard('boardScore', myJson, 'Score', '22');
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
window.updateLeaderboards();
|
|
||||||
window.fetchApi();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
2
holeio/libs/jquery-3.3.1.min.js
vendored
2
holeio/libs/jquery-3.3.1.min.js
vendored
File diff suppressed because one or more lines are too long
1
holeio/libs/tingle.min.css
vendored
1
holeio/libs/tingle.min.css
vendored
@ -1 +0,0 @@
|
|||||||
.tingle-modal *{box-sizing:border-box}.tingle-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:-webkit-box;display:-ms-flexbox;display:flex;visibility:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;-webkit-overflow-scrolling:touch;background:rgba(0,0,0,.8);opacity:0;cursor:pointer;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.tingle-modal--noClose .tingle-modal__close,.tingle-modal__closeLabel{display:none}.tingle-modal--confirm .tingle-modal-box{text-align:center}.tingle-modal--noOverlayClose{cursor:default}.tingle-modal__close{position:fixed;top:10px;right:28px;z-index:1000;padding:0;width:5rem;height:5rem;border:none;background-color:transparent;color:#f0f0f0;font-size:6rem;font-family:monospace;line-height:1;cursor:pointer;-webkit-transition:color .3s ease;transition:color .3s ease}.tingle-modal__close:hover{color:#fff}.tingle-modal-box{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:auto;margin-bottom:auto;width:60%;border-radius:4px;background:#fff;opacity:1;cursor:auto;-webkit-transition:-webkit-transform .3s cubic-bezier(.175,.885,.32,1.275);transition:-webkit-transform .3s cubic-bezier(.175,.885,.32,1.275);transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transition:transform .3s cubic-bezier(.175,.885,.32,1.275),-webkit-transform .3s cubic-bezier(.175,.885,.32,1.275);-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8)}.tingle-modal-box__content{padding:3rem}.tingle-modal-box__footer{padding:1.5rem 2rem;width:auto;border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#f5f5f5;cursor:auto}.tingle-modal-box__footer::after{display:table;clear:both;content:""}.tingle-modal-box__footer--sticky{position:fixed;bottom:-200px;z-index:10001;opacity:1;-webkit-transition:bottom .3s ease-in-out .3s;transition:bottom .3s ease-in-out .3s}.tingle-enabled{position:fixed;overflow:hidden;left:0;right:0}.tingle-modal--visible .tingle-modal-box__footer{bottom:0}.tingle-enabled .tingle-content-wrapper{-webkit-filter:blur(8px);filter:blur(8px)}.tingle-modal--visible{visibility:visible;opacity:1}.tingle-modal--visible .tingle-modal-box{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.tingle-modal--overflow{overflow-y:scroll;padding-top:8vh}.tingle-btn{display:inline-block;margin:0 .5rem;padding:1rem 2rem;border:none;background-color:grey;box-shadow:none;color:#fff;vertical-align:middle;text-decoration:none;font-size:inherit;font-family:inherit;line-height:normal;cursor:pointer;-webkit-transition:background-color .4s ease;transition:background-color .4s ease}.tingle-btn--primary{background-color:#3498db}.tingle-btn--danger{background-color:#e74c3c}.tingle-btn--default{background-color:#34495e}.tingle-btn--pull-left{float:left}.tingle-btn--pull-right{float:right}@media (max-width :540px){.tingle-modal{top:0;display:block;padding-top:60px;width:100%}.tingle-modal-box{width:auto;border-radius:0}.tingle-modal-box__content{overflow-y:scroll}.tingle-modal--noClose{top:0}.tingle-modal--noOverlayClose{padding-top:0}.tingle-modal-box__footer .tingle-btn{display:block;float:none;margin-bottom:1rem;width:100%}.tingle-modal__close{top:0;right:0;left:0;display:block;width:100%;height:60px;border:none;background-color:#2c3e50;box-shadow:none;color:#fff;line-height:55px}.tingle-modal__closeLabel{display:inline-block;vertical-align:middle;font-size:1.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.tingle-modal__closeIcon{display:inline-block;margin-right:.5rem;vertical-align:middle;font-size:4rem}}@supports ((-webkit-backdrop-filter:blur(12px)) or (backdrop-filter:blur(12px))){.tingle-modal{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}@media (max-width :540px){.tingle-modal{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}}.tingle-enabled .tingle-content-wrapper{-webkit-filter:none;filter:none}}
|
|
1
holeio/libs/tingle.min.js
vendored
1
holeio/libs/tingle.min.js
vendored
File diff suppressed because one or more lines are too long
@ -70,9 +70,8 @@ function panicMode() {
|
|||||||
const head = document.getElementsByTagName('head')[0];
|
const head = document.getElementsByTagName('head')[0];
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
setCloak();
|
setCloak();
|
||||||
var jquery = document.createElement('script');
|
var jquery = document.createElement('script');
|
||||||
jquery.type = 'text/javascript';
|
jquery.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js';
|
||||||
jquery.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js';
|
|
||||||
const gscript = document.createElement("script");
|
const gscript = document.createElement("script");
|
||||||
gscript.setAttribute("async", "");
|
gscript.setAttribute("async", "");
|
||||||
gscript.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V");
|
gscript.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-XVTVBR1D5V");
|
||||||
@ -94,6 +93,5 @@ function defer(method) {
|
|||||||
panicMode();
|
panicMode();
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function() { defer(method) }, 50);
|
setTimeout(function() { defer(method) }, 50);
|
||||||
console.log("jquery not found, adding jquery.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user