Commit 0d0f337c by BellCodeEditor

auto save

parent 4611fe18
Showing with 23 additions and 2 deletions
import pygame
from pygame import locals
from random import randint
pygame.init()
pygame.display.set_mode((660,480))
\ No newline at end of file
screen=pygame.display.set_mode((660,480))
apple=pygame.image.load('apple.png')
bg=pygame.image.load('bg.png')
body=pygame.image.load('body.png')
down=pygame.image.load('down.png')
right=pygame.image.load('right.png')
left=pygame.image.load('left.png')
up=pygame.image.load('up.png')
screen.blit(bg,(0,0))
screen.blit(right,(330,240))
screen.blit(apple,(420,240))
pygame.display.update()
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
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