Commit 2ce92681 by BellCodeEditor

auto save

parent c6188a1e
Showing with 18 additions and 2 deletions
...@@ -4,4 +4,20 @@ import pygame ...@@ -4,4 +4,20 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
?? screen=pygame.display.set_mode
\ No newline at end of file
#添加背景 添加蛇头朝右 添加苹果 添加身体
#bj=pygame.image.lode('bg.png') 背景
#蛇头朝右 right.png
#苹果 apple.png
#身体 body.png
exit()
#screen.blit(变量名,(0,0)) 背景
#蛇头朝右 240,120
#身体 210,120
#身体180,120
#身体 180,90
#苹果 360,300
#刷新画面
\ 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