Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson7_diy1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit bc27db5a authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 5428ef5a
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 10 deletions
  • FJI.PY
  • my_game.py
FJI.PY 0 → 100644
View file @ bc27db5a
if rect.x <= 0-rect.with:
odstacle = random choice
rect = odstacle.get_rect()
rect.x = 1000
rect.x = 8
screen.hlit
pygame.display.update()
FPS.tick(30)
This diff is collapsed. Click to expand it.
my_game.py
View file @ bc27db5a
......@@ -18,16 +18,6 @@ index = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(hero, (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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