Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
3f947e39
Commit
3f947e39
authored
Sep 17, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update readme
parent
7d225448
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
README.md
README.md
+25
-4
Main.ts
egret/src/Main.ts
+1
-0
No files found.
README.md
View file @
3f947e39
## 安装和更新构建工具
重新拉取代码,然后安装依赖。
```
bash
git pull
&&
cnpm
install
```
## 启动本地服务器
```
bash
npm run dev
```
之后会自动打开浏览器。建议在vscode中f5调试,效率更高。
## 发布
## 备注
### 全发布
```
bash
npm run build
```
### 仅仅发布src下的TS代码
```
bash
npm run buildTS
```
之后只需要更新皮肤中的
`output.js`
文件的版本号
```
js
<
script
crossorigin
=
"anonymous"
src
=
"//yun.duiba.com.cn/db_games/activity/demo/1537173012/output.js"
><
/script
>
```
### 仅仅发布exmls文件
```
bash
npm run buildExml
```
之后只需要更新皮肤中的
`default.thm.js`
文件的版本号
```
js
<
script
crossorigin
=
"anonymous"
src
=
"//yun.duiba.com.cn/db_games/activity/demo/1537172754/resource/default.thm.js"
><
/script
>
```
之后会自动打开浏览器。
## demo
-
demo皮肤 https://mng.duiba.com.cn/DuibaNgameBrick/edit/476
-
demo线上url http://activity-2.m.duiba.com.cn/ngame/index?id=3122353&dbnewopen&dpm=1.5.677.4&dcm=202.3122353.4.677
## 备注
项目创建和维护流程
...
...
egret/src/Main.ts
View file @
3f947e39
...
...
@@ -8,6 +8,7 @@ class Main extends eui.UILayer {
* Create scene interface
*/
protected
createGameScene
():
void
{
alert
(
1
);
let
img
:
egret
.
Bitmap
=
new
egret
.
Bitmap
();
img
=
this
.
createBitmapByName
(
"bg_jpg"
);
img
.
width
=
this
.
stage
.
stageWidth
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment