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 891a36d5 authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 6f2ed745 c103180l1405p256a14327/wx008546
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 6 deletions
  • my_game.py
my_game.py
View file @ 891a36d5
......@@ -23,15 +23,11 @@ while True:
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
wukong=hero[0]
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
screen.blit(hero[0], (150, 400))
screen.blit(hero[1], (150, 400))
screen.blit(hero[2], (150, 400))
screen.blit(hero[3], (150, 400))
screen.blit(hero[4], (150, 400))
screen.blit(wukong, (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
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