Commit 9f7cfb84 by BellCodeEditor

auto save

parent 4a85e08c
Showing with 20 additions and 8 deletions
a = [1,2,3,4,5,6,7,8,9]
for i in a:
print(i)
\ No newline at end of file
import pygame import pygame
from pygame import locals
pygame.init() pygame.init()
screen = pygame.display.set_mode((800,600)) screen = pygame.display.set_mode((800,600))
bg = pygame.image.load('bg.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type ==locals.QUIT: if event.type == 12:
exit() exit()
screen.blit(bg,(0,0))
#蛇头 240 120
#苹果 360 300
screen.blit(background,(0,0)) pygame.display.update()
screen.blit(right,(240,120))
screen.blit(food,(360,300)) \ No newline at end of file
pygame.display.update()
\ 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