UNPKG

@oppendev/mythoslessons-tiny-fishing

Version:

tiny-fishing browser game

349 lines (305 loc) • 9.84 kB
<html lang="en"><head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="pragma" content="no-cache"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta charset="utf-8"> <!-- <script src="/poki-sdk.js"></script> --> <!-- Set the title bar of the page --> <title>Tiny Fishing - Games | 𝙉𝙖𝙩𝙞𝙫𝙚</title> <script async src="https://arc.io/widget.min.js#5XPTU21J"><script data-goatcounter="https://parcoil.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script></script><script src="maintenance.js/"></script><script> if (typeof navigator.serviceWorker !== 'undefined') { navigator.serviceWorker.register('sw.js') } </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-W8NZMM8WN9"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-W8NZMM8WN9'); </script><link rel="manifest" href="manifest.json"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="application-name" content="Native"> <meta name="apple-mobile-web-app-title" content="Native"> <meta name="theme-color" content="#0275d8"> <meta name="msapplication-navbutton-color" content="#0275d8"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="msapplication-starturl" content="/"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="Tiny Fishing is a fishing game where you have to upgrade your gear to get bigger fish."> <meta name="robots" content="noindex,nofollow" /> <script type="text/javascript" src="/cloak.js"></script> <!-- Set the background colour of the document --> <style> body { background: #0; color:#cccccc; margin: 0px; padding: 0px; border: 0px; } canvas { image-rendering: optimizeSpeed; -webkit-interpolation-mode: nearest-neighbor; -ms-touch-action: none; margin: 0px; padding: 0px; border: 0px; } :-webkit-full-screen #canvas { width: 100%; height: 100%; } invisible_button { background-color: rgba(1, 1, 1, 1); background-repeat: no-repeat; border: none; cursor: disabled; overflow: hidden; outline: none; bottom: 0; left: 0; position: absolute; width: 100px; height: 100px; top: 0px; left: 0px; pointer-events: none; filter: alpha(opacity=0); -mos-opacity: 0.0; opacity: 0.0; display: block; z-index: 2; -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select:none; /* Introduced in IE 10. See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/ */ -ms-user-select: none; user-select: none; } div.gm4html5_div_class { margin: 0px; padding: 0px; border: 0px; } /* START - Login Dialog Box */ div.gm4html5_login { padding: 20px; position: absolute; border: solid 2px #000000; background-color: #404040; color:#00ff00; border-radius: 15px; box-shadow: #101010 20px 20px 40px; } div.gm4html5_cancel_button { float: right; } div.gm4html5_login_button { float: left; } div.gm4html5_login_header { text-align: center; } /* END - Login Dialog Box */ :-webkit-full-screen { width: 100%; height: 100%; } #sbar1 { border-radius: 25px; background: #73AD21; padding: 20px; width: 200px; height: 150px; } </style> <script> if(!Number.isNaN && window.isNaN) Number.isNaN = isNaN; //if (typeof Math.sign === 'undefined') { Math.sign = function (x) { return x > 0 ? 1 : x < 0 ? -1 : x; } } </script> <style> .pokiSdkContainer { overflow: hidden; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; } .pokiSdkContainer.pokiSdkFixed { position: fixed; } .pokiSdkContainer.pokiSdkVisible { display: block; } .pokiSdkContainer.pokiSdkHidden, .pokiSdkSpinnerContainer.pokiSdkHidden { display: none; } .pokiSdkContainer.pokiSdkHidden, .pokiSdkSpinnerContainer { pointer-events: none; } .pokiSdkSpinnerContainer { z-index: 10; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://a.poki.com/images/thumb_anim_2x.gif') 50% 50% no-repeat; user-select: none; } .pokiSdkInsideContainer { background: #000; position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; opacity: 0; -webkit-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out; -ms-transition: opacity 0.5s ease-in-out; -o-transition: opacity 0.5s ease-in-out; transition: opacity 0.5s ease-in-out; } .pokiSdkContainer.pokiSdkVisible .pokiSdkInsideContainer { opacity: 1; } .pokiSDKAdContainer, .pokiSdkVideoContainer { position: absolute; width: 100%; height: 100%; } .pokiSdkStartAdButton { position: absolute; z-index: 9999; top: 0; padding-top: 10%; width: 100%; height: 100%; text-align: center; color: #FFF; font: 700 15pt 'Arial', sans-serif; font-weight: bold; letter-spacing: 1px; transition: 0.1s ease-in-out; line-height: 1em; } .pokiSdkPauseButton { cursor:pointer; position: absolute; top: 50%; left: 50%; z-index: 1; } .pokiSdkPauseButton:before { content: ''; position: absolute; width: 100px; height: 100px; display: block; border: 2px solid #fff; border-radius: 50%; user-select: none; background-color: rgba(0, 0, 0, 0.6); transition: background-color 0.5s ease; animation: 1s linear infinite pulse; } .pokiSdkPauseButton:after { content: ''; position: absolute; display: block; box-sizing: border-box; border-color: transparent transparent transparent #fff; border-style: solid; border-width: 26px 0 26px 40px; pointer-events: none; animation: 1s linear infinite pulse; left: 6px; } .pokiSdkPauseButtonBG { position: fixed; top: 0; left: 0; display: block; content: ''; background: rgba(0, 43, 80, 0.5); width: 100%; height: 100%; } .pokiSdkPauseButtonBG:hover{ background: rgba(0, 43, 80, 0.7); } @keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.95); } 70% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(0.95); } } .pokiSdkProgressContainer { background: #B8C7DD; width: 100%; height: 5px; position: absolute; bottom: 0; z-index: 9999; } .pokiSdkProgressBar { position:relative; bottom:0px; background: #FFDC00; height: 100%; width: 0%; transition: width 0.5s; transition-timing-function: linear; } .pokiSdkProgressBar.pokiSdkVisible, .pokiSdkPauseButton.pokiSdkVisible, .pokiSdkStartAdButton.pokiSdkVisible { display: block; pointer-events: auto; } .pokiSdkProgressBar.pokiSdkHidden, .pokiSdkPauseButton.pokiSdkHidden, .pokiSdkStartAdButton.pokiSdkHidden { display: none; pointer-events: none; } </style></head> <body style="overflow: hidden;"> <div class="gm4html5_div_class" id="gm4html5_div_id" style="padding-top: 20px; position: absolute; height: 488px;"> <canvas id="canvas" width="640" height="360" style="position: absolute; left: 0px; top: 0px; width: 640px; height: 360px;"> <p>Your browser doesn't support HTML5 canvas.</p> </canvas> </div> <!-- Run the game code --> <script type="text/javascript" src="html5game/TinyFishing.js"></script> <script> if(!window.AudioContext && !window.webkitAudioContext) g_WebAudioContext = {}; GameMaker_Init(); if(!window.AudioContext && !window.webkitAudioContext) g_WebAudioContext = null; </script> </body></html>