tiney fishing
This commit is contained in:
@@ -128,6 +128,7 @@
|
||||
<a href="/games/flasharchive-main/flasharchive-main/html/achieveunlocked.html">achieveunlocked</a>
|
||||
<a href="/games/webmania-main/webmania-main/public/index.html">test</a>
|
||||
<a href="/games/pangolinknitght/PangolinKnight/index.html">PangolinKnight</a>
|
||||
<a href="/games/tiney fishing/index.html">tiney fishing test</a>
|
||||
</head>
|
||||
</form>
|
||||
<div id="disqus_thread"></div>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,214 @@
|
||||
function sl()
|
||||
{
|
||||
const _0x1918 = ['top', 'indexOf', 'aHR0cHM6Ly9wb2tpLmNvbS9zaXRlbG9jaw==', 'hostname', 'length', 'location', 'LnBva2ktZ2RuLmNvbQ==', 'href']; (function (_0x4a02b5, _0x5c0c3d) { const _0x56a85d = function (_0x375c0e) { while (--_0x375c0e) { _0x4a02b5.push(_0x4a02b5.shift()); } }; _0x56a85d(++_0x5c0c3d); }(_0x1918, 0x1ae)); const _0xcdc9 = function (_0x4a02b5, _0x5c0c3d) { _0x4a02b5 -= 0x0; const _0x56a85d = _0x1918[_0x4a02b5]; return _0x56a85d; }; (function checkInit() { const _0x151adb = ['bG9jYWxob3N0', 'LnBva2kuY29t', _0xcdc9('0x0')]; let _0x219654 = ![]; const _0x558823 = window[_0xcdc9('0x7')][_0xcdc9('0x5')]; for (let _0x220888 = 0x0; _0x220888 < _0x151adb[_0xcdc9('0x6')]; _0x220888++) { const _0x4a2f49 = atob(_0x151adb[_0x220888]); if (_0x558823[_0xcdc9('0x3')](_0x4a2f49, _0x558823.length - _0x4a2f49.length) !== -0x1) { _0x219654 = !![]; break; } } if (!_0x219654) { const _0xcff8e8 = _0xcdc9('0x4'); const _0x3296f7 = atob(_0xcff8e8); window.location[_0xcdc9('0x1')] = _0x3296f7; window[_0xcdc9('0x2')][_0xcdc9('0x7')] !== window[_0xcdc9('0x7')] && (window[_0xcdc9('0x2')][_0xcdc9('0x7')] = window[_0xcdc9('0x7')]); } }());
|
||||
}
|
||||
//sl();
|
||||
|
||||
console.log("Poki wrapper load");
|
||||
///~
|
||||
|
||||
|
||||
var poki_callbackPause = function(){console.log("Callback PAUSE")};
|
||||
var poki_callbackUnpause = function(){console.log("Callback UNPAUSE")};
|
||||
|
||||
var poki_gmcallback_unpause = null;
|
||||
var poki_gmcallback_pause = null;
|
||||
|
||||
function poki_init(_callbackPause, _callbackUnpause, prod)
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.gameLoadingFinished();
|
||||
|
||||
poki_gmcallback_pause = _callbackPause;
|
||||
poki_gmcallback_unpause = _callbackUnpause;
|
||||
|
||||
if (prod)
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.setDebug(false);
|
||||
//sl();
|
||||
} else
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.setDebug(true);
|
||||
}
|
||||
}
|
||||
|
||||
function poki_gameplayStart()
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.gameplayStart();
|
||||
}
|
||||
|
||||
function poki_gameplayStop()
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.gameplayStop();
|
||||
}
|
||||
|
||||
function poki_happyTime(magnitude) {
|
||||
if (window.PokiSDK)
|
||||
PokiSDK.happyTime(magnitude);
|
||||
}
|
||||
|
||||
|
||||
function poki_commercialBreak(gmcallback_adComplete)
|
||||
{
|
||||
if (window.PokiSDK)
|
||||
{
|
||||
if (poki_gmcallback_pause)
|
||||
if (window["gml_Script_"+poki_gmcallback_pause])
|
||||
window["gml_Script_"+poki_gmcallback_pause]();
|
||||
|
||||
PokiSDK.commercialBreak()
|
||||
.then(() => {
|
||||
if (poki_gmcallback_unpause)
|
||||
if (window["gml_Script_"+poki_gmcallback_unpause])
|
||||
window["gml_Script_"+poki_gmcallback_unpause]();
|
||||
|
||||
if (window["gml_Script_"+gmcallback_adComplete])
|
||||
window["gml_Script_"+gmcallback_adComplete]();
|
||||
});
|
||||
} else
|
||||
{
|
||||
if (poki_gmcallback_unpause)
|
||||
if (window["gml_Script_"+poki_gmcallback_unpause])
|
||||
window["gml_Script_"+poki_gmcallback_unpause]();
|
||||
|
||||
if (window["gml_Script_"+gmcallback_adComplete])
|
||||
window["gml_Script_"+gmcallback_adComplete]();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function poki_init_raw() {
|
||||
console.log("Poki wrapper init");
|
||||
// fix GMS1 bug with iframes
|
||||
var ctr = document.getElementById("gm4html5_div_id");
|
||||
if (ctr && !ctr.frames) ctr.frames = [];
|
||||
return 0;
|
||||
}
|
||||
///~
|
||||
function poki_script_closure_raw(self, other, script, custom) {
|
||||
return function(result) {
|
||||
window.gml_Script_gmcallback_poki_closure(self, other, script, result, custom)
|
||||
}
|
||||
}
|
||||
|
||||
function poki_is_blocked() {
|
||||
return !window.PokiSDK_OK;
|
||||
}
|
||||
|
||||
function poki_gameplay_start() {
|
||||
if (PokiSDK) PokiSDK.gameplayStart();
|
||||
}
|
||||
|
||||
function poki_gameplay_stop() {
|
||||
if (PokiSDK) PokiSDK.gameplayStop();
|
||||
}
|
||||
|
||||
///~
|
||||
function poki_commercial_break_raw(fn) {
|
||||
if (PokiSDK) {
|
||||
PokiSDK.commercialBreak().then(function() { fn(true); });
|
||||
} else setTimeout(function() { fn(false); }, 0);
|
||||
}
|
||||
|
||||
///~
|
||||
function poki_rewarded_break_raw(fn) {
|
||||
if (PokiSDK) {
|
||||
PokiSDK.rewardedBreak().then(fn);
|
||||
} else setTimeout(function() { fn(false); }, 0);
|
||||
}
|
||||
|
||||
/// https://yal.cc/gamemaker-html5-loading-bar-extended/
|
||||
var inst = { };
|
||||
///~
|
||||
function poki_loadbar(ctx, width, height, total, current, image) {
|
||||
if (window.PokiSDK) { // if you have your own loadbar, just copy this block in there
|
||||
if (window.PokiSDK_loadState == 0) {
|
||||
window.PokiSDK_isLoading = 1;
|
||||
PokiSDK.gameLoadingStart();
|
||||
}
|
||||
PokiSDK.gameLoadingProgress({ percentageDone: current/total });
|
||||
if (current >= total && window.PokiSDK_loadState != 2) {
|
||||
window.PokiSDK_loadState = 2;
|
||||
PokiSDK.gameLoadingFinished();
|
||||
}
|
||||
}
|
||||
|
||||
function getv(s) {
|
||||
if (window.gml_Script_gmcallback_poki_loadbar) {
|
||||
return window.gml_Script_gmcallback_poki_loadbar(inst, null,
|
||||
s, current, total,
|
||||
width, height, image ? image.width : 0, image ? image.height : 0)
|
||||
} else return undefined;
|
||||
}
|
||||
function getf(s, d) {
|
||||
var r = getv(s);
|
||||
return typeof(r) == "number" ? r : d;
|
||||
}
|
||||
function getw(s, d) {
|
||||
var r = getv(s);
|
||||
return r && r.constructor == Array ? r : d;
|
||||
}
|
||||
function getc(s, d) {
|
||||
var r = getv(s);
|
||||
if (typeof(r) == "number") {
|
||||
r = r.toString(16);
|
||||
while (r.length < 6) r = "0" + r;
|
||||
return "#" + r;
|
||||
} else if (typeof(r) == "string") {
|
||||
return r;
|
||||
} else return d;
|
||||
}
|
||||
// get parameters:
|
||||
var backgroundColor = getc("background_color", "#FFFFFF");
|
||||
var barBackgroundColor = getc("bar_background_color", "#FFFFFF");
|
||||
var barForegroundColor = getc("bar_foreground_color", "#242238");
|
||||
var barBorderColor = getc("bar_border_color", "#242238");
|
||||
var barWidth = getf("bar_width", Math.round(width * 0.6));
|
||||
var barHeight = getf("bar_height", 20);
|
||||
var barBorderWidth = getf("bar_border_width", 2);
|
||||
var barOffset = getf("bar_offset", 10);
|
||||
// background:
|
||||
ctx.fillStyle = backgroundColor;
|
||||
ctx.fillRect(0, 0, width, height);
|
||||
// image:
|
||||
var totalHeight, barTop;
|
||||
if (image != null) {
|
||||
var rect = getw("image_rect");
|
||||
if (!rect) rect = [0, 0, image.width, image.height];
|
||||
totalHeight = rect[3] + barOffset + barHeight;
|
||||
var image_y = (height - totalHeight) >> 1;
|
||||
ctx.drawImage(image, rect[0], rect[1], rect[2], rect[3],
|
||||
(width - rect[2]) >> 1, image_y, rect[2], rect[3]);
|
||||
barTop = image_y + rect[3] + barOffset;
|
||||
} else barTop = (height - barHeight) >> 1;
|
||||
// bar border:
|
||||
var barLeft = (width - barWidth) >> 1;
|
||||
ctx.fillStyle = barBorderColor;
|
||||
ctx.fillRect(barLeft, barTop, barWidth, barHeight);
|
||||
//
|
||||
var barInnerLeft = barLeft + barBorderWidth;
|
||||
var barInnerTop = barTop + barBorderWidth;
|
||||
var barInnerWidth = barWidth - barBorderWidth * 2;
|
||||
var barInnerHeight = barHeight - barBorderWidth * 2;
|
||||
// bar background:
|
||||
ctx.fillStyle = barBackgroundColor;
|
||||
ctx.fillRect(barInnerLeft, barInnerTop, barInnerWidth, barInnerHeight);
|
||||
// bar foreground:
|
||||
var barLoadedWidth = Math.round(barInnerWidth * current / total);
|
||||
ctx.fillStyle = barForegroundColor;
|
||||
ctx.fillRect(barInnerLeft, barInnerTop, barLoadedWidth, barInnerHeight);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
Language_short_name;EN;RU
|
||||
Language_name;English;Русский
|
||||
Welcome_back;WELCOME BACK!;С ВОЗВРАЩЕНИЕМ!
|
||||
Earned_offline; EARNED OFFLINE; ЗАРАБОТАНО ОФФЛАЙН
|
||||
Hooks;HOOKS;КРЮЧКИ
|
||||
Play;PLAY;ИГРАТЬ
|
||||
Earnings;EARNINGS;ЗАРАБОТОК
|
||||
Tap_to_start_playing;TAP TO START PLAYING;НАЖМИТЕ ЧТОБЫ НАЧАТЬ ИГРАТЬ
|
||||
Fish_upgrade_title;MAX FISHES;МАКСИМУМ#РЫБОК
|
||||
Fish_upgrade_fishes;FISH;РЫБ
|
||||
Depth_upgrade_title;MAX DEPTH;ГЛУБИНА
|
||||
Depth_upgrade_meters;M;М
|
||||
Depth_upgrade_meters_small;m;m
|
||||
Offline_earnings_upgrade_title;OFFLINE EARNINGS;ЗАРАБОТОК#ОФФЛАЙН
|
||||
Offline_earnings_money_per_min;$/MIN;$/МИН
|
||||
Energy_warning;NOT ENOUGH ENERGY!;НЕ ХВАТАЕТ ЭНЕРГИИ
|
||||
Buy_energy_potion_to_restore;BUY ENERGY POTION#TO RESTORE ENERGY;КУПИ ЗЕЛЬЕ БОДРОСТИ#ЧТОБЫ ВОССТАНОВИТЬ ЭНЕРГИЮ
|
||||
No_thanks;NO, THANKS;НЕТ СПАСИБО
|
||||
Buy;BUY;КУПИТЬ
|
||||
Best_result;BEST;РЕКОРД
|
||||
Aquarium;AQUARIUM;АКВАРИУМ
|
||||
Prizes_tap_to_open_hint;TAP TO OPEN;НАЖМИ ЧТОБЫ ОТКРЫТЬ
|
||||
Best_prize;BEST PRIZE;ЛУЧШИЙ ПРИЗ
|
||||
Fish_rare;RARE!;РЕДКАЯ!
|
||||
Fish_legendary;LEGENDARY!;ЗОЛОТАЯ!
|
||||
Claim;CLAIM;ЗАБРАТЬ
|
||||
Bonus;BONUS;БОНУС
|
||||
Score_title;YOUR SCORE;ВАШ СЧЕТ
|
||||
New_record; NEW RECORD!; НОВЫЙ РЕКОРД!
|
||||
Unlock_hook;UNLOCK#RANDOM;ОТКРЫТЬ#НОВЫЙ
|
||||
More_hooks_coming;MORE HOOKS COMING SOON!;БОЛЬШЕ КРЮЧКОВ СОВСЕМ СКОРО!
|
||||
Settings;SETTINGS;НАСТРОЙКИ
|
||||
Sounds;SOUNDS;ЗВУКИ
|
||||
Sound;SOUND;ЗВУК
|
||||
Music;MUSIC;МУЗЫКА
|
||||
Language;LANGUAGE;ЯЗЫК
|
||||
Ok;OK;ОК
|
||||
Treasure_open;OPEN;ОТКРЫТЬ
|
||||
Do_smth_for_energy;ENERGY;ЗА ЭНЕРГИЮ
|
||||
Do_smth_for_reward_ad;WATCH AD;ЗА РЕКЛАМУ
|
||||
Your_score;SCORE;СЧЁТ
|
||||
Win_a_prize;WIN A PRIZE!;ВЫЙГРАЙ ПРИЗ!
|
||||
Make_first_upgrade_text; MAKE YOUR#FIRST UPGRADE; СДЕЛАЙТЕ СВОЙ#ПЕРВЫЙ АПГРЕЙД
|
||||
Perfect_start; PERFECT START!; ИДЕАЛЬНЫЙ ЗАБРОС!
|
||||
Claim_all_x; CLAIM ALL x; ЗАБРАТЬ ВСЕ х
|
||||
No_thanks; NO, THANKS; НЕТ, СПАСИБО
|
||||
Open_chest; OPEN; ОТКРЫТЬ
|
||||
Open_for_ad_msg; WATCH AD; ЗА РЕКЛАМУ
|
||||
Price; PRICE; СТОИМОСТЬ
|
||||
Treasure_found; TREASURE#FOUND; ВЫ НАШЛИ#СОКРОВИЩА!
|
||||
Chest; CHEST!; СУНДУК!
|
||||
Move_finger_tutorial; MOVE FINGER#TO CONTROL; ДВИГАЙ ПАЛЬЦЕМ#ЧТОБЫ УПРАВЛЯТЬ
|
||||
Move_mouse_tutorial; CONTROL WITH MOUSE; ДВИГАЙ МЫШЬЮ
|
||||
Become_VIP; BECOME VIP; СТАНЬТЕ VIP
|
||||
VIP_night_mode; VIP NIGHT MODE; VIP НОЧНОЙ РЕЖИМ
|
||||
Exclusive_night_mode; EXCLUSIVE NIGHT MODE!; ЭКСКЛЮЗИВНЫЙ НОЧНОЙ РЕЖИМ!
|
||||
No_ads; NO ADS!; НИКАКОЙ РЕКЛАМЫ!
|
||||
All_money_x_2; ALL MONEY x2!; ВСЕ ДЕНЬГИ х2!
|
||||
Start_free_trial; START FREE TRIAL; ПОПРОБОВАТЬ БЕСПЛАТНО
|
||||
Time_to_check_the_aquarium; TIME TO CHECK#THE AQUARIUM; ПОРА ПРОВЕРИТЬ#АКВАРИУМ
|
||||
|
||||
|
@@ -0,0 +1,67 @@
|
||||
|
||||
var version = "1.0";
|
||||
|
||||
function cookieSet(argument0, argument1, argument2)
|
||||
{
|
||||
/*
|
||||
argument0 = c_name
|
||||
argument1 = value
|
||||
argument2 = exdays
|
||||
*/
|
||||
try {
|
||||
var exdate=new Date();
|
||||
exdate.setDate(exdate.getDate() + argument2);
|
||||
var c_value=escape(argument1) + ((argument2==null) ? "" : "; expires="+exdate.toUTCString());
|
||||
document.cookie=argument0 + "=" + c_value;
|
||||
return 1;
|
||||
} catch(e) {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
function cookieGet(argument0)
|
||||
{
|
||||
try {
|
||||
var c_name = argument0;
|
||||
var c_value = document.cookie;
|
||||
var c_start = c_value.indexOf(" " + c_name + "=");
|
||||
if (c_start == -1)
|
||||
{
|
||||
c_start = c_value.indexOf(c_name + "=");
|
||||
}
|
||||
if (c_start == -1)
|
||||
{
|
||||
c_value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
c_start = c_value.indexOf("=", c_start) + 1;
|
||||
var c_end = c_value.indexOf(";", c_start);
|
||||
if (c_end == -1)
|
||||
{
|
||||
c_end = c_value.length;
|
||||
}
|
||||
c_value = unescape(c_value.substring(c_start,c_end));
|
||||
}
|
||||
return c_value;
|
||||
} catch(e) {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
function cookieExsists(argument0)
|
||||
{
|
||||
try {
|
||||
var cookiename=cookieGet(argument0);
|
||||
if (cookiename!=null && cookiename!="")
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
} catch(e) {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
//////////////////// Functionality ////////////////////
|
||||
var appFocused = true;
|
||||
|
||||
|
||||
// scaling for mobiles
|
||||
function js_scale_canvas(baseWidth, baseHeight, targetWidth, targetHeight) {
|
||||
var aspect = (baseWidth / baseHeight);
|
||||
|
||||
// Calculate pixel ratio and new canvas size
|
||||
var pixelRatio = window.devicePixelRatio || 1;
|
||||
var backStoreRatio = (g_CurrentGraphics.webkitBackingStorePixelRatio || g_CurrentGraphics.mozBackingStorePixelRatio || g_CurrentGraphics.msBackingStorePixelRatio ||
|
||||
g_CurrentGraphics.oBackingStorePixelRatio || g_CurrentGraphics.backingStorePixelRatio || 1);
|
||||
var pixelScale = pixelRatio / backStoreRatio;
|
||||
|
||||
var scaledWidth = targetWidth * pixelScale;
|
||||
var scaledHeight = targetHeight * pixelScale;
|
||||
|
||||
var posx = 0;
|
||||
var posy = 0;
|
||||
if ((scaledWidth / aspect) > scaledHeight) {
|
||||
var sW = scaledWidth;
|
||||
scaledWidth = scaledHeight * aspect;
|
||||
posx = Math.round(((sW - scaledWidth) / pixelScale) / 2);
|
||||
scaledWidth = Math.round(scaledWidth);
|
||||
} else {
|
||||
var sH = scaledHeight;
|
||||
scaledHeight = scaledWidth / aspect;
|
||||
posy = Math.round(((sH - scaledHeight) / pixelScale) / 2);
|
||||
scaledHeight = Math.round(scaledHeight);
|
||||
}
|
||||
|
||||
// Update canvas size
|
||||
var ret = '{"w":'+scaledWidth+',"h":'+scaledHeight+',"x":'+posx+',"y":'+posy+'}';
|
||||
eval("gml_Script_gmcallback_window_set_size(null,null,'"+ret+"')");
|
||||
|
||||
// Scale back canvas with CSS
|
||||
if(pixelScale != 1) {
|
||||
canvas.style.width = (scaledWidth / pixelScale) + "px";
|
||||
canvas.style.height = (scaledHeight / pixelScale) + "px";
|
||||
} else {
|
||||
canvas.style.width = "";
|
||||
canvas.style.height = "";
|
||||
}
|
||||
|
||||
// Update canvas scale
|
||||
if(typeof g_CurrentGraphics.scale === "function")
|
||||
g_CurrentGraphics.scale(pixelScale, pixelScale);
|
||||
}
|
||||
|
||||
|
||||
function js_resize_canvas(width,height) {
|
||||
var displayWidth = window.innerWidth;
|
||||
var displayHeight = window.innerHeight;
|
||||
|
||||
js_scale_canvas(width, height, displayWidth, displayHeight+1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function js_init(appBlurGmCallback)
|
||||
{
|
||||
window.onfocus = function()
|
||||
{
|
||||
appFocused = true;
|
||||
}
|
||||
|
||||
window.onblur = function()
|
||||
{
|
||||
appFocused = false;
|
||||
//eval("gml_Script_"+appBlurGmCallback+"(null,null)");
|
||||
}
|
||||
}
|
||||
|
||||
function js_browserLanguage()
|
||||
{
|
||||
var lang = navigator.language;
|
||||
|
||||
lang = lang.substr(0, 2);
|
||||
|
||||
return lang.toUpperCase();
|
||||
}
|
||||
|
||||
|
||||
function js_trace(text)
|
||||
{
|
||||
console.log(text);
|
||||
}
|
||||
|
||||
// SITELOCKS
|
||||
|
||||
function js_iframed( )
|
||||
{
|
||||
if(window.self != window.top)
|
||||
return 1; else
|
||||
return 0;
|
||||
}
|
||||
|
||||
function js_getParentDomain()
|
||||
{
|
||||
return window.top.location.href;
|
||||
}
|
||||
|
||||
function js_getDomainOfSubDomain()
|
||||
{
|
||||
//*** window.location.host is subdomain.domain.com
|
||||
|
||||
var siteName;
|
||||
if (js_iframed())
|
||||
siteName = window.top.location.host; else
|
||||
siteName = window.location.host;
|
||||
|
||||
var parts = siteName.split('.');
|
||||
|
||||
if (parts.length >= 2)
|
||||
{
|
||||
//*** sub is 'subdomain', 'domain', type is 'com'
|
||||
var sub = parts[parts.length-3]
|
||||
var domain = parts[parts.length-2]
|
||||
var type = parts[parts.length-1]
|
||||
|
||||
return domain + "." + type;
|
||||
} else
|
||||
{
|
||||
return siteName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// EVAL
|
||||
|
||||
function js_eval(code)
|
||||
{
|
||||
eval(code);
|
||||
}
|
||||
|
||||
/// SOME EXTRA FUNC-S
|
||||
|
||||
function js_set_document_body_color(newColor)
|
||||
{
|
||||
document.body.style.backgroundColor = newColor;
|
||||
}
|
||||
|
||||
function js_set_document_title(newTitle)
|
||||
{
|
||||
document.title = newTitle;
|
||||
}
|
||||
|
||||
|
||||
/// INVISIBLE BUTTONS
|
||||
|
||||
function js_CreateInvisibleButton( buttonID, link )
|
||||
{
|
||||
var btn = document.createElement('invisible_button');
|
||||
|
||||
btn.id = buttonID;
|
||||
btn.link = ' ';
|
||||
btn.draggable = false;
|
||||
|
||||
if (link == 'fullscreen')
|
||||
btn.onclick = function(){ // FULLSCREEN BUTTON
|
||||
if (screenfull.enabled)
|
||||
screenfull.toggle();//toggle(document.getElementById("canvas"));
|
||||
}; else
|
||||
btn.onclick = function(){ // OPEN LINK BUTTON
|
||||
window.open(this.link)
|
||||
};
|
||||
|
||||
btn.onmousedown = function(){return false};
|
||||
document.body.appendChild(btn);
|
||||
}
|
||||
|
||||
function js_UpdateInvisibleButton( buttonID, x1, y1, x2, y2, link, active )
|
||||
{
|
||||
var btn = document.getElementById(buttonID);
|
||||
|
||||
btn.link = link;
|
||||
|
||||
var scale_scr = getDocHeight()/game_height;
|
||||
|
||||
btn.style.left = parseInt(canvas.style.left, 10) + x1*scale_scr + "px";//(wbr-scale_scr * game_width)/2 + x - width * 0.5 + "px";
|
||||
btn.style.top = parseInt(canvas.style.top, 10) + y1*scale_scr + "px";//(hbr-scale_scr * game_height)/2 + y - height * 0.5 + "px";
|
||||
|
||||
btn.style.width = (x2-x1) * scale_scr + "px";
|
||||
btn.style.height = (y2-y1) * scale_scr + "px";
|
||||
|
||||
if (active)
|
||||
{
|
||||
btn.style.pointerEvents = 'auto';
|
||||
} else
|
||||
{
|
||||
btn.style.pointerEvents = 'none';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function js_DestroyInvisibleButton( buttonID )
|
||||
{
|
||||
var btn = document.getElementById(buttonID);
|
||||
btn.parentNode.removeChild(btn);
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var isCommonjs = typeof module !== 'undefined' && module.exports;
|
||||
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;
|
||||
|
||||
var fn = (function () {
|
||||
var val;
|
||||
var valLength;
|
||||
|
||||
var fnMap = [
|
||||
[
|
||||
'requestFullscreen',
|
||||
'exitFullscreen',
|
||||
'fullscreenElement',
|
||||
'fullscreenEnabled',
|
||||
'fullscreenchange',
|
||||
'fullscreenerror'
|
||||
],
|
||||
// new WebKit
|
||||
[
|
||||
'webkitRequestFullscreen',
|
||||
'webkitExitFullscreen',
|
||||
'webkitFullscreenElement',
|
||||
'webkitFullscreenEnabled',
|
||||
'webkitfullscreenchange',
|
||||
'webkitfullscreenerror'
|
||||
|
||||
],
|
||||
// old WebKit (Safari 5.1)
|
||||
[
|
||||
'webkitRequestFullScreen',
|
||||
'webkitCancelFullScreen',
|
||||
'webkitCurrentFullScreenElement',
|
||||
'webkitCancelFullScreen',
|
||||
'webkitfullscreenchange',
|
||||
'webkitfullscreenerror'
|
||||
|
||||
],
|
||||
[
|
||||
'mozRequestFullScreen',
|
||||
'mozCancelFullScreen',
|
||||
'mozFullScreenElement',
|
||||
'mozFullScreenEnabled',
|
||||
'mozfullscreenchange',
|
||||
'mozfullscreenerror'
|
||||
],
|
||||
[
|
||||
'msRequestFullscreen',
|
||||
'msExitFullscreen',
|
||||
'msFullscreenElement',
|
||||
'msFullscreenEnabled',
|
||||
'MSFullscreenChange',
|
||||
'MSFullscreenError'
|
||||
]
|
||||
];
|
||||
|
||||
var i = 0;
|
||||
var l = fnMap.length;
|
||||
var ret = {};
|
||||
|
||||
for (; i < l; i++) {
|
||||
val = fnMap[i];
|
||||
if (val && val[1] in document) {
|
||||
for (i = 0, valLength = val.length; i < valLength; i++) {
|
||||
ret[fnMap[0][i]] = val[i];
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
})();
|
||||
|
||||
var screenfull = {
|
||||
request: function (elem) {
|
||||
var request = fn.requestFullscreen;
|
||||
|
||||
elem = elem || document.documentElement;
|
||||
|
||||
// Work around Safari 5.1 bug: reports support for
|
||||
// keyboard in fullscreen even though it doesn't.
|
||||
// Browser sniffing, since the alternative with
|
||||
// setTimeout is even worse.
|
||||
if (/5\.1[\.\d]* Safari/.test(navigator.userAgent)) {
|
||||
elem[request]();
|
||||
} else {
|
||||
elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT);
|
||||
}
|
||||
},
|
||||
exit: function () {
|
||||
document[fn.exitFullscreen]();
|
||||
},
|
||||
toggle: function (elem) {
|
||||
if (this.isFullscreen) {
|
||||
this.exit();
|
||||
} else {
|
||||
this.request(elem);
|
||||
}
|
||||
},
|
||||
raw: fn
|
||||
};
|
||||
|
||||
if (!fn) {
|
||||
if (isCommonjs) {
|
||||
module.exports = false;
|
||||
} else {
|
||||
window.screenfull = false;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Object.defineProperties(screenfull, {
|
||||
isFullscreen: {
|
||||
get: function () {
|
||||
return Boolean(document[fn.fullscreenElement]);
|
||||
}
|
||||
},
|
||||
element: {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return document[fn.fullscreenElement];
|
||||
}
|
||||
},
|
||||
enabled: {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
// Coerce to boolean in case of old WebKit
|
||||
return Boolean(document[fn.fullscreenEnabled]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (isCommonjs) {
|
||||
module.exports = screenfull;
|
||||
} else {
|
||||
window.screenfull = screenfull;
|
||||
}
|
||||
})();
|
||||
|
||||
function js_isFullscreenEnabled( )
|
||||
{
|
||||
if( window.innerHeight == screen.height)
|
||||
{
|
||||
// browser is fullscreen
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
//return screenfull.isFullscreen;
|
||||
}
|
||||
|
||||
function js_isFullscreenAvaliable( )
|
||||
{
|
||||
return screenfull.enabled;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
function js_GetExternalGameData(projectName, keyname, extraInfo, defaultValue)
|
||||
{
|
||||
if (window.ZenExternal)
|
||||
{
|
||||
return ZenExternal.getProjectData(projectName, keyname, extraInfo);
|
||||
} else
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
function js_GetExternalData(keyname, extraInfo, defaultValue)
|
||||
{
|
||||
if (window.ZenExternal)
|
||||
{
|
||||
return ZenExternal.getData(keyname, extraInfo);
|
||||
} else
|
||||
{
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function js_LoadExternalFile(filepath)
|
||||
{
|
||||
var x = document.createElement('script');
|
||||
x.src = filepath;
|
||||
document.getElementsByTagName("head")[0].appendChild(x);
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
// (key:string, defValue, ...rest)
|
||||
function dj_loading_value(key, defValue) {
|
||||
var f = window.gml_Script_gmcallback_dj_loading, v = null;
|
||||
if (f) {
|
||||
var p = Array.prototype.slice.call(arguments, 2);
|
||||
p.unshift(key);
|
||||
p.unshift(null);
|
||||
p.unshift(null);
|
||||
v = f.apply(this, p);
|
||||
}
|
||||
return v != null ? v : defValue;
|
||||
}
|
||||
function dj_loading_color(key, defValue) {
|
||||
var v = dj_loading_value.apply(this, arguments);
|
||||
if (typeof v == "number") {
|
||||
v = ((v >> 16) & 0xff) | (v & 0xff00) | ((v & 0xff) << 16); // BGR -> RGB
|
||||
v = v.toString(16);
|
||||
while (v.length < 6) v = "0" + v;
|
||||
v = "#" + v;
|
||||
}
|
||||
return v;
|
||||
}
|
||||
function dj_loading_number(key, defValue) {
|
||||
var v = dj_loading_value.apply(this, arguments);
|
||||
if (typeof v != "number") v = defValue;
|
||||
return v;
|
||||
}
|
||||
function dj_loading_string(key, defValue) {
|
||||
var v = dj_loading_value.apply(this, arguments);
|
||||
if (typeof v != "string") v = defValue;
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
var dj_loading_logo = new Image();
|
||||
dj_loading_logo.src = "html5game/" + dj_loading_string("logo_path", "load.png");
|
||||
|
||||
|
||||
var dj_loading_current = 0;
|
||||
///
|
||||
function dj_loading_get_current() { return dj_loading_current; }
|
||||
/// dj_loading_current = dj_loading_get_current():
|
||||
|
||||
|
||||
var dj_loading_total = 0;
|
||||
///
|
||||
function dj_loading_get_total() { return dj_loading_total; }
|
||||
/// dj_loading_total = dj_loading_get_total():
|
||||
|
||||
|
||||
var dj_loading_width = 0;
|
||||
///
|
||||
function dj_loading_get_width() { return dj_loading_width; }
|
||||
/// dj_loading_width = dj_loading_get_width():
|
||||
|
||||
|
||||
var dj_loading_height = 0;
|
||||
///
|
||||
function dj_loading_get_height() { return dj_loading_height; }
|
||||
/// dj_loading_height = dj_loading_get_height():
|
||||
|
||||
///
|
||||
|
||||
var showBH5Icon = false;
|
||||
var loadingBg = document.getElementById('img_loadingbg');
|
||||
var loadingIcon = document.getElementById('img_loadingicon');
|
||||
var loadingLogoIcon = document.getElementById('img_loadinglogoicon');
|
||||
var loadingBar = document.getElementById('img_loadingbar');
|
||||
var loadingBarOverlay = document.getElementById('img_loadingbaroverlay');
|
||||
|
||||
if (showBH5Icon == false)
|
||||
{
|
||||
loadingLogoIcon.style.display ="none";
|
||||
loadingLogoIcon.style.visibility ="hidden";
|
||||
loadingLogoIcon.style.pointerEvents = 'none';
|
||||
loadingLogoIcon.parentNode.removeChild(loadingLogoIcon);
|
||||
loadingLogoIcon = null;
|
||||
}
|
||||
function dj_loading(ctx, width, height, total, current, _)
|
||||
{
|
||||
//
|
||||
var node = ctx.canvas;
|
||||
// Force fullscreen mode:
|
||||
width = window.innerWidth;
|
||||
if (node.width != width) node.width = width;
|
||||
height = window.innerHeight;
|
||||
if (node.height != height) node.height = height;
|
||||
|
||||
// bg update
|
||||
if (loadingBg)
|
||||
{
|
||||
loadingBg.style.width = width +"px";
|
||||
loadingBg.style.height = height +"px";
|
||||
loadingBg.style.left = -width*0 + "px";
|
||||
loadingBg.style.top = -height*0 + "px";
|
||||
}
|
||||
|
||||
// icon update
|
||||
var size = height * 0.3;
|
||||
if (width > height) size = height * 0.3;
|
||||
|
||||
if (loadingIcon)
|
||||
{
|
||||
loadingIcon.style.width = size +"px";
|
||||
loadingIcon.style.height = size +"px";
|
||||
loadingIcon.style.left = (width-size)*0.5 + "px";
|
||||
loadingIcon.style.top = height*0.4-size*0.5 + "px";
|
||||
}
|
||||
|
||||
// bar
|
||||
var barWidth = 200;//width * 0.5;
|
||||
var barHeight = 10;//height * 0.01;
|
||||
var barDistFromTop = 0.6;
|
||||
|
||||
if (loadingBar)
|
||||
{
|
||||
loadingBar.style.width = barWidth +"px";
|
||||
loadingBar.style.height = barHeight +"px";
|
||||
loadingBar.style.left = (width-barWidth)*0.5 + "px";
|
||||
loadingBar.style.top = height*barDistFromTop-barHeight*0.5 + "px";
|
||||
}
|
||||
|
||||
// bar overlay
|
||||
var barCurrent = Math.round(current / total * barWidth);
|
||||
|
||||
if (loadingBarOverlay)
|
||||
{
|
||||
loadingBarOverlay.style.width = barCurrent +"px";
|
||||
loadingBarOverlay.style.height = barHeight +"px";
|
||||
loadingBarOverlay.style.left = (width-barWidth)*0.5 + "px";
|
||||
loadingBarOverlay.style.top = height*barDistFromTop-barHeight*0.5 + "px";
|
||||
}
|
||||
|
||||
|
||||
// logo icon update
|
||||
var size = height * 0.13;
|
||||
//if (width > height) size = height * 0.3;
|
||||
|
||||
if (loadingLogoIcon)
|
||||
{
|
||||
loadingLogoIcon.style.width = size +"px";
|
||||
loadingLogoIcon.style.height = size +"px";
|
||||
loadingLogoIcon.style.left = (width-size)*0.5 + "px";
|
||||
loadingLogoIcon.style.top = (height-size - 50) + "px";
|
||||
}
|
||||
|
||||
//
|
||||
dj_loading_value("draw_post");
|
||||
}
|
||||
|
||||
|
||||
|
||||
function dg_hide_loading()
|
||||
{
|
||||
if (loadingBg)
|
||||
{
|
||||
loadingBg.style.display ="none";
|
||||
loadingBg.style.visibility ="hidden";
|
||||
loadingBg.style.pointerEvents = 'none';
|
||||
loadingBg.parentNode.removeChild(loadingBg);
|
||||
loadingBg = null;
|
||||
}
|
||||
|
||||
if (loadingIcon)
|
||||
{
|
||||
loadingIcon.style.display ="none";
|
||||
loadingIcon.style.visibility ="hidden";
|
||||
loadingIcon.style.pointerEvents = 'none';
|
||||
loadingIcon.parentNode.removeChild(loadingIcon);
|
||||
loadingIcon = null;
|
||||
}
|
||||
if (loadingBar)
|
||||
{
|
||||
loadingBar.style.display ="none";
|
||||
loadingBar.style.visibility ="hidden";
|
||||
loadingBar.style.pointerEvents = 'none';
|
||||
loadingBar.parentNode.removeChild(loadingBar);
|
||||
loadingBar = null;
|
||||
}
|
||||
if (loadingLogoIcon)
|
||||
{
|
||||
loadingLogoIcon.style.display ="none";
|
||||
loadingLogoIcon.style.visibility ="hidden";
|
||||
loadingLogoIcon.style.pointerEvents = 'none';
|
||||
loadingLogoIcon.parentNode.removeChild(loadingLogoIcon);
|
||||
loadingLogoIcon = null;
|
||||
}
|
||||
if (loadingBarOverlay)
|
||||
{
|
||||
loadingBarOverlay.style.display ="none";
|
||||
loadingBarOverlay.style.visibility ="hidden";
|
||||
loadingBarOverlay.style.pointerEvents = 'none';
|
||||
loadingBarOverlay.parentNode.removeChild(loadingBarOverlay);
|
||||
loadingBarOverlay = null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,353 @@
|
||||
<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">
|
||||
|
||||
<link rel="icon" type="image/png" sizes="195x253" href="images/native.png">
|
||||
<link rel="apple-touch-icon" type="image/png" sizes="195x253" href="images/native.png">
|
||||
|
||||
<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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
Reference in New Issue
Block a user