Commit 6c648b05 by BellCodeEditor

save project

parent f282ff99
Showing with 22 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((800,600))
background=pygame.image.load("bg.png")
up=pygame.image.load("up.png")
right=pygame.image.load("right.png")
down=pygame.image.load("down.png")
left=pygame.image.load("left.png")
apple=pygame.image.load("apple.png")
while True:
screen.blit(background,(0,0))
screen.blit(right,(210,30))
screen.blit(up,(210,30))
screen.blit(down,(210,30))
screen.blit(left,(210,30))
screen.blit(apple,(270,300))
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
pygame.display.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