February 14, 20206 yr Was willst du uns damit sagen? Umbau eines HTML5 Spiel für die Arcade? What do you mean by that? Rebuilding an HTML5 game for the arcade?
February 14, 20206 yr translated in the game.js search GameAds! == replace GameAds == Find {Data} else {return;} replace {Return;} else {return;} Find <H1> This \ x20game \ x20is \ x20developed \ x20by </ h1> replace Find https://cdn.htmlgames.com/cookie/ replace js / index.htm Find https://cdn.htmlgames.com/cookie/policy/ replace js / index.htm Find https://cdn.htmlgames.com replace js / index.htm Find //www.google-analytics.com/analytics.js https://twitter.com/intent/tweet?original_referer= https://pinterest.com/pin/create/button/?url= https://www.facebook.com/sharer/sharer.php?u= whatsapp: // sending text = https://htmlgames.com replace js / index.htm Find https://adservice.google.com/getconfig/pubvendors replace js / index.htm
February 14, 20206 yr It's for games from htmlgames.com only And here is my description on how to edit game.js edit game.js remove ads and remove use cookie: STEP 1 In line find Search for GameAds! Code: Select all if(typeof GameAds!==_0xffb4('0x6a')&&GameAds[_0xffb4('0x219')]()){setTimeout(function(){GameAds['requestAd'](GameMenu['startGame']);},0x0);}else delete this code STEP 2 Find Code: Select all {data;}else{return;} Replace with Code: Select all {return;}else{return;} STEP 3 Only 100% hits should be replaced! Find Code: Select all https://cdn.htmlgames.com/cookie/ Replace with Code: Select all js/index.htm STEP 4 Find Code: Select all //www.google-analytics.com/analytics.js Replace with Code: Select all js/index.htm STEP 5 Find Code: Select all https://adservice.google.com/getconfig/pubvendors Replace with Code: Select all js/index.htm That's all
February 14, 20206 yr Then go to ThirdParty.js and find submitScore: after function(score) { insert let pathArray = window.location.pathname.split('/'); let newpath = ''; if (pathArray[1] && pathArray[1] != 'arcade' && pathArray[1] != 'games') { newpath = '/' + pathArray[1]; } scorepost(window.location.protocol + '//' + window.location.hostname + newpath + '/index.php?act=Arcade&do=newscore', { gname : 'AfriSavanah_Origon', gscore: score }); Change the gname to your file name and gscore is always score in these games
February 14, 20206 yr In the games index.html just before (/head) insert this code <script type="text/javascript"> function scorepost(href, inputs) { var gform = document.createElement('form'); gform.method = 'post'; gform.action = href; gform.target = '_parent'; for (var k in inputs) { var input = document.createElement('input'); input.setAttribute('name', k); input.setAttribute('value', inputs[k]); gform.appendChild(input); } document.body.appendChild(gform); gform.submit(); document.body.removeChild(gform); } </script> and your game should work fine in IpsProArcade
February 19, 20206 yr Author ok..now make the games yourself with a game engine https://www.clickteam.com/ much to learn, but fun
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.