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
588226f4
Commit
588226f4
authored
Oct 15, 2018
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
4d3ae317
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
hello-world.md
hello-world.md
+25
-0
No files found.
hello-world.md
0 → 100644
View file @
588226f4
# Egret游戏开发:hello world
## 创建必要的项目结构和文件
在根目录创建
`egret`
文件夹,用于存放
`标准Egret项目`
的相关文件。
```
bash
mkdir
egret
```
在根目录创建
`index.html`
文件,这是本地项目访问入口。
进入
`egret`
文件夹。创建
`defs`
文件夹,用于存放项目所依赖的代码库的
`TypeScript声明文件`
。这些文件包括:
-
egret.d.ts
-
eui.d.ts
-
assetsmanager.d.ts
-
tween.d.ts
## 代码构建
我们使用
`webpack`
来进行代码的构建。首先进行仓库初始化。
```
bash
npm init
-y
```
接着来安装
```
bash
npm
install
--save-dev
webpack
```
\ No newline at end of file
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