Commit 7c2873e5 by BellCodeEditor

save project

parent eba9c68e
Showing with 16 additions and 5 deletions
import pygame
from import pygame
from pygame import locals
pygame.init()
score=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:
if even.type == :
exit()
\ No newline at end of file
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
score.blit(background,(0,0))
score.blit(apple,(360,300))
score.blit(right,(240,120))
score.blit(body,(240,90))
score.blit(body,(240,60))
score.blit(body,(240,30))
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