Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed a typo, event hook transaltion and other :) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/from-scratch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pygame Zero版本的游戏包含了积分逻辑,但是为了更清晰对比二

除了舞台背景之外,还有三个对象,小鸟,上方管道和下方管道

对应的pygame Zero代码则是把这三个角色都设置为 ``Actors`` (中文是演员?角色?差不多意思吧)::
对应的pygame Zero代码则是把这三个角色都设置为 ``Actors`` (表演者)::

bird = Actor('bird1', (75, 200))
pipe_top = Actor('top', anchor=('left', 'bottom'))
Expand Down Expand Up @@ -208,7 +208,7 @@ Scratch和Pygame Zero最大的不同在于:

Many of the concepts available in Scratch can be translated directly into
Pygame Zero.
许多Scratch种的概念可以直接迁移到Pygame Zero中.
许多Scratch中的概念可以直接迁移到Pygame Zero中.

下面是一些对比:

Expand Down
10 changes: 5 additions & 5 deletions doc/hooks.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
事件钩子
事件钩
===========

Pygame Zero会自动识别并调用你定义的事件钩子.这种机制把你从自己实现事件循环机制中
Pygame Zero会自动识别并调用你定义的事件钩.这种机制把你从自己实现事件循环机制中
拯救出来.

事件循环钩子
事件循环钩
---------------

典型事件循环钩子如下::
典型事件循环钩如下::

while game_has_not_ended():
process_input()
Expand Down Expand Up @@ -72,7 +72,7 @@ module.
movement calculations.


事件处理钩子
事件处理钩
--------------------

Similar to the game loop hooks, your Pygame Zero program can respond to input
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ Pygame Zero参考
编辑器模式 <ide-mode>
参与开源项目 <contributing>
更新日志 <changelog>

网易少儿编程郎郎老师提供翻译,微信ilangxm,有疑问可以添加好友备注pygame zero
感谢网易少儿编程郎郎老师提供翻译,微信ilangxm,有疑问可以添加好友备注pygame zero :)
2 changes: 1 addition & 1 deletion doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
安装pygame zero就是这么简单。Windows以及Linux系统(32位和64位), Mac(64)位系统都有针对pip预编译的pygame包。如果的操作系统不是
上述系统,你需要找到适合你系统的安装方式

树莓派
树莓派(Raspberry Pi)
~~~~~~~~~~~~~~~

pgzero从2015年9月份Raspbian Jessie发布以来默认安装在树莓派的系统。