Skip to content

Commit

Permalink
Merge pull request #110 from MBearo/patch-1
Browse files Browse the repository at this point in the history
Update c01-02-ecs.md typo
  • Loading branch information
iolivia authored Nov 9, 2024
2 parents a06a94e + 4f71ab9 commit 5bb3398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion books/zh_CN/src/c01-02-ecs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## ECS

`ECS` (实体构建系统)是一种遵循组合优于继承的构建游戏的模式. 像多少Rust游戏一样,我们编写的推样子游戏也会大量使用`ECS`,所以我们有必要先花点时间熟悉下`ECS`
`ECS` (实体构建系统)是一种遵循组合优于继承的构建游戏的模式. 像多少Rust游戏一样,我们编写的推箱子游戏也会大量使用`ECS`,所以我们有必要先花点时间熟悉下`ECS`

* **组件(Components)** - 组件只包含数据不包含行为,比如:位置组件、可渲染组件和运动组件。
* **实体(Entities)** - 实体是由多个组件组成的,比如玩家,可能是由位置组件、可渲染组件、动作组件组合而成的,而地板可能只需要位置组件和可渲染组件,因为它不会动。也可以说实体几乎就是包含一个或多个具有唯一标示信息的组件的容器。
Expand Down

0 comments on commit 5bb3398

Please sign in to comment.