Commit d9c19abf by BellCodeEditor

save project

parent b2e22edb
Showing with 12 additions and 1 deletions
......@@ -2,9 +2,19 @@ import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((800,600))
blakground = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
body = pygame.image.load('body.png')
apple = pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(blakground,(0,0))
screen.blit(right,(180,90))
screen.blit(body,(150,90))
screen.blit(body,(120,90))
screen.blit(body,(120,60))
screen.blit(apple,(120,150))
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