Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game-development-tutorial
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
wildfirecode13
game-development-tutorial
Commits
c26155f4
Commit
c26155f4
authored
Oct 15, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
588226f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
hello-world.md
hello-world.md
+7
-4
No files found.
hello-world.md
View file @
c26155f4
...
@@ -5,14 +5,16 @@
...
@@ -5,14 +5,16 @@
```
bash
```
bash
mkdir
egret
mkdir
egret
```
```
在根目录创建
`index.html`
文件,这是本地项目访问入口
。
从示例项目复制
`index.html`
文件到根目录,这是本地项目访问入口。示例项目地址http://gitlab2.dui88.com/wanghongyuan/egret-hello-world
。
进入
`egret`
文件夹。创建
`defs`
文件夹,用来存放项目所依赖的代码库的
`TypeScript声明文件`
。这些文件包括:
进入
`egret`
文件夹。创建
`defs`
文件夹,用于存放项目所依赖的代码库的
`TypeScript声明文件`
。这些文件包括:
-
egret.d.ts
-
egret.d.ts
-
eui.d.ts
-
eui.d.ts
-
assetsmanager.d.ts
-
assetsmanager.d.ts
-
tween.d.ts
-
tween.d.ts
从示例项目中复制这些
`TypeScript声明文件`
到
`defs`
文件夹。
接下来,在
`egret`
文件夹下创建
`resource`
目录用于存放图片资源。
## 代码构建
## 代码构建
我们使用
`webpack`
来进行代码的构建。首先进行仓库初始化。
我们使用
`webpack`
来进行代码的构建。首先进行仓库初始化。
...
@@ -23,3 +25,4 @@ npm init -y
...
@@ -23,3 +25,4 @@ npm init -y
```
bash
```
bash
npm
install
--save-dev
webpack
npm
install
--save-dev
webpack
```
```
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