Commit 098823a8 by BellCodeEditor

auto save

parent bc11b908
Showing with 14 additions and 3 deletions
import pygame import pygame
from pygame import locals from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,720)) screen=pygame.display.set_mode((660,720))
food=pygame.image.info('apple.png')
background=pygame.image.info('bg.png')
body=pygame.image.info('body.png')
right=pygame.image.info('right.png')
down=pygame.image.info('down.png')
up=pygame.image.info('up.png')
left=pygame.image.info('left.png')
while True: while True:
for event in display. for event in pygame.display.event.get():
\ No newline at end of file if event.type==locals.QUIT:
exit()
screen.display.blit(food,(120,480))
screen.display.blit(body,(300,300))
screen.display.blit(background(0,0))
screen.update()
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