Skip to content

Commit 84dbf95

Browse files
committed
first ci
1 parent 25b1d92 commit 84dbf95

43 files changed

Lines changed: 151081 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "chrome",
6+
"request": "launch",
7+
"name": "Launch Chrome against localhost",
8+
"file": "${workspaceRoot}/bin/index.html",
9+
"webRoot": "${workspaceRoot}",
10+
"runtimeArgs": [
11+
"--allow-file-access-from-files",
12+
"--allow-file-access-frome-files",
13+
" --disable-web-security"
14+
]
15+
},
16+
{
17+
"type": "chrome",
18+
"request": "attach",
19+
"name": "Attach to Chrome",
20+
"port": 9222,
21+
"webRoot": "${workspaceRoot}"
22+
}
23+
]
24+
}

.vscode/tasks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "tsc",
4+
"isShellCommand": true,
5+
"args": []
6+
}

bin/index.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset='utf-8' />
6+
<title>www.layabox.com</title>
7+
<meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
8+
/>
9+
<meta name="renderer" content="webkit">
10+
<meta name='apple-mobile-web-app-capable' content='yes' />
11+
<meta name='full-screen' content='true' />
12+
<meta name='x5-fullscreen' content='true' />
13+
<meta name='360-fullscreen' content='true' />
14+
<meta name="laya" screenorientation="landscape" />
15+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
16+
<meta http-equiv='expires' content='0' />
17+
<meta http-equiv="Cache-Control" content="no-siteapp" />
18+
</head>
19+
20+
<body>
21+
<!--核心包,封装了显示对象渲染,事件,时间管理,时间轴动画,缓动,消息交互,socket,本地存储,鼠标触摸,声音,加载,颜色滤镜,位图字体等-->
22+
<script type="text/javascript" src="libs/laya.core.js"></script>
23+
<!--封装了webgl渲染管线,如果使用webgl渲染,可以在初始化时调用Laya.init(1000,800,laya.webgl.WebGL);-->
24+
<script type="text/javascript" src="libs/laya.webgl.js"></script>
25+
<!--是动画模块,包含了swf动画,骨骼动画等-->
26+
<script type="text/javascript" src="libs/laya.ani.js"></script>
27+
<!--包含更多webgl滤镜,比如外发光,阴影,模糊以及更多-->
28+
<script type="text/javascript" src="libs/laya.filter.js"></script>
29+
<!--封装了html动态排版功能-->
30+
<script type="text/javascript" src="libs/laya.html.js"></script>
31+
<!--粒子类库-->
32+
<script type="text/javascript" src="libs/laya.particle.js"></script>
33+
<!--提供tileMap解析支持-->
34+
<script type="text/javascript" src="libs/laya.tiledmap.js"></script>
35+
<!--提供了制作UI的各种组件实现-->
36+
<script type="text/javascript" src="libs/laya.ui.js"></script>
37+
<!-- 物理引擎matter.js -->
38+
<!--用户自定义顺序文件添加到这里-->
39+
<!--jsfile--Custom-->
40+
<script src="./require.js"></script>
41+
<script src="./js/all.js"></script>
42+
<script>
43+
require(['GameMain'], function (GameMain) {
44+
new GameMain.default()
45+
});
46+
</script>
47+
<!--jsfile--Custom-->
48+
<!--自定义的js(src文件夹下)文件自动添加到下面jsfile模块标签里面里-->
49+
<!--删除标签,ide不会自动添加js文件,请谨慎操作-->
50+
<!--jsfile--startTag-->
51+
<!--jsfile--endTag-->
52+
53+
<!--启动类添加到这里-->
54+
<!--jsfile--Main-->
55+
<!--jsfile--Main-->
56+
</body>
57+
58+
</html>

bin/js/all.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
define("laya", ["require", "exports"], function (require, exports) {
2+
"use strict";
3+
Object.defineProperty(exports, "__esModule", { value: true });
4+
exports.EventDispatcher = Laya.EventDispatcher;
5+
exports.Handler = Laya.Handler;
6+
exports.Animation = Laya.Animation;
7+
exports.Text = Laya.Text;
8+
});
9+
define("Foo", ["require", "exports", "laya"], function (require, exports, laya_1) {
10+
"use strict";
11+
Object.defineProperty(exports, "__esModule", { value: true });
12+
var Foo = (function () {
13+
function Foo() {
14+
var hello = new laya_1.Text();
15+
hello.text = 'Hello LayaAir';
16+
hello.fontSize = 20;
17+
hello.color = '#ffffff';
18+
Laya.stage.addChild(hello);
19+
}
20+
return Foo;
21+
}());
22+
exports.Foo = Foo;
23+
});
24+
define("GameMain", ["require", "exports", "Foo"], function (require, exports, Foo_1) {
25+
"use strict";
26+
Object.defineProperty(exports, "__esModule", { value: true });
27+
// 程序入口
28+
var GameMain = (function () {
29+
function GameMain() {
30+
Laya.init(600, 400);
31+
new Foo_1.Foo();
32+
}
33+
return GameMain;
34+
}());
35+
exports.default = GameMain;
36+
});

bin/js/all.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)