Commit c9647b79 by BellCodeEditor

save project

parent 269fcc5d
Showing with 15 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((1000,1000))
ph=pygame.import.load(ggg)
screen.blit(ph,(sss))
pygame.display.update()
\ No newline at end of file
...@@ -54,6 +54,7 @@ while True: ...@@ -54,6 +54,7 @@ while True:
else: else:
position.pop(0) position.pop(0)
if x < 0 or x > 630 or y > 450: if x < 0 or x > 630 or y > 450:
exit()
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
# 将贪吃蛇画上去 # 将贪吃蛇画上去
......
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