Commit 459c10f5 by BellCodeEditor

save project

parent c94b4458
Showing with 22 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,480))
background=pygame.image.load('bg.png')
apple=pygame.image.load('apple.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(360,390))
screen.blit(right,(240,270))
screen.blit(body,(270,270))
screen.blit(body,(300,270))
screen.blit(body,(330,270))
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