Skip to content
Snippets Groups Projects
Commit 10026e36 authored by @dion-tsang's avatar @dion-tsang
Browse files

Lesson 05

parent 8145caae
No related branches found
No related tags found
No related merge requests found
Pipeline #503204 passed
......@@ -2,6 +2,10 @@
## 课前复习 Recap - Creat pygame window and add a cube
这段代码是对我们上节课内容的回顾,**找找看:你还记得哪句代码可以画出一个矩形吗?** 里面的参数分别控制什么内容呢?试试看吧,_参数 0 修改为 -1_ 会有惊喜喔!
你仅需复制这段代码到编辑器,即可修改代码:
```python
import pygame
......@@ -40,6 +44,10 @@ pygame.quit()
## Heroshot: Moving the cube - Horizontally!🌎🤫
复制这段代码,了解如何控制物品水平方向移动;
等等,你还能控制方块垂直方向移动吗?
斜方向的移动呢?
```python
import pygame
......@@ -80,6 +88,8 @@ pygame.quit()
## Chanllenge:Rising Smoke!飘烟挑战
如果你能走到这里,说明你的学习能力还真的不错!试试挑战一下,让烟雾飘起来吧!!
```python
import pygame
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment