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
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((800,600))
bg = pygame.image.load('bg.png')
while True:
for event in pygame.event.get():
if event.type ==locals.QUIT:
if event.type == 12:
exit()
screen.blit(bg,(0,0))
#蛇头 240 120
#苹果 360 300
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(food,(360,300))
pygame.display.update()
\ 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