安装GameLoad

  安装GameLoad

游戏示例——优米酱GO

点击游玩:

源码示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-browser/0.0.8/jquery.browser.min.js"></script>
<script>
$(document).ready(function(){
if ($.browser.chrome === true && $.browser.versionNumber >= 45) { //detect Chrome 45+
var myJsonString = JSON.stringify({ title: 'Game Title', file: 'https://files.blog.sinzmise.top/unity3d/yumichan.unity3d', type: "unity", width: 800, height: 600 });
try{ //IE8 does not support window.btoa
var insert_data = window.btoa(myJsonString);
}catch(e){
functionToHandleError(e);
}

$('#unityPlayer-yumichan').prepend('<a href="gameload://' + insert_data + '/" class="css-button post-button-gameload"><i class="fa-solid fa-arrows-rotate"></i>&nbsp;&nbsp;使用GameLoad游玩</a>');
}
});
</script>
<div id="unityPlayer-yumichan"></div>