<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Egret</title>
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html, body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
margin: 0;
height: 100%;
}
</style>
</head>
<body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
data-entry-class="Main"
data-orientation="auto"
data-scale-mode="showAll"
data-frame-rate="30"
data-content-width="640"
data-content-height="1136"
data-show-paint-rect="false"
data-multi-fingered="2"
data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<script>
var loadScript = function (list, callback) {
var loaded = 0;
var loadNext = function () {
loadSingleScript(list[loaded], function () {
loaded++;
if (loaded >= list.length) {
callback();
}
else {
loadNext();
}
})
};
loadNext();
};
var loadSingleScript = function (src, callback) {
var s = document.createElement('script');
s.async = false;
s.src = src;
s.addEventListener('load', function () {
s.parentNode.removeChild(s);
s.removeEventListener('load', arguments.callee, false);
callback();
}, false);
document.body.appendChild(s);
};
var xhr = new XMLHttpRequest();
xhr.open('GET', './manifest.json?v=' + Math.random(), true);
xhr.addEventListener("load", function () {
var manifest = JSON.parse(xhr.response);
var list = manifest.initial.concat(manifest.game);
loadScript(list, function () {
/**
* {
* "renderMode":, //引擎渲染模式,"canvas" 或者 "webgl"
* "audioType": 0 //使用的音频类型,0:默认,2:web audio,3:audio
* "antialias": //WebGL模式下是否开启抗锯齿,true:开启,false:关闭,默认为false
* "retina": //是否基于devicePixelRatio缩放画布
* }
**/
egret.runEgret({ renderMode: "webgl", audioType: 0 });
});
});
xhr.send(null);
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
tetris20180-816-0823俄罗斯方块.rar (98个子文件)
tetris
wingProperties.json 159B
manifest.json 527B
index.html 3KB
resource
eui_skins
UIView.exml 6KB
default.thm.json 911B
config
description.json 231B
assets
egret_icon.png 7KB
Slider
thumb.png 1KB
track.png 933B
tracklight.png 933B
ItemRenderer
selected.png 938B
bg.jpg 136KB
CheckBox
checkbox_select_disabled.png 1KB
checkbox_select_down.png 1KB
checkbox_select_up.png 1KB
checkbox_unselect.png 1002B
ScrollBar
roundthumb.png 933B
track_sb.png 933B
Button
button_up.png 1019B
button_down.png 1KB
ProgressBar
track_pb.png 970B
thumb_pb.png 976B
Panel
border.png 1KB
header.png 938B
ToggleSwitch
handle.png 1KB
off.png 1KB
on.png 1KB
mj_bg.png 6KB
RadioButton
radiobutton_unselect.png 1KB
radiobutton_select_disabled.png 2KB
radiobutton_select_down.png 2KB
radiobutton_select_up.png 1KB
default.res.json 3KB
promise
bin
promise.min.js 6KB
promise.js 28KB
favicon.ico 4KB
src
view
DrawTable.ts 1KB
UIView.ts 10KB
BlockView.ts 1KB
BoxData.ts 3KB
BoxMapView.ts 2KB
GameTab.ts 18KB
LoadingUI.ts 2KB
AssetAdapter.ts 3KB
ThemeAdapter.ts 3KB
Main.ts 8KB
bin-debug
view
GameTab.js.map 21KB
UIView.js.map 10KB
BlockView.js.map 2KB
GameTab.js 19KB
BoxMapView.js.map 2KB
BoxData.js.map 4KB
DrawTable.js 2KB
DrawTable.js.map 1KB
BlockView.js 2KB
BoxMapView.js 2KB
BoxData.js 4KB
UIView.js 11KB
ThemeAdapter.js 3KB
Main.js 9KB
LoadingUI.js 3KB
AssetAdapter.js 3KB
ThemeAdapter.js.map 1KB
AssetAdapter.js.map 1KB
Main.js.map 5KB
LoadingUI.js.map 1KB
egretProperties.json 531B
.idea
eslintPlugin.xml 177B
workspace.xml 19KB
tetris.iml 458B
inspectionProfiles
modules.xml 264B
typescript-compiler.xml 177B
tsconfig.json 271B
libs
exml.e.d.ts 46B
modules
egret
egret.min.js 191KB
egret.web.min.js 113KB
egret.js 1.09MB
egret.native.js 245KB
egret.native.min.js 60KB
egret.web.js 377KB
egret.d.ts 591KB
eui
eui.min.js 207KB
eui.js 1005KB
eui.d.ts 461KB
res
res.d.ts 50KB
res.min.js 30KB
res.js 143KB
tween
tween.min.js 12KB
tween.js 69KB
tween.d.ts 37KB
template
runtime
native_loader.js 182B
native_require.js 1KB
runtime_loader.js 182B
debug
index.html 3KB
web
index.html 3KB
.wing
launch.json 593B
settings.json 76B
tasks.json 749B
共 98 条
- 1
资源评论
- Azure_fly2019-07-26先下载下来看看落月奇狼2019-07-26秀
落月奇狼
- 粉丝: 6
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功