Commit 2d1df8f7 by BellCodeEditor

save project

parent cf271191
Showing with 10 additions and 2 deletions
import pygame import torturle
from pygame import locals from pygame import locals
mm
pygame.init() # 初始化 pygame.init() # 初始化
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
...@@ -60,3 +60,10 @@ while True: ...@@ -60,3 +60,10 @@ while True:
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
def tree(n):
if n >= 50:
pen.forward(n)
pen.right(30)
tree.(-50)
pen.forward(n)
pen
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment